for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Navigation\Tests\Breadcrumbs;
use ByTIC\Navigation\Breadcrumbs\Trail;
use ByTIC\Navigation\Tests\AbstractTest;
/**
* Class TrailTest
* @package ByTIC\Navigation\Tests\Breadcrumbs
*/
class TrailTest extends AbstractTest
{
public function test_render_emptyBreadcrumbs()
$trail = new Trail();
$content = $trail->render();
self::assertEmpty($content);
}
public function test_render()
$trail->addItem('t1', '#');
addItem()
ByTIC\Navigation\Breadcrumbs\Trail
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$trail->/** @scrutinizer ignore-call */
addItem('t1', '#');
$trail->addItem('t2', '#');
$testContent = file_get_contents(TEST_FIXTURE_PATH . '/views-rendered/breadcrumbs/basic-bootstrap4.html');
self::assertSame($testContent, $content);