Extbase:
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Tests / Base_testcase.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Christopher Hlubek <hlubek@networkteam.com>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 require_once(t3lib_extMgm::extPath('extbase', 'class.tx_extbase_dispatcher.php'));
26
27 /**
28 * Base testcase for the extbase extension. Currently it only registers the autoloader.
29 */
30 abstract class Tx_Extbase_Base_testcase extends tx_phpunit_testcase {
31 public function __construct() {
32 parent::__construct();
33 $dispatcher = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
34 spl_autoload_register(array($dispatcher, 'autoLoadClasses'));
35 }
36 }
37 ?>
38 <?php
39 /***************************************************************
40 * Copyright notice
41 *
42 * (c) 2009 Christopher Hlubek <hlubek@networkteam.com>
43 * All rights reserved
44 *
45 * This script is part of the TYPO3 project. The TYPO3 project is
46 * free software; you can redistribute it and/or modify
47 * it under the terms of the GNU General Public License as published by
48 * the Free Software Foundation; either version 2 of the License, or
49 * (at your option) any later version.
50 *
51 * The GNU General Public License can be found at
52 * http://www.gnu.org/copyleft/gpl.html.
53 *
54 * This script is distributed in the hope that it will be useful,
55 * but WITHOUT ANY WARRANTY; without even the implied warranty of
56 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 * GNU General Public License for more details.
58 *
59 * This copyright notice MUST APPEAR in all copies of the script!
60 ***************************************************************/
61
62 require_once(t3lib_extMgm::extPath('extbase', 'class.tx_extbase_dispatcher.php'));
63
64 /**
65 * Base testcase for the extbase extension. Currently it only registers the autoloader.
66 */
67 abstract class Tx_Extbase_Base_testcase extends tx_phpunit_testcase {
68 public function __construct() {
69 parent::__construct();
70 $dispatcher = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
71 spl_autoload_register(array($dispatcher, 'autoLoadClasses'));
72 }
73 }
74 ?>
75 <?php
76 /***************************************************************
77 * Copyright notice
78 *
79 * (c) 2009 Christopher Hlubek <hlubek@networkteam.com>
80 * All rights reserved
81 *
82 * This script is part of the TYPO3 project. The TYPO3 project is
83 * free software; you can redistribute it and/or modify
84 * it under the terms of the GNU General Public License as published by
85 * the Free Software Foundation; either version 2 of the License, or
86 * (at your option) any later version.
87 *
88 * The GNU General Public License can be found at
89 * http://www.gnu.org/copyleft/gpl.html.
90 *
91 * This script is distributed in the hope that it will be useful,
92 * but WITHOUT ANY WARRANTY; without even the implied warranty of
93 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94 * GNU General Public License for more details.
95 *
96 * This copyright notice MUST APPEAR in all copies of the script!
97 ***************************************************************/
98
99 require_once(t3lib_extMgm::extPath('extbase', 'class.tx_extbase_dispatcher.php'));
100
101 /**
102 * Base testcase for the extbase extension. Currently it only registers the autoloader.
103 */
104 abstract class Tx_Extbase_Base_testcase extends tx_phpunit_testcase {
105 public function __construct() {
106 parent::__construct();
107 $dispatcher = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
108 spl_autoload_register(array($dispatcher, 'autoLoadClasses'));
109 }
110 }
111 ?>