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

testLowerMultiBytesEncoding() public method

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