/** * @covers \Liuggio\Spawn\Process\ClosureReturnValue::unserialize * @dataProvider mustUnserializeUncorrectlyProvider * @expectedException \Liuggio\Spawn\Exception\InvalidArgumentException * @test */ public function mustUnserializeUncorrectly($toSerialize) { ClosureReturnValue::unserialize(base64_encode(serialize($toSerialize))); }
/** * The return value of the callable. * * @return mixed */ public function getReturnValue() { $value = ClosureReturnValue::unserialize(parent::getOutput()); return $value->getReturnValue(); }