diff --git a/src/Report/Html/Renderer/Template/css/style.css b/src/Report/Html/Renderer/Template/css/style.css index 4216dfc34..896c45cfe 100644 --- a/src/Report/Html/Renderer/Template/css/style.css +++ b/src/Report/Html/Renderer/Template/css/style.css @@ -1,4 +1,5 @@ :root { + --phpunit-breadcrumbs: #e9ecef; --phpunit-success-bar: #28a745; --phpunit-success-high: {{success-high}}; --phpunit-success-medium: {{success-medium}}; @@ -18,6 +19,12 @@ body { padding-top: 10px; } +nav .breadcrumb { + border-radius: var(--bs-border-radius); + background-color: var(--phpunit-breadcrumbs); + padding: .75rem 1rem; +} + .popover { max-width: none; } diff --git a/src/Report/Html/Renderer/Template/line.html.dist b/src/Report/Html/Renderer/Template/line.html.dist index 89810d157..d7e055f63 100644 --- a/src/Report/Html/Renderer/Template/line.html.dist +++ b/src/Report/Html/Renderer/Template/line.html.dist @@ -1 +1 @@ -
1 | <?php |
2 | class BankAccount |
3 | { |
4 | protected $balance = 0; |
5 | |
6 | public function getBalance() |
7 | { |
8 | return $this->balance; |
9 | } |
10 | |
11 | protected function setBalance($balance) |
12 | { |
13 | if ($balance >= 0) { |
14 | $this->balance = $balance; |
15 | } else { |
16 | throw new RuntimeException; |
17 | } |
18 | } |
19 | |
20 | public function depositMoney($balance) |
21 | { |
22 | $this->setBalance($this->getBalance() + $balance); |
23 | |
24 | return $this->getBalance(); |
25 | } |
26 | |
27 | public function withdrawMoney($balance) |
28 | { |
29 | $this->setBalance($this->getBalance() - $balance); |
30 | |
31 | return $this->getBalance(); |
32 | return $this->getBalance(); |
33 | } |
34 | } |
1 | <?php |
2 | class BankAccount |
3 | { |
4 | protected $balance = 0; |
5 | |
6 | public function getBalance() |
7 | { |
8 | return $this->balance; |
9 | } |
10 | |
11 | protected function setBalance($balance) |
12 | { |
13 | if ($balance >= 0) { |
14 | $this->balance = $balance; |
15 | } else { |
16 | throw new RuntimeException; |
17 | } |
18 | } |
19 | |
20 | public function depositMoney($balance) |
21 | { |
22 | $this->setBalance($this->getBalance() + $balance); |
23 | |
24 | return $this->getBalance(); |
25 | } |
26 | |
27 | public function withdrawMoney($balance) |
28 | { |
29 | $this->setBalance($this->getBalance() - $balance); |
30 | |
31 | return $this->getBalance(); |
32 | return $this->getBalance(); |
33 | } |
34 | } |
1 | <?php |
2 | |
3 | class CoveredClassWithAnonymousFunctionInStaticMethod |
4 | { |
5 | public static function runAnonymous() |
6 | { |
7 | $filter = ['abc124', 'abc123', '123']; |
8 | |
9 | array_walk( |
10 | $filter, |
11 | function (&$val, $key) { |
12 | $val = preg_replace('|[^0-9]|', '', $val); |
13 | } |
14 | ); |
15 | |
16 | // Should be covered |
17 | $extravar = true; |
18 | } |
19 | } |
1 | <?php |
2 | |
3 | class CoveredClassWithAnonymousFunctionInStaticMethod |
4 | { |
5 | public static function runAnonymous() |
6 | { |
7 | $filter = ['abc124', 'abc123', '123']; |
8 | |
9 | array_walk( |
10 | $filter, |
11 | function (&$val, $key) { |
12 | $val = preg_replace('|[^0-9]|', '', $val); |
13 | } |
14 | ); |
15 | |
16 | // Should be covered |
17 | $extravar = true; |
18 | } |
19 | } |
1 | <?php |
2 | if ($neverHappens) { |
3 | // @codeCoverageIgnoreStart |
4 | print '*'; |
5 | // @codeCoverageIgnoreEnd |
6 | } |
7 | |
8 | /** |
9 | * @codeCoverageIgnore |
10 | */ |
11 | class Foo |
12 | { |
13 | public function bar() |
14 | { |
15 | } |
16 | } |
17 | |
18 | class Bar |
19 | { |
20 | /** |
21 | * @codeCoverageIgnore |
22 | */ |
23 | public function foo() |
24 | { |
25 | } |
26 | } |
27 | |
28 | function baz() |
29 | { |
30 | print '*'; // @codeCoverageIgnore |
31 | } |
32 | |
33 | interface Bor |
34 | { |
35 | public function foo(); |
36 | } |
37 | |
38 | // @codeCoverageIgnoreStart |
39 | print ' |
40 | Multiline |
41 | '; |
42 | // @codeCoverageIgnoreEnd |
1 | <?php |
2 | if ($neverHappens) { |
3 | // @codeCoverageIgnoreStart |
4 | print '*'; |
5 | // @codeCoverageIgnoreEnd |
6 | } |
7 | |
8 | /** |
9 | * @codeCoverageIgnore |
10 | */ |
11 | class Foo |
12 | { |
13 | public function bar() |
14 | { |
15 | } |
16 | } |
17 | |
18 | class Bar |
19 | { |
20 | /** |
21 | * @codeCoverageIgnore |
22 | */ |
23 | public function foo() |
24 | { |
25 | } |
26 | } |
27 | |
28 | function baz() |
29 | { |
30 | print '*'; // @codeCoverageIgnore |
31 | } |
32 | |
33 | interface Bor |
34 | { |
35 | public function foo(); |
36 | } |
37 | |
38 | // @codeCoverageIgnoreStart |
39 | print ' |
40 | Multiline |
41 | '; |
42 | // @codeCoverageIgnoreEnd |
1 | <?php |
2 | class BankAccount |
3 | { |
4 | protected $balance = 0; |
5 | |
6 | public function getBalance() |
7 | { |
8 | return $this->balance; |
9 | } |
10 | |
11 | protected function setBalance($balance) |
12 | { |
13 | if ($balance >= 0) { |
14 | $this->balance = $balance; |
15 | } else { |
16 | throw new RuntimeException; |
17 | } |
18 | } |
19 | |
20 | public function depositMoney($balance) |
21 | { |
22 | $this->setBalance($this->getBalance() + $balance); |
23 | |
24 | return $this->getBalance(); |
25 | } |
26 | |
27 | public function withdrawMoney($balance) |
28 | { |
29 | $this->setBalance($this->getBalance() - $balance); |
30 | |
31 | return $this->getBalance(); |
32 | return $this->getBalance(); |
33 | } |
34 | } |
1 | <?php |
2 | class BankAccount |
3 | { |
4 | protected $balance = 0; |
5 | |
6 | public function getBalance() |
7 | { |
8 | return $this->balance; |
9 | } |
10 | |
11 | protected function setBalance($balance) |
12 | { |
13 | if ($balance >= 0) { |
14 | $this->balance = $balance; |
15 | } else { |
16 | throw new RuntimeException; |
17 | } |
18 | } |
19 | |
20 | public function depositMoney($balance) |
21 | { |
22 | $this->setBalance($this->getBalance() + $balance); |
23 | |
24 | return $this->getBalance(); |
25 | } |
26 | |
27 | public function withdrawMoney($balance) |
28 | { |
29 | $this->setBalance($this->getBalance() - $balance); |
30 | |
31 | return $this->getBalance(); |
32 | return $this->getBalance(); |
33 | } |
34 | } |
1 | %s |
1 | %s |
2 | %s |
3 | %s |
4 | %s |
6 | %s |
7 | %s |
8 | %s |
9 | %s |
9 | %s |
10 | |
11 | %s |
12 | %s |
13 | %s |
14 | %s |
15 | %s |
16 | %s |
17 | %s |
18 | %s |
19 | |
20 | %s |
21 | %s |
22 | %s |
23 | |
24 | %s |
25 | %s |
26 | |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | return $this->getBalance(); |
33 | } |
34 | } |
11 | %s |
12 | %s |
13 | %s |
14 | %s |
15 | %s |
16 | %s |
17 | %s |
18 | %s |
19 | |
20 | %s |
21 | %s |
22 | %s |
23 | |
24 | %s |
25 | %s |
26 | |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | return $this->getBalance(); |
33 | } |
34 | } |
6 | %s |
7 | %s |
8 | %s |
7 | %s |
8 | %s |
9 | %s |
11 | %s |
12 | %s |
13 | %s |
11 | %s |
12 | %s |
13 | %s |
14 | %s |
14 | %s |
16 | %s |
16 | %s |
18 | %s |
18 | %s |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
1 | %s |
1 | %s |
%s | |
3 | %s |
4 | %s |
5 | |
5 | |
6 | %s |
7 | %s |
8 | %s |
9 | %s |
10 | |
11 | %s |
12 | %s |
13 | %s |
14 | %s |
15 | %s |
7 | %s |
8 | %s |
9 | %s |
10 | |
11 | %s |
12 | %s |
13 | %s |
14 | %s |
15 | %s |
16 | %s |
17 | %s |
17 | %s |
18 | %s |
19 | |
20 | %s |
19 | |
20 | %s |
21 | %s |
22 | %s |
23 | |
22 | %s |
23 | |
24 | %s |
25 | %s |
26 | |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
33 | } |
34 | } |
26 | |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
33 | } |
34 | } |
20 | %s |
21 | %s |
22 | %s |
23 | |
24 | %s |
25 | %s |
20 | %s |
21 | %s |
22 | %s |
23 | |
24 | %s |
25 | %s |
6 | %s |
7 | %s |
8 | %s |
9 | %s |
6 | %s |
7 | %s |
8 | %s |
9 | %s |
11 | %s |
11 | %s |
12 | %s |
13 | %s |
11 | %s |
12 | %s |
12 | %s |
13 | %s |
16 | %s |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
27 | %s |
28 | %s |
29 | %s |
30 | |
31 | %s |
32 | %s |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
14 | $baz = function () {}; |
14 | $baz = function () {}; |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
1 | <?php |
2 | /** |
3 | * Represents foo. |
4 | */ |
5 | class Foo |
6 | { |
7 | } |
8 | |
9 | /** |
10 | * @param mixed $bar |
11 | */ |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
18 | } |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
12 | function &foo($bar) |
13 | { |
14 | $baz = function () {}; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
15 | $a = true ? true : false; |
16 | $b = "{$a}"; |
17 | $c = "${b}"; |
14 | $baz = function () {}; |
14 | $baz = function () {}; |