public function PropertyPathTest::provideAppendPaths in Plug 7
File
- lib/Symfony/validator/Symfony/Component/Validator/Tests/Util/PropertyPathTest.php, line 26
Class
- PropertyPathTest
Namespace
Symfony\Component\Validator\Tests\Util
Code
public function provideAppendPaths() {
return array(
array(
'foo',
'',
'foo',
'It returns the basePath if subPath is empty',
),
array(
'',
'bar',
'bar',
'It returns the subPath if basePath is empty',
),
array(
'foo',
'bar',
'foo.bar',
'It append the subPath to the basePath',
),
array(
'foo',
'[bar]',
'foo[bar]',
'It does not include the dot separator if subPath uses the array notation',
),
array(
'0',
'bar',
'0.bar',
'Leading zeros are kept.',
),
);
}