Extends
lithium\test\Unit
Tests that the object is initialized with the correct default values.
Returns
voidSource
public function testConstructorDefaults() {
$db = new MockSqlite3(array('autoConnect' => false));
$result = $db->get('_config');
$expected = array(
'autoConnect' => false,
'database' => '',
'flags' => SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE,
'key' => null,
'persistent' => true,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'init' => true
);
$this->assertEqual($expected, $result);
}