How to mock a method to prevent calling it in PHPUnit test

前端 未结 0 1552
清歌不尽
清歌不尽 2021-02-19 20:54

I have a controller with a method

class MyController {
    public function myNotification($message)
    {
        // some code here
    }
}

and I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题