Class ToBeEmpty
Verify the length of the value is 0.
$matcher = new ToBeEmpty();
$matcher->match(""); //return true
$matcher->match("fo"); //return false
$matcher->match([ 1, 2 ]); //return false
$matcher->match(new ArrayIterator([ 1, 2 ])); //return false
- expect\matcher\ToBeEmpty implements expect\matcher\ReportableMatcher uses expect\matcher\LengthMatcherDelegatable
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeEmpty.php
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeEmpty.php
public
|
reportFailed(),
reportNegativeFailed()
|
match()
|
match(),
reportFailed(),
reportNegativeFailed()
|