function test_isTypeOf() { $item = new TestItem($this->page, array('display' => 'true', 'type' => 'foo_type')); $this->assertTrue($item->isTypeOf('foo_type')); }