/** * @test * * @covers Cocur\NQM\NQM::getQuery() */ public function getQueryShouldReturnQuery() { $this->queryLoader->shouldReceive('getQuery')->with('foo')->once()->andReturn('SELECT * FROM table;'); $this->assertEquals('SELECT * FROM table;', $this->nqm->getQuery('foo')); }