An easier way to use PHPUnit with CodeIgniter 3.x.
void
as ':void'
when you use $this->getDouble()
.$mock = $this->getDouble(
'SplFileObject',
['next' => ':void'],
['php://memory']
);
pre_controller
can't modify $class
/$method
. See #394.