File: tests/Utf8GlobalNonStrictPart1Test.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  Portable UTF-8  >  tests/Utf8GlobalNonStrictPart1Test.php  
File: tests/Utf8GlobalNonStrictPart1Test.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Portable UTF-8
Manipulate UTF-8 text strings in pure PHP
Author: By
Last change: [+]: ignore "false-positive" from phpstan

[+]: enable nearly all phpstorm inspections

- do not use "=== false" | "=== true" for "bool" types
- "GRAPHEME_CLUSTER_RX" -> is not used anymore and is now deprecated
- fix "UTF8::decode_mimeheader" fallback -> now we always use the symfony polyfill (mb_decode_mimeheader has different results) + tests
- fix "UTF8::get_unique_string()" -> use "mt_rand" as fallback
- fix "UTF8::strtr()" -> now it works also with arrays + tests
- fix phpdoc for "UTF8::normalize_line_ending()"
- fix phpdoc for "UTF8::split()" & "UTF8::str_split()"
- add "UTF8::str_split_array()"
- add "UTF8::stripos_in_byte()"
- use more type checks for parameters
- optimize "UTF8::filter()"
- optimize "UTF8::is_url()" + fix deprecated php (>= 7.3) constants
- optimize "UTF8::str_limit_after_word()"
- optimize "UTF8::substr()"
- optimize "UTF8::str_capitalize_name_helper()" -> performance -> use break
- add many new tests
[+]: "UTF8::string()" -> optimize performance

-> fix use "mb_str_split" with PHP >= 7.4
-> fix / ignore errors reported by psalm
Merge branch 'master' of ssh://

* 'master' of ssh://
Apply fixes from StyleCI
Date: 8 months ago
Size: 511,059 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on:


For more information send a message to info at phpclasses dot org.