[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> text_test.php (summary)

core_text unit tests.

Copyright: 2012 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 463 lines (21 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_text_testcase:: (20 methods):
  test_parse_charset()
  test_convert()
  test_substr()
  test_strlen()
  test_str_max_bytes()
  test_strtolower()
  test_strtoupper()
  test_strrev()
  test_strpos()
  test_strrpos()
  test_specialtoascii()
  test_encode_mimeheader()
  test_entities_to_utf8()
  test_utf8_to_entities()
  test_trim_utf8_bom()
  test_get_encodings()
  test_code2utf8()
  test_utf8ord()
  test_strtotitle()
  test_strrchr()


Class: core_text_testcase  - X-Ref

Unit tests for our utf-8 aware text processing.

test_parse_charset()   X-Ref
Tests the static parse charset method.


test_convert()   X-Ref
Tests the static convert method.


test_substr()   X-Ref
Tests the static sub string method.


test_strlen()   X-Ref
Tests the static string length method.


test_str_max_bytes()   X-Ref
Test unicode safe string truncation.


test_strtolower()   X-Ref
Tests the static strtolower method.


test_strtoupper()   X-Ref
Tests the static strtoupper.


test_strrev()   X-Ref
Test the strrev method.


test_strpos()   X-Ref
Tests the static strpos method.


test_strrpos()   X-Ref
Tests the static strrpos.


test_specialtoascii()   X-Ref
Tests the static specialtoascii method.


test_encode_mimeheader()   X-Ref
Tests the static encode_mimeheader method.
This also tests method moodle_phpmailer::encodeHeader that calls core_text::encode_mimeheader


test_entities_to_utf8()   X-Ref
Tests the static entities_to_utf8 method.


test_utf8_to_entities()   X-Ref
Tests the static utf8_to_entities method.


test_trim_utf8_bom()   X-Ref
Tests the static trim_utf8_bom method.


test_get_encodings()   X-Ref
Tests the static get_encodings method.


test_code2utf8()   X-Ref
Tests the static code2utf8 method.


test_utf8ord()   X-Ref
Tests the static utf8ord method.


test_strtotitle()   X-Ref
Tests the static strtotitle method.


test_strrchr()   X-Ref
Test strrchr.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1