| 123456789101112131415161718 |
- <?php
- namespace Yansongda\Supports\Tests;
- use PHPUnit\Framework\TestCase;
- class FunctionTest extends TestCase
- {
- public function testNamespace()
- {
- self::assertFalse(function_exists('collect'));
- self::assertFalse(function_exists('value'));
- self::assertFalse(function_exists('data_get'));
- self::assertTrue(function_exists('Yansongda\Supports\collect'));
- self::assertTrue(function_exists('Yansongda\Supports\value'));
- self::assertTrue(function_exists('Yansongda\Supports\data_get'));
- }
- }
|