Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tests/CacheTest.php

    r396 r468  
    77 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    88 * Copyright 2001-2012 Strangecode, LLC
    9  * 
     9 *
    1010 * This file is part of The Strangecode Codebase.
    1111 *
     
    1414 * Free Software Foundation, either version 3 of the License, or (at your option)
    1515 * any later version.
    16  * 
     16 *
    1717 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1818 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1919 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    2020 * details.
    21  * 
     21 *
    2222 * You should have received a copy of the GNU General Public License along with
    2323 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    3333 * Created with PHPUnit_Skeleton on 2005-08-09
    3434 */
    35 require_once 'PHPUnit.php';
    36 class CacheTest extends PHPUnit_TestCase {
     35
     36class CacheTest extends PHPUnit_Framework_TestCase {
    3737
    3838    var $Cache;
     
    4040    function CacheTest($name)
    4141    {
    42         $this->PHPUnit_TestCase($name);
     42        $this->PHPUnit_Framework_TestCase($name);
    4343    }
    4444
     
    105105
    106106}
    107 // Running the test.
    108 $suite = new PHPUnit_TestSuite('CacheTest');
    109 $result = PHPUnit::run($suite);
    110 echo $result->toString();
    111 ?>
Note: See TracChangeset for help on using the changeset viewer.