public function testItThrowsOnStringishThreshold() { $this->
expectException(\InvalidArgumentException::
class);
$this->
expectExceptionMessage('forty-two'
);
Configuration::
fromUrlEncodedString('max[total]=forty-two'
);
} public function testItNoticesExceededTotalThreshold() { $configuration = Configuration::
fromUrlEncodedString('max[total]=3'
);
$this->
assertTrue($configuration->
tolerates($this->
buildGroups([ 'unsilenced' => 1,
'self' => 0,
'legacy' => 1,
'other' => 0,
'direct' => 1,
'indirect' => 1,
])));
$this->
assertFalse($configuration->
tolerates($this->
buildGroups([ 'unsilenced' => 1,
'self' => 1,
'legacy' => 1,