diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php
index 6976d7b8..ded2ebb2 100644
--- a/src/CodeCoverage.php
+++ b/src/CodeCoverage.php
@@ -78,23 +78,32 @@ public function __construct(Driver $driver, Filter $filter)
}
/**
- * @return non-empty-list<non-empty-string>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<coverage clover="12.2.1-20-g01703b78" generated="1747920392"> | |
<project timestamp="1747920392" name="Clover Coverage"> | |
<metrics files="34" loc="2242" ncloc="2033" classes="27" complexity="275" elements="830" coveredelements="828" conditionals="0" coveredconditionals="0" statements="635" coveredstatements="634" methods="195" coveredmethods="194"/> | |
<package name="SebastianBergmann\Raytracer"> | |
<metrics complexity="275" elements="830" coveredelements="828" conditionals="0" coveredconditionals="0" statements="635" coveredstatements="634" methods="195" coveredmethods="194"/> | |
<file name="Camera.php" path="/usr/local/src/raytracer/src/Camera.php"> | |
<metrics loc="150" ncloc="127" classes="1" complexity="17" elements="53" coveredelements="53" conditionals="0" coveredconditionals="0" statements="39" coveredstatements="39" methods="14" coveredmethods="14"/> | |
<class name="Camera"> | |
<metrics complexity="17" elements="53" coveredelements="53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
/** | |
* @return non-empty-string | |
*/ | |
private function hostname(): string | |
{ | |
$candidate = gethostname(); | |
if ($candidate === false) { | |
return 'unknown'; |
Question | Answer |
---|---|
Infection version | 0.28.1 |
Test Framework version | PHPUnit 11.1-dev |
PHP version | 8.3.4 |
Platform | Fedora |
Github Repo | https://github.com/sebastianbergmann/phpunit |
The Finished
class has a public
method named test
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
$ php -d opcache.enable=1 \ | |
-d opcache.enable_cli=1 \ | |
-d opcache.optimization_level=-1 \ | |
-d opcache.opt_debug_level=0x10000 \ | |
Runtime.php \ | |
> /tmp/2-before-optimization 2>&1 | |
``` | |
``` | |
$ php -d opcache.enable=1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
error_reporting(-1); | |
ini_set('memory_limit', -1); | |
require __DIR__ . '/vendor/autoload.php'; | |
use PhpParser\Node; | |
use PhpParser\Node\Expr\ConstFetch; | |
use PhpParser\Node\NullableType; | |
use PhpParser\Node\Param; |
$argon2id$v=19$m=512,t=256,p=1$aawVElmKZ8yjJLf/IeJ/tg$2HDOj9i6fbatt7iQq1SrGKYClP3+qEXNi6U8d/49v78
vendor/bin/paraunit run --testsuite unit,integration
PARAUNIT v.2.2.3
by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it
.....................................................................W..SW 74
W......................................................................... 148
.......................................................................... 222
.......................................................................... 296
.......................................................................... 370
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
function mb_sprintf($format, ...$args): string | |
{ | |
$params = $args; | |
return sprintf( | |
preg_replace_callback( | |
'/(?<=%|%-)\d+(?=s)/', | |
static function ($length) use (&$params) { | |
$value = array_shift($params); |