Inheritance: extends PHPUnit_Framework_TestCase
Example #1
0
 /**
  * Run before initialization
  *
  * @return null
  */
 public static function setUpBeforeClass()
 {
     self::$_str = new PHPR\String("test");
 }
Example #2
0
<?php

// NOTE:
// to run these tests, download simpletest (http://www.simpletest.org/)
// and place it outside (but at the same level) of the kirby directory.
//
require_once dirname(__FILE__) . '/../../simpletest/unit_tester.php';
require_once dirname(__FILE__) . '/../../simpletest/reporter.php';
require_once 'session.php';
require_once 'string.php';
require_once 'array.php';
$test = new SessionTest();
$test->run(new HtmlReporter());
$test = new StringTest();
$test->run(new HtmlReporter());
$test = new ArrayTest();
$test->run(new HtmlReporter());