/**
* @expectedException PHPUnit_Framework_AssertionFailedError
*/
public function testChainStubbingCorruptDataReturnValue()
{
$mock = ShortifyPunit::mock('SimpleClassForMocking');
ShortifyPunit::when($mock)->first_method()->second_method(2, 3)->returns(1);
$response = ShortifyPunit::getReturnValues();
$response[get_class($mock)][$mock->getShortifyPunitInstanceId()]['first_method']['a:0:{}']['second_method']['a:2:{i:0;i:2;i:1;i:3;}'] = ['response' => []];
ShortifyPunit::setReturnValues($response);
$mock->first_method()->second_method(2, 3);
}