You are here

public function CounterTest::testDecrementNotFloatOrInt in Purge 8.3

@covers ::decrement @dataProvider providerTestDecrementNotFloatOrInt()

File

tests/src/Unit/Counter/CounterTest.php, line 200

Class

CounterTest
@coversDefaultClass \Drupal\purge\Counter\Counter

Namespace

Drupal\Tests\purge\Unit\Counter

Code

public function testDecrementNotFloatOrInt($value) : void {
  $counter = new Counter(10);
  $this
    ->expectException(BadBehaviorException::class);
  $this
    ->expectExceptionMessage('Given $amount is not a integer or float.');
  $counter
    ->decrement($value);
}