Assert for all instances are of some class
vv12131415 opened this issue · comments
VV commented
Is there something similar to https://github.com/beberlei/assert#all-helper
Assertion::allIsInstanceOf(array(new \stdClass, new \stdClass), 'stdClass');
in beberlei/assert ?
Gert de Pagter commented
Yes, the example used in the readme should be valid for your use-case: https://github.com/webmozart/assert#collection-assertions
VV commented
omg... sorry, my bad