public function handler() { if (empty($this->handler)) { $this->connect(); } return $this->handler; }
/** * Initial Db with configuration */ public function testCheckConnect() { $this->db->connect(); $this->assertInstanceOf('\\Pdo', $this->db->handler()); }