| @@ 67-75 (lines=9) @@ | ||
| 64 | * |
|
| 65 | * @return array |
|
| 66 | */ |
|
| 67 | public function constructorGoodData() |
|
| 68 | { |
|
| 69 | return [ |
|
| 70 | 'type is null, price is null' => [null, null], |
|
| 71 | 'type is null, price is float' => [null, 1.0], |
|
| 72 | 'type is string, price is null' => ['a type', null], |
|
| 73 | 'type is string, price is float' => ['a type', 1.0], |
|
| 74 | ]; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Verify basic behavior of fromArray(). |
|
| @@ 89-97 (lines=9) @@ | ||
| 86 | * |
|
| 87 | * @return array |
|
| 88 | */ |
|
| 89 | public function constructorGoodData() |
|
| 90 | { |
|
| 91 | return [ |
|
| 92 | 'type is null, url is null' => [null, null], |
|
| 93 | 'type is string, url is null' => ['a type', null], |
|
| 94 | 'type is null, url is string' => [null, 'a url'], |
|
| 95 | 'type is string, url is string' => ['a type', 'a url'], |
|
| 96 | ]; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Verify basic behavior of fromArray(). |
|