From 0996574dc0c3c9a564ad9189b75a1e58b555cb38 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Sat, 25 Jan 2020 23:02:45 +0100 Subject: [PATCH] expectException() is not static --- tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php b/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php index b1054ad31eb..e5e2655cff9 100644 --- a/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php +++ b/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php @@ -328,7 +328,7 @@ public function testEmptySelect() : void self::assertSame($qb, $qb2); self::assertEquals(QueryBuilder::SELECT, $qb->getType()); - self::expectException(QueryException::class); + $this->expectException(QueryException::class); $qb->getSQL(); }