Permalink
Browse files

Improve snippets

  • Loading branch information...
1 parent 1e90cc9 commit 1b425e5b627f93bd2fa4be3da9c94c8398860764 @vsushkov committed Oct 27, 2012
Showing with 12 additions and 4 deletions.
  1. +11 −3 snippets/php.snippets
  2. +1 −1 snippets/xml.snippets
View
@@ -59,7 +59,7 @@ snippet file
* @copyright Copyright (c) 2012 Oggetto Web ltd. (http://www.oggettoweb.com/)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
- ${2}
+ ${2}
snippet vfile
/**
* vsushkov's extension for Magento
@@ -90,15 +90,17 @@ snippet doc_c
* @category Oggetto
* @package Oggetto_${2:Module}
* @author Valentin Sushkov <vsushkov@oggettoweb.com>
- */${3}
+ */
+ ${3}
snippet vdoc_c
/**
* ${1:Class comment}
*
* @category Vsushkov
* @package Vsushkov_${2:Module}
* @author Valentin Sushkov <me@vsushkov.com>
- */${3}
+ */
+ ${3}
# Canonical class name for Magento
snippet mclass
`substitute(substitute(expand("%:r"), 'app/code/local/', '', 'g'), '/', '_', 'g')`
@@ -121,6 +123,10 @@ snippet ai
$this->assertInstanceOf('${1:Class_Name}', $${2:object});${3}
snippet lf
@loadFixture
+ @doNotIndexAll
+snippet lsf
+ @loadSharedFixture
+ @doNotIndexAll
snippet skip
$this->markTestSkipped();
snippet incomplete
@@ -177,3 +183,5 @@ snippet tdac
${1}
}
+snippet here
+ echo 'Hi, I am ' . __METHOD__ . '(' . __LINE__ . ')'; echo '<br />';
@@ -29,7 +29,7 @@ snippet file
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* @author Valentin Sushkov <vsushkov@oggettoweb.com>
*/
- ${2}
+ ${2}
snippet vfile
<!--
/**

0 comments on commit 1b425e5

Please sign in to comment.