FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PDO Unit Tests
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PDO Unit Tests [message #181798] Mon, 03 June 2013 15:53 Go to next message
Bennett Talpers is currently offline  Bennett Talpers
Messages: 1
Registered: June 2013
Karma: 0
Junior Member
Are there any unit tests that test PDO functionality?
Re: PDO Unit Tests [message #181800 is a reply to message #181798] Mon, 03 June 2013 16:27 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 6/3/2013 11:53 AM, Bennett Talpers wrote:
> Are there any unit tests that test PDO functionality?
>

Sure - the ones you write.

Proper unit tests are VERY SPECIFIC to the unit being tested.

A proper unit test will use both valid and invalid values and
combinations of operations to ensure not only does it work when it
should, it also rejects improper data and/or operations.

Therefore, what is valid for one unit is almost never valid for another
unit.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PDO Unit Tests [message #181801 is a reply to message #181798] Mon, 03 June 2013 17:40 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Bennett Talpers wrote:

> Are there any unit tests that test PDO functionality?

That is a stupid question.

<http://www.catb.org/~esr/faqs/smart-questions.html#idp5239584>


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
Re: PDO Unit Tests [message #181802 is a reply to message #181798] Mon, 03 June 2013 19:27 Go to previous message
Christoph Becker is currently offline  Christoph Becker
Messages: 91
Registered: June 2012
Karma: 0
Member
Bennett Talpers wrote:
> Are there any unit tests that test PDO functionality?

What do you mean? Are you looking for integrated tests of the PDO
library[1], or are you looking for a testing framework which can handle
your code using PDO[2]?

[1] <http://lxr.php.net/xref/PHP_5_4/ext/pdo/tests/>
[2] <http://phpunit.de/manual/current/en/database.html>

--
Christoph M. Becker
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong
Next Topic: I am having some difficulties with Tooltip...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 02:10:57 GMT 2024

Total time taken to generate the page: 0.02327 seconds