Adjust snippets for PHP and xliff
This commit is contained in:
parent
7a0068bd9f
commit
3d2a775d81
|
@ -287,6 +287,52 @@ snippet testfile
|
|||
|
||||
namespace DanielSiepmann`expand('%:h:s?.*ext/??:s?local_packages/??:s?Classes/??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
|
||||
|
||||
use 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??\\\?')`;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
#[CoversClass(`expand('%:r:s?Test$??:s?.*/??')::class)
|
||||
final class ${1:`expand('%:t:s?.php??')`} extends TestCase
|
||||
{
|
||||
#[Test]
|
||||
public function canBeCreated(): void
|
||||
{
|
||||
$subject = new `expand('%:r:s?Test$??:s?.*/??')`();
|
||||
|
||||
self::assertInstanceOf(
|
||||
`expand('%:r:s?Test$??:s?.*/??')`::class,
|
||||
$subject
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
snippet testfilelegacy
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* Copyright (C) `system('date +%Y')` `system('git config --get user.name')` <`system('git config --get user.email')`>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
namespace DanielSiepmann`expand('%:h:s?.*ext/??:s?local_packages/??:s?Classes/??:s?.*_?\u&?:gs?_.?\U&?:gs?_??:gs?/?\\\?:s??\\\?')`;
|
||||
|
||||
use 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??\\\?')`;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ snippet xml
|
|||
snippet xlifft3
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="`strftime('%Y-%m-%dT%H:%M:%SZ')`" product-name="`expand('%:h:s?.*ext/??:s?/.*??')`">
|
||||
<file source-language="en" datatype="plaintext" date="`strftime('%Y-%m-%dT%H:%M:%SZ')`" product-name="`expand('%:h:s?.*ext/??:s?/.*??')`">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="$0" approved="yes">
|
||||
<trans-unit id="$0" resname="$0" approved="yes">
|
||||
<source></source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
|
@ -33,7 +33,7 @@ snippet flexform
|
|||
</T3DataStructure>
|
||||
|
||||
snippet trans
|
||||
<trans-unit id="$0" approved="yes">
|
||||
<trans-unit id="$0" resname="$0" approved="yes">
|
||||
<source></source>
|
||||
</trans-unit>
|
||||
|
||||
|
|
Loading…
Reference in a new issue