Completed
Branch develop (c4bcdd)
by Stephen
06:03
created

TransformableTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_provides_the_expected_collection_type_when_calling_newCollection() 0 6 1
1
<?php
2
3
namespace Spinen\Transformers;
4
5
use Spinen\Transformers\TestCase;
6
use Spinen\Transformers\Transformable;
7
use Spinen\Transformers\TransformableCollection;
8
9
class TransformableTest extends TestCase
10
{
11
    /**
12
     * @test
13
     * @group unit
14
     */
15
    public function it_provides_the_expected_collection_type_when_calling_newCollection()
16
    {
17
        $model = new ModelStub();
18
19
        $this->assertInstanceOf(TransformableCollection::class, $model->newCollection());
20
    }
21
}
22
23
class ModelStub
24
{
25
    use Transformable;
26
}
27