コード例 #1
0
 /**
  * @test
  * @group metadata
  * @group common
  */
 public function the_response_location_can_be_retrieved()
 {
     $responseLocation = 'some:response:location';
     $withResponseLocation = new Endpoint(Binding::httpPost(), 'some:uri', $responseLocation);
     $noResponseLocation = new Endpoint(Binding::httpPost(), 'some:uri');
     $nullReponseLocation = new Endpoint(Binding::httpPost(), 'some:uri', null);
     $this->assertEquals($responseLocation, $withResponseLocation->getResponseLocation());
     $this->assertNull($noResponseLocation->getResponseLocation());
     $this->assertNull($nullReponseLocation->getResponseLocation());
 }
コード例 #2
0
 /**
  * @return null|string
  */
 public function getResponseLocation()
 {
     return $this->endpoint->getResponseLocation();
 }