/** * Constructs a new instance. * * @param string $url * The URL at which to continue the operation. * @param \Symfony\Component\HttpFoundation\Response|null $response * A response or NULL to default to a redirect to the provided URL. */ public function __construct($url, Response $response = null) { parent::__construct($url); $this->response = $response; }
/** * @covers ::getUrl * @covers ::__construct */ public function testGetUrl() { $url = 'http://example.com/' . mt_rand(); $sut = new OperationContinuationInstruction($url); $this->assertSame($url, $sut->getUrl()); }