Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2015-11-03 07:13:32 +0300
committerChaoyi Zha <summermontreal@gmail.com>2015-11-03 07:13:32 +0300
commitf0162c755938017991faa9b0564a2197fbd4beb2 (patch)
treeba601c8e2954ec5378d0f30648f01602182f19ee /tests
parenteb85f2466e39d0217f374bed7e0a71fbe3bc895f (diff)
2.0 init commit
Diffstat (limited to 'tests')
-rw-r--r--tests/ExampleTest.php15
-rw-r--r--tests/TestCase.php14
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';
+ }
+}