lithium\tests\cases\console\ResponseTest::testConstructWithConfigOutput PHP Method

testConstructWithConfigOutput() public method

    public function testConstructWithConfigOutput()
    {
        $base = Libraries::get(true, 'resources') . '/tmp/tests';
        $this->skipIf(!is_writable($base), "Path `{$base}` is not writable.");
        $stream = fopen($this->streams['output'], 'w');
        $response = new Response(array('output' => $stream));
        $this->assertInternalType('resource', $response->output);
        $this->assertEqual($stream, $response->output);
    }