ShortifyPunit\ShortifyPunit::getReturnValues PHP Method

getReturnValues() public static method

public static getReturnValues ( ) : array
return array
    public static function getReturnValues()
    {
        return self::$returnValues;
    }

Usage Example

 /**
  * @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);
 }
All Usage Examples Of ShortifyPunit\ShortifyPunit::getReturnValues