You are here

public function CounterTest::testGet in Purge 8.3

@covers ::get

@dataProvider providerTestGet()

File

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

Class

CounterTest
@coversDefaultClass \Drupal\purge\Counter\Counter

Namespace

Drupal\Tests\purge\Unit\Counter

Code

public function testGet($value) : void {
  $counter = new Counter($value);
  $this
    ->assertEquals($value, $counter
    ->get());
  $this
    ->assertTrue(is_float($counter
    ->get()));
  $this
    ->assertFalse(is_int($counter
    ->get()));
}