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\CounterCode
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()));
}