public function testFindingChaptersShouldExcludeSelfIfChapter() { $active = $this->_helper->findOneByLabel('Page 2'); $found = $this->_helper->findRelChapter($active); $expected = array('Page 1', 'Page 3', 'Zym'); $actual = array(); foreach ($found as $page) { $actual[] = $page->getLabel(); } $this->assertEquals($expected, $actual); }