Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56964407
DownloadWithWgetTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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
Fri, Nov 13, 22:12 (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4250734
Default Alt Text
DownloadWithWgetTest.php (712 B)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment