function it_should_provide_an_array_of_batches_when_calling_to_array() { $batch = new Batch(LDAP_MODIFY_BATCH_REPLACE, 'foo', ['bar']); $this->add($batch); $this->toArray()->shouldContain($batch); }