/** * @covers \Onurb\Bundle\YumlBundle\Curl\Curl */ public function testDowloadFile() { $fileUrl = 'http://yuml.me/15a98c92.png'; $fileName = 'test.png'; $this->assertFalse(file_exists($fileName)); $curl = new Curl($fileUrl); $curl->setOutput($fileName); $curl->getResponse(); $this->assertTrue(file_exists($fileName)); if (file_exists($fileName)) { unlink($fileName); } }