Skip to content

Commit 291c971

Browse files
Merge branch '3.4' into 4.3
* 3.4: [ProxyManagerBridge] Polyfill for unmaintained version SCA: dropped unused mocks, duplicate import and a function alias usage [Config] fix test Improve fa (persian) translation
2 parents 552445e + 5fc970c commit 291c971

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/Definition/Builder/NumericNodeDefinitionTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,22 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Config\Definition\Builder\FloatNodeDefinition;
1616
use Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition;
17-
use Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition as NumericNodeDefinition;
1817

1918
class 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
}

0 commit comments

Comments
 (0)