Completed
Push — master ( 0f7b01...b73efb )
by Bukashk0zzz
02:11
created

GeneratorTest::validateFileWithDtd()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 23
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 23
rs 9.0856
cc 2
eloc 16
nc 2
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Tests;
13
14
use Bukashk0zzz\YmlGenerator\Generator;
15
use Bukashk0zzz\YmlGenerator\Settings;
16
use Bukashk0zzz\YmlGenerator\Model\ShopInfo;
17
18
/**
19
 * Generator test
20
 *
21
 * @author Denis Golubovskiy <[email protected]>
22
 */
23
class GeneratorTest extends \PHPUnit_Framework_TestCase
24
{
25
    /**
26
     * Test exception
27
     *
28
     * @expectedException \RuntimeException
29
     */
30
    public function testExceptionForIncompatibleAnnotations()
31
    {
32
        (new Generator((new Settings())->setOutputFile('')))
33
            ->generate(new ShopInfo(), [], [], [])
34
        ;
35
    }
36
}
37