Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 27... Zeile 27...
27
        <meta charset="utf-8"/>
27
        <meta charset="utf-8"/>
28
        <title>Test Documentation</title>
28
        <title>Test Documentation</title>
29
        <style>
29
        <style>
30
            body {
30
            body {
31
                text-rendering: optimizeLegibility;
31
                text-rendering: optimizeLegibility;
-
 
32
                font-family: Source SansSerif Pro, Arial, sans-serif;
32
                font-variant-ligatures: common-ligatures;
33
                font-variant-ligatures: common-ligatures;
33
                font-kerning: normal;
34
                font-kerning: normal;
34
                margin-left: 2em;
35
                margin-left: 2rem;
35
                background-color: #ffffff;
36
                background-color: #fff;
36
                color: #000000;
37
                color: #000;
37
            }
38
            }
Zeile 38... Zeile 39...
38
 
39
 
39
            body > ul > li {
-
 
40
                font-family: Source Serif Pro, PT Sans, Trebuchet MS, Helvetica, Arial;
40
            body > ul > li {
41
                font-size: 2em;
41
                font-size: larger;
Zeile 42... Zeile 42...
42
            }
42
            }
43
 
43
 
-
 
44
            h2 {
-
 
45
                font-size: larger;
44
            h2 {
46
                text-decoration-line: underline;
-
 
47
                text-decoration-thickness: 2px;
45
                font-family: Tahoma, Helvetica, Arial;
48
                margin: 0;
Zeile 46... Zeile 49...
46
                font-size: 3em;
49
                padding: 0.5rem 0;
47
            }
50
            }
48
 
51
 
-
 
52
            ul {
-
 
53
                list-style: none;
-
 
54
                margin: 0 0 2rem;
-
 
55
                padding: 0 0 0 1rem;
-
 
56
                text-indent: -1rem;
-
 
57
            }
-
 
58
 
-
 
59
            .success:before {
-
 
60
                color: #4e9a06;
-
 
61
                content: '✓';
-
 
62
                padding-right: 0.5rem;
-
 
63
            }
-
 
64
 
-
 
65
            .defect {
-
 
66
                color: #a40000;
-
 
67
            }
-
 
68
 
-
 
69
            .defect:before {
49
            ul {
70
                color: #a40000;
50
                list-style: none;
71
                content: '✗';
51
                margin-bottom: 1em;
72
                padding-right: 0.5rem;
52
            }
73
            }
53
        </style>
74
        </style>
Zeile 58... Zeile 79...
58
    /**
79
    /**
59
     * @var string
80
     * @var string
60
     */
81
     */
61
    private const CLASS_HEADER = <<<'EOT'
82
    private const CLASS_HEADER = <<<'EOT'
Zeile 62... Zeile 83...
62
 
83
 
63
        <h2 id="%s">%s</h2>
84
        <h2>%s</h2>
Zeile 64... Zeile 85...
64
        <ul>
85
        <ul>
Zeile 65... Zeile 86...
65
 
86
 
Zeile 99... Zeile 120...
99
    protected function startClass(string $name): void
120
    protected function startClass(string $name): void
100
    {
121
    {
101
        $this->write(
122
        $this->write(
102
            sprintf(
123
            sprintf(
103
                self::CLASS_HEADER,
124
                self::CLASS_HEADER,
104
                $name,
-
 
105
                $this->currentTestClassPrettified
125
                $this->currentTestClassPrettified
106
            )
126
            )
107
        );
127
        );
108
    }
128
    }
Zeile 112... Zeile 132...
112
     */
132
     */
113
    protected function onTest(string $name, bool $success = true): void
133
    protected function onTest(string $name, bool $success = true): void
114
    {
134
    {
115
        $this->write(
135
        $this->write(
116
            sprintf(
136
            sprintf(
117
                "            <li style=\"color: %s;\">%s %s</li>\n",
137
                "            <li class=\"%s\">%s</li>\n",
118
                $success ? '#555753' : '#ef2929',
138
                $success ? 'success' : 'defect',
119
                $success ? '✓' : '❌',
-
 
120
                $name
139
                $name
121
            )
140
            )
122
        );
141
        );
123
    }
142
    }