File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
_files/invalid-coverage-metadata Expand file tree Collapse file tree 3 files changed +34
-1
lines changed 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
+ function delete_directory (string $ directory ): void
11
+ {
12
+ if (\is_file ($ directory )) {
13
+ @\unlink ($ directory );
14
+
15
+ return ;
16
+ }
17
+
18
+ if (!\is_dir ($ directory )) {
19
+ return ;
20
+ }
21
+
22
+ foreach (\glob (\rtrim ($ directory , '/ ' ) . '/* ' ) as $ path ) {
23
+ delete_directory ($ path );
24
+ }
25
+
26
+ @\rmdir ($ directory );
27
+ }
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" ../../../../../phpunit.xsd" >
3
+ xsi : noNamespaceSchemaLocation =" ../../../../../phpunit.xsd"
4
+ cacheDirectory =" .phpunit.cache" >
4
5
<testsuites >
5
6
<testsuite name =" default" >
6
7
<directory >tests</directory >
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ $_SERVER['argv'][] = '--debug';
16
16
require __DIR__ . '/../../bootstrap.php ' ;
17
17
18
18
(new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
19
+ --CLEAN --
20
+ <?php declare (strict_types=1 );
21
+ require __DIR__ . '/../../_files/delete_directory.php ' ;
22
+
23
+ delete_directory (__DIR__ . '/_files/invalid-coverage-metadata/.phpunit.cache ' );
19
24
--EXPECTF --
20
25
PHPUnit Started (PHPUnit %s using %s)
21
26
Test Runner Configured
You can’t perform that action at this time.
0 commit comments