Skip to content

Commit

Permalink
fix unrelated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drdzyk committed Dec 20, 2022
1 parent 0d5cd3d commit a8f1122
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions tests/phpt/dl/1034_to_array_debug_shape.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ function __construct() {

function to_array_debug_shape(bool $with_class_names) {
$shape = shape(['foo' => 42, 'bar' => new A]);

$dump = to_array_debug($shape, $with_class_names);
#ifndef KPHP
$dump = ['foo' => 42, 'bar' => ['a_obj' => ['i' => 88, 'b_shape' => ['baz' => 'qax']]]];
if ($with_class_names) {
$dump['bar']['__class_name'] = 'A';
$dump['bar']['a_obj']['__class_name'] = 'B';
}
#endif
var_dump($dump);
}

Expand Down
8 changes: 0 additions & 8 deletions tests/phpt/dl/1035_to_array_debug_tuple.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ function __construct() {

function to_array_debug_tuple(bool $with_class_names) {
$tuple = tuple(42, new A);

$dump = to_array_debug($tuple, $with_class_names);
#ifndef KPHP
$dump = [42, ['a_obj' => ['i' => 88, 'b_tuple' => [77, 'qax']]]];
if ($with_class_names) {
$dump[1]['__class_name'] = 'A';
$dump[1]['a_obj']['__class_name'] = 'B';
}
#endif
var_dump($dump);
}

Expand Down

0 comments on commit a8f1122

Please sign in to comment.