PHP 5.2.1RC2-dev vs. Zend Framework 0.2.0
| From: | Sebastian Nohn | Date: | Sun, 17 Dec 2006 18:38:49 +0000 |
| Subject: | PHP 5.2.1RC2-dev vs. Zend Framework 0.2.0 | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-26962@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Some ZF 0.2.0 Unit Tests fail on PHP 5.2.1RC2-dev, you can ignore tests
1-6, these already fail on 5.2.0 (ZF-463). The method in question looks
like this:
public function toString($factory = null)
{
if (is_integer($this->value)) {
return (string)$this->value;
}
/**
* PDF doesn't support exponental format.
* Fixed point format must be used instead
*/
$prec = 0; $v = $this->value;
while (abs( floor($v) - $v ) > 1e-10) {
$prec++; $v *= 10;
}
return sprintf("%.{$prec}F", $this->value);
}
I wonder wether this is a bug in PHP or ZF and like to ask for your
opinion before posting it.
- ---- cut here ----
PHPUnit 3.0.0 by Sebastian Bergmann.
.........................................
...............F.................FF..FFF.
.........................................
...........E.............................
.........................................
.........................................
.........................................
...................F..........FF.........
....FFF..................................
..............................
Time: 00:00
There was 1 error:
1) testIterator(Zend_ConfigTest)
Object of class Zend_Config could not be converted to string
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/ConfigTest.php:173
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
There were 12 failures:
1) testCleanModeAllWithHashedDirectoryStructure(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Cache/FileBackendTest.php:78
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
2) testCleanModeAll(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
3) testCleanModeOld(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
4) testCleanModeNotMatchingTags(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
5) testCleanModeNotMatchingTags2(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
6) testCleanModeNotMatchingTags3(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
7) testToString(Zend_Pdf_Element_ArrayTest)
Failed asserting that <string:[false 100.426 /MyName (some text) ]> is
equal to <string:[false 100.43 /MyName (some text) ]>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/ArrayTest.php:112
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
8) testToString(Zend_Pdf_Element_DictionaryTest)
Failed asserting that <string:<</Bool false /Number 100.426 /Name
/MyName /Text (some text) /BinaryText <010200FF> >>> is equal to
<string:<</Bo
ol false /Number 100.43 /Name /MyName /Text (some text) /BinaryText
<010200FF> >>>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/DictionaryTest.php:107
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
9) testAdd(Zend_Pdf_Element_DictionaryTest)
Failed asserting that <string:<</Var1 false /Var2 100.426 /Var3 /MyName
/Var4 (some text) >>> is equal to <string:<</Var1 false /Var2 100.43 /Va
r3 /MyName /Var4 (some text) >>>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/DictionaryTest.php:118
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
10) testToStringFloat1(Zend_Pdf_Element_NumericTest)
Failed asserting that <string:100.426> is equal to <string:100.43>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/NumericTest.php:57
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
11) testToStringFloat2(Zend_Pdf_Element_NumericTest)
Failed asserting that <string:100.42633> is equal to <string:100.4263>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/NumericTest.php:63
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
12) testToStringFloat3(Zend_Pdf_Element_NumericTest)
Failed asserting that <string:-100.426> is equal to <string:-100.43>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Pdf/Element/NumericTest.php:69
/home/cruise/cruisecontrol/projects/PHP_5_2/slash/opt/php/bin/phpunit:40
FAILURES!
Tests: 399, Failures: 12, Errors: 1.
- ---- cut here ----
You can ignore tests 1-6, these already fail with 5.2.0:
- ---- cut here ----
PHPUnit 3.0.0 by Sebastian Bergmann.
.........................................
...............F.................FF..FFF.
.........................................
...........E.............................
.........................................
.........................................
.........................................
.........................................
.........................................
..............................
Time: 00:00
There was 1 error:
1) testIterator(Zend_ConfigTest)
Object of class Zend_Config could not be converted to string
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/ConfigTest.php:173
/opt/php/bin/phpunit:40
There were 6 failures:
1) testCleanModeAllWithHashedDirectoryStructure(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/home/cruise/cruisecontrol/projects/PHP_5_2/tests/frameworks/ZendFramework-0.2.0/tests/Zend/Cache/FileBackendTest.php:78
/opt/php/bin/phpunit:40
2) testCleanModeAll(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/opt/php/bin/phpunit:40
3) testCleanModeOld(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/opt/php/bin/phpunit:40
4) testCleanModeNotMatchingTags(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/opt/php/bin/phpunit:40
5) testCleanModeNotMatchingTags2(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/opt/php/bin/phpunit:40
6) testCleanModeNotMatchingTags3(Zend_Cache_FileBackendTest)
Failed asserting that <boolean:false> is identical to <boolean:true>.
/opt/php/bin/phpunit:40
FAILURES!
Tests: 399, Failures: 6, Errors: 1.
- ---- cut here ----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFhY64svwfldR9VeARAhq1AJ9XO7VkZ6q7JhnfcjWMDhGMTj7mSACfenwc
BeninWav/jmSdOJebznzdrc=
=y8cD
-----END PGP SIGNATURE-----