/** * @covers AbstractItem::getId * @covers AbstractItem::getType * @covers AbstractItem::getSVGAttributes */ function test_getters_for_Item_attribute() { $item = new TestItem($this->page, ['display' => 'true', 'id' => 'foo_id', 'type' => 'foo_type', 'svg' => ['attrs' => ['attr' => 'value']]]); $this->assertEquals('foo_id', $item->getId()); $this->assertEquals('foo_type', $item->getType()); $this->assertEquals(['attr' => 'value'], $item->getSVGAttributes()); }