Validate("expectException(\Exception::class); try{ $oiTopConfigValidator->Validate("", false); }catch (\Exception $e) { $this->assertStringStartsWith('PHP Parse error: syntax error, unexpected \'zdadz\' (T_STRING)', $e->getMessage()); throw $e; } } }