public function getAttributes()
{
return $this->attributes;
}
public function testAttributes() { $item = new Item('Test of content', 'index.html', ['name' => 'test']); $this->assertCount(1, $item->getAttributes()); $item->setAttributes(['attr1' => 'text 1', 'attr2' => 'text 2']); $this->assertCount(2, $item->getAttributes()); }