Skip to content

Commit fb0ced9

Browse files
committed
Test cleanup
1 parent 8f37317 commit fb0ced9

File tree

100 files changed

+219
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+219
-219
lines changed

Zend/tests/lazy_objects/clone_calls___clone_once.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
4040
return new C();
4141
});
4242

43-
test('Virtual', $obj);
43+
test('Proxy', $obj);
4444

4545
--EXPECTF--
4646
# Ghost:
@@ -56,7 +56,7 @@ object(C)#%d (1) {
5656
["a"]=>
5757
int(1)
5858
}
59-
# Virtual:
59+
# Proxy:
6060
string(11) "initializer"
6161
string(5) "clone"
6262
bool(false)

Zend/tests/lazy_objects/clone_initialized.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3838
return new C();
3939
});
4040

41-
test('Virtual', $obj);
41+
test('Proxy', $obj);
4242

4343
--EXPECTF--
4444
# Ghost:
@@ -53,7 +53,7 @@ object(C)#%d (1) {
5353
["a"]=>
5454
int(1)
5555
}
56-
# Virtual:
56+
# Proxy:
5757
string(11) "initializer"
5858
bool(false)
5959
lazy proxy object(C)#%d (1) {

Zend/tests/lazy_objects/clone_initializer_exception.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ $obj = $reflector->newLazyProxy(function ($obj) {
4141
throw new \Exception('initializer');
4242
});
4343

44-
test('Virtual', $obj);
44+
test('Proxy', $obj);
4545

4646
--EXPECTF--
4747
# Ghost:
4848
Exception: initializer
4949
bool(true)
5050
lazy ghost object(C)#%d (0) {
5151
}
52-
# Virtual:
52+
# Proxy:
5353
Exception: initializer
5454
bool(true)
5555
lazy proxy object(C)#%d (0) {

Zend/tests/lazy_objects/clone_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3636
return new C();
3737
});
3838

39-
test('Virtual', $obj);
39+
test('Proxy', $obj);
4040

4141
--EXPECTF--
4242
# Ghost:
@@ -51,7 +51,7 @@ object(C)#%d (1) {
5151
["a"]=>
5252
int(1)
5353
}
54-
# Virtual:
54+
# Proxy:
5555
string(11) "initializer"
5656
bool(false)
5757
lazy proxy object(C)#%d (1) {

Zend/tests/lazy_objects/dtor_called_if_init.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ function ghost() {
2525
var_dump($obj->a);
2626
}
2727

28-
function virtual() {
28+
function proxy() {
2929
$reflector = new ReflectionClass(C::class);
3030

31-
print "# Virtual:\n";
31+
print "# Proxy:\n";
3232

3333
print "In makeLazy\n";
3434
$obj = $reflector->newLazyProxy(function () {
@@ -41,7 +41,7 @@ function virtual() {
4141
}
4242

4343
ghost();
44-
virtual();
44+
proxy();
4545

4646
--EXPECTF--
4747
# Ghost:
@@ -54,7 +54,7 @@ object(C)#%d (1) {
5454
["a"]=>
5555
int(1)
5656
}
57-
# Virtual:
57+
# Proxy:
5858
In makeLazy
5959
After makeLazy
6060
string(11) "initializer"

Zend/tests/lazy_objects/dtor_not_called_if_not_init.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ print "After newLazyGhost\n";
2323
// Does not call destructor
2424
$obj = null;
2525

26-
print "# Virtual:\n";
26+
print "# Proxy:\n";
2727

2828
print "In newLazyProxy\n";
2929
$obj = $reflector->newLazyProxy(function () {
@@ -38,6 +38,6 @@ $obj = null;
3838
# Ghost:
3939
In newLazyGhost
4040
After newLazyGhost
41-
# Virtual:
41+
# Proxy:
4242
In newLazyProxy
4343
After newLazyGhost

Zend/tests/lazy_objects/fetch_coalesce_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3232
return new C();
3333
});
3434

35-
test('Virtual', $obj);
35+
test('Proxy', $obj);
3636
--EXPECTF--
3737
# Ghost:
3838
lazy ghost object(C)#%d (0) {
@@ -46,7 +46,7 @@ object(C)#%d (1) {
4646
["a"]=>
4747
int(1)
4848
}
49-
# Virtual:
49+
# Proxy:
5050
lazy proxy object(C)#%d (0) {
5151
["a"]=>
5252
uninitialized(int)

Zend/tests/lazy_objects/fetch_coalesce_non_existing_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3232
return new C();
3333
});
3434

35-
test('Virtual', $obj);
35+
test('Proxy', $obj);
3636
--EXPECTF--
3737
# Ghost:
3838
lazy ghost object(C)#%d (0) {
@@ -46,7 +46,7 @@ object(C)#%d (1) {
4646
["a"]=>
4747
int(1)
4848
}
49-
# Virtual:
49+
# Proxy:
5050
lazy proxy object(C)#%d (0) {
5151
["a"]=>
5252
uninitialized(int)

Zend/tests/lazy_objects/fetch_declared_prop_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3636
return new C(1);
3737
});
3838

39-
test('Virtual', $obj);
39+
test('Proxy', $obj);
4040

4141
--EXPECTF--
4242
# Ghost:
@@ -53,7 +53,7 @@ object(C)#%d (2) {
5353
["b"]=>
5454
int(2)
5555
}
56-
# Virtual:
56+
# Proxy:
5757
lazy proxy object(C)#%d (0) {
5858
["b"]=>
5959
uninitialized(int)

Zend/tests/lazy_objects/fetch_dynamic_prop_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3333
return new C();
3434
});
3535

36-
test('Virtual', $obj);
36+
test('Proxy', $obj);
3737

3838
--EXPECTF--
3939
# Ghost:
@@ -48,7 +48,7 @@ object(C)#%d (0) {
4848
["a"]=>
4949
uninitialized(int)
5050
}
51-
# Virtual:
51+
# Proxy:
5252
lazy proxy object(C)#%d (0) {
5353
["a"]=>
5454
uninitialized(int)

Zend/tests/lazy_objects/fetch_hook_may_not_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3939
return new C(1);
4040
});
4141

42-
test('Virtual', $obj);
42+
test('Proxy', $obj);
4343

4444
--EXPECTF--
4545
# Ghost:
@@ -56,7 +56,7 @@ object(C)#%d (2) {
5656
["b"]=>
5757
int(2)
5858
}
59-
# Virtual:
59+
# Proxy:
6060
lazy proxy object(C)#%d (0) {
6161
["b"]=>
6262
uninitialized(int)

Zend/tests/lazy_objects/fetch_hook_virtual_may_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
4040
return new C(1);
4141
});
4242

43-
test('Virtual', $obj);
43+
test('Proxy', $obj);
4444

4545
--EXPECTF--
4646
# Ghost:
@@ -57,7 +57,7 @@ object(C)#%d (2) {
5757
["b"]=>
5858
int(2)
5959
}
60-
# Virtual:
60+
# Proxy:
6161
lazy proxy object(C)#%d (0) {
6262
["b"]=>
6363
uninitialized(int)

Zend/tests/lazy_objects/fetch_hook_virtual_may_not_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3737
return new C(1);
3838
});
3939

40-
test('Virtual', $obj);
40+
test('Proxy', $obj);
4141

4242
--EXPECTF--
4343
# Ghost:
@@ -50,7 +50,7 @@ lazy ghost object(C)#%d (0) {
5050
["b"]=>
5151
uninitialized(int)
5252
}
53-
# Virtual:
53+
# Proxy:
5454
lazy proxy object(C)#%d (0) {
5555
["b"]=>
5656
uninitialized(int)

Zend/tests/lazy_objects/fetch_magic_prop_may_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3535
return new C();
3636
});
3737

38-
test('Virtual', $obj);
38+
test('Proxy', $obj);
3939
--EXPECTF--
4040
# Ghost:
4141
lazy ghost object(C)#%d (0) {
@@ -49,7 +49,7 @@ object(C)#%d (1) {
4949
["a"]=>
5050
int(1)
5151
}
52-
# Virtual:
52+
# Proxy:
5353
lazy proxy object(C)#%d (0) {
5454
["a"]=>
5555
uninitialized(int)

Zend/tests/lazy_objects/fetch_magic_prop_may_not_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3535
return new C();
3636
});
3737

38-
test('Virtual', $obj);
38+
test('Proxy', $obj);
3939

4040
--EXPECTF--
4141
# Ghost:
@@ -48,7 +48,7 @@ lazy ghost object(C)#%d (0) {
4848
["a"]=>
4949
uninitialized(int)
5050
}
51-
# Virtual:
51+
# Proxy:
5252
lazy proxy object(C)#%d (0) {
5353
["a"]=>
5454
uninitialized(int)

Zend/tests/lazy_objects/fetch_magic_prop_recursive_may_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3535
return new C();
3636
});
3737

38-
test('Virtual', $obj);
38+
test('Proxy', $obj);
3939
--EXPECTF--
4040
# Ghost:
4141
lazy ghost object(C)#%d (0) {
@@ -51,7 +51,7 @@ object(C)#%d (1) {
5151
["a"]=>
5252
int(1)
5353
}
54-
# Virtual:
54+
# Proxy:
5555
lazy proxy object(C)#%d (0) {
5656
["a"]=>
5757
uninitialized(int)

Zend/tests/lazy_objects/fetch_op_dynamic_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3737
throw new Error("initializer");
3838
});
3939

40-
test('Virtual', $obj);
40+
test('Proxy', $obj);
4141

4242
--EXPECTF--
4343
# Ghost:
@@ -50,7 +50,7 @@ lazy ghost object(C)#%d (0) {
5050
["a"]=>
5151
uninitialized(int)
5252
}
53-
# Virtual:
53+
# Proxy:
5454
lazy proxy object(C)#%d (0) {
5555
["a"]=>
5656
uninitialized(int)

Zend/tests/lazy_objects/fetch_op_dynamic_prop_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3333
return new C();
3434
});
3535

36-
test('Virtual', $obj);
36+
test('Proxy', $obj);
3737

3838
--EXPECTF--
3939
# Ghost:
@@ -50,7 +50,7 @@ object(C)#%d (2) {
5050
["dynamic"]=>
5151
int(1)
5252
}
53-
# Virtual:
53+
# Proxy:
5454
lazy proxy object(C)#%d (0) {
5555
["a"]=>
5656
uninitialized(int)

Zend/tests/lazy_objects/fetch_op_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3737
throw new Error("initializer");
3838
});
3939

40-
test('Virtual', $obj);
40+
test('Proxy', $obj);
4141

4242
--EXPECTF--
4343
# Ghost:
@@ -50,7 +50,7 @@ lazy ghost object(C)#%d (0) {
5050
["a"]=>
5151
uninitialized(int)
5252
}
53-
# Virtual:
53+
# Proxy:
5454
lazy proxy object(C)#%d (0) {
5555
["a"]=>
5656
uninitialized(int)

Zend/tests/lazy_objects/fetch_op_initializes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
3333
return new C();
3434
});
3535

36-
test('Virtual', $obj);
36+
test('Proxy', $obj);
3737

3838
--EXPECTF--
3939
# Ghost:
@@ -48,7 +48,7 @@ object(C)#%d (1) {
4848
["a"]=>
4949
int(3)
5050
}
51-
# Virtual:
51+
# Proxy:
5252
lazy proxy object(C)#%d (0) {
5353
["a"]=>
5454
uninitialized(int)

Zend/tests/lazy_objects/fetch_op_skipped_prop_does_not_initialize.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $obj = $reflector->newLazyProxy(function ($obj) {
4646
return new c();
4747
});
4848

49-
test('Virtual', $obj);
49+
test('Proxy', $obj);
5050

5151
--EXPECTF--
5252
# Ghost:
@@ -69,7 +69,7 @@ object(C)#%d (2) {
6969
["c"]=>
7070
uninitialized(int)
7171
}
72-
# Virtual:
72+
# Proxy:
7373
object(C)#%d (2) {
7474
["a"]=>
7575
NULL

0 commit comments

Comments
 (0)