1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Add bootstrap

This commit is contained in:
Matthew Brown 2016-12-07 00:21:46 -05:00
parent 88be61ddbe
commit 49334f8e46
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
backupGlobals="true"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"

8
tests/bootstrap.php Normal file
View File

@ -0,0 +1,8 @@
<?php
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}