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

XmlTest::testRead()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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