Skip to content

Commit

Permalink
added EmailTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbagg1 committed Dec 14, 2023
1 parent 17d9833 commit 7c092ea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions service-api/app/test/AppTest/Service/Log/Output/EmailTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php


declare(strict_types=1);

namespace CommonTest\Service\Log\Output;

use Common\Service\Log\Output\Email;
use PHPUnit\Framework\TestCase;

class EmailTest extends TestCase
{
/** @test */
public function it_hides_a_string()
{
$email = new Email('[email protected]');
$this->assertMatchesRegularExpression('/.*/', (string)$email);
$this->assertStringNotContainsString('[email protected]', (string)$email);
}
}

0 comments on commit 7c092ea

Please sign in to comment.