Passed
Pull Request — master (#9)
by Alexander
01:45
created

ShoRecordTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCorrect() 0 5 1
1
<?php
2
3
namespace Horat1us\Yii\Tests\Traits;
4
5
use Horat1us\Yii\Tests\Mocks\ShoRecordModelMock;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class ShoRecordTraitTest
10
 * @package Horat1us\Yii\Tests\Traits
11
 */
12
class ShoRecordTraitTest extends TestCase
13
{
14
    public function testCorrect()
15
    {
16
        $fieldName = ShoRecordModelMock::fieldName('test');
17
        $this->assertEquals('"sho_record_model_mock"."test"', $fieldName);
18
    }
19
}