Skip to content

Instantly share code, notes, and snippets.

@swashata
Created May 9, 2021 08:46
Show Gist options
  • Save swashata/1caf76918876ff7b18a5782ce038bfe8 to your computer and use it in GitHub Desktop.
Save swashata/1caf76918876ff7b18a5782ce038bfe8 to your computer and use it in GitHub Desktop.

Revisions

  1. swashata created this gist May 9, 2021.
    16 changes: 16 additions & 0 deletions php.code-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    {
    "testDox": {
    "prefix": "__t",
    "body": [
    "/**",
    " * @testdox ${1:what it does}",
    " *",
    " * @return void",
    " */",
    "public function test${2:${TM_FILENAME_BASE/(.*)Test$/$1/}}${1/(.*)/${1:/pascalcase}/}() {",
    "\t$0",
    "}"
    ],
    "description": "Insert @testdox"
    }
    }