@@ -48,54 +48,11 @@ public function testConfigOverride()
4848 $ this ->assertArrayHasKey ('configDir ' , $ config ['core ' ]);
4949 }
5050
51- /**
52- * @expectedException \Flint\Exception\InvalidControllersFileException
53- */
54- public function testInvalidControllersFileThrowsException ()
55- {
56- $ this ->config ['core ' ]['controllersFile ' ] = 'abcd12345.php ' ;
57-
58- $ app = App::getInstance ($ this ->config );
59- $ app ->loadControllers ();
60- }
61-
62- public function testLoadingRealControllers ()
63- {
64- $ app = App::getInstance ($ this ->config );
65-
66- $ controllers = $ app ->loadControllers ()->getControllers ();
67-
68- $ this ->assertTrue (is_array ($ controllers ));
69- $ this ->assertArrayHasKey ('fake ' , $ controllers );
70- $ this ->assertArrayNotHasKey ('testing ' , $ controllers );
71- }
72-
73- /**
74- * @expectedException \Flint\Exception\InvalidControllerException
75- */
76- public function testInvalidControllerThrowsException ()
77- {
78- $ this ->config ['core ' ]['controllersFile ' ] = '/controllers.invalid.php ' ;
79- $ app = App::getInstance ($ this ->config );
80-
81- $ app ->loadControllers ()
82- ->configureControllers ();
83- }
84-
85- public function testControllersLoadedIntoSilex ()
86- {
87- $ app = App::getInstance ($ this ->config );
88-
89- $ app ->loadControllers ()
90- ->configureControllers ();
91-
92- $ this ->assertArrayHasKey ('fake.controller ' , $ app );
93- }
94-
9551 public function testServicesLoadedIntoPimple ()
9652 {
9753 $ app = App::getInstance ($ this ->config );
9854
55+ $ app ->loadControllers ();
9956 $ app ->configureServices ();
10057
10158 $ this ->assertArrayHasKey ('Fake ' , $ app );
@@ -109,7 +66,7 @@ public function testRoutesAreLoadedInCorrectly()
10966 $ app = App::getInstance ($ this ->config );
11067
11168 $ app ->loadControllers ()
112- ->configureControllers ()
69+ ->configureServices ()
11370 ->configureRoutes ();
11471
11572 // Now see if the routes are loaded
0 commit comments