From: Chuck Hagenbuch Date: Tue, 4 Jan 2011 13:35:24 +0000 (-0500) Subject: Avoid PHPUnit 3.5 deprecated warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ec3b5bff80b140ac0ae5196ac6dabce562940432;p=horde.git Avoid PHPUnit 3.5 deprecated warnings --- diff --git a/framework/Support/test/Horde/Support/ArrayTest.php b/framework/Support/test/Horde/Support/ArrayTest.php index 3cd6bc6d7..e39e7a9e8 100644 --- a/framework/Support/test/Horde/Support/ArrayTest.php +++ b/framework/Support/test/Horde/Support/ArrayTest.php @@ -19,19 +19,19 @@ class Horde_Support_ArrayTest extends PHPUnit_Framework_TestCase public function testImplementsArrayAccess() { $o = new Horde_Support_Array(); - $this->assertType('ArrayAccess', $o); + $this->assertInstanceOf('ArrayAccess', $o); } public function testImplementsIterator() { $o = new Horde_Support_Array(); - $this->assertType('Iterator', $o); + $this->assertInstanceOf('Iterator', $o); } public function testImplementsCountable() { $o = new Horde_Support_Array(); - $this->assertType('Countable', $o); + $this->assertInstanceOf('Countable', $o); } // offsetGet() diff --git a/framework/Support/test/Horde/Support/ConsistentHashTest.php b/framework/Support/test/Horde/Support/ConsistentHashTest.php index cbf596bb4..e65388401 100644 --- a/framework/Support/test/Horde/Support/ConsistentHashTest.php +++ b/framework/Support/test/Horde/Support/ConsistentHashTest.php @@ -157,7 +157,7 @@ class Horde_Support_ConsistentHashTest extends PHPUnit_Framework_TestCase $h = new Horde_Support_ConsistentHash(range(1, 10)); $nodes = $h->getNodes('r', 2); - $this->assertType('array', $nodes); + $this->assertInternalType('array', $nodes); $this->assertEquals(count($nodes), 2); $this->assertNotEquals($nodes[0], $nodes[1]); }