mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Fix bootstrap test and execute it
This commit is contained in:
parent
30a6ac24ed
commit
5a92c31197
@ -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>
|
||||||
|
@ -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";
|
||||||
});
|
});
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user