public function testPropertiesOfFirstItem() { $self = $this; $this->item->walkProperties(function ($e) use($self) { $self->assertTrue(in_array($e['name'], $self->valid_fields), $e['name'] . ' is not valid property name'); $self->assertTrue(isset($e['@value'])); }); $properties = $this->item->propertiesToArray(); $this->assertEquals('Winter', $properties['yearwheel']); $this->assertEquals('All', $properties['audience']); $this->assertEquals('Event', $properties['category']); $this->assertEquals('article', $properties['type']); $this->assertEquals('<p>alpha_body unicode(❶)</p><p>Originally published by George Bush, Aarhus Kommunes Biblioteker.</p>', $properties['body'], 'Body or copyleft doesn\'t match'); }