File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ class OTPTest extends TestCase
1414{
1515 protected $ container = [];
1616
17+ protected function setUp (): void
18+ {
19+ parent ::setUp ();
20+ $ this ->container = [];
21+ }
1722 /**
1823 * Define environment setup.
1924 *
@@ -40,7 +45,6 @@ public function test_send_otp()
4045
4146 // make sure there was exacly on request
4247 $ this ->assertCount (1 , $ this ->container );
43- $ this ->container = [];
4448 }
4549
4650 public function test_resend_otp ()
@@ -58,7 +62,6 @@ public function test_resend_otp()
5862
5963 // make sure there was exacly on request
6064 $ this ->assertCount (1 , $ this ->container );
61- $ this ->container = [];
6265 }
6366
6467 public function test_verify_otp ()
@@ -75,7 +78,6 @@ public function test_verify_otp()
7578
7679 // make sure there was exacly on request
7780 $ this ->assertCount (1 , $ this ->container );
78- $ this ->container = [];
7981 }
8082
8183 protected function createMockHttpClient (
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ class SMSTest extends TestCase
1414{
1515 protected $ container = [];
1616
17+ protected function setUp (): void
18+ {
19+ parent ::setUp ();
20+ $ this ->container = [];
21+ }
22+
1723 /**
1824 * Define environment setup.
1925 *
@@ -42,7 +48,6 @@ public function test_send_otp()
4248
4349 // make sure there was exacly on request
4450 $ this ->assertCount (1 , $ this ->container );
45- $ this ->container = [];
4651 }
4752
4853 protected function createMockHttpClient (
You can’t perform that action at this time.
0 commit comments