diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index 7cef026..baec2d6 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":1,"defects":{"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetNamespace":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#0":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#3":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#4":7},"times":{"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldTestAttributeConstruction":0.002,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetTitle":0.001,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetRoot":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetNamespace":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Model\\UrlBreadcrumbTest::testShouldTestBreadcrumbsModel":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldConstruct":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#0":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#1":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#2":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#3":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#4":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#5":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#6":0}} \ No newline at end of file +{"version":1,"defects":{"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetNamespace":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#0":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#3":7,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#4":7},"times":{"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldTestAttributeConstruction":0.01,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetTitle":0.002,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetRoot":0.001,"Jugid\\AutomaticBreadcrumbs\\Tests\\Attribute\\BreadcrumbAttributeTest::testShouldGetNamespace":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Model\\UrlBreadcrumbTest::testShouldTestBreadcrumbsModel":0.002,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldConstruct":0.001,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#0":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#1":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#2":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#3":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#4":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#5":0,"Jugid\\AutomaticBreadcrumbs\\Tests\\Strategy\\HierarchyStrategyTest::testShouldDecomposeWithHierarchyStrategy#6":0}} \ No newline at end of file diff --git a/tests/Unit/Attribute/BreadcrumbAttributeTest.php b/tests/Unit/Attribute/BreadcrumbAttributeTest.php index 735c4e5..28a8426 100644 --- a/tests/Unit/Attribute/BreadcrumbAttributeTest.php +++ b/tests/Unit/Attribute/BreadcrumbAttributeTest.php @@ -8,7 +8,7 @@ class BreadcrumbAttributeTest extends TestCase { - public function testShouldTestAttributeConstruction() + public function testShouldTestAttributeConstruction() : void { $this->expectNotToPerformAssertions(); $breadcrumb = new Breadcrumb('Title'); @@ -16,19 +16,22 @@ public function testShouldTestAttributeConstruction() $breadcrumb = new Breadcrumb('Title', true, 'default'); } - public function testShouldGetTitle() { + public function testShouldGetTitle() : void + { $breadcrumb = new Breadcrumb('Title'); $this->assertEquals('Title', $breadcrumb->getTitle()); } - public function testShouldGetRoot() { + public function testShouldGetRoot() : void + { $breadcrumb_false = new Breadcrumb('Title'); $breadcrumb_true = new Breadcrumb('Title', true); $this->assertFalse($breadcrumb_false->isRoot()); $this->assertTrue($breadcrumb_true->isRoot()); } - public function testShouldGetNamespace() { + public function testShouldGetNamespace() : void + { $breadcrumb_default = new Breadcrumb('Title'); $breadcrumb_with_specific_namespace = new Breadcrumb('Title', false, 'my_namespace'); $this->assertEquals('default', $breadcrumb_default->getNamespace()); diff --git a/tests/Unit/Model/UrlBreadcrumbTest.php b/tests/Unit/Model/UrlBreadcrumbTest.php index 7919821..0b0086c 100644 --- a/tests/Unit/Model/UrlBreadcrumbTest.php +++ b/tests/Unit/Model/UrlBreadcrumbTest.php @@ -8,7 +8,7 @@ class UrlBreadcrumbTest extends TestCase { - public function testShouldTestBreadcrumbsModel() + public function testShouldTestBreadcrumbsModel() : void { $breadcrumb = new UrlBreadcrumb('My breadcrumb', '/my/breadcrumb/path'); diff --git a/tests/Unit/Strategy/HierarchyStrategyTest.php b/tests/Unit/Strategy/HierarchyStrategyTest.php index 255185a..656961d 100644 --- a/tests/Unit/Strategy/HierarchyStrategyTest.php +++ b/tests/Unit/Strategy/HierarchyStrategyTest.php @@ -7,7 +7,8 @@ class HierarchyStrategyTest extends TestCase { - public function testShouldConstruct() { + public function testShouldConstruct() : void + { $this->expectNotToPerformAssertions(); $strategy = new HierarchyStrategy(); @@ -16,12 +17,13 @@ public function testShouldConstruct() { /** * @dataProvider pathExpectedProvider */ - public function testShouldDecomposeWithHierarchyStrategy(string $path, array $expected) { + public function testShouldDecomposeWithHierarchyStrategy(string $path, array $expected) : void + { $strategy = new HierarchyStrategy(); $this->assertEquals($expected, $strategy->decompose($path)); } - public static function pathExpectedProvider() + public static function pathExpectedProvider() : \Generator { yield ['path/to/page/', ['/path/to/page', '/path/to', '/path']]; yield ['path/to/page', ['/path/to/page', '/path/to', '/path']];