Файл: vkolhoze.com/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/StatusCodeVisitorTest.php
Строк: 24
<?php
namespace GuzzleTestsServiceCommandLocationVisitorResponse;
use GuzzleServiceDescriptionParameter;
use GuzzleHttpMessageResponse;
use GuzzleServiceCommandLocationVisitorResponseStatusCodeVisitor as Visitor;
/**
* @covers GuzzleServiceCommandLocationVisitorResponseStatusCodeVisitor
*/
class StatusCodeVisitorTest extends AbstractResponseVisitorTest
{
public function testVisitsLocation()
{
$visitor = new Visitor();
$param = new Parameter(array('location' => 'statusCode', 'name' => 'code'));
$visitor->visit($this->command, $this->response, $param, $this->value);
$this->assertEquals(200, $this->value['code']);
}
}