diff --git a/UltiSnips/php-phpunit.snippets b/UltiSnips/php-phpunit.snippets index 9120406..73b03e2 100644 --- a/UltiSnips/php-phpunit.snippets +++ b/UltiSnips/php-phpunit.snippets @@ -1,8 +1,11 @@ # suggestion? report bugs? # please go to https://github.com/chrisyue/vim-snippets/issues +# +# to use add the following to your .vimrc +# `autocmd BufRead,BufNewFile,BufEnter *Test.php UltiSnipsAddFiletypes php-phpunit` priority -50 -snippet test "phpunit test class" b +snippet testcase "class XYZTest extends \PHPUnit_Framework_TestCase { ... }" ${1:once}()) ->method('${2}') @@ -38,3 +62,15 @@ snippet testcmt "phpunit comment with group" b * @group ${1} */ endsnippet + +snippet fail "$this->fail()" +$this->fail(${1}); +endsnippet + +snippet marki "$this->markTestIncomplete()" +$this->markTestIncomplete(${1}); +endsnippet + +snippet marks "$this->markTestSkipped()" +$this->markTestSkipped(${1}); +endsnippet