Skip to content

Commit 324e61e

Browse files
committed
refactor: tidied up test
1 parent 71474c3 commit 324e61e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Zend/tests/property_hooks/readonly_rfc_example_lazy_product.phpt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ echo $category2->name . "\n";
7070
// same category instance returned
7171
var_dump($category1 === $category2);
7272

73-
// can't be wrong, huh?
74-
var_dump($product);
75-
7673
// cannot set twice
7774
try {
7875
$categoryId->setValue($product, '420');
@@ -86,20 +83,4 @@ hit database
8683
Category 42
8784
Category 42
8885
bool(true)
89-
object(LazyProduct)#2 (5) {
90-
["name"]=>
91-
string(14) "Iced Chocolate"
92-
["price"]=>
93-
float(1.99)
94-
["category"]=>
95-
object(Category)#8 (1) {
96-
["name"]=>
97-
string(11) "Category 42"
98-
}
99-
["dbApi":"LazyProduct":private]=>
100-
object(MockDbConnection)#6 (0) {
101-
}
102-
["categoryId":"LazyProduct":private]=>
103-
string(2) "42"
104-
}
10586
Error: Cannot modify readonly property LazyProduct::$categoryId

0 commit comments

Comments
 (0)