Class ToContain
Verify whether the value is all included.
$matcher = new ToContain([ 'foo' ]);
$matcher->match('foo'); //return true
$matcher = new ToContain([ 'foo', 'bar' ]); $matcher->match('foo'); //return false
$matcher = new ToContain([ 1, 2 ]);
$matcher->match([ 1, 2 ]); //return true
- expect\matcher\ToContain implements expect\matcher\ReportableMatcher
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToContain.php
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToContain.php
public
|
|
public
boolean
|
|
public
|
#
reportFailed(
Report the reason for the failure of positive evaluation. |
public
|
#
reportNegativeFailed(
Report the reason for the failure of negative evaluation. |