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">
<directory>test</directory>
</testsuite>
<testsuite name="Amp Loop PHPT">
<directory suffix=".phpt">test/phpt</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>

View File

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