Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9748 > unrolled thread

PDO Unit Tests

Started byBennett Talpers <dempaaaaaa@gmail.com>
First post2013-06-03 08:53 -0700
Last post2013-06-03 21:27 +0200
Articles 4 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  PDO Unit Tests Bennett Talpers <dempaaaaaa@gmail.com> - 2013-06-03 08:53 -0700
    Re: PDO Unit Tests Jerry Stuckle <jstucklex@attglobal.net> - 2013-06-03 12:27 -0400
    Re: PDO Unit Tests Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-03 19:40 +0200
    Re: PDO Unit Tests Christoph Becker <cmbecker69@gmx.de> - 2013-06-03 21:27 +0200

#9748 — PDO Unit Tests

FromBennett Talpers <dempaaaaaa@gmail.com>
Date2013-06-03 08:53 -0700
SubjectPDO Unit Tests
Message-ID<982c100d-ca64-4fe6-8590-ecf15821b84b@googlegroups.com>
Are there any unit tests that test PDO functionality?

[toc] | [next] | [standalone]


#9750

FromJerry Stuckle <jstucklex@attglobal.net>
Date2013-06-03 12:27 -0400
Message-ID<koifsp$tj0$1@dont-email.me>
In reply to#9748
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@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#9751

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-06-03 19:40 +0200
Message-ID<20171097.EpMxdoLQ77@PointedEars.de>
In reply to#9748
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@news.demon.co.uk> (2004)

[toc] | [prev] | [next] | [standalone]


#9752

FromChristoph Becker <cmbecker69@gmx.de>
Date2013-06-03 21:27 +0200
Message-ID<koiqmh$hj8$1@speranza.aioe.org>
In reply to#9748
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web