Those tests (test 1-4) doesn't need such skipifs because
they are intended to check whether the determination works
properly without dependency on mbstring.

Moriyoshi

[EMAIL PROTECTED] (Marcus Börger) wrote:

> These tests must have a skipif logic since the ini value
> mbstring.internal_encoding is only read if mbstring is available.
> 
> --SKIPIF--
> <?php if (!extension_loaded("mbstring")) die('skip mbstring not available');?>
> 
> marcus
> 
> At 23:11 24.10.2002, Moriyoshi Koizumi wrote:
> >moriyoshi               Thu Oct 24 17:11:41 2002 EDT
> >
> >   Added files:
> >     /php4/ext/standard/tests/strings    htmlentities1.phpt
> >                                         htmlentities2.phpt
> >                                         htmlentities3.phpt
> >                                         htmlentities4.phpt
> >                                         htmlentities5.phpt
> >                                         htmlentities6.phpt
> >                                         htmlentities7.phpt
> >                                         htmlentities8.phpt
> >                                         htmlentities9.phpt
> >   Log:
> >   Added new test cases for htmlentities
> >
> >
> >
> >Index: php4/ext/standard/tests/strings/htmlentities1.phpt
> >+++ php4/ext/standard/tests/strings/htmlentities1.phpt
> >--TEST--
> >htmlentities() test 1 (cp1252)
> >--INI--
> >mbstring.internal_encoding=pass
> >--FILE--
> ><?php
> >         var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, 'cp1252'));
> >         var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252'));
> >?>
> >--EXPECT--
> >string(28) "&sbquo;&dagger;&trade;&Yuml;"
> >string(32) "&euro;&cent;&pound;&curren;&yen;"
> >
> >Index: php4/ext/standard/tests/strings/htmlentities2.phpt
> >+++ php4/ext/standard/tests/strings/htmlentities2.phpt
> (...)
> 


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to