Bug: T122485
Change-Id: Ic21c6c1ca5afaac0e298cf0259f5dc273dfec128
} else {
foreach ( array(
stream_resolve_include_path( 'phpunit.phar' ),
+ stream_resolve_include_path( 'phpunit-old.phar' ),
'PHPUnit/Runner/Version.php',
'PHPUnit/Autoload.php'
) as $includePath ) {
+
+ if ( $includePath === false ) {
+ // stream_resolve_include_path can return false
+ continue;
+ }
+
// @codingStandardsIgnoreStart
@include_once $includePath;
// @codingStandardsIgnoreEnd