예제 #1
0
<?php

CoverageAnalysis::add(ROOT_PATH . '/libs/Sifo/CacheDisk.php');
/**
 * Test class for CacheDisk.
 * Generated by PHPUnit on 2009-11-01 at 12:17:06.
 */
class CacheDiskTest extends PHPUnit_Extensions_ControllerTest
{
    /**
     * @var CacheDisk
     */
    protected $object;
    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new \Sifo\CacheDisk();
    }
    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
        $this->object = null;
    }
    /**
     * Test object correct creation.
예제 #2
0
<?php

CoverageAnalysis::add(ROOT_PATH . '/libs/Sifo/Controller.php');
/**
 * Controller class is abstract, so we need a mock (for now).
 */
class ControllerMock extends \Sifo\Controller
{
    public function build()
    {
    }
}
/**
 * Test class for Controller.
 * Generated by PHPUnit on 2009-11-01 at 12:17:06.
 */
class ControllerTest extends PHPUnit_Extensions_ControllerTest
{
    /**
     * @var Controller
     */
    protected $object;
    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new ControllerMock();
    }
    /**
예제 #3
0
<?php

CoverageAnalysis::add(ROOT_PATH . '/libs/Sifo/Benchmark.php');
/**
 * Test class for Benchmark.
 * Generated by PHPUnit on 2009-11-01 at 12:17:00.
 */
class BenchmarkTest extends PHPUnit_Extensions_ControllerTest
{
    /**
     * @var Benchmark
     */
    protected $object;
    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new \Sifo\Benchmark();
    }
    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
        $this->object = null;
    }
    /**
     * Test object correct creation.
예제 #4
0
<?php

CoverageAnalysis::add(ROOT_PATH . '/libs/Sifo/Config.php');
/**
 * Yea, a mock to override the constructor, truly great.
 */
class ConfigMock extends \Sifo\Config
{
    public function __construct($instance_name)
    {
        return parent::__construct($instance_name);
    }
}
/**
 * Test class for Config.
 * Generated by PHPUnit on 2009-11-01 at 12:17:05.
 */
class ConfigTest extends PHPUnit_Extensions_ControllerTest
{
    /**
     * @var Config
     */
    protected $object;
    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new ConfigMock('tests');
    }