-
-
Save danpoltawski/3447938b23629b65f461 to your computer and use it in GitHub Desktop.
phpunit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UnitTestCase extends PHPUnit_Framework_TestCase { | |
public function assertEqual($expected, $actual) { | |
return parent::assertEquals($expected, $actual); | |
} | |
public function assertNotEqual($expected, $actual) { | |
return parent::assertNotEquals($expected, $actual); | |
} | |
public function assertIdentical($expected, $actual) { | |
return parent::assertSame($expected, $actual); | |
} | |
public function assertIsA($actual, $expected) { | |
return parent::assertInstanceOf($expected, $actual); | |
} | |
public function assertNotIdentical($expected, $actual) { | |
return parent::assertNotSame(expected, $actual); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment