mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Test bootstrap file
This commit is contained in:
parent
3fa5c3318e
commit
30a6ac24ed
15
test/phpt/bootstrap.phpt
Normal file
15
test/phpt/bootstrap.phpt
Normal file
@ -0,0 +1,15 @@
|
||||
--TEST--
|
||||
Bootstrap file sets factory
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require __DIR__ . "/../../vendor/autoload.php";
|
||||
require __DIR__ . "/../../lib/bootstrap.php";
|
||||
|
||||
Loop::execute(function () {
|
||||
print Loop::get() instanceof Amp\Loop\Loop ? "ok";
|
||||
});
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
ok
|
Loading…
Reference in New Issue
Block a user