lithium\tests\cases\net\http\MediaTest::testNoDecode PHP Method

testNoDecode() public method

Tests that a decode handler is not called when the Media type has none configured.
public testNoDecode ( )
    public function testNoDecode()
    {
        Media::type('my', 'text/x-my', array('decode' => false));
        $result = Media::decode('my', 'Hello World');
        $this->assertEqual(null, $result);
    }