Skip to content

Commit e9684fb

Browse files
committed
Porting Libs group to PHP Unit.
1 parent 747847e commit e9684fb

File tree

2 files changed

+54
-62
lines changed

2 files changed

+54
-62
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
/**
3+
* AllLibsTest file
4+
*
5+
* PHP 5
6+
*
7+
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8+
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
9+
*
10+
* Licensed under The MIT License
11+
* Redistributions of files must retain the above copyright notice.
12+
*
13+
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
14+
* @link http://cakephp.org CakePHP(tm) Project
15+
* @package cake
16+
* @subpackage cake.tests.cases
17+
* @since CakePHP(tm) v 2.0
18+
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
19+
*/
20+
21+
/**
22+
* AllLibsTest class
23+
*
24+
* This test group will run all non mvc related lib class tests
25+
*
26+
* @package cake
27+
* @subpackage cake.tests.cases
28+
*/
29+
class AllLibsTest extends PHPUnit_Framework_TestSuite {
30+
31+
/**
32+
* suite method, defines tests for this suite.
33+
*
34+
* @return void
35+
*/
36+
public static function suite() {
37+
$suite = new PHPUnit_Framework_TestSuite('All non-MVC lib class tests');
38+
39+
$suite->addTestFile(CORE_TEST_CASES . DS . 'basics.test.php');
40+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_session.test.php');
41+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'debugger.test.php');
42+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'error.test.php');
43+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'file.test.php');
44+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'folder.test.php');
45+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'log' . DS . 'file_log.test.php');
46+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_log.test.php');
47+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'class_registry.test.php');
48+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'sanitize.test.php');
49+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'set.test.php');
50+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'string.test.php');
51+
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'validation.test.php');
52+
return $suite;
53+
}
54+
}

cake/tests/groups/lib.group.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)