public function testNotSerializable() { $enum = EnumBasic::ONE(); $this->setExpectedException('LogicException'); serialize($enum); }