/** * Test the count() method returns the number of items added * * @covers \Hubzero\Pathway\Trail::count * @return void **/ public function testCount() { $pathway = new Trail(); $pathway->append('Crumb 1', 'index.php?option=com_lorem'); $pathway->append('Crumb 2', 'index.php?option=com_ipsum'); $this->assertEquals(2, $pathway->count()); $this->assertEquals(2, count($pathway)); }