1
0
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:
Niklas Keller 2017-01-08 17:12:04 +01:00
parent 3fa5c3318e
commit 30a6ac24ed

15
test/phpt/bootstrap.phpt Normal file
View 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