/** * @param \NetBox\ProxyManager\Proxy\Proxy $proxy * @return \OutOfBoundsException|void * @throws \OutOfBoundsException */ public function unSelect(Proxy $proxy) { parent::unSelect($proxy); $this->sortList(); }
public function testUnSelectExceptionHasRightMessage() { $this->setExpectedException('OutOfBoundsException', 'This proxy not in list: "127.0.0.1:80@http"'); $proxy = new Proxy('127.0.0.1:80'); $this->object->unSelect($proxy); }