Skip to content

Instantly share code, notes, and snippets.

@simianhacker
Created June 9, 2009 06:38
Show Gist options
  • Save simianhacker/126322 to your computer and use it in GitHub Desktop.
Save simianhacker/126322 to your computer and use it in GitHub Desktop.
<?php
require_once 'PHPUnit/Framework.php';
class Describe_Something_Awesome extends PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->something = "Awesome!";
}
/**
* It should do something really cool
* @author Christopher Cowan
* @test
*/
public function It_should_do_something_really_cool()
{
$this->assertNotEquals('Cool!', $this->something);
} // It should do something really cool
/**
* It should do something uncool
* @author Christopher Cowan
* @test
*/
public function It_should_do_something_uncool()
{
$this->assertEquals("Cool!", $this->something);
} // It should do something uncool
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment