This commit is contained in:
2022-10-23 01:39:27 +02:00
parent 8c17aab483
commit 1929b84685
4130 changed files with 479334 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace React\Tests\Socket;
use React\Socket\FixedUriConnector;
use React\Tests\Socket\TestCase;
class FixedUriConnectorTest extends TestCase
{
public function testWillInvokeGivenConnector()
{
$base = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock();
$base->expects($this->once())->method('connect')->with('test')->willReturn('ret');
$connector = new FixedUriConnector('test', $base);
$this->assertEquals('ret', $connector->connect('ignored'));
}
}