Completed
Push — master ( 93a702...008e2c )
by Alexander
03:47
created

RemoteUrl::getPageContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * This file is part of the phpunit-mink library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/aik099/phpunit-mink
9
 */
10
11
namespace aik099\PHPUnit\RemoteCoverage;
12
13
14
/**
15
 * Class makes request to remote server and returns url.
16
 *
17
 * @method \Mockery\Expectation shouldReceive(string $name)
18
 */
19
class RemoteUrl
20
{
21
22
	/**
23
	 * Returns content of the page from given URL.
24
	 *
25
	 * @param string $url Page URL.
26
	 *
27
	 * @return string
28
	 */
29 1
	public function getPageContent($url)
30
	{
31 1
		return file_get_contents($url);
32
	}
33
34
}
35