@@ -254,7 +254,7 @@ public function testEthernetCompileErrorRemovedLibraryPaths()
254
254
$ files = array (array ("filename " => "Blink.ino " , "content " => "#include <Ethernet.h> \nvoid setup() { \n} \nvoid loop() { \n} \n" ));
255
255
$ format = "binary " ;
256
256
$ version = "105 " ;
257
- $ libraries = array ('PseudoEthernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
257
+ $ libraries = array ('PseudoEthernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
258
258
$ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
259
259
260
260
$ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
@@ -277,7 +277,7 @@ public function testEthernetCompileErrorRemovedPersonalLibraryPaths()
277
277
$ files = array (array ("filename " => "Blink.ino " , "content " => "#include <Ethernet.h> \nvoid setup() { \n} \nvoid loop() { \n} \n" ));
278
278
$ format = "binary " ;
279
279
$ version = "105 " ;
280
- $ libraries = array ('4096_cb_personal_lib_PseudoEthernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
280
+ $ libraries = array ('4096_cb_personal_lib_PseudoEthernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
281
281
$ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
282
282
283
283
$ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
@@ -300,7 +300,7 @@ public function testHtmlEncodedInput()
300
300
$ files = array (array ("filename " => "Blink.ino " , "content " => htmlspecialchars ("#include <Ethernet.h> \nint * pointer; \nvoid setup() { \nint ** var = &pointer; \n} \nvoid loop() { \n} \n" )));
301
301
$ format = "binary " ;
302
302
$ version = "105 " ;
303
- $ libraries = array ('Ethernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => htmlspecialchars ("\n" ))));
303
+ $ libraries = array ('Ethernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => htmlspecialchars (' #include "Arduino.h" ' ))));
304
304
$ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
305
305
306
306
$ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
0 commit comments