EmptyVersionStrategyTest.php 865 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Asset\Tests\VersionStrategy;
  11. use Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy;
  12. class EmptyVersionStrategyTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testGetVersion()
  15. {
  16. $emptyVersionStrategy = new EmptyVersionStrategy();
  17. $path = 'test-path';
  18. $this->assertEmpty($emptyVersionStrategy->getVersion($path));
  19. }
  20. public function testApplyVersion()
  21. {
  22. $emptyVersionStrategy = new EmptyVersionStrategy();
  23. $path = 'test-path';
  24. $this->assertEquals($path, $emptyVersionStrategy->applyVersion($path));
  25. }
  26. }