@@ -27,9 +27,6 @@ class Nette extends Framework
27
27
/** @var Container */
28
28
protected $ container ;
29
29
30
- /** @var RobotLoader */
31
- private $ robotLoader ;
32
-
33
30
/** @var string */
34
31
private $ suite ;
35
32
@@ -40,7 +37,6 @@ public function __construct($config = array())
40
37
{
41
38
$ this ->config = array (
42
39
'configFiles ' => array (),
43
- 'robotLoader ' => array (),
44
40
);
45
41
parent ::__construct ($ config );
46
42
}
@@ -49,10 +45,8 @@ protected function validateConfig()
49
45
{
50
46
parent ::validateConfig ();
51
47
Validators::assertField ($ this ->config , 'configFiles ' , 'array ' );
52
- Validators::assertField ($ this ->config , 'robotLoader ' , 'array ' );
53
48
}
54
49
55
- // TODO: separate RobotLoader module (autoloading)
56
50
// TODO: separate Tracy module (exceptions logging)
57
51
// TODO: separate ArachneTools module (debugContent method)
58
52
public function _beforeSuite ($ settings = array ())
@@ -80,22 +74,11 @@ public function _beforeSuite($settings = array())
80
74
$ this ->configurator ->addConfig ($ file );
81
75
}
82
76
83
- $ this ->robotLoader = $ this ->configurator ->createRobotLoader ();
84
- foreach ($ this ->config ['robotLoader ' ] as $ dir ) {
85
- $ this ->robotLoader ->addDirectory ($ dir );
86
- }
87
- $ this ->robotLoader ->register ();
88
-
89
77
// Generates and loads the container class.
90
78
// The actual container is created later.
91
79
$ this ->configurator ->createContainer ();
92
80
}
93
81
94
- public function _afterSuite ()
95
- {
96
- return spl_autoload_unregister (array ($ this ->robotLoader , 'tryLoad ' ));
97
- }
98
-
99
82
public function _before (TestCase $ test )
100
83
{
101
84
$ class = $ this ->getContainerClass ();
0 commit comments