public function setUp() { $this->instance = new MappingClass(); $this->instance->initForTest(); SerializerFactory::destroySerializer(); $this->serializer = SerializerFactory::getSerializer(Serializer::FORMAT_JSON, Serializer::MAX_DEPTH_NOT_SET, 'test/config'); }
/** * @expectedException \LogicException * @expectedExceptionMessage An unsupported serializer type was requested */ public function testCreateUnsupportedSerializer() { //We have an instance already, we will re-use it so lets destroy it SerializerFactory::destroySerializer(); $this->instance = SerializerFactory::getSerializer(-1); }
public function setUp() { self::$instance = SerializerFactory::getSerializer(Serializer::FORMAT_JSON, Serializer::MAX_DEPTH_NOT_SET, 'test/config'); }