Changeset 468 for trunk/tests/UploadTest.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/tests/UploadTest.php
r396 r468 7 7 * For details visit the project site: <http://trac.strangecode.com/codebase/> 8 8 * Copyright 2001-2012 Strangecode, LLC 9 * 9 * 10 10 * This file is part of The Strangecode Codebase. 11 11 * … … 14 14 * Free Software Foundation, either version 3 of the License, or (at your option) 15 15 * any later version. 16 * 16 * 17 17 * The Strangecode Codebase is distributed in the hope that it will be useful, but 18 18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 20 20 * details. 21 * 21 * 22 22 * You should have received a copy of the GNU General Public License along with 23 23 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 33 33 * Created with PHPUnit_Skeleton on 2005-08-09 34 34 */ 35 require_once 'PHPUnit.php'; 36 class UploadTest extends PHPUnit_ TestCase {35 36 class UploadTest extends PHPUnit_Framework_TestCase { 37 37 38 38 var $Upload; … … 40 40 function UploadTest($name) 41 41 { 42 $this->PHPUnit_ TestCase($name);42 $this->PHPUnit_Framework_TestCase($name); 43 43 } 44 44 … … 120 120 function test_getfilenameextension() 121 121 { 122 $result = $this->Upload ->getfilenameextension(PARAM);122 $result = $this->Upload::getfilenameextension(PARAM); 123 123 $expected = EXPECTED_VAL; 124 124 $this->assertEquals($expected, $result); … … 126 126 127 127 } 128 // Running the test.129 $suite = new PHPUnit_TestSuite('UploadTest');130 $result = PHPUnit::run($suite);131 echo $result->toString();132 ?>
Note: See TracChangeset
for help on using the changeset viewer.