public function testIncomplete(\Codeception\Event\TestEvent $e) { $test = new stdClass(); $test->name = $e->getTest()->toString(); $test->time = (int) (int) ($e->getTime() * 1000) / 1000 % 60; array_push(self::$testTimes, $test); $count = $e->getCount(); $duration = $e->getTime(); $failures = $e->getFail(); $message = $failures->getMessage(); $code = $failures->getCode(); $file = $failures->getFile(); $line = $failures->getLine(); teamcity_console_logger(MessageTemplate::Warning($test->name, $message)); teamcity_console_logger("code: {$code} | file: {$file} | line: {$line} FAILED"); }