1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Fix bootstrap test and execute it

This commit is contained in:
Niklas Keller 2017-01-08 17:24:25 +01:00
parent 30a6ac24ed
commit 5a92c31197
2 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,9 @@
<testsuite name="Amp Loop"> <testsuite name="Amp Loop">
<directory>test</directory> <directory>test</directory>
</testsuite> </testsuite>
<testsuite name="Amp Loop PHPT">
<directory suffix=".phpt">test/phpt</directory>
</testsuite>
</testsuites> </testsuites>
<filter> <filter>
<whitelist> <whitelist>

View File

@ -6,8 +6,8 @@ Bootstrap file sets factory
require __DIR__ . "/../../vendor/autoload.php"; require __DIR__ . "/../../vendor/autoload.php";
require __DIR__ . "/../../lib/bootstrap.php"; require __DIR__ . "/../../lib/bootstrap.php";
Loop::execute(function () { AsyncInterop\Loop::execute(function () {
print Loop::get() instanceof Amp\Loop\Loop ? "ok"; print AsyncInterop\Loop::get() instanceof Amp\Loop\Loop ? "ok" : "fail";
}); });
?> ?>