| 1 | <?php |
||
| 8 | class EmailAddressTest extends \Codeception\Test\Unit |
||
| 9 | { |
||
| 10 | use ModelTestTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var \andmemasin\emailsvalidator\UnitTester |
||
| 14 | */ |
||
| 15 | protected $tester; |
||
| 16 | |||
| 17 | /** @var EmailAddress */ |
||
| 18 | protected $model; |
||
| 19 | |||
| 20 | protected function _before() |
||
| 21 | { |
||
| 22 | $this->model = $this->baseObject(); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function _after() |
||
| 26 | { |
||
| 27 | } |
||
| 28 | |||
| 29 | // tests |
||
| 30 | public function testSomeFeature() |
||
| 31 | { |
||
| 32 | |||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns a good working LimeSurvey collector |
||
| 37 | * @return EmailAddress |
||
| 38 | */ |
||
| 39 | public function baseObject(){ |
||
| 40 | $model = new EmailAddress(); |
||
| 41 | return $model; |
||
| 42 | } |
||
| 43 | } |