public function test_paralell_download() { $this->assertEmptyPool(); for ($i = 0; $i < 2; ++$i) { Curl::download('http://bfanger.nl/', \Sledgehammer\TMP_DIR . 'curltest' . $i . '.downoad', [], true); } Curl::synchronize(); $this->assertEmptyPool(); for ($i = 0; $i < 2; ++$i) { unlink(\Sledgehammer\TMP_DIR . 'curltest' . $i . '.downoad'); } }