For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > July 2007 > PEAR run-tests and code coverage problem ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PEAR run-tests and code coverage problem ?
Laurent Laville

2007-06-26, 4:02 am

Hi,

While I try for the first time the PEAR run-tests command under PEAR
1.6.1, i run in trouble when using the code coverage option.

C:\wamp\php>pear -V
PEAR Version: 1.6.1
PHP Version: 5.2.3


Xdebug 2.0.0RC4 was installed on my platform (see below)

C:\wamp\php>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
libxml
mbstring
mysql
mysqli
odbc
pcre
PDO
pdo_sqlite
Reflection
session
SimpleXML
SPL
SQLite
standard
tidy
tokenizer
wddx
*xdebug*
xml
xmlreader
xmlwriter
zlib

[Zend Modules]


So my first attempt to test the PEAR::Log package was :

C:\wamp\php>pear -c pear.ini run-tests -p Log

Where I got these results

Running 16 tests
PASS [ 1/16] Log: Composite Handler[PEAR\tests\Log\tests\composite.phpt]
PASS [ 2/16] Log: Console Handler[PEAR\tests\Log\tests\console.phpt]
PASS [ 3/16] Log: Display Handler[PEAR\tests\Log\tests\display.phpt]
SKIP Log: Error_Log Handler[PEAR\tests\Log\tests\error_log.phpt]
SKIP Log: _extractMessage() [Zend Engine
1.0][PEAR\tests\Log\tests\extract-zend1
..phpt]
SKIP Log: _extractMessage() [Zend Engine
2.0][PEAR\tests\Log\tests\extract-zend2
..0.phpt]
PASS [ 7/16] Log: _extractMessage() [Zend Engine
2.2][PEAR\tests\Log\tests\extra
ct-zend2.2.phpt]
PASS [ 8/16] Log: Factory[PEAR\tests\Log\tests\factory.phpt]
PASS [ 9/16] Log: File Handler[PEAR\tests\Log\tests\file.phpt]
PASS [10/16] Log: Firebug Handler[PEAR\tests\Log\tests\firebug.phpt]
PASS [11/16] Log: Levels[PEAR\tests\Log\tests\levels.phpt]
PASS [12/16] Log: Null Handler[PEAR\tests\Log\tests\null.phpt]
PASS [13/16] Log: Priorities[PEAR\tests\Log\tests\priority
.phpt]
PASS [14/16] Log: Singleton[PEAR\tests\Log\tests\singleton
.phpt]
FAIL [15/16] Log: Sqlite Handler[PEAR\tests\Log\tests\sqlite.phpt]
SKIP Log: SQL setIdent()[PEAR\tests\Log\tests\sql_iden
t.phpt]
wrote log to "C:\wamp\php\run-tests.log"
TOTAL TIME: 00:09
11 PASSED TESTS
4 SKIPPED TESTS
1 FAILED TESTS:
C:\wamp\php\pear\tests\Log\tests\sqlite.phpt


Then my second attempt was with code coverage option :

C:\wamp\php>pear -c pear.ini run-tests -x -p Log

Where I got these results

Running 16 tests
FAIL [ 1/16] Log: Composite Handler[PEAR\tests\Log\tests\composite.phpt]
FAIL [ 2/16] Log: Console Handler[PEAR\tests\Log\tests\console.phpt]
FAIL [ 3/16] Log: Display Handler[PEAR\tests\Log\tests\display.phpt]
SKIP Log: Error_Log Handler[PEAR\tests\Log\tests\error_log.phpt]
SKIP Log: _extractMessage() [Zend Engine
1.0][PEAR\tests\Log\tests\extract-zend1
..phpt]
SKIP Log: _extractMessage() [Zend Engine
2.0][PEAR\tests\Log\tests\extract-zend2
..0.phpt]
FAIL [ 7/16] Log: _extractMessage() [Zend Engine
2.2][PEAR\tests\Log\tests\extra
ct-zend2.2.phpt]
FAIL [ 8/16] Log: Factory[PEAR\tests\Log\tests\factory.phpt]
FAIL [ 9/16] Log: File Handler[PEAR\tests\Log\tests\file.phpt]
FAIL [10/16] Log: Firebug Handler[PEAR\tests\Log\tests\firebug.phpt]
FAIL [11/16] Log: Levels[PEAR\tests\Log\tests\levels.phpt]
PASS [12/16] Log: Null Handler[PEAR\tests\Log\tests\null.phpt]
FAIL [13/16] Log: Priorities[PEAR\tests\Log\tests\priority
.phpt]
FAIL [14/16] Log: Singleton[PEAR\tests\Log\tests\singleton
.phpt]
FAIL [15/16] Log: Sqlite Handler[PEAR\tests\Log\tests\sqlite.phpt]
SKIP Log: SQL setIdent()[PEAR\tests\Log\tests\sql_iden
t.phpt]
wrote log to "C:\wamp\php\run-tests.log"
TOTAL TIME: 00:09
1 PASSED TESTS
4 SKIPPED TESTS
11 FAILED TESTS:
C:\wamp\php\pear\tests\Log\tests\composi
te.phpt
C:\wamp\php\pear\tests\Log\tests\console
.phpt
C:\wamp\php\pear\tests\Log\tests\display
.phpt
C:\wamp\php\pear\tests\Log\tests\extract
-zend2.2.phpt
C:\wamp\php\pear\tests\Log\tests\factory
.phpt
C:\wamp\php\pear\tests\Log\tests\file.phpt
C:\wamp\php\pear\tests\Log\tests\firebug
.phpt
C:\wamp\php\pear\tests\Log\tests\levels.phpt
C:\wamp\php\pear\tests\Log\tests\priorit
y.phpt
C:\wamp\php\pear\tests\Log\tests\singlet
on.phpt
C:\wamp\php\pear\tests\Log\tests\sqlite.phpt

Here are a resume of packages installed (not all), related to the
problem (I think) :

C:\wamp\php>pear -c pear.ini list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
========================================
=
PACKAGE VERSION STATE
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
Log 1.9.11 stable
PEAR 1.6.1 stable
Structures_Graph 1.0.2 stable


Did I missed something, or is there still a nasty bug somewhere in PEAR
core ?

Best regards
Laurent
Edtedtard

2007-06-30, 2:01 pm

Jennifer Lopez and Hilary Duff , Weird Lesbian Sex Act!
http://www.yourtubeaudio.com/Window...mv?watch=726071
Ermoposterter

2007-07-15, 12:22 am

Tara Reid and Paris Hilton Vibrating In Slits!
http://www.reyrewh.com/Watch?watch=148803


funny sexy video funny cartoon video clip free funny home video funny sick video clip funny sexy video
http://635-funny-video.info/bofunk-...unny-video.html http://635-funny-video.info/free-funny-site-video.html http://635-funny-video.info/funny-video-email.html http://635-funny-video.info/blooper...unny-video.html http://635-funny-video.info/funny-fishing-video.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com