| Total Complexity | 3 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class UndefinedPropertyExceptionTest extends TestCase |
||
| 15 | { |
||
| 16 | public function dataProviderUndefinedPropertyException() : array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | [ |
||
| 20 | ReadOnly::class, |
||
| 21 | [ |
||
| 22 | 'nope' => 'foo', |
||
| 23 | ], |
||
| 24 | true, |
||
| 25 | false, |
||
| 26 | 'nope', |
||
| 27 | ], |
||
| 28 | [ |
||
| 29 | WriteOnly::class, |
||
| 30 | [ |
||
| 31 | 'nope' => 'foo', |
||
| 32 | ], |
||
| 33 | false, |
||
| 34 | false, |
||
| 35 | 'nope', |
||
| 36 | ], |
||
| 37 | [ |
||
| 38 | NudgesIncorrectly::class, |
||
| 39 | [ |
||
| 40 | 'Foo' => 'bar', |
||
| 41 | ], |
||
| 42 | true, |
||
| 43 | true, |
||
| 44 | 'nope', |
||
| 45 | ], |
||
| 46 | ]; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @dataProvider dataProviderUndefinedPropertyException |
||
| 51 | */ |
||
| 52 | public function testUndefinedPropertyException( |
||
| 74 | } |
||
| 75 | } |
||
| 77 |