| 1 | <?php |
||
| 10 | trait ContainerProvider |
||
| 11 | { |
||
| 12 | public function valueLazyProvider() |
||
| 13 | { |
||
| 14 | $func = function() { |
||
| 15 | return "test"; |
||
| 16 | }; |
||
| 17 | |||
| 18 | return [ |
||
| 19 | ["test", "test"], |
||
| 20 | [123, 123], |
||
| 21 | [true, true], |
||
| 22 | [$func, "test"] |
||
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function valueDynamicProvider() |
||
| 27 | { |
||
| 28 | $func = function() { |
||
| 29 | return "test"; |
||
| 30 | }; |
||
| 31 | |||
| 32 | return [ |
||
| 33 | ["test", "test"], |
||
| 34 | [123, 123], |
||
| 35 | [true, true] |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |