- Fixed minor bugs
[activemongo.git] / test / ReferencesTest.php
blobf64aa7969c4b57542ba21f07f7adc862dd14cbd0
1 <?php
3 class ReferencesTest extends PHPUnit_Framework_TestCase
5 public function testReferences()
7 $c = new Model1;
8 $c->a = "foobar";
9 $c->save();
10 $ref = array(
11 '$ref' => 'model1',
12 '$id' => $c->getID(),
13 '$db' => DB,
14 'class' => 'Model1'
16 $this->assertEquals($c->getReference(), $ref);