Jyxo\CharsetTest::testDetect PHP Method

testDetect() public method

Tests detect function.
public testDetect ( )
    public function testDetect()
    {
        $this->assertEquals('UTF-8', Charset::detect('žluťoučký kůň příšerně úpěl ďábelské ódy'));
        $this->assertEquals('UTF-8', Charset::detect('Государственный гимн Российской Федерации'));
        $this->assertEquals('WINDOWS-1250', Charset::detect(file_get_contents(DIR_FILES . '/charset/cp1250.txt')));
        $this->assertEquals('ISO-8859-2', Charset::detect(file_get_contents(DIR_FILES . '/charset/iso-8859-2.txt')));
    }