Skip to content

Commit 8f78136

Browse files
TysonAndrenikic
authored andcommitted
Fix typos in the unit tests (comments/messages)
Detected by https://github.com/client9/misspell
1 parent 8953d96 commit 8f78136

File tree

16 files changed

+27
-27
lines changed

16 files changed

+27
-27
lines changed

tests/arrays/arrays.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ foreach($v as $e) // only has 3 elements ([3], [6], and [7]), not 8 ([0]-[7])
108108
}
109109
echo "\n";
110110

111-
echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existant element
112-
echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existant element
111+
echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existent element
112+
echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existent element
113113

114114
$v[1] = TRUE; // increases array to 4 elements
115115
$v[4] = 99; // increases array to 5 elements

tests/basic_concepts/memory_model_and_handle_types.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function g1(&$b) // make $b alias whatever $a aliases
166166
$b = new Point(5, 7); // removes second alias from first point;
167167
// then create first alias to second new point
168168
// changing $b also changes $a as well, so $a's alias
169-
// is also removed, alowing the destructor run
169+
// is also removed, allowing the destructor run
170170

171171
echo "After 'new Point(5, 7)', \$b is $b\n";
172172
} // $b goes away, remove its alias from new point

tests/classes/cloning.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ echo "Point count = " . Point2::getPointCount() . "\n";
5858
var_dump($p4 = clone $p1);
5959
echo "Point count = " . Point2::getPointCount() . "\n";
6060

61-
echo "================= use chained cloning in a class heirarchy =================\n";
61+
echo "================= use chained cloning in a class hierarchy =================\n";
6262

6363
class Employee
6464
{
@@ -154,7 +154,7 @@ object(Point2)#6 (2) {
154154
int(0)
155155
}
156156
Point count = 4
157-
================= use chained cloning in a class heirarchy =================
157+
================= use chained cloning in a class hierarchy =================
158158
object(Manager)#7 (2) {
159159
["level":"Manager":private]=>
160160
int(23)

tests/expressions/list/list_self_assign.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test variable occuring on both LHS and RHS of list()
2+
Test variable occurring on both LHS and RHS of list()
33
--FILE--
44
<?php
55

tests/expressions/postfix_operators/subscripting.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ foreach ($v as $k => $e)
2626
echo "key: ".$k.", value: ".$e."\n";
2727
}
2828

29-
// try to access non-existant elements
29+
// try to access non-existent elements
3030

3131
echo "[7] contains >".($v[7] == NULL ? "NULL" : "??")
3232
."<, [12] contains >".($v[12] == NULL ? "NULL" : "??")."<\n";

tests/expressions/relational_operators/comparisons1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo "\n";
2727

2828
///*
2929
// NULL operand with all kinds of operands, swapping them over to make
30-
// LHS/RHS order is irrelevent.
30+
// LHS/RHS order is irrelevant.
3131

3232
$oper1 = array(NULL);
3333
$oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]);

tests/expressions/relational_operators/comparisons3.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error_reporting(-1);
1313

1414
///*
1515
// Boolean operand with all kinds of operands, swapping them over to make
16-
// LHS/RHS order is irrelevent.
16+
// LHS/RHS order is irrelevant.
1717

1818
$oper1 = array(TRUE, FALSE);
1919
$oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]);

tests/expressions/relational_operators/comparisons4.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error_reporting(-1);
1313

1414
///*
1515
// Numeric strings with all kinds of operands, swapping them over to make
16-
// LHS/RHS order is irrelevent.
16+
// LHS/RHS order is irrelevant.
1717

1818
$oper1 = array("10", "-5.1");
1919
$oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]);

tests/expressions/source_file_inclusion/include.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ echo "Inside file >" . __FILE__ . "< at line >" . __LINE__ .
1717
//var_dump(MY_MIN);
1818
//var_dump(MY_MAX);
1919

20-
// Try to include a non-existant file
20+
// Try to include a non-existent file
2121

2222
$fileName = 'unknown.inc';
2323
$inc = include $fileName;

tests/expressions/source_file_inclusion/include_once.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PHP Spec test generated from ./expressions/source_file_inclusion/include_once.ph
1111

1212
error_reporting(-1);
1313

14-
// Try to include a non-existant file
14+
// Try to include a non-existent file
1515

1616
$inc = include_once 'XXPositions.inc';
1717
var_dump($inc);

0 commit comments

Comments
 (0)