Skip to content

Commit

Permalink
added setup method snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
ldgit committed Apr 16, 2016
1 parent da87038 commit 0c549ef
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
14 changes: 1 addition & 13 deletions snippets/phpunit.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,4 @@ class $TM_FILENAME extends PHPUnit_Framework_TestCase
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>punit</tabTrigger>
</snippet>
<snippet>
<content><![CDATA[
/** @test */
public function newTest()
{
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>test</tabTrigger>
</snippet>
</snippet>
12 changes: 12 additions & 0 deletions snippets/setup_method.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<snippet>
<content><![CDATA[
public function setUp()
{
${1:# code}
}
]]></content>
<tabTrigger>setup</tabTrigger>
<scope>source.php</scope>
<description>create empty setUp method</description>
</snippet>
12 changes: 12 additions & 0 deletions snippets/setupbeforeclass_method.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<snippet>
<content><![CDATA[
public static function setUpBeforeClass()
{
${1:# code}
}
]]></content>
<tabTrigger>bcsetup</tabTrigger>
<scope>source.php</scope>
<description>create empty before class setup method</description>
</snippet>

0 comments on commit 0c549ef

Please sign in to comment.