Groovy的Power Asserts ？ p> div>
Is there a PHP equivalent for Groovy's Power Asserts?
PHP has a built-in
assert function that's a far cry from Power Asserts, but it's all you get. For something more powerful the only option is to use assertions such as those provided by unit-testing frameworks, but that's still not as good as Power Asserts.