| 1 | <?php |
||
| 15 | abstract class ParserTestBase extends \PHPUnit_Framework_TestCase { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return ValueParser |
||
| 19 | */ |
||
| 20 | abstract protected function getInstance(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return array[] |
||
| 24 | */ |
||
| 25 | abstract public function validInputProvider(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @dataProvider validInputProvider |
||
| 29 | */ |
||
| 30 | public function testParseWithValidInputs( $value, DataValue $expected ) { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array[] |
||
| 39 | */ |
||
| 40 | abstract public function invalidInputProvider(); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @dataProvider invalidInputProvider |
||
| 44 | */ |
||
| 45 | public function testParseWithInvalidInputs( $value ) { |
||
| 49 | |||
| 50 | } |
||
| 51 |