}
public static function provideToString() {
- return array(
+ return [
// No args
- array( array( function() {
- return 'foo';
- } ), 'foo' ),
+ [
+ [
+ function () {
+ return 'foo';
+ }
+ ],
+ 'foo'
+ ],
// Has args
- array( array( function( $i ) {
- return $i;
- }, 'bar' ), 'bar' ),
- );
+ [
+ [
+ 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