public function testGetDataset()
 {
     $testCase = new WebDbTestCase();
     $actualDataSet = get_class($testCase->getDataSet());
     $expectedDataSet = 'PHPUnit_Extensions_Database_DataSet_QueryDataSet';
     self::assertEquals($expectedDataSet, $actualDataSet);
 }
Пример #2
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));
     }
 }