protobuf/php/tests/autoload.php
Paul Yang ae55fd2cc5 Enforce all error report for php tests. (#3670)
* Enforce all error report for php tests.

* Import vendor/autoload.php in tests/bootstrap_phpunit.php
2017-09-22 14:08:01 -07:00

28 lines
549 B
PHP
Executable File

<?php
error_reporting(E_ALL);
function getGeneratedFiles($dir, &$results = array())
{
$files = scandir($dir);
foreach ($files as $key => $value) {
$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
if (!is_dir($path)) {
$results[] = $path;
} else if ($value != "." && $value != "..") {
getGeneratedFiles($path, $results);
}
}
return $results;
}
foreach (getGeneratedFiles("generated") as $filename)
{
if (!is_dir($filename)) {
include_once $filename;
}
}