Completed
Push — master ( cb46a0...974133 )
by Marc
04:34
created

XmlLegacyRendererTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 0 Features 3
Metric Value
wmc 1
c 4
b 0
f 3
lcom 0
cbo 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIntegrity() 0 14 1
1
<?php
2
3
namespace Kaloa\Tests;
4
5
use PHPUnit_Framework_TestCase;
6
use Kaloa\Renderer\Config;
7
use Kaloa\Renderer\Factory;
8
9
class XmlLegacyRendererTest extends PHPUnit_Framework_TestCase
10
{
11
    public function testIntegrity()
12
    {
13
        // Environment
14
        #$contentToRender = file_get_contents(__DIR__ . '/examples/xmllegacy/arrayobject.xml');
0 ignored issues
show
Unused Code Comprehensibility introduced by
47% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
15
        $contentToRender = file_get_contents(__DIR__ . '/examples/xmllegacy/youtube.xml');
16
        $resourceBasePath = __DIR__ . '/examples/xmllegacy';
17
        $filter = 'xmllegacy';
18
19
        $config = new Config($resourceBasePath);
20
21
        $renderer = Factory::createRenderer($filter, $config);
22
23
        $renderer->render($contentToRender);
24
    }
25
}
26