public function ParameterBagTest::testGetDigits in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/ParameterBagTest.php \Symfony\Component\HttpFoundation\Tests\ParameterBagTest::testGetDigits()
@covers Symfony\Component\HttpFoundation\ParameterBag::getDigits
File
- vendor/
symfony/ http-foundation/ Tests/ ParameterBagTest.php, line 169
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetDigits() {
$bag = new ParameterBag(array(
'word' => 'foo_BAR_012',
));
$this
->assertEquals('012', $bag
->getDigits('word'), '->getDigits() gets only digits as string');
$this
->assertEquals('', $bag
->getDigits('unknown'), '->getDigits() returns empty string if a parameter is not defined');
}