You are here

public function BrazilianIdsServiceTest::testCleanCpf in Brazilian IDs 8

Tests cleaning a CPF numbers.

File

tests/src/Unit/BrazilianIdsServiceTest.php, line 19

Class

BrazilianIdsServiceTest
@coversDefaultClass \Drupal\brazilian_ids\BrazilianIdsService @group brazilian_ids

Namespace

Drupal\Tests\brazilian_ids\Unit

Code

public function testCleanCpf() {
  $this
    ->assertEquals('29979245883', $this->service
    ->clean('299.792.458-83'));
}