diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2015-11-03 07:13:32 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2015-11-03 07:13:32 +0300 |
commit | f0162c755938017991faa9b0564a2197fbd4beb2 (patch) | |
tree | ba601c8e2954ec5378d0f30648f01602182f19ee /tests | |
parent | eb85f2466e39d0217f374bed7e0a71fbe3bc895f (diff) |
2.0 init commit
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ExampleTest.php | 15 | ||||
-rw-r--r-- | tests/TestCase.php | 14 |
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php new file mode 100644 index 0000000..67c9299 --- /dev/null +++ b/tests/ExampleTest.php @@ -0,0 +1,15 @@ +<?php + +class ExampleTest extends TestCase +{ + /** + * A basic test example. + * + * @return void + */ + public function testBasicExample() + { + $this->visit('/') + ->see('Lumen.'); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..651d9cb --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,14 @@ +<?php + +class TestCase extends Laravel\Lumen\Testing\TestCase +{ + /** + * Creates the application. + * + * @return \Laravel\Lumen\Application + */ + public function createApplication() + { + return require __DIR__.'/../bootstrap/app.php'; + } +} |