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

From: Date: Tue, 18 Jun 2002 18:33:00 +0000
Subject: PEAR::loadExtension() (was Re: Re[2]: [PEAR-DEV] [new] PEAR::assertExtension())
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7196@lists.php.net to get a copy of this message
Please note that the final name I choosen was PEAR::loadExtension($ext), not assertExtension(). Tomas V.V.Cox El mar, 18-06-2002 a las 19:50, M@rms escribió: > 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/ > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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