You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Symfony/src/Codebender/CompilerBundle/Tests/Controller/DefaultControllerFunctionalTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ public function testInvalidInput()
52
52
53
53
publicfunctiontestBlinkUnoSyntaxCheck()
54
54
{
55
-
$files = array(array("filename" => "Blink.ino", "content" => "/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *///\n\n// Pin 13 has an LED connected on most Arduino boards.\n// give it a name:\nint led = 13;\n\n// the setup routine runs once when you press reset:\nvoid setup() {\n // initialize the digital pin as an output.\npinMode(led, OUTPUT);\n}\n\n// the loop routine runs over and over again forever:\nvoid loop() {\n digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)\n delay(1000); // wait for a second\n digitalWrite(led, LOW); // turn the LED off by making the voltage LOW\n delay(1000); // wait for a second\n}\n"));
@@ -75,7 +75,7 @@ public function testBlinkUnoSyntaxCheck()
75
75
76
76
publicfunctiontestBlinkUnoCompile()
77
77
{
78
-
$files = array(array("filename" => "Blink.ino", "content" => "/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *///\n\n// Pin 13 has an LED connected on most Arduino boards.\n// give it a name:\nint led = 13;\n\n// the setup routine runs once when you press reset:\nvoid setup() {\n // initialize the digital pin as an output.\n pinMode(led, OUTPUT);\n}\n\n// the loop routine runs over and over again forever:\nvoid loop() {\n digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)\n delay(1000); // wait for a second\n digitalWrite(led, LOW); // turn the LED off by making the voltage LOW\n delay(1000); // wait for a second\n}\n"));
@@ -98,7 +98,7 @@ public function testBlinkUnoCompile()
98
98
99
99
publicfunctiontestBlinkUnoSyntaxCheckError()
100
100
{
101
-
$files = array(array("filename" => "Blink.ino", "content" => "/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *///\n\n// Pin 13 has an LED connected on most Arduino boards.\n// give it a name:\nint led = 13\n\n// the setup routine runs once when you press reset:\nvoid setup() {\n // initialize the digital pin as an output.\n pinMode(led, OUTPUT);\n pinMode(led);\n}\n\n// the loop routine runs over and over again forever:\nvoid loop() {\n digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)\n delay(1000); // wait for a second\n digitalWrite(led, LOW); // turn the LED off by making the voltage LOW\n delay(1000); // wait for a second\n}\n"));
$this->assertContains("expected ';' after top level declarator", $response["message"]);
122
122
$this->assertContains("no matching function for call to 'pinMode'", $response["message"]);
123
123
$this->assertContains("candidate function not viable: requires 2 arguments, but 1 was provided", $response["message"]);
@@ -126,7 +126,7 @@ public function testBlinkUnoSyntaxCheckError()
126
126
127
127
publicfunctiontestBlinkUnoCompileError()
128
128
{
129
-
$files = array(array("filename" => "Blink.ino", "content" => "/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *///\n\n// Pin 13 has an LED connected on most Arduino boards.\n// give it a name:\nint led = 13\n\n// the setup routine runs once when you press reset:\nvoid setup() {\n // initialize the digital pin as an output.\n pinMode(led, OUTPUT);\n pinMode(led);\n}\n\n// the loop routine runs over and over again forever:\nvoid loop() {\n digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)\n delay(1000); // wait for a second\n digitalWrite(led, LOW); // turn the LED off by making the voltage LOW\n delay(1000); // wait for a second\n}\n"));
0 commit comments