News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Internet Super Hero:
PHP mysqlnd and its tests
July 30, 2007 @ 15:55:00

The Internet Super Hero blog has posted some new tests using the mysqlnd driver for PHP and shows you how it's all done for you to follow along at home.

PHP extensions can test their userland (PHP) functionality using so called "phpt Tests". phpt Tests consist of several parts with their main part being regular PHP code to test PHP. On the website of the PHP Quality Assurance Team you can find a documentation of the phpt Tests syntax on the page Writing Tests, if your are interested in the details. Most extensions contain a tests/ subdirectory in the PHP source code to ship the tests together with C code of the extensions. So do ext/mysql and ext/mysqli.

They show the testing structure they used and some of the stats they found from their runs. The rest of the post is dedicated to how it was all set up:

  • implemented as phpt Tests
  • which need new settings
  • Using run-tests.php to run the tests
  • Failing tests
  • Useful run-tests.php options and features

They also briefly mention what a typical set of test results are (for the time the post was made).

0 comments voice your opinion now!
mysqlnd test tutorial php6 tree phpt mysqlnd test tutorial php6 tree phpt


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Patterns for Flexible View Handling, Part 1 - Working with Composites

Mike Lively's Blog: Adding Database Tests to Existing PHPUnit Test Cases

PHPBuilder.com: Building RESTful Web Services with the Zend Framework

Nadeau Software: PHP tip: How to get a web page using CURL

NETTUTS.com: 20 Steps to a Flexible and Secure WordPress Installation


Community Events

Don't see your event here?
Let us know!


language xdebug php7 opinion framework laravel5 install interview library introduction api release extension community example laravel voicesoftheelephpant podcast series unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework