Add PHP snippets for writing tests
This commit is contained in:
parent
ba8d543050
commit
8fa46c3639
2 changed files with 17 additions and 0 deletions
9
oni-php/snippets/php-mode/test-comment
Normal file
9
oni-php/snippets/php-mode/test-comment
Normal file
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test-comment
|
||||
# key: test
|
||||
# --
|
||||
/** @test */
|
||||
public function $1(): void
|
||||
{
|
||||
$0
|
||||
}
|
8
oni-php/snippets/php-mode/test-name
Normal file
8
oni-php/snippets/php-mode/test-name
Normal file
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test-name
|
||||
# key: test
|
||||
# --
|
||||
public function test_$1(): void
|
||||
{
|
||||
$0
|
||||
}
|
Loading…
Reference in a new issue