Esempio n. 1
0
 function it_returns_exportable_instance(ReferenceInterface $one, ReferenceInterface $two, ReferenceInterface $three)
 {
     $this->beConstructedWith(['one' => $one, 'two' => $two, 'three' => $three]);
     $this->export()->shouldReturn(['data' => ['one' => $one->getWrappedObject(), 'two' => $two->getWrappedObject(), 'three' => $three->getWrappedObject()]]);
 }
Esempio n. 2
0
 function it_should_be_possible_to_specify_custom_class_for_factory(ReferenceInterface $index, SourceInterface $source)
 {
     $indexClass = get_class($index->getWrappedObject());
     $this->beConstructedWith($indexClass);
     $this->create($source)->shouldImplement($indexClass);
 }