public function testQuoteHandlerForwardingMethods() { $handler = $this->getMockBuilder(Adapter\QuoteHandler::class)->disableOriginalConstructor()->getMock(); $handler->expects($this->once())->method('quote'); $adapter = new Adapter(); $adapter->setConnection($this->pdo); $adapter->setQuoteHandler($handler); $adapter->quote('foo'); }