|
@@ 176-183 (lines=8) @@
|
| 173 |
|
}; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
public function it_create_empty_array_loop_builder() |
| 177 |
|
{ |
| 178 |
|
$closure = function(NotifynderBuilder $builder,$data,$key) |
| 179 |
|
{ |
| 180 |
|
return $builder->to(1)->from(2)->url('notifynder.io')->category(1); |
| 181 |
|
}; |
| 182 |
|
$this->shouldThrow('InvalidArgumentException')->during('loop', [[], $closure]); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
public function it_create_empty_collection_loop_builder() |
| 186 |
|
{ |
|
@@ 185-192 (lines=8) @@
|
| 182 |
|
$this->shouldThrow('InvalidArgumentException')->during('loop', [[], $closure]); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
public function it_create_empty_collection_loop_builder() |
| 186 |
|
{ |
| 187 |
|
$closure = function(NotifynderBuilder $builder,$data,$key) |
| 188 |
|
{ |
| 189 |
|
return $builder->to(1)->from(2)->url('notifynder.io')->category(1); |
| 190 |
|
}; |
| 191 |
|
$this->shouldThrow('InvalidArgumentException')->during('loop', [new Collection([]), $closure]); |
| 192 |
|
} |
| 193 |
|
} |
| 194 |
|
|