Fix and improve snippets
This commit is contained in:
parent
e67cceae3f
commit
100e05ef85
|
@ -14,7 +14,7 @@ snippet falias
|
|||
snippet ftrans
|
||||
{f:translate(id: '${1}')}
|
||||
snippet fdebug
|
||||
<f:debug>${1:{_all}}</f:debug>${2}
|
||||
<f:debug inline="1">${1:{_all}}</f:debug>${2}
|
||||
snippet fcomment
|
||||
<f:comment>
|
||||
${0}
|
||||
|
|
|
@ -171,8 +171,8 @@ snippet testfile
|
|||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
#[CoversClass(`expand('%:r:s?Test$??:s?.*/??')::class)
|
||||
final readonly class ${1:`expand('%:t:s?.php??')`} extends TestCase
|
||||
#[CoversClass(${1:`expand('%:t:s?.php??')`}::class)
|
||||
final class ${1:`expand('%:t:s?.php??')`} extends TestCase
|
||||
{
|
||||
#[Test]
|
||||
public function canBeCreated(): void
|
||||
|
@ -218,7 +218,7 @@ snippet testfilelegacy
|
|||
/**
|
||||
* @covers \DanielSiepmann`expand('%:r:s?.*ext/??:s?local_packages/??:s?Classes/??:s?Tests/Unit/??:s?Tests/Functional/??:s?Test??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`
|
||||
*/
|
||||
final readonly class ${1:`expand('%:t:s?.php??')`} extends TestCase
|
||||
final class ${1:`expand('%:t:s?.php??')`} extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
|
@ -262,7 +262,7 @@ snippet codeceptiontestfile
|
|||
|
||||
use PhpbrowserTester;
|
||||
|
||||
final readonly class ${1:`expand('%:t:s?.php??')`}
|
||||
final class ${1:`expand('%:t:s?.php??')`}
|
||||
{
|
||||
public function firstTest(PhpbrowserTester $I): void
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue