mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
phpactor: update templates
This commit is contained in:
parent
cb9b9f8009
commit
cc4b4d06a0
3 changed files with 14 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ language_server_psalm.enabled: false
|
|||
code_transform.class_new.variants:
|
||||
laravel-model: laravel-model
|
||||
laravel-provider: laravel-provider
|
||||
laravel-test: laravel-feature-test
|
||||
laravel-phpunit-test: laravel-phpunit-test
|
||||
phpunit-test: phpunit-test
|
||||
livewire: livewire
|
||||
|
||||
indexer.enabled_watchers: [ 'inotify' ];
|
||||
|
|
|
|||
12
phpactor/templates/phpunit-test/SourceCode.php.twig
Normal file
12
phpactor/templates/phpunit-test/SourceCode.php.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace {{ prototype.namespace }};
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
{% for class in prototype.classes %}
|
||||
class {{ class.name }} extends TestCase
|
||||
{
|
||||
|
||||
}
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue