Aleksander Machniak
2013-05-28 fe0f1d589b2320905fa3dd73737d5b7b1cbc402a
tests/Framework/Utils.php
@@ -229,4 +229,20 @@
        }
    }
    /**
     * rcube:utils::file2class()
     */
    function test_file2class()
    {
        $test = array(
            array('', '', 'unknown'),
            array('text', 'text', 'text'),
            array('image/png', 'image.png', 'image png'),
        );
        foreach ($test as $v) {
            $result = rcube_utils::file2class($v[0], $v[1]);
            $this->assertSame($v[2], $result);
        }
    }
}