Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
expected and actual unit test failures
  • Hi 
    I am surprised that core file tests are failing, not sure why. Here is the output for some of the files:

    There were 13 failures:

    1) Fuel\Core\Test_Fieldset::test_for_in_label
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'<form action="welcome/index" accept-charset="utf-8" method="post"><table><tr><td class=""></td><td class=""><input type="radio" value="0" id="form_gender_0" name="gender" /> <label for="form_gender_0">male</label><br /><input type="radio" value="1" id="form_gender_1" name="gender" checked="checked" /> <label for="form_gender_1">female</label><br /><span></span></td></tr></table></form>'
    +'<ul><tr><td class=""></td><td class=""><input type="radio" value="0" id="gender_0" name="gender" /> <label for="gender_0">male</label><br /><input type="radio" value="1" id="gender_1" name="gender" checked="checked" /> <label for="gender_1">female</label><br /></td></tr>'

    /home/use/Sites/depot/fuel/core/tests/fieldset.php:55

    2) Fuel\Core\Test_Form::test_input_prep
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'<input name="name" value="&quot;H&amp;M&quot;" type="text" id="form_name" />'
    +'<input name="name" value="&quot;H&amp;M&quot;" type="text" id="name" />'

    /home/user/Sites/depot/fuel/core/tests/form.php:53


  • On which version? The tests on 1.6/develop run fine, I run those on a daily basis.
  • Just ran the tests on 1.5.2, they run fine too.
  • HarroHarro
    Accepted Answer
    Ah, I see it.

    The 'id' of the generated HTML is different, and this is probably because you run the tests on an installation that has modified config files. In this case, the form.php config file.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion