Repo2\QueryReactor\Tests\Fixtures::getBadSyntax PHP Method

getBadSyntax() public static method

public static getBadSyntax ( )
    public static function getBadSyntax()
    {
        return QueryBuilder\assign('foo', 'bar');
    }

Usage Example

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