Passed
Push — master ( 41a654...59e86c )
by Jean Paul
01:35
created

XmlExtractorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExtract() 0 5 1
1
<?php
2
3
namespace Coco\SourceWatcher\Tests\Core\Extractors;
4
5
use Coco\SourceWatcher\Core\Extractors\XmlExtractor;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class XmlExtractorTest
10
 * @package Coco\SourceWatcher\Tests\Core\Extractors
11
 */
12
class XmlExtractorTest extends TestCase
13
{
14
    /**
15
     *
16
     */
17
    public function testExtract () : void
18
    {
19
        $xmlExtractor = new XmlExtractor();
20
21
        $this->assertNull( $xmlExtractor->extract() );
0 ignored issues
show
Bug introduced by
Are you sure the usage of $xmlExtractor->extract() targeting Coco\SourceWatcher\Core\...XmlExtractor::extract() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
22
    }
23
}
24