Blame view

tests/unit/SlimMiddlewareLoaderTest.php 499 Bytes
12bac7098   Paulo Costa   updated components
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  <?php
  
  
  class SlimMiddlewareLoaderTest extends \Codeception\Test\Unit
  {
      /**
       * @var \UnitTester
       */
      protected $tester;
      private $config;
  
      protected function _before()
      {
          $this->config = \Fccn\Lib\SiteConfig::getInstance();
          $this->app = new Slim\App();
      }
  
      // tests
      public function testLoad()
      {
          $loader = new \Fccn\WebComponents\SlimMiddlewareLoader($this->app);
          $this->assertTrue($loader->load('my_test_middleware'));
      }
  }