public function test_ShouldGetNoWaitEventOnNonWaitingProxy()
 {
     $waitingTime = 0;
     $proxyMock = $this->getRotatingProxyMock("test", true, $waitingTime);
     $proxies = [$proxyMock];
     $useOwnIp = true;
     $rotator = new ProxyRotator($proxies, $useOwnIp);
     // prepare the event listener
     $eventProxy = null;
     $checkWaitingTime = function (WaitingEvent $event) use(&$eventProxy) {
         $proxy = $event->getProxy();
         $eventProxy = $proxy;
         $event->skipWaiting();
     };
     $rotator->getEmitter()->on(ProxyRotator::EVENT_ON_WAIT, $checkWaitingTime);
     $client = new Client();
     $request = $client->createRequest("GET", "/");
     $rotator->setupRequest($request);
     $this->assertEquals(null, $eventProxy, "Did not get the correct proxy from the WaitingEvent");
 }