RouterTest.php 647 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace League\CLImate\Tests;
  3. use League\CLImate\TerminalObject\Router\Router;
  4. class RouterTest extends TestBase
  5. {
  6. /** @test */
  7. public function it_can_find_a_basic_object()
  8. {
  9. $router = new Router();
  10. $this->assertTrue($router->exists('out'));
  11. }
  12. /** @test */
  13. public function it_can_find_a_dynamic_object()
  14. {
  15. $router = new Router();
  16. $this->assertTrue($router->exists('input'));
  17. }
  18. /** @test */
  19. public function it_returns_false_on_a_non_existent_object()
  20. {
  21. $router = new Router();
  22. $this->assertFalse($router->exists('NotAThingAtAll'));
  23. }
  24. }