/** * @expectedException \Enum\EnumException */ public function testGetThrowsExceptionWhenClassDoesntExist() { Enum::get(ExampleEnum::FOO, 'some_fake_class'); }
/** * @param mixed $value * @param AbstractPlatform $platform * @return mixed */ public function convertToPHPValue($value, AbstractPlatform $platform) { return Enum::get($value, $this->getEnumClass()); }