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()
$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]);
}