public function testTags() { $tags = $this->Document->tags('a'); $titles = array_map(function ($Tag) { return $Tag->get('title'); }, $tags); $this->assertEquals(['Link', 'Other link'], $titles); }