setUp(); } /** * available content to set * @param $content * @return bool * @author wangju 2019-05-17 21:50 */ protected function matchContent($content) { $text = $content['content']; return !empty($text); } /** * A basic test example. * * @return void */ public function testPushTextMessage() { $result =$this->ding->text("我就是我,@{$this->testUser} 是不一样的烟火"); $this->assertSame([ 'errmsg' => 'ok', 'errcode' => 0 ],$result); } public function testPushTextMessageAtAllUser(){ $result =$this->ding ->at([],true) ->text("我就是我,@{$this->testUser} 是不一样的烟火"); $this->assertSame([ 'errmsg' => 'ok', 'errcode' => 0 ],$result); } }