/
var
/
www
/
vhosts
/
nabawater
/
vendor
/
codeception
/
phpunit-wrapper
/
src
/
ResultPrinter
/
/var/www/vhosts/nabawater/vendor/codeception/phpunit-wrapper/src/ResultPrinter
mkdir
upload
Name
Size
Mode
Actions
template/
-
0775
rm
HTML.php
9318
0664
edit
dl
rm
Report.php
1867
0664
edit
dl
rm
UI.php
2911
0664
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/vendor/codeception/phpunit-wrapper/src/ResultPrinter/Report.php
(1867B)
<?php namespace Codeception\PHPUnit\ResultPrinter; use Codeception\Lib\Console\Output; use Codeception\PHPUnit\ConsolePrinter; use Codeception\PHPUnit\ResultPrinter; use Codeception\Test\Descriptor; class Report extends ResultPrinter implements ConsolePrinter { /** * @param \PHPUnit\Framework\Test $test * @param float $time */ public function endTest(\PHPUnit\Framework\Test $test, $time) { $name = Descriptor::getTestAsString($test); $success = ($this->testStatus == \PHPUnit\Runner\BaseTestRunner::STATUS_PASSED); if ($success) { $this->successful++; } if ($this->testStatus == \PHPUnit\Runner\BaseTestRunner::STATUS_FAILURE) { $status = "\033[41;37mFAIL\033[0m"; } elseif ($this->testStatus == \PHPUnit\Runner\BaseTestRunner::STATUS_SKIPPED) { $status = 'Skipped'; } elseif ($this->testStatus == \PHPUnit\Runner\BaseTestRunner::STATUS_INCOMPLETE) { $status = 'Incomplete'; } elseif ($this->testStatus == \PHPUnit\Runner\BaseTestRunner::STATUS_ERROR) { $status = 'ERROR'; } else { $status = 'Ok'; } if (strlen($name) > 75) { $name = substr($name, 0, 70); } $line = $name . str_repeat('.', 75 - strlen($name)); $line .= $status; $this->write($line . "\n"); } protected function endRun() { $this->write("\nCodeception Results\n"); $this->write(sprintf( "Successful: %s. Failed: %s. Incomplete: %s. Skipped: %s", $this->successful, $this->failed, $this->skipped, $this->incomplete ) . "\n"); } public function printResult(\PHPUnit\Framework\TestResult $result) { } public function write($buffer) { } }
Save
cmd:
run