Stabilize discovery workflow
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Domovoy\Tests\Discovery;
|
||||
|
||||
use Domovoy\Services\Discovery\TcpPortScanner;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class TcpPortScannerTest extends TestCase
|
||||
{
|
||||
public function testTimedOutConnectionIsNotReportedAsOpen(): void
|
||||
{
|
||||
$scanner = new TcpPortScanner();
|
||||
|
||||
$openPorts = $scanner->scan('10.255.255.1', [9100], 50, 1);
|
||||
|
||||
self::assertSame([], $openPorts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user