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

testConstructWithConfigError() public method

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