Phalcon\Test\Unit\Text\TextUpperLowerTest::testLowerMultiBytesEncoding PHP 메소드

testLowerMultiBytesEncoding() 공개 메소드

Tests the lower function for multi-bytes encoding
부터: 2015-05-06
저자: 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');
        });
    }