diff options
Diffstat (limited to 'test/data/mock.php')
-rw-r--r-- | test/data/mock.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/data/mock.php b/test/data/mock.php index 61e40c3fc..105f9867b 100644 --- a/test/data/mock.php +++ b/test/data/mock.php @@ -95,9 +95,9 @@ QUnit.assert.ok( true, "mock executed");'; } if ( isset( $req->query['array'] ) ) { - echo '[{"name":"John","age":21},{"name":"Peter","age":25}]'; + echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]'; } else { - echo '{"data":{"lang":"en","length":25}}'; + echo '{ "data": {"lang": "en", "length": 25} }'; } } @@ -112,8 +112,8 @@ QUnit.assert.ok( true, "mock executed");'; $callback = $_POST['callback']; } $json = isset( $req->query['array'] ) ? - '[{"name":"John","age":21},{"name":"Peter","age":25}]' : - '{"data":{"lang":"en","length":25}}'; + '[ { "name": "John", "age": 21 }, { "name": "Peter", "age": 25 } ]' : + '{ "data": { "lang": "en", "length": 25 } }'; echo cleanCallback( $callback ) . '(' . $json . ')'; } |