public function CounterTest::testSetNotFloatOrInt in Purge 8.3
@covers ::disableSet @dataProvider providerTestSetNotFloatOrInt()
File
- tests/
src/ Unit/ Counter/ CounterTest.php, line 101
Class
- CounterTest
- @coversDefaultClass \Drupal\purge\Counter\Counter
Namespace
Drupal\Tests\purge\Unit\CounterCode
public function testSetNotFloatOrInt($value) : void {
$counter = new Counter();
$this
->expectException(BadBehaviorException::class);
$this
->expectExceptionMessage('Given $value is not a integer or float.');
$counter
->set($value);
}