Permalink
Browse files

Switched assertInstanceOf t assertTrue using instanceof for compatabi…

…lity with earlier versions of PHPUnit
  • Loading branch information...
1 parent 36c82e8 commit c878a199b9f4d996b27b6b7ee70203a480a67d2e @a-musing-moose committed Feb 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/freebase/TestDomFactory.php
@@ -27,7 +27,7 @@ public function testValidJsonIsParsedIntoNodes()
$factory = new DomFactory();
$json = \file_get_contents(\dirname(__FILE__) . '/../../fixtures/topic.json');
$root = $factory->jsonToDom($json);
- $this->assertInstanceOf('freebase\\Node', $root);
+ $this->assertTrue($root instanceof \freebase\Node);
}
public function testValidJsonIsParsedIntoCorrectDom()

0 comments on commit c878a19

Please sign in to comment.