lithium\tests\mocks\data\model\MockDatabase::testConfig PHP Method

testConfig() public method

public testConfig ( )
    public function testConfig()
    {
        return $this->_config;
    }

Usage Example

Beispiel #1
0
 public function testModifyConfig()
 {
     $db = new MockDatabase(array('host' => '127.0.0.1', 'login' => 'bob'));
     $expected = array('persistent' => true, 'host' => '127.0.0.1', 'login' => 'bob', 'password' => '', 'database' => null, 'autoConnect' => true, 'init' => true);
     $result = $db->testConfig();
     $this->assertEqual($expected, $result);
 }