<?php new Promise\Promise(function () {}, $this->expectCallableNever()),
);
$this->resolver->expects($this->exactly(2))->method('resolveAll')->with($this->equalTo('example.com'), $this->anything())->will($this->returnCallback(function () use (&$lookupAttempts) {
return array_shift($lookupAttempts);
}));
$this->tcp->expects($this->exactly(2))->method('connect')->with($this->isType('string'))->will($this->returnCallback(function () use (&$connectionAttempts) {
return array_shift($connectionAttempts);