Passed
Push — master ( 7bee4d...457c92 )
by Sebastian
01:54
created

XmlTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRead() 0 7 1
1
<?php
2
/**
3
 * This file is part of CaptainHook.
4
 *
5
 * (c) Sebastian Feldmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace CaptainHook\App\Storage\File;
11
12
use PHPUnit\Framework\TestCase;
13
14
class XmlTest extends TestCase
15
{
16
    /**
17
     * Tests Xml::read
18
     */
19
    public function testRead(): void
20
    {
21
        $this->expectException(\Exception::class);
22
23
        $path = realpath(CH_PATH_FILES . '/storage/invalid-xml.txt');
24
        $file  = new Xml($path);
25
        $file->read();
26
    }
27
}
28