Example #1
0
 /**
  *
  * @dataProvider providerTestGetFile
  */
 public function testGetFile($url, $filePath, $assertStatusCode)
 {
     unlink($filePath);
     $this->assertFalse(file_exists($filePath));
     $SUT = new HttpRequest();
     $statusCode = $SUT->getFile($url, $filePath);
     $this->assertTrue(file_exists($filePath));
     $this->assertSame($assertStatusCode, $statusCode);
 }