FunctionTest.php 547 B

123456789101112131415161718
  1. <?php
  2. namespace Yansongda\Supports\Tests;
  3. use PHPUnit\Framework\TestCase;
  4. class FunctionTest extends TestCase
  5. {
  6. public function testNamespace()
  7. {
  8. self::assertFalse(function_exists('collect'));
  9. self::assertFalse(function_exists('value'));
  10. self::assertFalse(function_exists('data_get'));
  11. self::assertTrue(function_exists('Yansongda\Supports\collect'));
  12. self::assertTrue(function_exists('Yansongda\Supports\value'));
  13. self::assertTrue(function_exists('Yansongda\Supports\data_get'));
  14. }
  15. }