/PHP-7.4/ext/enchant/tests/ |
H A D | enchant_broker_set_dict_path.phpt | 9 if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 10 …list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} 21 echo("OK\n"); 24 echo("OK\n"); 27 echo("OK\n"); 33 echo("OK\n"); 36 echo("broker get dict path has failed \n"); 40 echo("broker set dict path {$backEndDictType2} has failed \n"); 43 echo("broker set dict path {$backEndDictType1} has failed \n"); 46 echo("broker is not a resource; failed; \n");
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | strtok_basic.phpt | 14 echo "*** Testing strtok() : basic functionality ***\n"; 20 echo "\nThe Input string is:\n\"$str\"\n"; 21 echo "\nThe token string is:\n\"$token\"\n"; 24 echo "\n--- Token 1 ---\n"; 28 echo "\n--- Token $i ---\n"; 32 echo "Done\n";
|
H A D | str_rot13_basic.phpt | 9 echo "*** Testing str_rot13() : basic functionality ***\n"; 11 echo "\nBasic tests\n"; 15 echo "\nEnsure numeric characters are left untouched\n"; 17 echo "Strings equal : TEST PASSED\n"; 19 echo "Strings unequal : TEST FAILED\n"; 22 echo "\nEnsure non-alphabetic characters are left untouched\n"; 24 echo "Strings equal : TEST PASSED\n"; 26 echo "Strings unequal : TEST FAILED\n"; 29 echo "\nEnsure strings round trip\n"; 34 echo "Strings equal : TEST PASSED\n"; [all …]
|
H A D | trim_basic.phpt | 11 echo "*** Testing trim() : basic functionality ***\n"; 13 $text = " \t\r\n\0\x0B ---These are a few words--- \t\r\n\0\x0B "; 17 echo "\n-- Trim string with all white space characters --\n"; 20 echo "\n-- Trim non-whitespace from a string --\n"; 23 echo "\n-- Trim some non-white space characters from a string --\n"; 26 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n";
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_prepare.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting boolean/false, got %s\n", gettype($tmp)); 36 printf("[006][%d] %s\n", mysqli_errno($link), mysqli_error($link)); 41 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 44 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 53 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 101 printf("[022] Expecting 'testvar'/1, got %s/%s. [%d] %s\n", 110 printf("[023] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_class_mysqli_stmt_interface.phpt | 17 printf("Parent class:\n"); 20 printf("\nMethods:\n"); 69 printf("ok\n"); 71 printf("\nClass variables:\n"); 75 printf("%s\n", $var); 77 printf("\nObject variables:\n"); 80 printf("%s\n", $var); 82 printf("\nMagic, magic properties:\n"); 95 printf("stmt->errno = '%s'\n", $stmt->errno); 98 printf("stmt->error = '%s'\n", $stmt->error); [all …]
|
H A D | mysqli_info.phpt | 16 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 27 printf("[004] Expecting null, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 36 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 57 printf("[014] Expecting null, got %s/%s\n", gettype($tmp), $tmp); 68 if (!fwrite($fp, "100;'a';\n") || 69 !fwrite($fp, "101;'b';\n") || [all …]
|
H A D | mysqli_stmt_affected_rows.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[005] Expecting int/0, got %s/'%s'\n", gettype($tmp), $tmp); 56 printf("[008] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 68 printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 78 printf("[012] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 88 printf("[014] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 98 printf("[016] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 124 printf("[021] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 134 printf("[023] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 47 printf("%s\n", $e->getMessage()); 65 printf("%s\n", $e->getMessage()); 66 printf("[004] Usage of mysqli.default_port failed\n"); 83 printf("%s\n", $e->getMessage()); 84 printf("[006] Usage of mysqli.default_pw failed\n"); 101 printf("%s\n", $e->getMessage()); 102 printf("[008] Usage of mysqli.default_user failed\n"); 126 printf("%s\n", $e->getMessage()); 127 printf("[012] Usage of mysqli.default_host failed\n"); 139 printf("%s\n", $e->getMessage()); [all …]
|
H A D | mysqli_change_user.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 58 printf("[012] Cannot set test variable\n"); 61 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 123 printf("[022] Cannot set test variable\n"); [all …]
|
H A D | mysqli_get_warnings.phpt | 20 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 printf("[009] Borked object, method next is missing\n"); 69 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 91 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 94 printf("[023] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
/PHP-7.4/ext/date/tests/ |
H A D | DateTimeZone_clone_basic3.phpt | 8 echo "*** Testing clone on DateTime objects ***\n"; 10 echo "\n-- Create a DateTimeZone object --\n"; 13 echo "\n-- Add some properties --\n"; 17 echo "\n-- clone it --\n"; 20 echo "\n-- Add some more properties --\n"; 24 echo "\n-- clone it --\n";
|
/PHP-7.4/ext/hash/tests/ |
H A D | hash_pbkdf2_basic.phpt | 12 echo "*** Testing hash_pbkdf2() : basic functionality ***\n"; 14 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n"; 15 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n"; 16 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n"; 17 …_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25)."\n"; 18 …('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25, TRUE))."\n"; 19 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n"; 20 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n"; 21 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n"; 22 …bkdf2('sha256', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 40)."\n"; [all …]
|
/PHP-7.4/ext/libxml/tests/ |
H A D | 002.phpt | 20 $xml = explode("\n", $xmlstr); 35 $return = $xml[$error->line - 1] . "\n"; 36 $return .= str_repeat('-', $error->column) . "^\n"; 50 $return .= trim($error->message) . "\n Line: $error->line" . "\n Column: $error->column"; 53 $return .= "\n File: $error->file"; 56 return "$return\n\n--------------------------------------------\n\n"; 60 echo "Done\n";
|
/PHP-7.4/ext/oci8/tests/ |
H A D | bind_char_1.phpt | 49 echo "Test 1.3: Type: AFC: Length: 0\n"; 54 echo "Test 1.4: Type: AFC: Length: strlen\n"; 69 echo "\n\n*** NULL data tests against CHAR ***\n"; 84 echo "Test 2.3: Type: AFC: Length: 0\n"; 105 echo "\n\n*** Non-null Data Tests against VARCHAR2***\n"; 120 echo "Test 3.3: Type: AFC: Length: 0\n"; 141 echo "\n\n*** NULL data tests against VARCHAR2 ***\n"; 156 echo "Test 4.3: Type: AFC: Length: 0\n"; 180 echo " Querying:\n"; 190 echo " :" . $item . ":\n"; [all …]
|
H A D | bind_char_1_11gR1.phpt | 51 echo "Test 1.3: Type: AFC: Length: 0\n"; 56 echo "Test 1.4: Type: AFC: Length: strlen\n"; 71 echo "\n\n*** NULL data tests against CHAR ***\n"; 86 echo "Test 2.3: Type: AFC: Length: 0\n"; 107 echo "\n\n*** Non-null Data Tests against VARCHAR2***\n"; 122 echo "Test 3.3: Type: AFC: Length: 0\n"; 143 echo "\n\n*** NULL data tests against VARCHAR2 ***\n"; 158 echo "Test 4.3: Type: AFC: Length: 0\n"; 182 echo " Querying:\n"; 192 echo " :" . $item . ":\n"; [all …]
|
/PHP-7.4/ext/intl/tests/ |
H A D | calendar_isEquivalentTo_error.phpt | 16 echo "error: $errno, $errstr\n"; 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 33 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 44 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 49 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_fill_keys_variation4.phpt | 13 echo "*** Testing array_fill_keys() : parameter variations ***\n"; 29 echo "\n-- Testing array_fill_keys() function with float --\n"; 32 echo "\n-- Testing array_fill_keys() function with null --\n"; 35 echo "\n-- Testing array_fill_keys() function with object --\n"; 38 echo "\n-- Testing array_fill_keys() function with boolean --\n"; 41 echo "\n-- Testing array_fill_keys() function with resource --\n"; 44 echo "\n-- Testing array_fill_keys() function with unset var --\n";
|
/PHP-7.4/ext/phar/tests/tar/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 31 echo "============================================================================\n"; 32 echo "============================================================================\n"; 38 echo $e->getMessage(). "\n"; 50 echo $e->getMessage(). "\n"; [all …]
|
/PHP-7.4/ext/phar/tests/zip/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 31 echo "============================================================================\n"; 32 echo "============================================================================\n"; 38 echo $e->getMessage(). "\n"; 50 echo $e->getMessage(). "\n"; [all …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | unserialize_errors.phpt | 6 echo "ArrayObject:\n"; 12 echo $e->getMessage(), "\n"; 18 echo $e->getMessage(), "\n"; 24 echo $e->getMessage(), "\n"; 30 echo $e->getMessage(), "\n"; 37 echo $e->getMessage(), "\n"; 43 echo $e->getMessage(), "\n"; 51 echo $e->getMessage(), "\n"; 54 echo "ArrayIterator:\n"; 80 echo "SplDoublyLinkedList:\n"; [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug49269.phpt | 7 public $n = 0; 10 return ($this->n < 3); 12 function current() {return $this->n;} 13 function next() {$this->n++;} 15 function rewind() {$this->n = 0;} 21 foreach ((true ? $array_object : $array_object) as $item) echo "$item\n";
|
/PHP-7.4/ext/standard/tests/dir/ |
H A D | opendir_variation4.phpt | 14 echo "*** Testing opendir() : usage variation ***\n"; 29 echo "\n-- \$path = './level_one': --\n"; 34 echo "\n-- \$path = 'level_one/level_two': --\n"; 39 echo "\n-- \$path = '..': --\n"; 43 echo "\n-- \$path = 'level_two', '.': --\n"; 48 echo "\n-- \$path = '../': --\n"; 52 echo "\n-- \$path = './': --\n"; 57 echo "\n-- \$path = '../../'level_one': --\n";
|
/PHP-7.4/ext/bcmath/tests/ |
H A D | bcmul.phpt | 9 echo bcmul("1", "2"),"\n"; 10 echo bcmul("-3", "5"),"\n"; 11 echo bcmul("1234567890", "9876543210"),"\n"; 12 echo bcmul("2.5", "1.5", 2),"\n"; 13 echo bcmul("2.555", "1.555", 2),"\n";
|
H A D | bcmod.phpt | 9 echo bcmod("11", "2"),"\n"; 10 echo bcmod("-1", "5"),"\n"; 11 echo bcmod("8728932001983192837219398127471", "1928372132132819737213"),"\n"; 12 echo bcmod("3.5", "4", 1),"\n"; 13 echo bcmod("1071", "357.5"),"\n";
|