List Info

Thread: PEAR_RunTest integration in PHPUnit 3.1.4




PEAR_RunTest integration in PHPUnit 3.1.4
user name
2007-07-23 03:30:02
 Hi!

 As requested from the PEAR community, there is now support
for .phpt
 tests in PHPUnit 3.1.4 [1] by means of integrating
PEAR_RunTest.

 The following example will create a TestCase for a single
.phpt file:

   <?php
   require_once 'PHPUnit/Extensions/PhptTestCase.php';

   $test = new
PHPUnit_Extensions_PhptTestCase('/path/to/test.phpt');
   ?>

 The following example will traverse the given directory,
collect all
 .phpt files, and add them to a TestSuite:

   <?php
   require_once 'PHPUnit/Extensions/PhptTestSuite.php';

   $suite = new
PHPUnit_Extensions_PhptTestSuite('/path/to/tests');
   ?>

 Cheers,
Sebastian

 --
 [1] http://www.phpunit.de/wiki/ChangeLog#PHPUnit3.1.423-
Jul-2007

-- 
Sebastian Bergmann                          http://sebastian-bergma
nn.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867
C514 B85B 5D69

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PEAR_RunTest integration in PHPUnit 3.1.4
user name
2007-07-23 04:47:57
Sebastian Bergmann wrote:
>  Hi!
> 
>  As requested from the PEAR community, there is now
support for .phpt
>  tests in PHPUnit 3.1.4 [1] by means of integrating
PEAR_RunTest.
> 

Excellent news !

Arnaud.

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PEAR_RunTest integration in PHPUnit 3.1.4
user name
2007-07-23 07:40:21
Sebastian,


>  As requested from the PEAR community, there is now
support for .phpt
>  tests in PHPUnit 3.1.4 [1] by means of integrating
PEAR_RunTest.
This is really great.
I haven't had time to develop code coverage integration but
will do
this end of the week.


-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PEAR_RunTest integration in PHPUnit 3.1.4
user name
2007-07-23 19:05:01
Sebastian Bergmann wrote:
>  Hi!
> 
>  As requested from the PEAR community, there is now
support for .phpt
>  tests in PHPUnit 3.1.4 [1] by means of integrating
PEAR_RunTest.

Hi Sebastian,

As always, impressive and interesting work!  Plans for
splitting
PEAR_RunTest into its own PEAR2-based package are underway
that should
make your life a whole lot easier for future versions.  Just
don't hold
your breath, there are a few other issues to work out before
PEAR2 work
can begin in earnest 

Greg

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )