1 | <?php |
||
17 | abstract class BaseElementTest extends TestCase { |
||
18 | use PHPUnit4And6Compat; |
||
19 | |||
20 | public function invalidConstructorProvider() { |
||
23 | |||
24 | /** |
||
25 | * Creates and returns a new instance of the concrete class. |
||
26 | * |
||
27 | * @since 3.0 |
||
28 | * |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function newInstance() { |
||
37 | |||
38 | /** |
||
39 | * Returns the name of the concrete class tested by this test. |
||
40 | * |
||
41 | * @since 3.0 |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public abstract function getClass(); |
||
46 | |||
47 | /** |
||
48 | * @since 3.0 |
||
49 | * |
||
50 | * @return array [instance, constructor args] |
||
51 | */ |
||
52 | public function instanceProvider() { |
||
62 | |||
63 | public abstract function validConstructorProvider(); |
||
64 | |||
65 | /** |
||
66 | * @dataProvider validConstructorProvider |
||
67 | * |
||
68 | * @since 3.0 |
||
69 | */ |
||
70 | public function testGivenValidArguments_constructorDoesNotThrowException() { |
||
74 | |||
75 | /** |
||
76 | * @dataProvider invalidConstructorProvider |
||
77 | * |
||
78 | * @since 3.0 |
||
79 | */ |
||
80 | public function testGivenInvalidArguments_constructorThrowsException() { |
||
84 | |||
85 | } |
||
86 |