Skip to content

Commit

Permalink
Merge pull request #6072 from Codeception/4.1-namespace-in-templates
Browse files Browse the repository at this point in the history
Add line break between opening tag and namespace in generated files
  • Loading branch information
Naktibalda committed Feb 23, 2021
2 parents 532cbb7 + 8356d5d commit 3ec3d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Codeception/Lib/Generator/Cest.php
Expand Up @@ -11,8 +11,8 @@ class Cest
use Namespaces;

protected $template = <<<EOF
<?php {{namespace}}
<?php
{{namespace}}
class {{name}}Cest
{
public function _before({{actor}} \$I)
Expand Down
3 changes: 2 additions & 1 deletion src/Codeception/Lib/Generator/Test.php
Expand Up @@ -11,7 +11,8 @@ class Test
use Shared\Classname;

protected $template = <<<EOF
<?php {{namespace}}
<?php
{{namespace}}
class {{name}}Test extends \Codeception\Test\Unit
{
{{tester}}
Expand Down

0 comments on commit 3ec3d35

Please sign in to comment.