Skip to content

Conversation

@Naktibalda
Copy link
Member

Test and Cest generators generate namespace on the same line as opening tag.
e.g.

<?php namespace foo;

This change changes it to

<?php
namespace foo;

in generated Test and Cest files
@TavoNiievez
Copy link
Member

after I generate a Test, I always change:

<?php namespace App\Tests;

class MyTest extends \Codeception\Test\Unit

by:

<?php

namespace App\Tests;

use Codeception\Test\Unit;

final class MyTest extends Unit

could this be the default behavior?

@Naktibalda
Copy link
Member Author

I think that will be a part of #6071.

@Naktibalda
Copy link
Member Author

I misread the question last night, so it probably won't be a part of that pull request.

@DavertMik
Copy link
Member

@Naktibalda yes, let's make it part of #6071

@DavertMik
Copy link
Member

The original idea of this was to not introduce empty line if no namespace is used

@DavertMik DavertMik closed this Jan 11, 2021
@Naktibalda
Copy link
Member Author

@DavertMik this is a non-breaking change, so it can be merged to 4.1.
4.1 isn't dead yet.

@Naktibalda Naktibalda reopened this Feb 10, 2021
@Naktibalda Naktibalda merged commit 3ec3d35 into 4.1 Feb 23, 2021
@Naktibalda Naktibalda deleted the 4.1-namespace-in-templates branch February 23, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants