@@ -43,31 +43,31 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
43
43
throw new Zend_Exception ("The status should be passed or failed " );
44
44
}
45
45
}
46
- $ xml = '<?xml version="1.0" encoding="UTF-8"?>
47
- <Site BuildName=" ' .$ buildName .'"
48
- BuildStamp=" ' .date ('Ymd ' ).'- ' .((int )date ('G ' )* 60 + (int )date ('i ' )).'- ' .$ buildType .'"
49
- Name=" ' .$ machineName .'"
50
- Generator=""
51
- CompilerName=""
52
- OSName=""
53
- Hostname=""
54
- OSRelease=""
55
- OSVersion=""
56
- OSPlatform=""
57
- Is64Bits=""
58
- VendorString=""
59
- VendorID=""
60
- FamilyID=""
61
- ModelID=""
62
- ProcessorCacheSize=""
63
- NumberOfLogicalCPU=""
64
- NumberOfPhysicalCPU=""
65
- TotalVirtualMemory=""
66
- TotalPhysicalMemory=""
67
- LogicalProcessorsPerPhysical=""
68
- ProcessorClockFrequency=""
69
- >
70
- <Testing>
46
+ $ xml = '<?xml version="1.0" encoding="UTF-8"?> ' ;
47
+ $ xml .= ' <Site BuildName=" ' .$ buildName .'" ' ;
48
+ $ xml .= ' BuildStamp=" ' .date ('Ymd ' ).'- ' .((int )date ('G ' ) * 60 + (int )date ('i ' )).'- ' .$ buildType .'" ' ;
49
+ $ xml .= ' Name=" ' .$ machineName .'" ' ;
50
+ $ xml .= ' Generator="" ' ;
51
+ $ xml .= ' CompilerName="" ' ;
52
+ $ xml .= ' OSName="" ' ;
53
+ $ xml .= ' Hostname="" ' ;
54
+ $ xml .= ' OSRelease="" ' ;
55
+ $ xml .= ' OSVersion="" ' ;
56
+ $ xml .= ' OSPlatform="" ' ;
57
+ $ xml .= ' Is64Bits="" ' ;
58
+ $ xml .= ' VendorString="" ' ;
59
+ $ xml .= ' VendorID="" ' ;
60
+ $ xml .= ' FamilyID="" ' ;
61
+ $ xml .= ' ModelID="" ' ;
62
+ $ xml .= ' ProcessorCacheSize="" ' ;
63
+ $ xml .= ' NumberOfLogicalCPU="" ' ;
64
+ $ xml .= ' NumberOfPhysicalCPU="" ' ;
65
+ $ xml .= ' TotalVirtualMemory="" ' ;
66
+ $ xml .= ' TotalPhysicalMemory="" ' ;
67
+ $ xml .= ' LogicalProcessorsPerPhysical="" ' ;
68
+ $ xml .= ' ProcessorClockFrequency="" ' ;
69
+ $ xml .= ' > ' ;
70
+ $ xml .= ' <Testing>
71
71
<StartDateTime> ' .date ('M m H:i T ' ).'</StartDateTime>
72
72
<StartTestTime> ' .time ().'</StartTestTime>
73
73
<TestList>
@@ -77,7 +77,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
77
77
$ xml .= '<Test> ' .$ name .'</Test>
78
78
' ;
79
79
}
80
- $ xml .='</TestList>
80
+ $ xml .= '</TestList>
81
81
' ;
82
82
foreach ($ tests as $ name => $ test )
83
83
{
@@ -99,7 +99,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
99
99
</Results>
100
100
</Test> ' ;
101
101
}
102
- $ xml .='
102
+ $ xml .= '
103
103
<EndDateTime> ' .date ('M m H:i T ' ).'</EndDateTime>
104
104
<EndTestTime> ' .time ().'</EndTestTime>
105
105
<ElapsedMinutes>0</ElapsedMinutes></Testing>
@@ -120,7 +120,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
120
120
throw new Zend_Exception ("Problem with " .$ url .", " .$ php_errormsg );
121
121
}
122
122
$ response = stream_get_contents ($ fp );
123
- if ($ response === false )
123
+ if ($ response === false )
124
124
{
125
125
throw new Zend_Exception ("Problem reading data from " .$ url .", " .$ php_errormsg );
126
126
}
0 commit comments