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
.
<?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 |
<?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
.
``` | |
$ 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 \ |
<?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
<?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); |