Пример #1
0
 public function testCanExplicitlySetVersion()
 {
     $response = new Response();
     $response->setVersion(Response::VERSION_11);
     $this->assertSame(Response::VERSION_11, $response->getVersion());
     $response->setVersion(Response::VERSION_10);
     $this->assertSame(Response::VERSION_10, $response->getVersion());
     $this->setExpectedException('Zend\\Http\\Exception\\InvalidArgumentException');
     $response->setVersion('zf/2.0');
 }