Completed
Push — master ( d78611...69e30d )
by Tõnis
09:46
created

EmailAddressTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 3
dl 0
loc 36
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A _before() 0 4 1
A _after() 0 3 1
A testSomeFeature() 0 4 1
A baseObject() 0 4 1
1
<?php
2
namespace andmemasin\emailsvalidator;
3
4
use andmemasin\emailsvalidator\models\EmailAddress;
5
use andmemasin\myabstract\test\ModelTestTrait;
6
use Codeception\Stub;
7
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
}