/** * Returns the currently set Query Mocker. * * @return QueryMockerInterface */ public static function getMocker() { return QueryType::getMocker(); }
/** * Tests to ensure setting a Query Mocker works. */ public function testSetMocker() { $mocker = new QueryMocker(); QueryType::setMocker($mocker); $this->assertEquals($mocker, QueryType::getMocker()); }