Re: Re: cvs: pear / AllTests.php

From: Date: Fri, 06 Jul 2007 03:28:36 +0000
Subject: Re: Re: cvs: pear / AllTests.php
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47239@lists.php.net to get a copy of this message
Lorenzo if you want to see some mocks of database you can look in pearweb/tests theres a bunch testing the databse (mocking) On 7/5/07, Christian Weiske <cweiske@cweiske.de> wrote:
Lorenzo, wow, it looks like you're adding a wonderful QA tool to the stack, thanks! :) I hope it will be useful typo: "... to contain every ..." Fixed. Btw, will it work for packages like MDB2 where you have external dependencies (database extensions and test databases), or like Mail where you need to set some settings about system tools (sendmail etc)? If you rely on external dependencies, then you should a) provide a stub that simulates the expected behavior of your external resource so that the tests can run without that e.g. database not everyone has [1] b) Check if the resource is available and mark the test as skipped if not.. -> $this->markTestSkipped(); in phpunit [1] http://www.phpunit.de/pocket_guide/3.1/en/mock-objects.html
    Section "stubs"
-- Mit freundlichen Grüßen/Regards, Christian Weiske -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18

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