Passed
Push — master ( ec1cc3...20e19d )
by Jean Paul
08:26
created

StackOverflowWebPageSourceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetResults() 0 9 1
1
<?php
2
3
namespace Coco\SourceWatcher\Tests\Vendors\StackOverflow;
4
5
use Coco\SourceWatcher\Vendors\StackOverflow\StackOverflowWebPageSource;
6
use PHPUnit\Framework\TestCase;
7
8
class StackOverflowWebPageSourceTest extends TestCase
9
{
10
    public function testGetResults () : void
11
    {
12
        $url = "https://stackoverflow.com/jobs?q=PHP&l=Florida+USA&d=100&u=Miles";
13
14
        $webPageSource = new StackOverflowWebPageSource( $url );
15
16
        $results = $webPageSource->getResults();
17
        $this->assertNotNull( $results );
18
        $this->assertNotEmpty( $results );
19
    }
20
}
21