Skip to content

Commit 46ee47c

Browse files
committed
x
1 parent eea2bf0 commit 46ee47c

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

tests/Utils/x.phpt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ use Nette\Utils\ArrayHash;
1010
use Tester\Assert;
1111

1212

13-
$x = [null => 1];
1413

14+
error_reporting(E_ALL);
15+
ini_set('html_errors', '0');
1516

16-
$colors = [
17-
'black' => '0;30', 'gray' => '1;30', 'silver' => '0;37', 'white' => '1;37',
18-
'navy' => '0;34', 'blue' => '1;34', 'green' => '0;32', 'lime' => '1;32',
19-
'teal' => '0;36', 'aqua' => '1;36', 'maroon' => '0;31', 'red' => '1;31',
20-
'purple' => '0;35', 'fuchsia' => '1;35', 'olive' => '0;33', 'yellow' => '1;33',
21-
null => '0',
22-
];
2317

18+
set_error_handler(function (int $severity, string $message, string $file, int $line) {
19+
var_dump([$severity, $message, $file, $line]);
20+
return false;
21+
});
2422

25-
echo PHP_VERSION;
2623

27-
throw new \Exception($colors['']);
24+
require 'x2.php';
25+
26+
phpinfo();

tests/Utils/x2.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$x = [null => 1];
6+
7+
8+
9+
$colors = [
10+
'black' => '0;30', 'gray' => '1;30', 'silver' => '0;37', 'white' => '1;37',
11+
'navy' => '0;34', 'blue' => '1;34', 'green' => '0;32', 'lime' => '1;32',
12+
'teal' => '0;36', 'aqua' => '1;36', 'maroon' => '0;31', 'red' => '1;31',
13+
'purple' => '0;35', 'fuchsia' => '1;35', 'olive' => '0;33', 'yellow' => '1;33',
14+
null => '0',
15+
];
16+

0 commit comments

Comments
 (0)