Beispiel #1
0
 public function testDumpArray()
 {
     $response = new Response();
     $this->assertEmpty($response->body());
     $response->dump(array('sure', 1, 10, 17, 'ok' => 'no'));
     $this->assertNotEmpty($response->body());
     $this->assertNotEquals('<pre></pre>', $response->body());
 }
Beispiel #2
0
 public function testDump()
 {
     $response = new Response();
     $this->assertEmpty($response->body());
     $response->dump('test');
     $this->assertContains('test', $response->body());
 }