Skip to content

Commit 75dd878

Browse files
committed
Moved check for created object file to the binary test function (syntax creates no object files)
1 parent dbea937 commit 75dd878

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Symfony/src/Codebender/CompilerBundle/Tests/Controller/DefaultControllerFunctionalTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ public function testBlinkUnoSyntaxCheck() {
6666
$this->assertEquals($response["success"], true);
6767
$this->assertTrue(is_numeric($response["time"]));
6868

69-
$objectFilesPath = $client->getContainer()->getParameter('temp_dir') . '/' . $client->getContainer()->getParameter('objdir');
70-
$coreObjectLibrary = glob("$objectFilesPath/*__v105__hardware__arduino__cores__arduino________atmega328p_16000000_arduino_standard_null_null_______core.a");
71-
$this->assertTrue(count($coreObjectLibrary) > 0);
72-
7369
}
7470

7571
public function testBlinkUnoCompile() {
@@ -92,6 +88,10 @@ public function testBlinkUnoCompile() {
9288
$this->assertEquals($response["success"], true);
9389
$this->assertTrue(is_numeric($response["time"]));
9490
$this->assertTrue(is_numeric($response["size"]));
91+
92+
$objectFilesPath = $client->getContainer()->getParameter('temp_dir') . '/' . $client->getContainer()->getParameter('objdir');
93+
$coreObjectLibrary = glob("$objectFilesPath/*__v105__hardware__arduino__cores__arduino________atmega328p_16000000_arduino_standard_null_null_______core.a");
94+
$this->assertTrue(count($coreObjectLibrary) > 0);
9595
}
9696

9797
public function testBlinkUnoSyntaxCheckError() {

0 commit comments

Comments
 (0)