You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the code to throw OutOfBoundsException (or have an explicit throw statement for AssertionError) instead of using assert() so that the behavior of TextEdit::applyEdits is always consistent. If TextEdit::applyEdits is a public API (is it? I don't see it used anywhere), this may make sense to do.
Skip the test based on the value of zend.assertions.
The text was updated successfully, but these errors were encountered:
Steps to reproduce: set
zend.assertions = -1
in the PHP ini, run TextEditTest in phpunit.See http://php.net/manual/en/function.assert.php#function.assert.expectations
Solutions:
assert()
so that the behavior of TextEdit::applyEdits is always consistent. If TextEdit::applyEdits is a public API (is it? I don't see it used anywhere), this may make sense to do.The text was updated successfully, but these errors were encountered: