/** * @covers ::__callStatic * @expectedException UnexpectedValueException * @expectedExceptionMessage Value 'WePay\Common\EnumFixture::NonDefinedConstant' not a const in enum WePay\Common\EnumFixture */ public function testStaticInvocationOfUndefinedValueThrows() { EnumFixture::NonDefinedConstant(); }