errorLogger = new ErrorLogger(); } /** * @return void */ public function testIs404(): void { $exception = new NotFoundException(); $result = $this->invokeMethod($this->errorLogger, 'is404', [$exception]); $this->assertTrue($result); $exception = new InternalErrorException(); $result = $this->invokeMethod($this->errorLogger, 'is404', [$exception]); $this->assertFalse($result); } }