Hello, I would like to know, how it is possible to mock a library and skip the method in a test?
For example, there is a library, where I call another library and it's method:
PHP Code:
$this->ci =& get_instance();
....
$this->ci->load->library('Some_Library');
$this->ci->some_library->some_method();
....
In a test, I want to skip running "
$this->ci->some_library->some_method();".
Trying to achieve this on:
Codeigniter 3.0
PHPUnit version 4.6.10
I would appreciate your help!