Пример #1
0
 public function testBody()
 {
     // Test data
     $body = '_why is an interesting guy<br> - Trevor';
     // Blank constructor
     $request = new Request();
     $this->assertEmpty($request->body());
     // In constructor
     $request = new Request(array(), array(), array(), array(), array(), $body);
     $this->assertSame($body, $request->body());
 }
Пример #2
0
 public function testBody()
 {
     // Test data
     $body = '_why is an interesting guy<br> - Trevor';
     $request = new Request(array(), array(), array(), array(), array(), $body);
     $this->assertSame($body, $request->body());
 }