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(); }