public function testRejectOnResultError() { $query = $this->getQueryMock(Fixtures::getBadSyntax()); $query->expects($this->never())->method('resolve'); $query->expects($this->once())->method('reject'); $this->queryAwait($query); }