public function testHasOnlyIgnorableExceptionsReturnsFalse() { $this->configuration->setIgnorableExceptions([TestException::class, AnotherTestException::class]); $service = new ErrorService($this->configuration); $method = self::getMethod(ErrorService::class, 'hasOnlyIgnorableExceptions'); $service->startErrorHandling(); $service->errors = [new AnotherTestException(), new \InvalidArgumentException()]; $this->assertFalse($method->invokeArgs($service, [])); }