Completed
Push — master ( 84dee3...084275 )
by Michal
36:03
created

testCannotBeEmptyThrowsAnException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <[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 Symfony\Component\Config\Tests\Definition\Builder;
13
14
use Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition;
15
16
class BooleanNodeDefinitionTest extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
20
     * @expectedExceptionMessage ->cannotBeEmpty() is not applicable to BooleanNodeDefinition.
21
     */
22
    public function testCannotBeEmptyThrowsAnException()
23
    {
24
        $def = new BooleanNodeDefinition('foo');
25
        $def->cannotBeEmpty();
26
    }
27
}
28