File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Config \Definition \Builder \FloatNodeDefinition ;
16
16
use Symfony \Component \Config \Definition \Builder \IntegerNodeDefinition ;
17
- use Symfony \Component \Config \Definition \Builder \IntegerNodeDefinition as NumericNodeDefinition ;
18
17
19
18
class NumericNodeDefinitionTest extends TestCase
20
19
{
21
20
public function testIncoherentMinAssertion ()
22
21
{
23
22
$ this ->expectException ('InvalidArgumentException ' );
24
23
$ this ->expectExceptionMessage ('You cannot define a min(4) as you already have a max(3) ' );
25
- $ def = new NumericNodeDefinition ('foo ' );
24
+ $ def = new IntegerNodeDefinition ('foo ' );
26
25
$ def ->max (3 )->min (4 );
27
26
}
28
27
29
28
public function testIncoherentMaxAssertion ()
30
29
{
31
30
$ this ->expectException ('InvalidArgumentException ' );
32
31
$ this ->expectExceptionMessage ('You cannot define a max(2) as you already have a min(3) ' );
33
- $ node = new NumericNodeDefinition ('foo ' );
32
+ $ node = new IntegerNodeDefinition ('foo ' );
34
33
$ node ->min (3 )->max (2 );
35
34
}
36
35
@@ -84,7 +83,7 @@ public function testCannotBeEmptyThrowsAnException()
84
83
{
85
84
$ this ->expectException ('Symfony\Component\Config\Definition\Exception\InvalidDefinitionException ' );
86
85
$ this ->expectExceptionMessage ('->cannotBeEmpty() is not applicable to NumericNodeDefinition. ' );
87
- $ def = new NumericNodeDefinition ('foo ' );
86
+ $ def = new IntegerNodeDefinition ('foo ' );
88
87
$ def ->cannotBeEmpty ();
89
88
}
90
89
}
You can’t perform that action at this time.
0 commit comments