Exemplo n.º 1
0
 public function test_set_stringable_content()
 {
     $item = new StringableItem();
     $response = new HttpResponse();
     $this->assertFalse($response->hasContent());
     $response->setContent($item);
     $this->assertTrue($response->hasContent());
     $this->assertEquals($item->toString(), $response->getContent());
 }