prophesize(ObjectManagerInterface::class)->reveal(); $this->subject = new TeaRepository($objectManager); } else { // @phpstan-ignore-next-line This line is valid in TYPO3 12LTS, but PHPStan uses 11LTS. $this->subject = new TeaRepository(); } } /** * @test */ public function isRepository(): void { self::assertInstanceOf(Repository::class, $this->subject); } }