private static function addJsonEventFactory() { $jsonFactory = new EventFactory(new EventParser(), new EventSerializer()); $jsonFactory->configure('Gamma\\Pushpin\\PushpinBundle\\Tests\\Utils\\Events', ['testAction' => ['class' => 'SimpleJsonEvent']]); self::$instance->addFactory($jsonFactory); }
public function setUp() { self::$instance->configure('Gamma\\Pushpin\\PushpinBundle\\Tests\\Utils\\Events', ['testAction' => ['class' => 'SimpleJsonEvent']]); }