File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
//$testCases = array('C:\src\php-investigations\tolerant-php-parser\tests\..\php-langspec\tests\traits\traits.phpt');
9
- $ testCases = glob (__DIR__ . "\\.. \\php-langspec \\tests \\** \\*.phpt " );
10
- $ outTestCaseDir = __DIR__ . "\\cases \\php-langspec \\" ;
9
+ $ sep = DIRECTORY_SEPARATOR ;
10
+ $ testCases = glob (__DIR__ . "$ {sep}.. $ {sep}php-langspec $ {sep}tests $ {sep}** $ {sep}*.phpt " );
11
+ $ outTestCaseDir = __DIR__ . "$ {sep}cases $ {sep}php-langspec $ {sep}" ;
11
12
mkdir ($ outTestCaseDir );
12
13
file_put_contents ($ outTestCaseDir . "README.md " , "Auto-generated from php/php-langspec tests " );
13
14
14
15
foreach ($ testCases as $ idx => $ filename ) {
15
16
$ myFile = file_get_contents ($ filename );
16
17
17
- $ dirPrefix = $ outTestCaseDir . basename (dirname ($ filename )) . "\\" ;
18
+ $ dirPrefix = $ outTestCaseDir . basename (dirname ($ filename )) . $ sep ;
18
19
$ baseName = basename (basename ($ filename ), ".phpt " );
19
20
mkdir ($ dirPrefix );
20
21
You can’t perform that action at this time.
0 commit comments