public static function create(string $id, $valueForCurrent) { return new SimpleFixture($id, 'Dummy', SpecificationBagFactory::create(), $valueForCurrent); }
public function createDummyDenormalizer() : FixtureDenormalizerInterface { $decoratedDenormalizerProphecy = $this->prophesize(FixtureDenormalizerInterface::class); $decoratedDenormalizerProphecy->denormalize(Argument::cetera())->will(function ($args) { return $args[0]->with(FixtureFactory::create($args[2], '')); }); return $decoratedDenormalizerProphecy->reveal(); }