Search code examples
phpunit-testinggroovyassert

Is there a PHP equivalent for Groovy's Power Asserts?


Is there a PHP equivalent for Groovy's Power Asserts?


Solution

  • 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.