UrlHelperTest.php 568 B

12345678910111213141516171819202122232425
  1. <?php declare(strict_types=1);
  2. /**
  3. * This file is part of toolkit/stdlib.
  4. *
  5. * @author https://github.com/inhere
  6. * @link https://github.com/php-toolkit/stdlib
  7. * @license MIT
  8. */
  9. namespace Toolkit\StdlibTest\Str;
  10. use Toolkit\Stdlib\Str\UrlHelper;
  11. use Toolkit\StdlibTest\BaseLibTestCase;
  12. /**
  13. * class UrlHelperTest
  14. */
  15. class UrlHelperTest extends BaseLibTestCase
  16. {
  17. public function testJoinPath(): void
  18. {
  19. $this->assertEquals('a', UrlHelper::joinPath('a'));
  20. $this->assertEquals('a/b/cd', UrlHelper::joinPath('a', 'b', 'cd'));
  21. }
  22. }