- 1
[Opened] Test unitaires
Posted by djanke on 01/02/2008 16:45
Après installation j'ai cette erreur
Fatal error: Call to undefined function filter_var() in D:\www_dpi\e107\jelix\lib\jelix\utils\jFilter.class.php on line 63
[Opened] Re: Test unitaires
Posted by laurentj on 01/02/2008 22:47
Les fonctions filter sont dans PHP 5.2 minimum.
Les paquets officels de Jelix sont fait pour PHP 5.2 minimum (Le projet suit l'initiative gophp5).
Tu as donc 3 possibilités :
- Soit te construire un paquet (un "build") jelix pour des versions antérieures de PHP. Voir les instructions.
- Soit tu installes l'extension filter sur ton serveur
- soit tu mets à jour PHP vers la dernière version.
[Opened] Re: Test unitaires
Posted by djanke on 01/03/2008 09:31
Je suis effectivement en PHP 5.1.4 Merci meilleurs voeux Laurent.
[Opened] Re: Test unitaires
Posted by laurentj on 01/04/2008 10:42
Tout d'abord, je pense que tu n'a pas activé pdo entièrement. Il y a l'extension pdo.dll à activer mais aussi pdo_mysql, ou pdo_pgsql etc..
Bon sinon, tout les fails que tu indiques sont corrigés dans la RC2. Met à jour Jelix ;-)
[Opened] Re: Test unitaires
Posted by djanke on 01/04/2008 11:21
Après intallation de la RC2 au niveau des tests unitaires reste 1 erreur dans le module jforms: htmlbuilder
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputCheckboxes -> Equal expectation fails at character 1 with <input type="checkbox" name="choixsimple(..) and <span class="jforms-chkbox jforms-ctl-ch(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="checkbox" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label><input type="checkbox" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label><input type="checkbox" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label>
+<span class="jforms-chkbox jforms-ctl-choixsimple"><input type="checkbox" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label></span><span class="jforms-chkbox jforms-ctl-choixsimple"><input type="checkbox" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label></span><span class="jforms-chkbox jforms-ctl-choixsimple"><input type="checkbox" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label></span>
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputCheckboxes -> Equal expectation fails at character 1 with <input type="checkbox" name="choixmultip(..) and <span class="jforms-chkbox jforms-ctl-ch(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_" value="10" checked="checked"/><label for="jform1_choixmultiple_">foo</label><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_1" value="11"/><label for="jform1_choixmultiple_1">bar</label><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_2" value="23" checked="checked"/><label for="jform1_choixmultiple_2">baz</label>
+<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_" value="10" checked="checked"/><label for="jform1_choixmultiple_">foo</label></span><span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_1" value="11"/><label for="jform1_choixmultiple_1">bar</label></span><span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_2" value="23" checked="checked"/><label for="jform1_choixmultiple_2">baz</label></span>
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputCheckboxes -> Equal expectation fails at character 1 with <input type="checkbox" name="choixmultip(..) and <span class="jforms-chkbox jforms-ctl-ch(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_" value="10" checked="checked" readonly="readonly"/><label for="jform1_choixmultiple_">foo</label><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_1" value="11" readonly="readonly"/><label for="jform1_choixmultiple_1">bar</label><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_2" value="23" checked="checked" readonly="readonly"/><label for="jform1_choixmultiple_2">baz</label>
+<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_" value="10" checked="checked" readonly="readonly"/><label for="jform1_choixmultiple_">foo</label></span><span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_1" value="11" readonly="readonly"/><label for="jform1_choixmultiple_1">bar</label></span><span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple" id="jform1_choixmultiple_2" value="23" checked="checked" readonly="readonly"/><label for="jform1_choixmultiple_2">baz</label></span>
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputRadiobuttons -> Equal expectation fails at character 1 with <input type="radio" name="choixsimple" i(..) and <span class="jforms-radio jforms-ctl-cho(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label>
+<span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label></span>
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputRadiobuttons -> Equal expectation fails at character 1 with <input type="radio" name="choixsimple" i(..) and <span class="jforms-radio jforms-ctl-cho(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label>
+<span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10"/><label for="jform1_choixsimple_">foo</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked"/><label for="jform1_choixsimple_1">bar</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23"/><label for="jform1_choixsimple_2">baz</label></span>
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html.php -> UTjformsHTMLBuilder -> testOutputRadiobuttons -> Equal expectation fails at character 1 with <input type="radio" name="choixsimple" i(..) and <span class="jforms-radio jforms-ctl-cho(..) at D:\www_dpi\e107\testapp\modules\jelix_te(..)
-1 +1
- <input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10" readonly="readonly"/><label for="jform1_choixsimple_">foo</label><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked" readonly="readonly"/><label for="jform1_choixsimple_1">bar</label><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23" readonly="readonly"/><label for="jform1_choixsimple_2">baz</label>
+<span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_" value="10" readonly="readonly"/><label for="jform1_choixsimple_">foo</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_1" value="11" checked="checked" readonly="readonly"/><label for="jform1_choixsimple_1">bar</label></span><span class="jforms-radio jforms-ctl-choixsimple"><input type="radio" name="choixsimple" id="jform1_choixsimple_2" value="23" readonly="readonly"/><label for="jform1_choixsimple_2">baz</label></span>
et une erreur dansle module utils: jfilter
Fail: D:\www_dpi\e107\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsHexInt -> isHexInt('-13213313') at D:\www_dpi\e107\testapp\modules\jelix_te(..)
[Opened] Resolu: Test unitaires
Posted by djanke on 01/04/2008 14:20
Après réinstall de testapp tout les tests Unitaires se déroulent sans Erreurs.
Il me restait une erreur javascript jforms indéfini au niveau des pages de formulaire qui disparait en recopiant le repertoire jelix-www sous /tetsapp/www/jelix sachant que pour débuter je n'ai pas défini d'alias et installé le core de jelix dans un répertoire nommé lib
Merci pour tout je continu par les tutos.
- 1