Return to Snippet

Revision: 65218
at November 9, 2013 10:37 by steroidmonkey


Initial Code
<?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.
    }

}

Initial URL

                                

Initial Description
Bare outline for a PHPUnit test case

Initial Title
PHPUnit Test Outline

Initial Tags
php

Initial Language
PHP