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

XmlExtractorTest::testExtract()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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