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
76
76
return $ containerBuilder ->build ();
77
77
}
78
78
79
+ public function getEnvironment () : string
80
+ {
81
+ return $ this ->environment ;
82
+ }
83
+
79
84
/**
80
85
* Override this method to customize the container builder before it is used.
81
86
*/
Original file line number Diff line number Diff line change @@ -75,4 +75,12 @@ public function uses_provided_config()
75
75
$ this ->assertEquals ('biz ' , $ container ->get ('foo ' ));
76
76
$ this ->assertEquals ('bar ' , $ container ->get ('bar ' ));
77
77
}
78
+
79
+ /** @test */
80
+ public function exposes_the_environment ()
81
+ {
82
+ $ this ->kernel = new Kernel ;
83
+
84
+ $ this ->assertEquals ('prod ' , $ this ->kernel ->getEnvironment ());
85
+ }
78
86
}
You can’t perform that action at this time.
0 commit comments