* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Tests\Util; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Util\PropertyPath; class PropertyPathTest extends TestCase { /** * @dataProvider provideAppendPaths */ public function testAppend($basePath, $subPath, $expectedPath, $message) { $this->assertSame($expectedPath, PropertyPath::append($basePath, $subPath), $message); } 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.'), ); } } __halt_compiler();----SIGNATURE:----SFM2oqCkUEh09XvVJAfRn6hq2Hv3IvT8JLaaoeThTNZkqf3qCxUosFO0z27QI/C62MLrqmDXkUH3wzVAok610CAVVB5M+Bid+6JaN9KM0/4efMlzXLNh3fv+VvQMIHx8/0bViXzgutWoiMFzrP+2omWCuGaD2o//r+S5LRS5iGky3ZLpp1GvNsM60milasDnSsVG2aHpGhk6p2x1dDkSH2IouIjJtQk0NEbXU3zyvOohNdNw5C044XS45NuAkYhH6fW3UFkVMk0+qyqDz8nbiv0kEPU3yEejAsHxcDTuY8R1h+/OiHE1o2YtjUIfZH0DrF1k7NvyHLFckuZHiRa9HO524I0aQSZgM3gW6lUXuuUW6HVT16T2TmpO8wOUy2SKOfjrwWlDinpUjDbrHtXRpWg6z2Nc8jK82bql9CBS9wvDsWRNBh+ltE45eRxxq5+Vjp9S2ho7UdiJHfnukMNW6sNLKRmJrUsw3DkRSYDc3RJ8VTBDrgtAzqPm6Rc1RgVWp3IooLNNQ++O6U6xfcl96FYVZHQiteVJJUtI1aql+EMZiOSXJBkC3bJbpECCVnQiQ1PvhETfgyVCNnxZofTADY+jHKK/b66F5mJxMbFU1RPpRStCWFB4NvWpE1yuIRXPQW57KQmIzFLoez7OyF4/wAXygonzgfS4hpQpTob7u4I=----ATTACHMENT:----ODkyMzc5Njg1MjE4MTQ1NyA3MjQxMTg2MDcxMzk4NjI3IDEwMjI5MjY1NTk1Mzk5ODk=