/ Published in: PHP
Bare outline for a PHPUnit test case
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php require_once 'MyClass.php'; class MyClassTest extends PHPUnit_Framework_TestCase { protected $my_class_instance; protected function setUp() { $this->my_class_instance = new MyClass; } public function testYourTest() { //Write your assertions here. } }