add data provider test

This commit is contained in:
sunxyw
2022-03-28 23:42:50 +08:00
committed by Jerry Ma
parent a716e68f87
commit 9f4b5fb14a
3 changed files with 70 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace ZM\Tests\ZM\Utils;
namespace Tests\ZM\Utils;
use PHPUnit\Framework\TestCase;
use ZM\Annotation\CQ\CQCommand;
@@ -147,6 +147,7 @@ class MessageUtilTest extends TestCase
public function providerTestSplitCommand(): array
{
return [
'empty' => ['', ['']],
'spaced' => ['hello world', ['hello', 'world']],
'multiline' => ["hello\nworld", ['hello', 'world']],
'many spaces' => ['hello world', ['hello', 'world']],