Skip to content

Commit 3aedc6f

Browse files
committed
Remove loop argment from tests
1 parent e924790 commit 3aedc6f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function setUpBeforeClass()
2020
$resolver = $factory->create('6.6.6.6', self::$loop);
2121
$connector = new React\SocketClient\Connector(self::$loop, $resolver);
2222

23-
self::$factory = new Factory(self::$loop, $connector);
23+
self::$factory = new Factory($connector);
2424
}
2525

2626
public function testPing()

tests/FactoryTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function setUp()
1717
$resolver = $factory->create('6.6.6.6', $this->loop);
1818
$connector = new React\SocketClient\Connector($this->loop, $resolver);
1919

20-
$this->factory = new Factory($this->loop, $connector);
20+
$this->factory = new Factory($connector);
2121
}
2222

2323
public function testPrequisiteServerAcceptsAnyPassword()
@@ -82,11 +82,4 @@ public function testClientInvalidAddress()
8282

8383
$this->expectPromiseReject($promise);
8484
}
85-
86-
public function testClientRequiresConnector()
87-
{
88-
$factory = new Factory($this->loop);
89-
90-
$this->expectPromiseReject($factory->createClient());
91-
}
9285
}

0 commit comments

Comments
 (0)