Ran php-cs-fixer #63
Annotations
10 warnings
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L32
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
protected function matches($other) : bool
{
- if (!$other instanceof Builder) {
+ if (!true) {
throw InvalidArgumentException::create(1, Builder::class);
}
$printer = new PrettyPrinter\Standard();
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L40
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
$printer = new PrettyPrinter\Standard();
$node = $other->getNode();
- if (!$node instanceof Node\Expr) {
+ if (!true) {
$this->fail($other, sprintf('The builder should produce an instance of %s, got %s', Node\Expr::class, get_debug_type($node)));
}
try {
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L61
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
private function createFile() : string
{
- return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512)) . '.php';
+ return $this->builderCompilePath . '/' . hash('sha512', random_bytes(511)) . '.php';
}
public function operator() : string
{
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L61
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
private function createFile() : string
{
- return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512)) . '.php';
+ return $this->builderCompilePath . '/' . hash('sha512', random_bytes(513)) . '.php';
}
public function operator() : string
{
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L61
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
private function createFile() : string
{
- return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512)) . '.php';
+ return $this->builderCompilePath . '/' . '.php';
}
public function operator() : string
{
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L61
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
private function createFile() : string
{
- return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512)) . '.php';
+ return $this->builderCompilePath . '/' . '.php' . hash('sha512', random_bytes(512));
}
public function operator() : string
{
|
infection:
src/Constraint/Builder/BuilderProducesCodeThat.php#L61
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
private function createFile() : string
{
- return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512)) . '.php';
+ return $this->builderCompilePath . '/' . hash('sha512', random_bytes(512));
}
public function operator() : string
{
|
infection:
src/Constraint/Pipeline/IteratesLike.php#L33
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (\is_array($iterable)) {
return new \ArrayIterator($iterable);
}
- if ($iterable instanceof \Iterator) {
+ if (true) {
return $iterable;
}
return new \IteratorIterator($iterable);
|
infection:
src/Constraint/Pipeline/IteratesLike.php#L33
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (\is_array($iterable)) {
return new \ArrayIterator($iterable);
}
- if ($iterable instanceof \Iterator) {
+ if (false) {
return $iterable;
}
return new \IteratorIterator($iterable);
|
infection:
src/Constraint/Pipeline/IteratesLike.php#L40
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
}
return new \IteratorIterator($iterable);
}
- public function matches($other) : bool
+ protected function matches($other) : bool
{
$both = new \MultipleIterator(\MultipleIterator::MIT_NEED_ANY);
$both->attachIterator($this->asIterator($this->expected));
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
artifact
Expired
|
223 KB |
|