Skip to content

Commit

Permalink
Verify our fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Aug 24, 2020
1 parent 6436486 commit d70253f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/phpunit/Mutation/MutationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function test_it_can_be_instantiated(
MutatedNode $mutatedNode,
int $mutationByMutatorIndex,
array $tests,
float $timeToTest,
array $expectedAttributes,
int $expectedOriginalStartingLine,
bool $expectedCoveredByTests,
Expand All @@ -88,6 +89,7 @@ public function test_it_can_be_instantiated(
$this->assertSame($mutatedNodeClass, $mutation->getMutatedNodeClass());
$this->assertSame($mutatedNode, $mutation->getMutatedNode());
$this->assertSame($tests, $mutation->getAllTests());
$this->assertSame($timeToTest, $mutation->getNominalTestExecutionTime());
$this->assertSame($expectedCoveredByTests, $mutation->isCoveredByTest());
$this->assertSame($expectedHash, $mutation->getHash());
}
Expand All @@ -112,6 +114,7 @@ public function valuesProvider(): iterable
MutatedNode::wrap(new Node\Scalar\LNumber(1)),
-1,
[],
0.0,
$nominalAttributes,
$originalStartingLine,
false,
Expand All @@ -136,6 +139,7 @@ public function valuesProvider(): iterable
0.01
),
],
0.01,
$nominalAttributes,
$originalStartingLine,
true,
Expand All @@ -160,6 +164,7 @@ public function valuesProvider(): iterable
0.01
),
],
0.01,
$nominalAttributes,
$originalStartingLine,
true,
Expand All @@ -181,9 +186,15 @@ public function valuesProvider(): iterable
new TestLocation(
'FooTest::test_it_can_instantiate',
'/path/to/acme/FooTest.php',
0.01
1.1
),
new TestLocation(
'FooTest::test_it_can_instantiate',
'/path/to/acme/FooTest.php',
1.1
),
],
1.1,
$nominalAttributes,
$originalStartingLine,
true,
Expand All @@ -202,6 +213,7 @@ public function valuesProvider(): iterable
MutatedNode::wrap(new Node\Scalar\LNumber(1)),
0,
[],
0.0,
$nominalAttributes,
$originalStartingLine,
false,
Expand Down Expand Up @@ -229,6 +241,7 @@ public function valuesProvider(): iterable
0.01
),
],
0.01,
$nominalAttributes,
$originalStartingLine,
true,
Expand Down

0 comments on commit d70253f

Please sign in to comment.