Skip to content

Instantly share code, notes, and snippets.

@davemfletcher
Created February 24, 2013 01:40
Show Gist options
  • Select an option

  • Save davemfletcher/5022218 to your computer and use it in GitHub Desktop.

Select an option

Save davemfletcher/5022218 to your computer and use it in GitHub Desktop.
Code snippet for php test method
<snippet>
<content><![CDATA[
public function ${1:MethodName}_${2:StateUnderTest}_${3:ExpectedBehavior}()
{
${4: // assertions}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>test</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment