File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,38 @@ public function testMakeClient(): void
6565 );
6666 }
6767
68+ public function testSetEnvironment (): void
69+ {
70+ if (method_exists ($ this , 'expectUserDeprecationMessage ' )) {
71+ $ this ->expectUserDeprecationMessage ('Setting "environment" property is deprecated, please use static::$env. ' );
72+ } else {
73+ $ this ->markTestSkipped ('expectUserDeprecationMessage is not available. ' );
74+ }
75+
76+ $ this ->environment = 'test ' ;
77+ }
78+
79+ public function testIssetEnvironment (): void
80+ {
81+ if (method_exists ($ this , 'expectUserDeprecationMessage ' )) {
82+ $ this ->expectUserDeprecationMessage ('Checking "environment" property is deprecated, please use static::$env. ' );
83+ }
84+
85+ self ::assertTrue (isset ($ this ->environment ));
86+ }
87+
88+ public function testGetEnvironment (): void
89+ {
90+ if (method_exists ($ this , 'expectUserDeprecationMessage ' )) {
91+ $ this ->expectUserDeprecationMessage ('Getting "environment" property is deprecated, please use static::$env. ' );
92+ }
93+
94+ $ this ->assertSame (
95+ 'test ' ,
96+ $ this ->environment ,
97+ );
98+ }
99+
68100 public function testGetUrl (): void
69101 {
70102 $ path = $ this ->getUrl (
You can’t perform that action at this time.
0 commit comments