? Failure

User tests: Successful: Unsuccessful:

avatar fastslack
fastslack
28 Sep 2014

If we try to get the current date using JDate, for example:

$date = new JDate();
$date->format('H:i:s')

This example return the current time but using the GMT timezone and not using the saved into the Joomla! configuration (in my case 'America/Argentina/Buenos_Aires' GMT-3).

With the current patch, this bug is fixed.

avatar fastslack fastslack - open - 28 Sep 2014
avatar jissues-bot jissues-bot - change - 28 Sep 2014
Labels Added: ?
avatar zero-24 zero-24 - change - 28 Sep 2014
Category Libraries
avatar zero-24
zero-24 - comment - 28 Sep 2014

@fastslack

Travis fails 40 times:

Time: 2.61 minutes, Memory: 300.00Mb
There were 40 failures:
1) JDateTest::testFormat with data set "mmddyyGMT" ('mdy His', false, '122007 164456')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'122007 164456'
+'122007 114456'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
2) JDateTest::testFormat with data set "LongGMT" ('D F j, Y H:i:s', false, 'Thu December 20, 2007 16:44:56')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Thu December 20, 2007 16:44:56'
+'Thu December 20, 2007 11:44:56'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
3) JDateTest::testFormat with data set "Long2" ('H:i:s D F j, Y', false, '16:44:56 Thu December 20, 2007')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'16:44:56 Thu December 20, 2007'
+'11:44:56 Thu December 20, 2007'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
4) JDateTest::testFormat with data set "Long3" ('H:i:s l F j, Y', false, '16:44:56 Thursday December 20, 2007')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'16:44:56 Thursday December 20, 2007'
+'11:44:56 Thursday December 20, 2007'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
5) JDateTest::testFormat with data set "Long4" ('H:i:s l M j, Y', false, '16:44:56 Thursday Dec 20, 2007')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'16:44:56 Thursday Dec 20, 2007'
+'11:44:56 Thursday Dec 20, 2007'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
6) JDateTest::testFormat with data set "RFC822" ('r', false, 'Thu, 20 Dec 2007 16:44:56 +0000')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Thu, 20 Dec 2007 16:44:56 +0000'
+'Thu, 20 Dec 2007 11:44:56 -0500'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:660
7) JDateTest::testToRFC822 with data set "Atlantic/AzoresGMT" ('Atlantic/Azores', '2007-11-20 11:44:56', NULL, 'Tue, 20 Nov 2007 12:44:56 +0000')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Tue, 20 Nov 2007 12:44:56 +0000'
+'Tue, 20 Nov 2007 11:44:56 -0100'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:694
8) JDateTest::testToRFC822 with data set "Australia/BrisbaneGMT" ('Australia/Brisbane', '2007-5-22 11:44:56', NULL, 'Tue, 22 May 2007 01:44:56 +0000')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Tue, 22 May 2007 01:44:56 +0000'
+'Tue, 22 May 2007 11:44:56 +1000'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:694
9) JDateTest::testToISO8601 with data set "Atlantic/AzoresGMT" ('Atlantic/Azores', '2007-11-20 11:44:56', NULL, '2007-11-20T12:44:56+00:00')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2007-11-20T12:44:56+00:00'
+'2007-11-20T11:44:56-01:00'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:726
10) JDateTest::testToISO8601 with data set "Australia/BrisbaneGMT" ('Australia/Brisbane', '2007-5-20 11:44:56', NULL, '2007-05-20T01:44:56+00:00')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2007-05-20T01:44:56+00:00'
+'2007-05-20T11:44:56+10:00'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:726
11) JDateTest::testToSql with data set "Atlantic/AzoresGMT" ('Atlantic/Azores', '2007-11-20 11:44:56', NULL, '2007-11-20 12:44:56')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2007-11-20 12:44:56'
+'2007-11-20 11:44:56'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:757
12) JDateTest::testToSql with data set "Australia/BrisbaneGMT" ('Australia/Brisbane', '2007-5-20 11:44:56', NULL, '2007-05-20 01:44:56')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2007-05-20 01:44:56'
+'2007-05-20 11:44:56'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/date/JDateTest.php:757
13) JFormFieldTest::testGetLabel
Line:226 The property should be computed from the XML.
Failed asserting that false is true.
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormFieldTest.php:227
14) JFormFieldTest::testGetTitle
Line:302 The property should be computed from the XML.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Title'
+'??Title??'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormFieldTest.php:303
15) JFormFieldTest::testSetup with data set "NameValueIdTitleLabel" (array('myName', 'The text field.', 'My Title', '<label id="myId-lbl" for="myId" class="hasTooltip" title="&lt;strong&gt;My Title&lt;/strong&gt;&lt;br /&gt;The description.">My Title</label>', NULL), '<field name="myName" type="text" id="myId" label="My Title" description="The description."  value="Text Field" />', 'The text field.')
Line:413 The title property should be computed from the XML.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'My Title'
+'??My Title??'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormFieldTest.php:414
16) JFormFieldTest::testSetup with data set "RequiredLabel" (array(true, '<label id="myId-lbl" for="myId" class="hasTooltip required" title="&lt;strong&gt;My Title&lt;/strong&gt;&lt;br /&gt;The description.">My Title<span class="star">&#160;*</span></label>'), '<field name="myName" type="text" id="myId" required="true" label="My Title" description="The description." />', '')
Line:405 The label property should be computed from the XML.
Failed asserting that false is true.
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormFieldTest.php:406
17) JFormTest::testGetInput
Line:1123 XML string should load successfully.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<select id="jform_params_colours" name="jform[params][colours][]" multiple>
-   <option value="red">Red</option>
-   <option value="blue" selected="selected">Blue</option>
-   <option value="green">Green</option>
-   <option value="yellow">Yellow</option>
+   <option value="red">??Red??</option>
+   <option value="blue" selected="selected">??Blue??</option>
+   <option value="green">??Green??</option>
+   <option value="yellow">??Yellow??</option>
 </select>
 '
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormTest.php:1124
18) JFormTest::testGetLabel
Line:1191 The method should return a simple label field.
Failed asserting that false is true.
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormTest.php:1192
19) JFormFieldCheckboxesTest::testGetInputNoValueNoChecked
The field with no value and no checked values did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:104
20) JFormFieldCheckboxesTest::testGetInputValueNoChecked
The field with one value did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:154
21) JFormFieldCheckboxesTest::testGetInputValueArrayNoChecked
The field with one value did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:203
22) JFormFieldCheckboxesTest::testGetInputNoValueOneChecked
The field with no values and one value in the checked element did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue" checked/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue" checked/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:245
23) JFormFieldCheckboxesTest::testGetInputNoValueTwoChecked
The field with no values and two items in the checked element did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:289
24) JFormFieldCheckboxesTest::testGetInputValueChecked
The field with one value and a different value in the checked element did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red" checked/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:333
25) JFormFieldCheckboxesTest::testGetInputValuesNoChecked
The field with two values did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">red</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">blue</label></li></ul></fieldset>'
+'<fieldset id="myTestId" class="checkboxes"><ul><li><input type="checkbox" id="myTestId0" name="myTestName" value="red"/><label for="myTestId0">??red??</label></li><li><input type="checkbox" id="myTestId1" name="myTestName" value="blue"/><label for="myTestId1">??blue??</label></li></ul></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldCheckboxesTest.php:375
26) JFormFieldEMailTest::testGetInput with data set "Hint" (array('myTestId', 'myTestName', 'Type any email.'), '<input type="email" name="myTestName" class="validate-email" id="myTestId" value="" placeholder="Type any email." />')
Line:97 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<input type="email" name="myTestName" class="validate-email" id="myTestId" value="" placeholder="Type any email." />'
+'<input type="email" name="myTestName" class="validate-email" id="myTestId" value="" placeholder="??Type any email.??" />'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldEmailTest.php:98
27) JFormFieldPasswordTest::testGetInput with data set "Hint" (array('myTestId', 'myTestName', 'Type any password.'), '<input type="password" name="myTestName" id="myTestId" value="" placeholder="Type any password." />')
Line:188 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<input type="password" name="myTestName" id="myTestId" value="" placeholder="Type any password." />'
+'<input type="password" name="myTestName" id="myTestId" value="" placeholder="??Type any password.??" />'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldPasswordTest.php:189
28) JFormFieldRadioTest::testGetInput with data set "Options" ('<field name="myTestId" type="radio">
                <option value="1">Yes</option>
                <option value="0">No</option>
            </field>', array('myTestId', 'myTestName'), '<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
29) JFormFieldRadioTest::testGetInput with data set "OptionClass" ('<field name="myTestId" type="radio">
                <option value="1" class="foo">Yes</option>
                <option value="0" class="bar">No</option>
            </field>', array('myTestId', 'myTestName'), '<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" class="foo" /><label for="myTestId0" class="foo" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" class="bar" /><label for="myTestId1" class="bar" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" class="foo" /><label for="myTestId0" class="foo" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" class="bar" /><label for="myTestId1" class="bar" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" class="foo" /><label for="myTestId0" class="foo" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" class="bar" /><label for="myTestId1" class="bar" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
30) JFormFieldRadioTest::testGetInput with data set "FieldDisabled" ('<field name="myTestId" type="radio">
                <option value="1">Yes</option>
                <option value="0">No</option>
            </field>', array('myTestId', 'myTestName', true), '<fieldset id="myTestId" class="radio" disabled ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" disabled ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" disabled ><input type="radio" id="myTestId0" name="myTestName" value="1" /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
31) JFormFieldRadioTest::testGetInput with data set "OptionDisabled" ('<field name="myTestId" type="radio">
                <option value="1" disabled="true">Yes</option>
                <option value="0">No</option>
            </field>', array('myTestId', 'myTestName'), '<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
32) JFormFieldRadioTest::testGetInput with data set "ReadonlyChecked" ('<field name="myTestId" type="radio" readonly="true" value="0">
                <option value="1">Yes</option>
                <option value="0">No</option>
                <option value="-1">None</option>
            </field>', array('myTestId', 'myTestName', true, '0'), '<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" checked="checked" /><label for="myTestId1" >No</label><input type="radio" id="myTestId2" name="myTestName" value="-1" disabled /><label for="myTestId2" >None</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" checked="checked" /><label for="myTestId1" >No</label><input type="radio" id="myTestId2" name="myTestName" value="-1" disabled /><label for="myTestId2" >None</label></fieldset>'
+'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" disabled /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" checked="checked" /><label for="myTestId1" >??No??</label><input type="radio" id="myTestId2" name="myTestName" value="-1" disabled /><label for="myTestId2" >??None??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
33) JFormFieldRadioTest::testGetInput with data set "OnclickOnchange" ('<field name="myTestId" type="radio">
                <option value="1" onclick="foo();" >Yes</option>
                <option value="0" onchange="bar();">No</option>
            </field>', array('myTestId', 'myTestName'), '<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" onclick="foo();" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" onchange="bar();" /><label for="myTestId1" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" onclick="foo();" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" onchange="bar();" /><label for="myTestId1" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" ><input type="radio" id="myTestId0" name="myTestName" value="1" onclick="foo();" /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" onchange="bar();" /><label for="myTestId1" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
34) JFormFieldRadioTest::testGetInput with data set "Required" ('<field name="myTestId" type="radio" required="true">
                <option value="1" required="true" >Yes</option>
                <option value="0">No</option>
            </field>', array('myTestId', 'myTestName', true), '<fieldset id="myTestId" class="radio" required aria-required="true" ><input type="radio" id="myTestId0" name="myTestName" value="1" required aria-required="true" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>')
Line:62 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<fieldset id="myTestId" class="radio" required aria-required="true" ><input type="radio" id="myTestId0" name="myTestName" value="1" required aria-required="true" /><label for="myTestId0" >Yes</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >No</label></fieldset>'
+'<fieldset id="myTestId" class="radio" required aria-required="true" ><input type="radio" id="myTestId0" name="myTestName" value="1" required aria-required="true" /><label for="myTestId0" >??Yes??</label><input type="radio" id="myTestId1" name="myTestName" value="0" /><label for="myTestId1" >??No??</label></fieldset>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldRadioTest.php:63
35) JFormFieldSpacerTest::testGetLabel
Line:128 The getLabel method should return something without error.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<span class="spacer"><span class="before"></span><span><label id="spacer-lbl" class="hasTooltip" title="&lt;strong&gt;spacer&lt;/strong&gt;">spacer</label></span><span class="after"></span></span>'
+'<span class="spacer"><span class="before"></span><span><label id="spacer-lbl" class="hasTooltip" title="&lt;strong&gt;??spacer??&lt;/strong&gt;">??spacer??</label></span><span class="after"></span></span>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldSpacerTest.php:129
36) JFormFieldSpacerTest::testGetTitle
Line:128 The getLabel method should return something without error.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<span class="spacer"><span class="before"></span><span><label id="spacer-lbl" class="hasTooltip" title="&lt;strong&gt;spacer&lt;/strong&gt;">spacer</label></span><span class="after"></span></span>'
+'<span class="spacer"><span class="before"></span><span><label id="spacer-lbl" class="hasTooltip" title="&lt;strong&gt;??spacer??&lt;/strong&gt;">??spacer??</label></span><span class="after"></span></span>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldSpacerTest.php:129
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldSpacerTest.php:208
37) JFormFieldTelTest::testGetInput with data set "Hint" (array('myTestId', 'myTestName', 'Type any tel.'), '<input type="tel" name="myTestName" id="myTestId" value="" placeholder="Type any tel." />')
Line:98 The field did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<input type="tel" name="myTestName" id="myTestId" value="" placeholder="Type any tel." />'
+'<input type="tel" name="myTestName" id="myTestId" value="" placeholder="??Type any tel.??" />'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldTelTest.php:99
38) JFormFieldTextTest::testGetInputNoValue with data set "Hint" (array('myTestId', 'myTestName', 'Type any text.'), '<input type="text" name="myTestName" id="myTestId" value="" placeholder="Type any text." />')
Line:134 The field did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<input type="text" name="myTestName" id="myTestId" value="" placeholder="Type any text." />'
+'<input type="text" name="myTestName" id="myTestId" value="" placeholder="??Type any text.??" />'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldTextTest.php:135
39) JFormFieldTextareaTest::testGetInput with data set "Hint" (array('myTestId', 'myTestName', 'Placeholder for textarea.'), '<textarea name="myTestName" id="myTestId" placeholder="Placeholder for textarea." ></textarea>')
Line:138 The field with no value and no checked attribute did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<textarea name="myTestName" id="myTestId" placeholder="Placeholder for textarea." ></textarea>'
+'<textarea name="myTestName" id="myTestId" placeholder="??Placeholder for textarea.??" ></textarea>'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldTextareaTest.php:139
40) JFormFieldUrlTest::testGetInput with data set "Hint" (array('myTestId', 'myTestName', 'Type any url.'), '<input type="url" name="myTestName" id="myTestId" value="" placeholder="Type any url." />')
Line:106 The field did not produce the right html
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<input type="url" name="myTestName" id="myTestId" value="" placeholder="Type any url." />'
+'<input type="url" name="myTestName" id="myTestId" value="" placeholder="??Type any url.??" />'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/fields/JFormFieldUrlTest.php:107

https://travis-ci.org/joomla/joomla-cms/jobs/36493876

avatar fastslack
fastslack - comment - 28 Sep 2014

Running travis to upstream/staging without any changes:

$ phpunit --configuration travisci-phpunit.xml
PHPUnit 3.7.28 by Sebastian Bergmann.

Configuration read from /home/fastslack/www/joomla-dev/travisci-phpunit.xml

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSIISSSSSSSSSSSSSIIIIIIISSSSS..III   61 / 5939 (  1%)
IIIIIIISSI.ESSSSS.SSI...SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS  122 / 5939 (  2%)
SSSSSSSSSSIIIIIISSSS........................I..I..IIIIIII.I.I  183 / 5939 (  3%)
.I.I.I..III....IIIIIIIIIIIIIII...IIIIIIIIEIII..SSSSSSSSSSS...  244 / 5939 (  4%)
..............II...III....IIIII..II..........................  305 / 5939 (  5%)
..................................I.I.SI.SS...I.............I  366 / 5939 (  6%)
...IIIIIIIIIIIIIIISSSSS...........F..F..........F.......S....  427 / 5939 (  7%)
....SSSS............IIIIIII....IIIIIIIII....IIIIIII....II..SS  488 / 5939 (  8%)
SISSSSSSSSSS.......I...EE..SS..I.III.I.SSSSSSSSS........I....  549 / 5939 (  9%)
....................................................SSSSSSSSS  610 / 5939 ( 10%)
SSSSSSSSSSSSSSSSSSSSSSS......EEEEEEEEEE

The errors still there, seems that this change is not related with that.

avatar mbabker
mbabker - comment - 28 Sep 2014

The last build on the staging branch (https://travis-ci.org/joomla/joomla-cms/builds/36435395) passed just fine.

Also, I have no idea if the test suite will even run properly against 3.7 anymore. We're using a mix of 4.1 and 4.2 across the CI environments.

avatar fastslack
fastslack - comment - 28 Sep 2014

Hmm i downloaded phunit 4.2 and the problem still there:

[fastslack@escorpio:/home/fastslack/www]
$ git clone git@github.com:joomla/joomla-cms.git travis
Cloning into 'travis'...
remote: Counting objects: 413320, done.
remote: Total 413320 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (413320/413320), 111.24 MiB | 1.17 MiB/s, done.
Resolving deltas: 100% (289550/289550), done.
Checking connectivity... done.
[fastslack@escorpio:/home/fastslack/www]
$ cd travis/
[fastslack@escorpio:/home/fastslack/www/travis]
$ cp ../phpunit.phar . <=== Copy phpunit 4.2
[fastslack@escorpio:/home/fastslack/www/travis]
$ php phpunit.phar --configuration travisci-phpunit.xml
PHPUnit 4.2.6 by Sebastian Bergmann.

Configuration read from /home/fastslack/www/travis/travisci-phpunit.xml

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSIISSSSSSSSSSSSSIIIIIIISSSSS..III   61 / 5939 (  1%)
IIIIIIISSI.ESSSSS.SSI...SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS  122 / 5939 (  2%)
SSSSSSSSSSIIIIIISSSS........................I..I..IIIIIII.I.I  183 / 5939 (  3%)
.I.I.I..III....IIIIIIIIIIIIIII...IIIIIIIIEIII..SSSSSSSSSSS...  244 / 5939 (  4%)
..............II...III....IIIII..II..........................  305 / 5939 (  5%)
.................................EIEI.SI.SS...I.............I  366 / 5939 (  6%)
...IIIIIIIIIIIIIIISSSSS...........E..E........E.E.......S....  427 / 5939 (  7%)
....SSSS............IIIIIII....IIIIIIIII....IIIIIII....II..SS  488 / 5939 (  8%)
SISSSSSSSSSS.......I...EE..SS..I.III.I.SSSSSSSSS........I..E.  549 / 5939 (  9%)
....................................................SSSSSSSSS  610 / 5939 ( 10%)
SSSSSSSSSSSSSSSSSSSSSSS......EEEEEEEEEE
avatar mbabker
mbabker - comment - 28 Sep 2014

You're getting different errors. The ones from this PR start after 1400 tests, your's are starting much sooner.

avatar fastslack
fastslack - comment - 28 Sep 2014

Seems that this PR has 2 parents. Do you know how to manage PR parents? I ll try to made a new PR, using a new fresh clone.

9f244ad

avatar Hils
Hils - comment - 28 Sep 2014

Shouldn't we be using UTC now and not GMT?

http://en.wikipedia.org/wiki/Coordinated_Universal_Time
"Time zones around the world are expressed as positive or negative offsets from UTC, as in the list of time zones by UTC offset.

UTC is used in many Internet and World Wide Web standards. The Network Time Protocol, designed to synchronise the clocks of computers over the Internet, encodes times using the UTC system.[12]

Computer servers, online services and other entities that rely on having a universally accepted time use UTC as it is more specific than GMT. If only limited precision is needed, clients can obtain the current UTC from a number of official Internet UTC servers. For sub-microsecond precision, clients can obtain the time from satellite signals.

UTC is also the time standard used in aviation,[13] e.g., for flight plans and air traffic control clearances. Weather forecasts and maps all use UTC to avoid confusion about time zones and daylight saving time. "

Hils

avatar brianteeman
brianteeman - comment - 28 Sep 2014

@hils we already use UTC

avatar Hils
Hils - comment - 28 Sep 2014

Thanks Brian - so why is GMT mentioned in this PR? is it because of this? :
http://de2.php.net/manual/en/function.gmdate.php

avatar Hils
Hils - comment - 28 Sep 2014

PS - ignore me if it is a dumb question, I know this isn't the place for education sorry!

avatar brianteeman
brianteeman - comment - 28 Sep 2014

Because GMT and UTC are functionally the same people often swap the names.
The fact is that the TEXT in global config is UTC so your original post is
not relevant
On 28 Sep 2014 19:58, "Hils" notifications@github.com wrote:

PS - ignore me if it is a dumb question, I know this isn't the place for
education sorry!


Reply to this email directly or view it on GitHub
#4379 (comment).

avatar Hils
Hils - comment - 28 Sep 2014

Thanks again Brian

"the TEXT in global config is UTC" - yes & good
Hopefull soon UTC will be used throughout the code & text at some point.

Eventually my post might be relevant ;)

avatar fastslack fastslack - close - 29 Sep 2014
avatar fastslack fastslack - close - 29 Sep 2014
avatar fastslack fastslack - change - 29 Sep 2014
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-09-29 01:01:20
avatar fastslack fastslack - head_ref_deleted - 29 Sep 2014

Add a Comment

Login with GitHub to post a comment