Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F34982103
DownloadWithWgetTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
712 B
Referenced Files
None
Subscribers
None
DownloadWithWgetTest.php
View Options
<?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 êtes ici"
,
$this
->
instance
->
getFileContents
(
"http://www.perdu.com"
)
);
}
}
File Metadata
Details
Attached
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)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment