@@ -254,7 +254,7 @@ public function testEthernetCompileErrorRemovedLibraryPaths()
254254 $ files = array (array ("filename " => "Blink.ino " , "content " => "#include <Ethernet.h> \nvoid setup() { \n} \nvoid loop() { \n} \n" ));
255255 $ format = "binary " ;
256256 $ version = "105 " ;
257- $ libraries = array ('PseudoEthernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
257+ $ libraries = array ('PseudoEthernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
258258 $ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
259259
260260 $ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
@@ -277,7 +277,7 @@ public function testEthernetCompileErrorRemovedPersonalLibraryPaths()
277277 $ files = array (array ("filename " => "Blink.ino " , "content " => "#include <Ethernet.h> \nvoid setup() { \n} \nvoid loop() { \n} \n" ));
278278 $ format = "binary " ;
279279 $ version = "105 " ;
280- $ libraries = array ('4096_cb_personal_lib_PseudoEthernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
280+ $ libraries = array ('4096_cb_personal_lib_PseudoEthernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => "#include \"SPI.h \"\n" )));
281281 $ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
282282
283283 $ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
@@ -300,7 +300,7 @@ public function testHtmlEncodedInput()
300300 $ files = array (array ("filename " => "Blink.ino " , "content " => htmlspecialchars ("#include <Ethernet.h> \nint * pointer; \nvoid setup() { \nint ** var = &pointer; \n} \nvoid loop() { \n} \n" )));
301301 $ format = "binary " ;
302302 $ version = "105 " ;
303- $ libraries = array ('Ethernet ' => array (0 => array ('filename ' => 'Ethernet.h ' , 'content ' => htmlspecialchars (' #include "Arduino.h" ' ))));
303+ $ libraries = array ('Ethernet ' => array (' files ' => array ('filename ' => 'Ethernet.h ' , 'content ' => htmlspecialchars ("\n" ))));
304304 $ build = array ("mcu " => "atmega328p " , "f_cpu " => "16000000 " , "core " => "arduino " , "variant " => "standard " );
305305
306306 $ data = json_encode (array ("files " => $ files , "format " => $ format , "version " => $ version , "libraries " => $ libraries , "build " => $ build ));
0 commit comments