Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 committed Sep 28, 2024
1 parent ef027d3 commit efc5719
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/Phing/Test/Listener/DisguiseLoggerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Phing\Test\Listener;

use Phing\Listener\BuildEvent;
use Phing\Listener\DisguiseLogger;
use Phing\Project;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class DisguiseLoggerTest extends TestCase
{
private DisguiseLogger $logger;

public function setUp(): void
{
$this->logger = new DisguiseLogger();
}

/**
* @test
*/
public function maskOutput()
{
$event = new BuildEvent(new Project());
$event->setMessage('https://foo:[email protected]', $event->getPriority());
$this->assertNull($this->logger->messageLogged($event));
}
}

0 comments on commit efc5719

Please sign in to comment.