public function testGet() { $listName = 'bpteam'; $proxyIp = '127.0.0.1:8080'; $properties = ['anonym' => false, 'referer' => true, 'post' => true, 'get' => true, 'cookie' => false, 'country' => 'China', 'last_check' => 13255444887.0, 'starttransfer' => 21, 'upload_speed' => 1, 'download_speed' => 2, 'source' => ['proxy.net'], 'protocol' => ['http']]; $proxy = new Proxy(); $proxy->open($listName); $proxy->add($proxyIp, $properties); $getProxy = $proxy->get(); $this->assertTrue(is_array($getProxy)); $this->assertArrayHasKey('proxy', $getProxy); $this->assertEquals($proxyIp, $getProxy['proxy']); }