Skip to content

Commit e04b136

Browse files
committed
review: removed getLine()
1 parent e93b3c0 commit e04b136

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎ext/spl/tests/ArrayObject/arrayObject___construct_error1.phpt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ $a->p = 1;
88
try {
99
var_dump(new ArrayObject($a, 0, "Exception"));
1010
} catch (TypeError $e) {
11-
echo $e::class, ': ', $e->getMessage(), ' on line ', $e->getLine(), "\n";
11+
echo $e::class, ': ', $e->getMessage(), "\n";
1212
}
1313

1414
echo "Non-existent class:\n";
1515
try {
1616
var_dump(new ArrayObject(new stdClass, 0, "nonExistentClassName"));
1717
} catch (TypeError $e) {
18-
echo $e::class, ': ', $e->getMessage(), ' on line ', $e->getLine(), "\n";
18+
echo $e::class, ': ', $e->getMessage(), "\n";
1919
}
2020
?>
2121
--EXPECT--
2222
Bad iterator type:
23-
TypeError: ArrayObject::__construct(): Argument #3 ($iteratorClass) must be a class name derived from ArrayIterator, Exception given on line 6
23+
TypeError: ArrayObject::__construct(): Argument #3 ($iteratorClass) must be a class name derived from ArrayIterator, Exception given
2424
Non-existent class:
25-
TypeError: ArrayObject::__construct(): Argument #3 ($iteratorClass) must be a class name derived from ArrayIterator, nonExistentClassName given on line 13
25+
TypeError: ArrayObject::__construct(): Argument #3 ($iteratorClass) must be a class name derived from ArrayIterator, nonExistentClassName given

‎ext/spl/tests/ArrayObject/arrayObject___construct_error2.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Class C implements Iterator {
1414
try {
1515
var_dump(new ArrayObject(new stdClass, 0, "C", "extra"));
1616
} catch (TypeError $e) {
17-
echo $e::class, ': ', $e->getMessage(), ' on line ', $e->getLine(), "\n";
17+
echo $e::class, ': ', $e->getMessage(), "\n";
1818
}
1919
?>
2020
--EXPECT--
2121
Too many arguments:
22-
ArgumentCountError: ArrayObject::__construct() expects at most 3 arguments, 4 given on line 12
22+
ArgumentCountError: ArrayObject::__construct() expects at most 3 arguments, 4 given

‎ext/spl/tests/iterator_047.phpt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MyRecursiveCachingIterator extends RecursiveCachingIterator
4848
}
4949
catch (Exception $e)
5050
{
51-
echo $e::class, ': ', $e->getMessage(), ' in ', $e->getFile(), ' on line ', $e->getLine(), "\n";
51+
echo $e::class, ': ', $e->getMessage(), ' in ', $e->getFile(), "\n";
5252
}
5353
MyRecursiveArrayIterator::$fail++;
5454
}
@@ -88,14 +88,14 @@ int(4)
8888
int(4)
8989
===1===
9090
MyRecursiveArrayIterator::hasChildren()
91-
Exception: State 1: MyRecursiveArrayIterator::hasChildren() in %s on line %d
91+
Exception: State 1: MyRecursiveArrayIterator::hasChildren() in %s
9292
===2===
9393
MyRecursiveArrayIterator::hasChildren()
9494
int(0)
9595
int(0)
9696
MyRecursiveArrayIterator::hasChildren()
9797
MyRecursiveArrayIterator::getChildren()
98-
Exception: State 2: MyRecursiveArrayIterator::getChildren() in %s on line %d
98+
Exception: State 2: MyRecursiveArrayIterator::getChildren() in %s
9999
===3===
100100
MyRecursiveArrayIterator::hasChildren()
101101
int(0)

0 commit comments

Comments
 (0)