public createServer ( string[] | null $methods = [] ) : Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject | ||
$methods | string[] | null | |
return | Kraken\Network\NetworkComponentAwareInterface | PHPUnit_Framework_MockObject_MockObject |
public function createServer($methods = [])
{
$listener = $this->getMock(SocketListener::class, [], [], '', false);
return $this->getMock(SocketServer::class, $methods, [$listener]);
}