Re[2]: [PEAR-DEV] [new] PEAR::assertExtension()

From: Date: Tue, 18 Jun 2002 17:50:02 +0000
Subject: Re[2]: [PEAR-DEV] [new] PEAR::assertExtension()
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7195@lists.php.net to get a copy of this message
Hi, >> What about moving it inside the PHPUnit package instead of PEAR root >> class ? PHPUnit_Assert class seems a better choice to me. > This has nothing to do with PHPUnit's assertions. I disagree, I think that this one can be useful to check all required extensions for a specific framework deployment. function assertExtension($extensionName, $assertMsg = ''){ if (FALSE == PEAR::assertExtension($extensionName)) { if (empty($assertMsg)) { $assertMsg = $extensionName.' extension is required, but not available !'; } return $this->fail($assertMsg); } return $this->pass(); } Don't you agree ? Best regards, M@rms -- Searching for a PHP IDE ? I've found mine: http://www.phpedit.net/

« previous php.pear.dev (#7195) next »