Personally on daily basis I'm using templates I've created for PhpSpec and shared after the webinar but since then I've improved those and would like to share it with you guys.
Why do I need Live Templates?
As we know typing skills are as fundamental for programmers and also mastering your environment makes you a better developer. Because of that it is your professional responsibility to be efficient at work, and you don't want to waste time thinking how syntax looks like, don't you?
Live Templates will speed up your development and simply make you more efficient. Also second benefit from using those particular is the fact they will ease your PhpSpec learning curve.
How to use it - examples
Using Live Templates is quite simple - just type its abbreviation and expand it with Tab.
Inserting example skeleton - ex
Inserting example set up - let
Inserting type expectation - sbi
Usual pattern for most expectations abbreviations is quite intuitive - first letters of used words. Only exceptions are
snbi - that's just for convenience.
ex- example skeleton
let- example set up
letgo- example tear down
Download & Installation
After downloading templates go to PhpStorm import setting dialog (File -> Import Settings), choose downloaded .jar file, import it and restart IDE.
Now you are all set to develop even faster ;)
If you have any questions or suggestions how to improve templates I'm happy to hear from you!
Rommsen noticed that two abbreviations -
snhbc were missing - thanks for this!
Settings were updated and uploaded with two templates mentioned above!