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)); } }
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]); } }