cvs: pear /Crypt_GPG/tests AllTests.php

[email protected] ("Michael Gauthier") Sun, 04 May 2008 06:29:33 -0000
Newsgroups php.pear.cvs
Message-ID <cvsgauthierm1209882573@cvsserver>
gauthierm		Sun May  4 06:29:33 2008 UTC

  Added files:                 
    /pear/Crypt_GPG/tests	AllTests.php 
  Log:
  Add AllTests integration for Crypt_GPG. Fixes #13823.
  

http://cvs.php.net/viewvc.cgi/pear/Crypt_GPG/tests/AllTests.php?view=markup&rev=1.1
Index: pear/Crypt_GPG/tests/AllTests.php
+++ pear/Crypt_GPG/tests/AllTests.php
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * PHPUnit 3.2 AllTests suite for the Crypt_GPG package.
 *
 * These tests require the PHPUnit 3.2 package to be installed. PHPUnit is
 * installable using PEAR. See the
 * {@link http://www.phpunit.de/pocket_guide/3.2/en/installation.html manual}
 * for detailed installation instructions.
 *
 * This test suite follows the PEAR AllTests conventions as documented at
 * {@link http://cvs.php.net/viewvc.cgi/pear/AllTests.php?view=markup}.
 *
 * LICENSE:
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of the
 * License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * @category  Encryption
 * @package   Crypt_GPG
 * @author    Michael Gauthier <[email protected]>
 * @copyright 2008 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 * @version   CVS: $Id: AllTests.php,v 1.1 2008/05/04 06:29:33 gauthierm Exp $
 * @link      http://pear.php.net/package/Crypt_GPG
 */

chdir(dirname(__FILE__));

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Crypt_GPG_AllTests::main');
}

require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

require_once 'PhpDriverTestCase.php';


/**
 * AllTests suite testing Crypt_GPG
 *
 * @category  Encryption
 * @package   Crypt_GPG
 * @author    Michael Gauthier <[email protected]>
 * @copyright 2008 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 * @link      http://pear.php.net/package/Crypt_GPG
 */
class Crypt_GPG_AllTests
{
    // {{{ main()

    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    // }}}
    // {{{ suite()

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Crypt_GPG Tests');
        $suite->addTestSuite('PhpDriverTestCase');
        return $suite;
    }

    // }}}
}

if (PHPUnit_MAIN_METHOD == 'Crypt_GPG_AllTests::main') {
    Crypt_GPG_AllTests::main();
}

?>