File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ public function createContainer() : Container
7676 return $ containerBuilder ->build ();
7777 }
7878
79+ public function getEnvironment () : string
80+ {
81+ return $ this ->environment ;
82+ }
83+
7984 /**
8085 * Override this method to customize the container builder before it is used.
8186 */
Original file line number Diff line number Diff line change @@ -75,4 +75,12 @@ public function uses_provided_config()
7575 $ this ->assertEquals ('biz ' , $ container ->get ('foo ' ));
7676 $ this ->assertEquals ('bar ' , $ container ->get ('bar ' ));
7777 }
78+
79+ /** @test */
80+ public function exposes_the_environment ()
81+ {
82+ $ this ->kernel = new Kernel ;
83+
84+ $ this ->assertEquals ('prod ' , $ this ->kernel ->getEnvironment ());
85+ }
7886}
You can’t perform that action at this time.
0 commit comments