Skip to content

Instantly share code, notes, and snippets.

@ahalbert
Created July 30, 2015 18:28
Show Gist options
  • Select an option

  • Save ahalbert/712bc353adb46d2972cf to your computer and use it in GitHub Desktop.

Select an option

Save ahalbert/712bc353adb46d2972cf to your computer and use it in GitHub Desktop.
class PlanDatesTest extends PHPUnit_Framework_TestCase
{
public function testDateDisplay() {
$this->assertEquals(PlanDates::dateDisplay(1438198178), "July 29, 2015");
$this->assertEquals(PlanDates::dateDisplay("2015-03-7"), "March 7, 2015");
}
public function testYearStart() {
$this->getMock('Util', array("isGrad"));
$this->expects($this->any())
->method('isGrad')
->will($this->returnValue(true));
echo PlanDates::planYearStart();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment