Skip to content

Commit cc5f96a

Browse files
authored
Use empty string for empty file in test case
1 parent a54602c commit cc5f96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/NodeVisitor/ClassConstantTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function setUp(): void
4040
*/
4141
public function it_generates_constant_for_class_for_empty_file(): void
4242
{
43-
$ast = $this->parser->parse('<?php');
43+
$ast = $this->parser->parse('');
4444

4545
$nodeTraverser = new NodeTraverser();
4646
$nodeTraverser->addVisitor(new StrictType());
@@ -87,7 +87,7 @@ class TestClass
8787
*/
8888
public function it_generates_constant_for_class_with_namespace_for_empty_file(): void
8989
{
90-
$ast = $this->parser->parse('<?php');
90+
$ast = $this->parser->parse('');
9191

9292
$nodeTraverser = new NodeTraverser();
9393
$nodeTraverser->addVisitor(new StrictType());

0 commit comments

Comments
 (0)