Skip to content

Instantly share code, notes, and snippets.

View jimdelois's full-sized avatar

Jim DeLois jimdelois

  • Shutterstock, Inc
  • New York, New York
View GitHub Profile
@scoutman57
scoutman57 / .gitconfig
Created April 24, 2014 20:28
Use PHPStorm as your git diff tool
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = phpstorm
[diff]
tool = phpstorm
[difftool]
prompt = false
[difftool "phpstorm"]
cmd = /Applications/PhpStorm\\ EAP.app/Contents/MacOS/phpstorm diff $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE")
trustExitCode = true
@drm
drm / FooBuilderTest.php
Created May 13, 2012 17:21
Example using closures as data provider in PHPUnit
<?php
/**
* @author Gerard van Helden <drm@melp.nl>
*/
class FooBuilder {
protected $properties = array();
function add($property, $value) {
$this->properties[$property][] = $value;