}
public static function provideToString() {
- return array(
+ return [
// No args
- array(
- array(
- function() {
+ [
+ [
+ function () {
return 'foo';
}
- ),
+ ],
'foo'
- ),
+ ],
// Has args
- array(
- array(
- function( $i ) {
+ [
+ [
+ function ( $i ) {
return $i;
},
'bar'
- ),
+ ],
'bar'
- ),
- );
+ ],
+ ];
}
/**
* it is never converted to a string
*/
public function testCallbackNotCalled() {
- $ds = new DeferredStringifier( function() {
+ $ds = new DeferredStringifier( function () {
throw new Exception( 'This should not be reached!' );
} );
// No exception was thrown