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

testStateReset() public method

Tests that the Media class' configuration can be reset to its default state.
public testStateReset ( )
    public function testStateReset()
    {
        $this->assertFalse(in_array('foo', Media::types()));
        Media::type('foo', 'text/x-foo');
        $this->assertTrue(in_array('foo', Media::types()));
        Media::reset();
        $this->assertFalse(in_array('foo', Media::types()));
    }