Page MenuHomeDevCentral

DownloadWithWgetTest.php
No OneTemporary

DownloadWithWgetTest.php

<?php
require 'pages/DownloadWithWget.php';
class DownloadWithWgetTest extends \PHPUnit_Framework_TestCase {
/**
* The object under test.
*
* @var object
*/
private $instance;
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*/
public function setUp () {
$this->instance = $this->getObjectForTrait('DownloadWithWget');
}
/**
* Tests getFileContents method
*/
public function testGetFileContents () {
$this->assertContains(
"* <----- vous &ecirc;tes ici",
$this->instance->getFileContents("http://www.perdu.com")
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jul 7, 17:37 (19 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3872470
Default Alt Text
DownloadWithWgetTest.php (712 B)

Event Timeline