Skip to content

Instantly share code, notes, and snippets.

Avatar
🚢
Moving tings

Raphael Stolt raphaelstolt

🚢
Moving tings
View GitHub Profile
@raphaelstolt
raphaelstolt / GrowlTestListener.php
Created Nov 23, 2009
A PHPUnit TestListener pushing the test results to Growl on Mac OS X
View GrowlTestListener.php
<?php
class PHPUnit_Extensions_TestListener_GrowlTestListener
implements PHPUnit_Framework_Testlistener
{
const TEST_RESULT_COLOR_RED = 'red';
const TEST_RESULT_COLOR_YELLOW = 'yellow';
const TEST_RESULT_COLOR_GREEN = 'green';
private $_errors = array();
View stakeout.rb
#!/usr/bin/env ruby -w
if ARGV.size < 2
puts "Usage: stakeout.rb <command> [files to watch]+"
exit 1
end
command = ARGV.shift
files = {}
You can’t perform that action at this time.