You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/phpunit-project-autoload.test.ts
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ function assert_phpunit_error($callback, $expected, $label) {
97
97
}
98
98
throw new RuntimeException($label . ' unexpectedly succeeded');
99
99
}
100
+
100
101
${!supportsImplicitFallback ? `assert_phpunit_error(function() { ${functionName}(${phpString(explicitMissingXml)}, ${phpString(join(tempDir,"tests"))}); }, 'PHPUnit config is not readable', 'explicit missing config');` : ""}
101
102
assert_phpunit_error(function() { ${functionName}(${phpString(malformedXml)}, ${phpString(join(tempDir,"tests"))}); }, 'PHPUnit config could not be parsed', 'malformed config');
102
103
assert_phpunit_error(function() { ${discoveryFunctionName}(array(${phpString(join(tempDir,"missing-tests"))}), array('Test.php'), array('test-'), array()); }, 'configured PHPUnit test directory is not a readable directory', 'missing configured directory');
0 commit comments