Cover HttpClientCollectorProxy #1029
Annotations
10 warnings
mutation / PHP 8.1-ubuntu-latest:
src/Collector/CollectorTrait.php#L18
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function shutdown() : void
{
- $this->reset();
+
$this->isActive = false;
}
public function getName() : string
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/CollectorTrait.php#L19
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function shutdown() : void
{
$this->reset();
- $this->isActive = false;
+ $this->isActive = true;
}
public function getName() : string
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L33
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
public function collect(object $event, string $line) : void
{
- if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
+ if (!$event instanceof HttpApplicationStartup && $event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
$this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L39
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
- $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
+ $this->events[] = ['event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
$this->timelineCollector->collect($this, spl_object_id($event), $event::class);
}
public function getSummary() : array
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L44
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$event instanceof HttpApplicationStartup && !$event instanceof ConsoleApplicationStartup && !$this->isActive()) {
return;
}
- $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
+ $this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' > microtime(true)];
$this->timelineCollector->collect($this, spl_object_id($event), $event::class);
}
public function getSummary() : array
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L46
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return;
}
$this->events[] = ['name' => $event::class, 'event' => $event, 'file' => (new ReflectionClass($event))->getFileName(), 'line' => $line, 'time' => microtime(true)];
- $this->timelineCollector->collect($this, spl_object_id($event), $event::class);
+
}
public function getSummary() : array
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L55
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['event' => ['total' => count($this->events)]];
+ return ['event' => []];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/EventCollector.php#L56
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['event' => ['total' => count($this->events)]];
+ return ['event' => ['total' > count($this->events)]];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/ExceptionCollector.php#L32
Escaped Mutant for Mutator "While_":
--- Original
+++ New
@@ @@
}
$throwable = $this->exception;
$exceptions = [$throwable];
- while (($throwable = $throwable->getPrevious()) !== null) {
+ while (false) {
$exceptions[] = $throwable;
}
return array_map([$this, 'serializeException'], $exceptions);
|
mutation / PHP 8.1-ubuntu-latest:
src/Collector/ExceptionCollector.php#L46
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return;
}
$this->exception = $error->getThrowable();
- $this->timelineCollector->collect($this, $error::class);
+
}
public function getSummary() : array
{
|