You are here

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\Counter

Code

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);
}