@@ -35,10 +35,10 @@ describe('Invoking asynchronous JS methods from PHP', function() {
3535 'call_user_func(function () {' ,
3636 ' $setTimeout = $_SERVER["CONTEXT"]->setTimeout;' ,
3737 ' $testAsync = $_SERVER["CONTEXT"]->testAsync;' ,
38- // Demonstrate execution of existing node methods
39- ' $setTimeout(new Js\\Wait(), 1); # wait 1 ms' ,
40- // Demonstrate that JS thread is not blocked.
41- ' return $testAsync(11, 12, new Js\\Wait());' ,
38+ // Demonstrate execution of existing node methods
39+ ' $setTimeout(new Js\\Wait(), 1); # wait 1 ms' ,
40+ // Demonstrate that JS thread is not blocked.
41+ ' return $testAsync(11, 12, new Js\\Wait());' ,
4242 '})' ,
4343 ] . join ( '\n' ) ,
4444 } ) . then ( function ( v ) {
@@ -54,11 +54,11 @@ describe('Invoking asynchronous JS methods from PHP', function() {
5454 source : [
5555 'call_user_func(function () {' ,
5656 ' $testAsync = $_SERVER["CONTEXT"]->testAsync;' ,
57- ' try {' ,
58- ' $testAsync("early", "x", new Js\\Wait());' ,
59- ' } catch (Exception $e) {' ,
60- ' return "exception caught";' ,
61- ' }' ,
57+ ' try {' ,
58+ ' $testAsync("early", "x", new Js\\Wait());' ,
59+ ' } catch (Exception $e) {' ,
60+ ' return "exception caught";' ,
61+ ' }' ,
6262 '})' ,
6363 ] . join ( '\n' ) ,
6464 } ) . then ( function ( v ) {
@@ -74,11 +74,11 @@ describe('Invoking asynchronous JS methods from PHP', function() {
7474 source : [
7575 'call_user_func(function () {' ,
7676 ' $testAsync = $_SERVER["CONTEXT"]->testAsync;' ,
77- ' try {' ,
78- ' $testAsync("middle", "x", new Js\\Wait());' ,
79- ' } catch (Exception $e) {' ,
80- ' return "exception caught";' ,
81- ' }' ,
77+ ' try {' ,
78+ ' $testAsync("middle", "x", new Js\\Wait());' ,
79+ ' } catch (Exception $e) {' ,
80+ ' return "exception caught";' ,
81+ ' }' ,
8282 '})' ,
8383 ] . join ( '\n' ) ,
8484 } ) . then ( function ( v ) {
@@ -94,11 +94,11 @@ describe('Invoking asynchronous JS methods from PHP', function() {
9494 source : [
9595 'call_user_func(function () {' ,
9696 ' $testAsync = $_SERVER["CONTEXT"]->testAsync;' ,
97- ' try {' ,
98- ' $testAsync("late", "x", new Js\\Wait());' ,
99- ' } catch (Exception $e) {' ,
100- ' return "exception caught";' ,
101- ' }' ,
97+ ' try {' ,
98+ ' $testAsync("late", "x", new Js\\Wait());' ,
99+ ' } catch (Exception $e) {' ,
100+ ' return "exception caught";' ,
101+ ' }' ,
102102 '})' ,
103103 ] . join ( '\n' ) ,
104104 } ) . then ( function ( v ) {
0 commit comments