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

InterfaceTest

Complexity

Total Complexity 0

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 26
wmc 0
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