Beispiel #1
0
 /**
  * Tests constructor.
  */
 public function testConstruct()
 {
     $request = new Request();
     $this->assertCount(0, $request->getHeaders());
     $request = new Request(array(new ValueObject(null)), array('key' => 'value'));
     $this->assertCount(1, $request->getHeaders());
     $this->assertCount(1, $request->getData());
 }