public function testAssertAllNumeric() { $this->
assertTrue(Inspector::
assertAllNumeric([1, '2', 3.14
]));
$this->
assertFalse(Inspector::
assertAllNumeric([1, 'two', 3.14
]));
} /**
* Tests asserting strstr() or stristr() match.
*
* @covers ::assertAllMatch
*/
public function testAssertAllMatch() { $this->
assertTrue(Inspector::
assertAllMatch('f',
['fee', 'fi', 'fo'
]));
$this->
assertTrue(Inspector::
assertAllMatch('F',
['fee', 'fi', 'fo'
]));
$this->
assertTrue(Inspector::
assertAllMatch('f',
['fee', 'fi', 'fo'
], TRUE
));
$this->
assertFalse(Inspector::
assertAllMatch('F',
['fee', 'fi', 'fo'
], TRUE
));
$this->
assertFalse(Inspector::
assertAllMatch('e',
['fee', 'fi', 'fo'
]));
$this->
assertFalse(Inspector::
assertAllMatch('1',
[12
]));
} /**
* Tests asserting regular expression match.
*
* @covers ::assertAllRegularExpressionMatch
*/