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

BooleanNodeDefinitionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCannotBeEmptyThrowsAnException() 0 5 1
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