Permalink
Browse files

MINOR Using assertType() for PHPUnit 3.4 compat in DataListTest

  • Loading branch information...
1 parent 322d983 commit dec86b7e6c04c1fe02556b15bcc1d7b765b41c61 @chillu chillu committed Nov 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/model/DataListTest.php
@@ -146,7 +146,7 @@ function testByID() {
$team = DataList::create("DataObjectTest_Team")->byID($id);
// byID() returns a DataObject, rather than a DataList
- $this->assertInstanceOf('DataObjectTest_Team', $team);
+ $this->assertType('DataObjectTest_Team', $team);
$this->assertEquals('Team 2', $team->Title);
}

0 comments on commit dec86b7

Please sign in to comment.