diff --git a/composer.json b/composer.json index 8fe8fbd..7b564e2 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "require-dev": { "phpunit/phpunit": "~10.2", "innmind/static-analysis": "^1.2.1", - "innmind/black-box": "~5.5", + "innmind/black-box": "~6.5", "innmind/coding-standard": "~2.0" }, "bin": ["lab-station"] diff --git a/tests/Trigger/BlackBoxTest.php b/tests/Trigger/BlackBoxTest.php index 6d8f561..e575b9a 100644 --- a/tests/Trigger/BlackBoxTest.php +++ b/tests/Trigger/BlackBoxTest.php @@ -86,7 +86,7 @@ public function testDoNothingWhenNotOfExpectedType() public function testDoNothingWhenTriggerNotEnabled() { $this - ->forAll(Set\Elements::of(...Activity::cases())) + ->forAll(Set::of(...Activity::cases())) ->then(function($type) { $trigger = new BlackBox(new Iteration); @@ -129,7 +129,7 @@ public function testDoNothingWhenTriggerNotEnabled() public function testTriggerTestsSuiteWhenActivity() { $this - ->forAll(Set\Elements::of( + ->forAll(Set::of( Activity::sourcesModified, Activity::proofsModified, Activity::fixturesModified, @@ -244,7 +244,7 @@ public function testTriggerTestsSuiteWhenActivity() public function testDoesntTriggerWhenNoBlackBoxFile() { $this - ->forAll(Set\Elements::of( + ->forAll(Set::of( Activity::sourcesModified, Activity::proofsModified, Activity::fixturesModified, diff --git a/tests/Trigger/CodingStandardTest.php b/tests/Trigger/CodingStandardTest.php index 01e6290..018b47e 100644 --- a/tests/Trigger/CodingStandardTest.php +++ b/tests/Trigger/CodingStandardTest.php @@ -165,7 +165,7 @@ public function testDoNothingWhenTriggerNotEnabled() public function testTriggerTestsSuiteWhenSourcesModified() { $this - ->forAll(DataSet\Elements::of( + ->forAll(DataSet::of( Activity::sourcesModified, Activity::proofsModified, Activity::testsModified, diff --git a/tests/Trigger/TestsTest.php b/tests/Trigger/TestsTest.php index 9cc78bf..28bfe83 100644 --- a/tests/Trigger/TestsTest.php +++ b/tests/Trigger/TestsTest.php @@ -88,7 +88,7 @@ public function testDoNothingWhenNotOfExpectedType() public function testDoNothingWhenTriggerNotEnabled() { $this - ->forAll(Set\Elements::of(...Activity::cases())) + ->forAll(Set::of(...Activity::cases())) ->then(function($type) { $trigger = new Tests(new Iteration); $os = $this->createMock(OperatingSystem::class); @@ -130,7 +130,7 @@ public function testDoNothingWhenTriggerNotEnabled() public function testTriggerTestsSuiteWhenActivity() { $this - ->forAll(Set\Elements::of( + ->forAll(Set::of( Activity::sourcesModified, Activity::testsModified, Activity::fixturesModified, @@ -243,7 +243,7 @@ public function testTriggerTestsSuiteWhenActivity() public function testDoesntTriggerWhenNoPHPUnitFile() { $this - ->forAll(Set\Elements::of( + ->forAll(Set::of( Activity::sourcesModified, Activity::testsModified, Activity::fixturesModified,