Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of PHPUnit.
4
 *
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PHPUnit\Util\TestDox;
11
 
12
use PHPUnit\Framework\TestResult;
13
 
14
/**
15
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
16
 */
17
final class TextResultPrinter extends ResultPrinter
18
{
19
    public function printResult(TestResult $result): void
20
    {
21
    }
22
 
23
    /**
24
     * Handler for 'start class' event.
25
     */
26
    protected function startClass(string $name): void
27
    {
28
        $this->write($this->currentTestClassPrettified . "\n");
29
    }
30
 
31
    /**
32
     * Handler for 'on test' event.
33
     */
34
    protected function onTest(string $name, bool $success = true): void
35
    {
36
        if ($success) {
37
            $this->write(' [x] ');
38
        } else {
39
            $this->write(' [ ] ');
40
        }
41
 
42
        $this->write($name . "\n");
43
    }
44
 
45
    /**
46
     * Handler for 'end class' event.
47
     */
48
    protected function endClass(string $name): void
49
    {
50
        $this->write("\n");
51
    }
52
}