PhlyTest\Conduit\Http\ResponseTest::testWriteAppendsBody PHP 메소드

testWriteAppendsBody() 공개 메소드

    public function testWriteAppendsBody()
    {
        $this->response->write("First\n");
        $this->assertContains('First', (string) $this->response->getBody());
        $this->response->write("Second\n");
        $this->assertContains('First', (string) $this->response->getBody());
        $this->assertContains('Second', (string) $this->response->getBody());
    }