@@ -27,9 +27,6 @@ class Nette extends Framework
2727 /** @var Container */
2828 protected $ container ;
2929
30- /** @var RobotLoader */
31- private $ robotLoader ;
32-
3330 /** @var string */
3431 private $ suite ;
3532
@@ -40,7 +37,6 @@ public function __construct($config = array())
4037 {
4138 $ this ->config = array (
4239 'configFiles ' => array (),
43- 'robotLoader ' => array (),
4440 );
4541 parent ::__construct ($ config );
4642 }
@@ -49,10 +45,8 @@ protected function validateConfig()
4945 {
5046 parent ::validateConfig ();
5147 Validators::assertField ($ this ->config , 'configFiles ' , 'array ' );
52- Validators::assertField ($ this ->config , 'robotLoader ' , 'array ' );
5348 }
5449
55- // TODO: separate RobotLoader module (autoloading)
5650 // TODO: separate Tracy module (exceptions logging)
5751 // TODO: separate ArachneTools module (debugContent method)
5852 public function _beforeSuite ($ settings = array ())
@@ -80,22 +74,11 @@ public function _beforeSuite($settings = array())
8074 $ this ->configurator ->addConfig ($ file );
8175 }
8276
83- $ this ->robotLoader = $ this ->configurator ->createRobotLoader ();
84- foreach ($ this ->config ['robotLoader ' ] as $ dir ) {
85- $ this ->robotLoader ->addDirectory ($ dir );
86- }
87- $ this ->robotLoader ->register ();
88-
8977 // Generates and loads the container class.
9078 // The actual container is created later.
9179 $ this ->configurator ->createContainer ();
9280 }
9381
94- public function _afterSuite ()
95- {
96- return spl_autoload_unregister (array ($ this ->robotLoader , 'tryLoad ' ));
97- }
98-
9982 public function _before (TestCase $ test )
10083 {
10184 $ class = $ this ->getContainerClass ();
0 commit comments