This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
namespace ${1:namespace}; | |
/** | |
* @package ${1:namespace} | |
*/ | |
class ${TM_FILENAME/(.+)\..+|.*/$1/:name}${4: extends ${5:class}} | |
{ | |
${0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<?php | |
/** | |
* ${1:project} | |
* | |
* @copyright Copyright (c) 2013, Jason Fox (jasonrobertfox.com) | |
* @license This source file is the property of Jason Fox and may not be redistributed in part or its entirty without the expressed written consent of Jason Fox. | |
* @author Jason Fox <[email protected]> | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##--CONFIGURATION--## | |
# add to this array of things you want to check for in your testing | |
checks[1]="var_dump" | |
checks[2]="print_r" | |
checks[3]="die" | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
* @test | |
* @group ${1:group} | |
*/ | |
public function ${2:validTestName}() | |
{ | |
${0:\$this->markTestIncomplete('Not yet implemented');} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
namespace ${1:namespace}; | |
/** | |
* @package ${1:namespace} | |
*/ | |
class ${TM_FILENAME/(.+)\..+|.*/$1/:name} extends \PHPUnit_Framework_TestCase | |
{ | |
${0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
#${TM_FILENAME} | |
Feature: ${1:Some terse yet descriptive text of what is desired} | |
In order to ${2:realize a named business value} | |
As a ${3:explicit system actor} | |
I want to ${4:gain some beneficial outcome which furthers the goal} | |
Scenario: ${5:Some determinable business situation} | |
${0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USAGE="Usage: new-class.sh [-u] [-i] <class>" | |
src='src/' | |
unit='tests/unit/' | |
int='tests/integration/' | |
[[ "${@: -1}" =~ (.*)\/(.*$) ]] | |
class=${BASH_REMATCH[2]} | |
path=${BASH_REMATCH[1]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Input Data | |
$name = "Jason"; | |
$age = 28; | |
function getPlural($ageArgument){ | |
if($ageArgument == 1){ | |
return ""; | |
} else { | |
return "s"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$you = array("name"=>"yourName", "startDay"=> 12, "endDay"=> 15); | |
$possibleMatches = array( | |
array("name"=>"joe", "startDay"=> 14, "endDay"=> 17), | |
array("name"=>"jane", "startDay"=> 10, "endDay"=> 11); | |
) | |
function findTravelBuddies(????){ | |
???? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec < /dev/tty | |
./.git/hooks/validate_commit.rb $1 |