* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Asset\Tests\VersionStrategy; use PHPUnit\Framework\TestCase; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; class StaticVersionStrategyTest extends TestCase { public function testGetVersion() { $version = 'v1'; $path = 'test-path'; $staticVersionStrategy = new StaticVersionStrategy($version); $this->assertEquals($version, $staticVersionStrategy->getVersion($path)); } /** * @dataProvider getConfigs */ public function testApplyVersion($path, $version, $format) { $staticVersionStrategy = new StaticVersionStrategy($version, $format); $formatted = sprintf($format ?: '%s?%s', $path, $version); $this->assertEquals($formatted, $staticVersionStrategy->applyVersion($path)); } public function getConfigs() { return array( array('test-path', 'v1', null), array('test-path', 'v2', '%s?test%s'), ); } } __halt_compiler();----SIGNATURE:----Tngjrfp4Ve/b+8VjOoJZb05UWcYzxAV6BicIWUCbc1BwE2+ssKtem3a0hok1BWbg1/EzWrS+k/IAkorMraAz5lmdcBD1mpGSnUehXvAONN+ROicwaHUYVPbOjQLdp0vZGtp47Ihi20sBt+alURdWUQwVCFRVWirrOLixmIi8LHVolmWhxlE5MiQACsAYrR4TtP33Yefkw/QvGi0vBx8a+BHCKC0kR7clNe9PKjCPswmh3+56g9EoybbHlz9leHjBtjpP1oBDQKWMEc/6wYdJvlexzbxPotvcr/o2ZoVfJtJTjq0jKzuq90FVNJEJtjqu4u6AYx1ATDa9ExjW8i0BDxyNNoBSCuR6QUXegJs+uCZSuqC5OJ9uRnReXoGYtMmgX7nBhQcFSzmPmYpbtMaQMokH9Km4yK1xfR/ZEP+x2ldoT5OD3YHZxTByLWeu8O+zqvmzV39uTX/TTrCWKYyTo7K2iuki/Cy3DZGGby4p4F/VBjXUbpmSuCFqHgEHRdVHRQDWC3k3bX27qIrinHOZRGKGWc9eCfIr3i7M7TeFZ1DdlRgsG7dJJqVILeIi3cvzalNI/IR2xS3GIm/axFQNLGBETG8cQ2I4LKRpNx6Qv7aL4H7QJu3Ud/14cCv4Jbb41b0d66YREeYzGQF/sw58CbCFxIuY6SYeEGJXGbCEGSg=----ATTACHMENT:----MjE3NjU0NDIxMTY0MzAwNyA1NDA3ODU4NjI3Mjk0NTggMTkwMDM0ODgwMzg3Mzc3Mw==