Example #1
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']);
 }
Example #2
0
 public function onFinished(TestName $test)
 {
     parent::onFinished($test);
     $this->depth--;
     if (!$this->depth) {
         $this->printLine();
     }
 }