public function test_get_defined_db_instance() { $db = new Db($this->conn); $mapper = new Mapper($db); $this->assertSame($db, $mapper->getDb()); }