Skip to content

Commit 3ec3d35

Browse files
authored
Merge pull request Codeception#6072 from Codeception/4.1-namespace-in-templates
Add line break between opening tag and namespace in generated files
2 parents 532cbb7 + 8356d5d commit 3ec3d35

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Codeception/Lib/Generator/Cest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Cest
1111
use Namespaces;
1212

1313
protected $template = <<<EOF
14-
<?php {{namespace}}
15-
14+
<?php
15+
{{namespace}}
1616
class {{name}}Cest
1717
{
1818
public function _before({{actor}} \$I)

src/Codeception/Lib/Generator/Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class Test
1111
use Shared\Classname;
1212

1313
protected $template = <<<EOF
14-
<?php {{namespace}}
14+
<?php
15+
{{namespace}}
1516
class {{name}}Test extends \Codeception\Test\Unit
1617
{
1718
{{tester}}

0 commit comments

Comments
 (0)