I need to use PHPUnit mocking methods like expect($this->once())->returnSelf(); in codecept/yii2 tests. Cannot find any way to call them. The Stub library of codeception does not have as many way to mock a method.
Although phpunit is wrapped by codeception I neither can find a way to use phpunit with yii 2 for API testing using sendPost etc.
Please suggest.