/var/www/vhosts/nabawater/vendor/codeception/base/ext
NameSizeModeActions
DotReporter.php25910664editdlrm
Logger.php39410664editdlrm
README.md63900664editdlrm
Recorder.php208090664editdlrm
RunBefore.php37760664editdlrm
RunFailed.php24420664editdlrm
RunProcess.php28100664editdlrm
SimpleReporter.php16830664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/ext/SimpleReporter.php (1683B)
options['silent'] = false; // turn on printing for this extension $this->_reconfigure(['settings' => ['silent' => true]]); // turn off printing for everything else } // we are listening for events public static $events = [ Events::SUITE_BEFORE => 'beforeSuite', Events::TEST_END => 'after', Events::TEST_SUCCESS => 'success', Events::TEST_FAIL => 'fail', Events::TEST_ERROR => 'error', ]; public function beforeSuite() { $this->writeln(""); } public function success() { $this->write('[+] '); } public function fail() { $this->write('[-] '); } public function error() { $this->write('[E] '); } // we are printing test status and time taken public function after(TestEvent $e) { $seconds_input = $e->getTime(); // stack overflow: http://stackoverflow.com/questions/16825240/how-to-convert-microtime-to-hhmmssuu $seconds = (int)($milliseconds = (int)($seconds_input * 1000)) / 1000; $time = ($seconds % 60) . (($milliseconds === 0) ? '' : '.' . $milliseconds); $this->write(Descriptor::getTestSignature($e->getTest())); $this->writeln(' (' . $time . 's)'); } }