Passed
Push — master ( 1ddf5f...c8f01d )
by Stephen
22:47 queued 22:12
created

InterfaceTest::interface_is_implemented()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Sfneal\Testing\Utils\Traits;
4
5
trait InterfaceTest
6
{
7
    // todo: add tests
8
9
    use AssertInterface;
10
11
    /**
12
     * Retrieve the interface class that should be tested.
13
     *
14
     * @return string
15
     */
16
    abstract public function interface(): string;
17
18
    /**
19
     * Retrieve an array of classes that should implement the interface.
20
     *
21
     * @return array
22
     */
23
    abstract public function classes(): array;
24
25
    /**
26
     * Retrieve an array of method names that should exist in the interface.
27
     *
28
     * @return array
29
     */
30
    abstract public function methods(): array;
31
}
32