Exemple #1
0
 public function testGetResponseWithSerializerException()
 {
     $job = new Job();
     $job->setType('JobType');
     $this->setProperty($job, 'serializedResponse', 'SerializedResponse');
     $this->serializationHelper->expects($this->any())->method('deserializeReturnValue')->willThrowException(new \Exception('Some deserialization error'));
     try {
         $job->getResponse();
     } catch (\Exception $e) {
         $this->assertNull($job->getResponse());
     }
 }