Skip to content

Commit

Permalink
updating unit tests
Browse files Browse the repository at this point in the history
git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@99 406649b4-5d4b-11de-8abc-d1c337b90d21
  • Loading branch information
XirisR authored and XirisR committed Jan 28, 2010
1 parent 1c7a9fd commit 2d8bc88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mongodb-morph/unit-tests/TestObject.php
@@ -1,7 +1,7 @@
<?php
require_once 'PHPUnit/Framework/TestCase.php';


require_once dirname(__FILE__).'/../src/Morph/Enum.php';
require_once dirname(__FILE__).'/../src/Morph/Object.php';
require_once dirname(__FILE__).'/../src/Morph/PropertySet.php';
require_once dirname(__FILE__).'/../src/Morph/Utils.php';
Expand Down Expand Up @@ -43,7 +43,7 @@ public function testSetData()
$obj = new Morph_ForTesting();
$obj->__setData($data);
$this->assertEquals($data['TestField'], $obj->TestField);
$this->assertEquals(Morph_Object::STATE_DIRTY, $obj->state());
$this->assertEquals(Morph_Enum::STATE_DIRTY, $obj->state());

}

Expand All @@ -57,7 +57,7 @@ public function testGetData()
$obj = new Morph_ForTesting();
$obj->__setData($data);
$this->assertEquals($data, $obj->__getData());
$this->assertEquals(Morph_Object::STATE_DIRTY, $obj->state());
$this->assertEquals(Morph_Enum::STATE_DIRTY, $obj->state());
}

public function test__toArray()
Expand Down
2 changes: 1 addition & 1 deletion mongodb-morph/unit-tests/TestPropertySet.php
Expand Up @@ -6,7 +6,7 @@
* @version SVN: $Id$
*/
require_once 'PHPUnit/Framework/TestCase.php';

require_once dirname(__FILE__).'/../src/Morph/Property/Generic.php';
require_once dirname(__FILE__).'/../src/Morph/PropertySet.php';
/**
*
Expand Down

0 comments on commit 2d8bc88

Please sign in to comment.