Skip to content

Commit e3db846

Browse files
committed
Specify test descriptions
1 parent 38c440f commit e3db846

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

ext/standard/tests/array/array_all_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
basic array_any test
2+
Test array_all() function : basic functionality
33
--FILE--
44
<?php
55
$array1 = [
@@ -29,7 +29,7 @@ var_dump(array_all($array2, fn($value) => $value > 0));
2929
var_dump(array_all($array2, fn($value) => $value > 1));
3030
var_dump(array_all([], fn($value) => true));
3131

32-
echo '*** Test aborting after found result ***' . PHP_EOL;
32+
echo '*** Test Exception after false result ***' . PHP_EOL;
3333
try {
3434
var_dump(array_all($array2, function ($value) {
3535
if ($value > 1) {
@@ -75,7 +75,7 @@ bool(true)
7575
bool(true)
7676
bool(false)
7777
bool(true)
78-
*** Test aborting after found result ***
78+
*** Test Exception after false result ***
7979
bool(false)
8080
*** Test aborting with exception ***
8181
int(1)

ext/standard/tests/array/array_any_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
basic array_any test
2+
Test array_any() function : basic functionality
33
--FILE--
44
<?php
55
$array1 = [
@@ -32,7 +32,7 @@ var_dump(array_any([], fn($value) => true));
3232
var_dump(array_any($array1, fn($value, $key) => $key === "c"));
3333
var_dump(array_any($array1, fn($value, $key) => false));
3434

35-
echo '*** Test aborting after found result ***' . PHP_EOL;
35+
echo '*** Test Exception after true result ***' . PHP_EOL;
3636
try {
3737
var_dump(array_any($array2, function ($value) {
3838
if ($value > 1) {
@@ -80,7 +80,7 @@ bool(false)
8080
bool(false)
8181
bool(true)
8282
bool(false)
83-
*** Test aborting after found result ***
83+
*** Test Exception after true result ***
8484
bool(true)
8585
*** Test aborting with exception ***
8686
int(1)

ext/standard/tests/array/array_find_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
basic array_find test
2+
Test array_find() function : basic functionality
33
--FILE--
44
<?php
55
$array1 = [
@@ -31,7 +31,7 @@ var_dump(array_find([], fn($value) => true));
3131
var_dump(array_find($array1, fn($value, $key) => $key === "c"));
3232
var_dump(array_find($array1, fn($value, $key) => false));
3333

34-
echo '*** Test aborting after found result ***' . PHP_EOL;
34+
echo '*** Test Exception after found result ***' . PHP_EOL;
3535
try {
3636
var_dump(array_find($array1, function ($value) {
3737
if ($value > 1) {
@@ -79,7 +79,7 @@ NULL
7979
NULL
8080
int(3)
8181
NULL
82-
*** Test aborting after found result ***
82+
*** Test Exception after found result ***
8383
int(1)
8484
*** Test aborting with exception ***
8585
int(1)

ext/standard/tests/array/array_find_key_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
basic array_find_key test
2+
Test array_find_key() function : basic functionality
33
--FILE--
44
<?php
55
$array1 = [
@@ -32,7 +32,7 @@ var_dump(array_find_key([], fn($value) => true));
3232
var_dump(array_find_key($array1, fn($value, $key) => $key === "c"));
3333
var_dump(array_find_key($array1, fn($value, $key) => false));
3434

35-
echo '*** Test aborting after found result ***' . PHP_EOL;
35+
echo '*** Test Exception after found result ***' . PHP_EOL;
3636
try {
3737
var_dump(array_find_key($array1, function ($value) {
3838
if ($value > 1) {
@@ -80,7 +80,7 @@ NULL
8080
NULL
8181
string(1) "c"
8282
NULL
83-
*** Test aborting after found result ***
83+
*** Test Exception after found result ***
8484
string(1) "a"
8585
*** Test aborting with exception ***
8686
int(1)

0 commit comments

Comments
 (0)