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 1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \Config \Definition \Builder \FloatNodeDefinition ;
1616use Symfony \Component \Config \Definition \Builder \IntegerNodeDefinition ;
17- use Symfony \Component \Config \Definition \Builder \IntegerNodeDefinition as NumericNodeDefinition ;
1817
1918class NumericNodeDefinitionTest extends TestCase
2019{
2120 public function testIncoherentMinAssertion ()
2221 {
2322 $ this ->expectException ('InvalidArgumentException ' );
2423 $ 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 ' );
2625 $ def ->max (3 )->min (4 );
2726 }
2827
2928 public function testIncoherentMaxAssertion ()
3029 {
3130 $ this ->expectException ('InvalidArgumentException ' );
3231 $ 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 ' );
3433 $ node ->min (3 )->max (2 );
3534 }
3635
@@ -84,7 +83,7 @@ public function testCannotBeEmptyThrowsAnException()
8483 {
8584 $ this ->expectException ('Symfony\Component\Config\Definition\Exception\InvalidDefinitionException ' );
8685 $ this ->expectExceptionMessage ('->cannotBeEmpty() is not applicable to NumericNodeDefinition. ' );
87- $ def = new NumericNodeDefinition ('foo ' );
86+ $ def = new IntegerNodeDefinition ('foo ' );
8887 $ def ->cannotBeEmpty ();
8988 }
9089}
You can’t perform that action at this time.
0 commit comments