elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

? is blank does not work on non-strings #187

Closed elliotchance closed 10 years ago

elliotchance commented 10 years ago

This should work:

$this->assert(123, is_not_blank);

Blank is defined as something that can be cast to a string that yields a zero length result.

elliotchance commented 10 years ago

If its testing against a string it should be up tot the person to convert it as such, and accept the PHP error if it does not convert correctly.