diff --git a/home/programs/neovim/configuration/snippets/php.snippets b/home/programs/neovim/configuration/snippets/php.snippets index e2007c2..c1fb396 100644 --- a/home/programs/neovim/configuration/snippets/php.snippets +++ b/home/programs/neovim/configuration/snippets/php.snippets @@ -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 + + * + * 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; diff --git a/home/programs/neovim/configuration/snippets/xml.snippets b/home/programs/neovim/configuration/snippets/xml.snippets index 4023189..660024a 100644 --- a/home/programs/neovim/configuration/snippets/xml.snippets +++ b/home/programs/neovim/configuration/snippets/xml.snippets @@ -4,10 +4,10 @@ snippet xml snippet xlifft3 - +
- + @@ -33,7 +33,7 @@ snippet flexform snippet trans - +