Phalcon\Test\Unit\Text\TextUpperLowerTest::testUpperMultiBytesEncoding PHP Method

testUpperMultiBytesEncoding() public method

Tests the upper function for multi-bytes encoding
Since: 2015-05-06
Author: Stanislav Kiryukhin ([email protected])
    public function testUpperMultiBytesEncoding()
    {
        $this->specify("upper returns incorrect results", function () {
            expect(Text::upper('ПРИВЕТ МИР!'))->equals('ПРИВЕТ МИР!');
            expect(Text::upper('ПриВЕт Мир!'))->equals('ПРИВЕТ МИР!');
            expect(Text::upper('привет мир!'))->equals('ПРИВЕТ МИР!');
            expect(Text::upper('MÄNNER'))->equals('MÄNNER');
            expect(Text::upper('mÄnnER'))->equals('MÄNNER');
            expect(Text::upper('männer'))->equals('MÄNNER');
        });
    }