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)');
    }
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)');
    }
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)' ) ; }
we are printing test status and time taken
we are printing test status and time taken