コード例 #1
0
 public function testGetSlimInstance()
 {
     $expectedConfig = array('version' => '0.0.0', 'debug' => false, 'mode' => 'testing');
     $testCase = new WebDbTestCase();
     $slim = $testCase->getSlimInstance();
     $this->assertInstanceOf('\\Slim\\Slim', $slim);
     foreach ($expectedConfig as $key => $value) {
         $this->assertSame($expectedConfig[$key], $slim->config($key));
     }
 }
コード例 #2
0
 public function testGetSlimInstance()
 {
     $expectedConfig = array('version' => '0.0.0', 'debug' => false, 'mode' => 'testing');
     $testCase = new WebDbTestCase();
     $slim = $testCase->getSlimInstance();
     self::assertInstanceOf('\\Slim\\App', $slim);
     foreach ($expectedConfig as $key => $value) {
         self::assertEquals($expectedConfig[$key], $slim->getContainer()->get('settings')[$key]);
     }
 }