12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace EasySwoole\Validate\tests;
- use EasySwoole\Validate\Validate;
- use PHPUnit\Framework\TestCase;
- class BaseTestCase extends TestCase
- {
-
- protected $validate;
-
- public function setUp(): void
- {
-
- $this->freeValidate();
- parent::setUp();
- }
-
- public function testValidateClass()
- {
- $this->assertInstanceOf(Validate::class, $this->validate, 'validate is not instance of Validate class');
- }
-
- public function freeValidate()
- {
- $this->validate = new Validate();
- }
- }
|