Fatal error when generate mock for interface with third parameter '__get'.
Reproduce code:
Mock::generate('DBConnect', false, array('__get'));
class DBDataSourceTest extends UnitTestCase
{
protected $db;
function setUP()
{
// this line cause fatal error
$this->db = new MockDBConnect($this);
}
}
The generated mock class is attached.
Logged In: YES
user_id=976561
Originator: YES
Possible solution is to define property $_expectations to SimpleMock class.