Location: PHPKode > scripts > Security_Token > security_token/Test/Validator/Base.php
<?php
/**
 * $Id: Validator.class.php 562 2006-09-28 16:38:53Z matthieu $
 */
if (!class_exists('Test_Validator_Base')) {
    if (!defined('__CLASS_PATH__')) {
        define('__CLASS_PATH__', realpath(dirname(__FILE__) . '/../../'));
    }
    if (!defined('__SIMPLETEST_PATH__')) {
        define('__SIMPLETEST_PATH__', realpath(__CLASS_PATH__ . '/simpletest/'));
    }
    require_once __CLASS_PATH__ . '/Autoload.php';
    require_once __SIMPLETEST_PATH__ . '/shell_tester.php';
    require_once __SIMPLETEST_PATH__ . '/reporter.php';
    /**
     * test class for Validator_Base package
     * @package validation
     * @author matthieu <hide@address.com>
     * @subpackage unit_test_case
     */
    class Test_Validator_Base extends ShellTestCase
    {
        /**
         * default constructor
         * @access public
         * @return void
         */
        public function __construct()
        {
            parent :: __construct();
        }
        /**
         * test the default validator
         * @acces public
         * @return void
         */
        public function testDefaultValidator()
        {
            $validator = new Validator_Base();
            $this->assertTrue($validator->isValid(),
             "Default validator must always return true");
        }
    }
}
Return current item: Security_Token