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

RemoteUrl   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPageContent() 0 4 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