Change-Id: Ifdf2fe711a0be495465255c6fabb55fe34b79b27
class DeferredStringifier {
/** @var callable Callback used for result string generation */
private $callback;
+
/** @var array */
private $params;
+
/** @var string */
private $result;
}
/**
- * Returns a string generated by callback
+ * Get the string generated from the callback
*
* @return string
*/
public static function provideToString() {
return array(
// No args
- array( array( function() {
- return 'foo';
- } ), 'foo' ),
+ array(
+ array(
+ function() {
+ return 'foo';
+ }
+ ),
+ 'foo'
+ ),
// Has args
- array( array( function( $i ) {
- return $i;
- }, 'bar' ), 'bar' ),
+ array(
+ array(
+ function( $i ) {
+ return $i;
+ },
+ 'bar'
+ ),
+ 'bar'
+ ),
);
}