1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
From 780eb8ebf70e5e31fab71010b0a49a6fde125f63 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 27 May 2019 11:23:39 +0200
Subject: [PATCH] fix test for upcomint 7.4
---
tests/ext/namespaces.phpt | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/ext/namespaces.phpt b/tests/ext/namespaces.phpt
index 60ac9d6e..1c870ee3 100644
--- a/tests/ext/namespaces.phpt
+++ b/tests/ext/namespaces.phpt
@@ -2,7 +2,7 @@
Verify functions and methods can be overriden even when in namespaces.
--FILE--
<?php
-namespace Fn {
+namespace Func {
function test($c, $end){
echo "FUNCTION START " . $c . PHP_EOL;
@@ -21,8 +21,8 @@ namespace Klass {
class Test {
public function m($c, $end){
echo "METHOD START " . $c . PHP_EOL;
- \Fn\test(1, 2);
- \Fn\test_va(1,2);
+ \Func\test(1, 2);
+ \Func\test_va(1,2);
if ($c < $end) {
$this->m($c + 1, $end);
@@ -42,15 +42,15 @@ namespace Klass {
}
namespace {
- dd_trace("Fn\\test", function($c, $end){
+ dd_trace("Func\\test", function($c, $end){
echo "F HOOK START " . $c . PHP_EOL;
- Fn\test($c, $end);
+ Func\test($c, $end);
echo "F HOOK END " . $c . PHP_EOL;
});
- dd_trace("Fn\\test_va", function($c, $end){
+ dd_trace("Func\\test_va", function($c, $end){
echo "FVA HOOK START " . $c . PHP_EOL;
- Fn\test_va($c, $end);
+ Func\test_va($c, $end);
echo "FVA HOOK END " . $c . PHP_EOL;
});
@@ -60,9 +60,9 @@ namespace {
echo "M2 HOOK END " . $c . PHP_EOL;
});
- Fn\test(1, 3);
+ Func\test(1, 3);
echo PHP_EOL;
- Fn\test_va(1,3);
+ Func\test_va(1,3);
echo PHP_EOL;
(new Klass\Test())->m(1,3);
echo PHP_EOL;
|