File: tests/Utf8GlobalNonStrictPart2Test.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  Portable UTF-8  >  tests/Utf8GlobalNonStrictPart2Test.php  
File: tests/Utf8GlobalNonStrictPart2Test.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: [+]: fix tests for PHP 7.0 + fix typos
[+]: 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
Date: 8 months ago
Size: 65,821 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.