Re: [cowiki-dev] Unit Testing
PAUL HANCHETT <[email protected]>
| Newsgroups | gmane.comp.php.cowiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Daniel T. Gorski wrote: >There is only one "but" :) But: as of the language structure of loose >variable typing it will get difficult to test PHP/coWiki scripts - >especially if there are methods that have variables passed prefixedwith an >"$m", which stands for "mixed": public function method($mFoo) .. or return >such "mixed" variables (string or array e.g). > > Yes, you are right. Unit testing always produces an X% solution where X > 0, something is tested. If unit testing is not done, X==0 and there is more work to do. Unit testing doesn't prove the code is *right*, it only proves that some of it is not _wrong_! Unit testing is one of just a few disciplines from XP that I agree with! ;-) >Anyway unit testing is good, but you'll swear in many cases in current coWiki >:) > > :-) Paul