30 lines
741 B
PHP
30 lines
741 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
// use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Overtrue\EasySms\EasySms;
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic test example.
|
|
*/
|
|
public function test_the_application_returns_a_successful_response(): void
|
|
{
|
|
$now = now();
|
|
dump($now->day, $now->month);
|
|
// try {
|
|
// $easySms = new EasySms(config('easysms'));
|
|
// $result = $easySms->send('18983405554', [
|
|
// 'template' => 'SMS_463637721',
|
|
// ]);
|
|
// dump($result);
|
|
// } catch (\Exception $e) {
|
|
// dump($e->getException('aliyun')->raw);
|
|
// }
|
|
$this->assertTrue(true);
|
|
}
|
|
}
|