Esempio n. 1
0
 /**
  * @test
  */
 public function it_can_serialize_with_context_and_format()
 {
     $format = 'yml';
     $context = Mock::mock(SerializationContext::class);
     $this->jmsSerializer->shouldReceive('serialize')->once()->with([1234], $format, $context);
     $serializer = new JmsSerializer($this->jmsSerializer, $format, $context);
     $serializer->serialize([1234]);
 }
 public function test_it_delegate_find_all_to_api()
 {
     $this->whenIWorkApi->shouldReceive('usersListingUsers')->once();
     $this->serializer->shouldReceive('deserialize')->once();
     $this->userRepository->findAll();
 }