Skip to content

Commit ae8ca97

Browse files
committed
tests(cleanup): cleanup some test
1 parent e533dbd commit ae8ca97

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tests/OTPTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

tests/SMSTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)