ExampleTest.php 629 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Tests\Feature;
  11. use Laravel\Lumen\Testing\DatabaseMigrations;
  12. use Tests\TestCase;
  13. class ExampleTest extends TestCase
  14. {
  15. //use DatabaseMigrations;
  16. /**
  17. * A basic test example.
  18. */
  19. public function testExample()
  20. {
  21. $this->get('/');
  22. $this->assertEquals(
  23. $this->app->version(),
  24. $this->response->getContent()
  25. );
  26. }
  27. }