File tree Expand file tree Collapse file tree 4 files changed +72
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 4 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ https://github.com/sebastianbergmann/phpunit/pull/5592
3+ --FILE--
4+ <?php declare (strict_types=1 );
5+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
6+ $ _SERVER ['argv ' ][] = '--configuration ' ;
7+ $ _SERVER ['argv ' ][] = __DIR__ . '/5822/phpunit.xml ' ;
8+
9+ require_once __DIR__ . '/../../bootstrap.php ' ;
10+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
11+ --EXPECTF --
12+ PHPUnit %s by Sebastian Bergmann and contributors.
13+
14+ Runtime: %s
15+ Configuration: %s
16+
17+ D 1 / 1 (100 %)
18+
19+ Time: %s, Memory: %s
20+
21+ OK , but there were issues!
22+ Tests: 1 , Assertions: 1 , Deprecations: 1.
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" ../../../../phpunit.xsd" >
4+ <testsuites >
5+ <testsuite name =" default" >
6+ <directory >tests</directory >
7+ </testsuite >
8+ </testsuites >
9+
10+ <source >
11+ <include >
12+ <directory >src</directory >
13+ </include >
14+ </source >
15+ </phpunit >
Original file line number Diff line number Diff line change 1+ # Ignore everything in this directory
2+ *
3+ # Except this file
4+ ! .gitignore
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+ /*
3+ * This file is part of PHPUnit.
4+ *
5+ * (c) Sebastian Bergmann <[email protected] > 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 \TestFixture \Issue5822 ;
11+
12+ use PHPUnit \Framework \TestCase ;
13+
14+ class Issue5822Test extends TestCase
15+ {
16+ public function testDebugBacktrace ()
17+ {
18+ $ this ->callUserFuncExample ();
19+ $ this ->assertTrue (true );
20+ }
21+
22+ private function callUserFuncExample (): void
23+ {
24+ call_user_func ([$ this , 'exampleCallback ' ]);
25+ }
26+
27+ private function exampleCallback (): void
28+ {
29+ trigger_error ('My Deprecation Error ' , \E_USER_DEPRECATED );
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments