Ejemplo n.º 1
0
 public function onStarted(TestName $test)
 {
     parent::onStarted($test);
     $this->printLine();
     $this->depth++;
     $this->print_($test->toString());
 }
Ejemplo n.º 2
0
 function unknownResult(Assert $assert)
 {
     $test = new TestName('Foo', 'one');
     $listener = new CompactConsoleListener(function ($text) {
         $this->output .= $text;
     });
     $listener->onStarted($test);
     $listener->onResult($test, new NotPassedTestResult(new Failure()));
     $listener->onFinished($test);
     $this->assertOutput($assert, ['?', '', 'Unknown result']);
 }