ModuleTest.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • tests/
  • phpunit/
  • ModuleTest.php
  • View
  • Commits
  • Open Download .zip Download (1 KB)
<?php
/**
 * Parent class for all core module (application) TestCases.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class ModuleTest extends TestCase
{
    /**
     * Extend the base test case to create test sites
     * and bootstrap the application.
     *
     * @param   string|null              $environment   optional - The application environment to use
     * @param   string|array|Zend_Config $options       String path to bootstrap configuration file,
     *                                                  or array/Zend_Config of configuration options
     */
    public function setUp($environment = null, $options = null)
    {
        parent::setUp();
        $this->utility->setUpModuleTest($this, $environment, $options);
    }

    /**
     * Clean up after ourselves.
     */
    public function tearDown()
    {
        if ($this->utility) {
            $this->utility->tearDownModuleTest($this);
        }

        parent::tearDown();
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/tests/phpunit/ModuleTest.php
#1 8972 Matt Attaway Initial add of the Chronicle source code