Fix and improve snippets

This commit is contained in:
Daniel Siepmann 2024-01-10 11:51:03 +01:00
parent e67cceae3f
commit 100e05ef85
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@ snippet falias
snippet ftrans snippet ftrans
{f:translate(id: '${1}')} {f:translate(id: '${1}')}
snippet fdebug snippet fdebug
<f:debug>${1:{_all}}</f:debug>${2} <f:debug inline="1">${1:{_all}}</f:debug>${2}
snippet fcomment snippet fcomment
<f:comment> <f:comment>
${0} ${0}

View file

@ -171,8 +171,8 @@ snippet testfile
use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
#[CoversClass(`expand('%:r:s?Test$??:s?.*/??')::class) #[CoversClass(${1:`expand('%:t:s?.php??')`}::class)
final readonly class ${1:`expand('%:t:s?.php??')`} extends TestCase final class ${1:`expand('%:t:s?.php??')`} extends TestCase
{ {
#[Test] #[Test]
public function canBeCreated(): void 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??\\\?')` * @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 * @test
@ -262,7 +262,7 @@ snippet codeceptiontestfile
use PhpbrowserTester; use PhpbrowserTester;
final readonly class ${1:`expand('%:t:s?.php??')`} final class ${1:`expand('%:t:s?.php??')`}
{ {
public function firstTest(PhpbrowserTester $I): void public function firstTest(PhpbrowserTester $I): void
{ {