Skip to content

Instantly share code, notes, and snippets.

@iangreenleaf
Created December 22, 2011 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iangreenleaf/1512348 to your computer and use it in GitHub Desktop.
Save iangreenleaf/1512348 to your computer and use it in GitHub Desktop.
Rough tests for tap_out
# ruby -Ilib php_test.rb
require 'test/phpunit'
require 'test/unit'
class PHPTest < Test::Unit::TestCase
extend Test::PHPUnit
phpunit "test.php"
end
<?php
class ValidationFunctionsTest extends PHPUnit_Framework_TestCase {
public function testOne() {
$this->assertTrue( true );
}
public function testTwo() {
sleep(5);
$this->assertTrue( false );
}
public function test3() {
sleep(5);
$this->assertTrue( false );
}
public function test4() {
sleep(5);
$this->assertTrue( false );
}
public function test5() {
sleep(5);
$this->assertTrue( false );
}
public function test6() {
sleep(5);
$this->assertTrue( false );
}
public function test7() {
sleep(5);
$this->assertTrue( false );
}
public function test8() {
sleep(5);
$this->assertTrue( false );
}
public function test9() {
sleep(5);
$this->assertTrue( false );
}
public function test10() {
sleep(5);
$this->assertTrue( false );
}
public function test11() {
sleep(5);
$this->assertTrue( false );
}
public function test12() {
sleep(5);
$this->assertTrue( false );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment