Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class StackOverflowWebPageSourceTest extends TestCase |
||
10 | { |
||
11 | public function testGetResults () : void |
||
12 | { |
||
13 | $url = "https://stackoverflow.com/jobs?q=PHP&l=Florida+USA&d=100&u=Miles"; |
||
14 | |||
15 | $webPageSource = new StackOverflowWebPageSource( $url ); |
||
16 | |||
17 | $results = $webPageSource->getResults(); |
||
18 | $this->assertNotNull( $results ); |
||
19 | $this->assertNotEmpty( $results ); |
||
20 | } |
||
21 | |||
22 | public function testGetResultsChangeUrlAfterInstance () : void |
||
33 | } |
||
34 | |||
35 | public function testGetResultsOnEmptyUrl () : void |
||
43 |