helpers.php 479 B

12345678910111213141516171819202122232425
  1. <?php
  2. if (! function_exists('test_path')) {
  3. /**
  4. * @param string $file
  5. *
  6. * @return string
  7. */
  8. function test_path($file = '')
  9. {
  10. return __DIR__.($file ? '/'.trim($file, '/') : '');
  11. }
  12. }
  13. if (! function_exists('test_resource_path')) {
  14. /**
  15. * @param string $file
  16. *
  17. * @return string
  18. */
  19. function test_resource_path($file = '')
  20. {
  21. return test_path('resources'.($file ? '/'.trim($file, '/') : ''));
  22. }
  23. }