Skip to content

Instantly share code, notes, and snippets.

@jasonmccallister
Created September 25, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmccallister/fbcc700bb46e62c02836962c8ee9b09e to your computer and use it in GitHub Desktop.
Save jasonmccallister/fbcc700bb46e62c02836962c8ee9b09e to your computer and use it in GitHub Desktop.
PHPUnit Test Function Snippet (php.json)
{
"PHPUnit Test Method": {
"prefix": "tf",
"body": [
"/**",
"* @test",
"*/",
"public function $1()",
"{",
"\t// Arrange",
"\t$2",
"\t",
"\t// Act",
"\t$3",
"\t",
"\t// Assert",
"\t$0",
"}"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment