if ( !function_exists( 'json_encode' ) ) {
$this->markTestIncomplete( 'No PHP json support, unable to test' );
return;
- } elseif( strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '"\ud840\udc00"' ) {
+ } elseif ( strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '"\ud840\udc00"' ) {
$this->markTestIncomplete( 'Have buggy PHP json support, unable to test' );
return;
} else {
}
}
- function provideValuesToEncode() {
+ public static function provideValuesToEncode() {
$obj = new stdClass();
$obj->property = 'value';
$obj->property2 = null;
);
}
- function provideValuesToDecode() {
+ public static function provideValuesToDecode() {
return array(
array( '1', 'basic integer' ),
array( '-1', 'negative integer' ),