Skip to content

Commit cb6e8d3

Browse files
committed
Remove manual debug checks from TypeError test in ClassConstKeyShapeTest
1 parent da5274b commit cb6e8d3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

tests/TypeChecking/ArraysAndShapes/ClassConstKeyShapeTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ public function process(array $payload): bool
3535
test('throws TypeError when array shape item with class constant key violates type contract', function () {
3636
$container = new ConstKeyContainer();
3737

38-
$manualCheck = \TypePHP\Internal\RuntimeTypeChecker::setupScope(
39-
'TypePHP\Tests\Fixtures\Types\ConstKeyContainer::process',
40-
['payload' => ['user_id' => -5, 'user_role' => 'admin']],
41-
$container
42-
);
43-
fwrite(STDERR, "[DEBUG] setupScope returned class: " . (is_object($manualCheck) ? get_class($manualCheck) : var_export($manualCheck, true)) . "\n");
44-
fwrite(STDERR, "[DEBUG] instanceof ErrorMessage: " . var_export($manualCheck instanceof \TypePHP\Internal\Diagnostic\ErrorMessage, true) . "\n");
45-
4638
expect(fn() => $container->process([
4739
'user_id' => -5,
4840
'user_role' => 'admin',

0 commit comments

Comments
 (0)