PHPUnit “Mocked method does not exist.” when using $mock->expects($this->at(…))

前端 未结 7 1461
失恋的感觉
失恋的感觉 2021-02-05 00:56

I\'ve run into a strange issue with PHPUnit mock objects. I have a method that should be called twice, so I\'m using the \"at\" matcher. This works for the first time the method

相关标签:
7条回答
  • 2021-02-05 01:34

    Try changing $this->at(1) to $this->at(2)

    0 讨论(0)
提交回复
热议问题