public function testResolveWithReturn()
{
$onFulfill = $this->getMock('\\Repo2\\QueryReactor\\Tests\\Stub');
$onFulfill->expects($this->once())->method('__invoke')->will($this->returnValue('ILovePHP'));
$query = new GenericQuery(Fixtures::getSelect(), $onFulfill);
$this->assertSame('ILovePHP', $query->resolve($this->getResultMock()));
}