lithium\tests\mocks\data\source\database\adapter\MockSqlite3::get PHP Method

get() public method

public get ( $var )
    public function get($var)
    {
        return $this->{$var};
    }

Usage Example

 /**
  * Tests that the object is initialized with the correct default values.
  *
  * @return void
  */
 public function testConstructorDefaults()
 {
     $db = new MockSqlite3(array('autoConnect' => false));
     $result = $db->get('_config');
     $expected = array('autoConnect' => false, 'database' => ':memory:', 'encoding' => null, 'persistent' => true, 'host' => 'localhost', 'login' => 'root', 'password' => '', 'dsn' => null, 'options' => array(), 'init' => true);
     $this->assertEqual($expected, $result);
 }
All Usage Examples Of lithium\tests\mocks\data\source\database\adapter\MockSqlite3::get
MockSqlite3