Avoid PHPUnit 3.5 deprecated warnings
authorChuck Hagenbuch <chuck@horde.org>
Tue, 4 Jan 2011 13:35:24 +0000 (08:35 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 4 Jan 2011 15:26:35 +0000 (10:26 -0500)
framework/Support/test/Horde/Support/ArrayTest.php
framework/Support/test/Horde/Support/ConsistentHashTest.php

index 3cd6bc6..e39e7a9 100644 (file)
@@ -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()
index cbf596b..e653884 100644 (file)
@@ -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]);
     }