init
This commit is contained in:
19
vendor/react/socket/tests/FixedUriConnectorTest.php
vendored
Executable file
19
vendor/react/socket/tests/FixedUriConnectorTest.php
vendored
Executable 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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user