 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Matthew Turland's Blog: Database Testing with PHPUnit and MySQL
by Chris Cornutt January 05, 2010 @ 13:24:49
In a new post to his blog Matthew Turland looks at a contribution he recently made to the PHPunit project to help it support database testing without the need for dumping the contents of your database out to a CSV.
If you're using MySQL as your database, CSV has been the only format supported by both the mysqldump utility and the PHPUnit Database extension up to this point. My contribution adds support for its XML format to the extension. While this support was developed to work in the PHPUnit 3.4.x branch, it won't be available in a stable release until 3.5.0. In the meantime, this is how you can use it now.
There's four steps you'll need to do to get it installed - grab the latest from github, create the seed data XML file, make a test case extending PHPUnit_Extensions_Database_TestCase and run your tests against the database information.
voice your opinion now!
phpunit database testing mysql unittest
Giorgio Sironi's Blog: Testing ebook upcoming
by Chris Cornutt November 25, 2009 @ 16:00:15
Giorgio Sironi has a new post talking about his upcoming eBook for all of those interesting in testing PHP applications - "Practical PHP Testing (Don't Let Your PHP be Eaten Alive)".
This publication focuses on testing and designing php code, with the aid of the leading tool for test automation, PHPUnit. Testing is a skill which is often neglected by php developers, but testable code inherit many benefits of the good design rules it is forced to observe.
The book will include the content of his testing series of posts, code examples, a glossary of commonly used terms and several Test-Driven Development exercises in each chapter. He looking to have it published during the beginning of December and will be released under a Creative Commons license. Here's a sneak peek at the cover.
voice your opinion now!
testing unittest book ebook ttd
Giorgio Sironi's Blog: Practical Testing in PHP (Series)
by Chris Cornutt October 02, 2009 @ 11:47:46
Giorgio Sironi has just wrapped up his posts in a series on practical testing of PHP applications with PHPUnit in nine parts:
What is unit testing and why a php programmer should adopt it? It may seem simple, but testing is the only way to ensure your work is completed and you will not called in the middle of the night by a client whose website is going nuts. [...] Unit testing is the process of writing tests which exercise the basic functionality of the smallest cohesive unit in php: a class.
Here's a list of the topics covered in the series:
voice your opinion now!
unittest phpunit series testing
php|architect Blog: Professional Programming DTAP - Part 2 Other moving Pieces
by Chris Cornutt July 27, 2009 @ 14:45:49
The php|architect blog has posted the second part of Cal Evans' series looking at the typical lifecycle of a project - Development, Testing, Acceptance and Production.
In the previous part of this series, we discussed the main pieces needed for a proper development environment. However, there are other, smaller pieces, scripts, subsystems and other very important components of a properly-configured development environment that don't fit in the acronym.
This second part of the series looks at the "T" in DTAP - testing. It mentions unit testing, integration testing and regression testing. He also touches briefly on "refresh scripts" to handle data updates or pushes out to another stage of the process.
voice your opinion now!
dtap programming testing
PHPClasses.org Blog: Book Review Pro PHP Patterns, Frameworks, Testing and More
by Chris Cornutt May 24, 2009 @ 03:10:03
The PHPClasses.org blog has posted a new book review of the APress book "Pro PHP: Patterns, Frameworks, Testing and More" (Kevin McArthur).
If you really want to improve your PHP skills to be at the enterprise level, you must read this book. Despite there are several other PHP books about OOP, I have never seen a book that addresses the subject so deeply and, at the same time, keeping it simple.
The reviewer looks at what the book covers - PHP6, documentation, Phing, SPL and much more. Check out the full review for more on what the reviewer thought.
voice your opinion now!
framework testing pattern apress review book
Lorna Mitchell's Blog: Testing PHP
by Chris Cornutt May 04, 2009 @ 12:06:42
In this new post to her blog Lorna Mitchell talks a bit about the upcoming TestFest event happening in Manchester next weekend and what she's learned about testing PHP to make things flow a bit smoother for her while there (and you, should you want to write tests in the future).
In preparation I decided it was high time to sit down and figure out what testing PHP is all about. People kept telling me it was easy but I had no clear picture of how all the pieces went together - there are different ways of doing the same thing and although I have been keen to get involved with testing for some time, I haven't been able to get started until now.
She looks at the automated tests as a part of the build ("make test") and some of the screens from the lcov testing results. She also recommends reading up on the phpt documentation to help you get going.
voice your opinion now!
testing phpt testfest manchester learn maketest lcov
Quality Assurance in PHP Projects: Testing Database Interaction
by Chris Cornutt March 27, 2009 @ 07:59:36
On the Quality Assurance in PHP Projects site, Mike Lively has written up a few thoughts on how developers and development environments should work with testing databases as resources (case study).
Proper interaction with relational databases is incredibly important in most pieces of software. The importance of this interaction is underscored by the fact that many software architectures have at least one entire layer or system devoted to data persistence and data loading. When dealing with critical data in enterprise level applications it becomes even more important to make sure your data is being stored and retrieved correctly.
He talks about a case study on the topic (still in development) that will talk about testing techniques, functionality and how to create the tests needed to ensure your development environment can correctly use the database resource via unit tests and functional tests.
voice your opinion now!
testing database interaction casestudy mikelively unittest functional
Padraic Brady's Blog: The Mockery An Independent Mock Object and Stub Framework for PHP5
by Chris Cornutt March 06, 2009 @ 10:28:58
Noting the lack of a good, independent library for creating Mock Objects for unit testing PHP scripts, Padraic Brady (with assistance from Travis Swicegood) has come up with a standalone Mock Object and Stub framework - Mockery.
It's not tailored specifically to any one testing framework, rather it's an entirely separate framework with a discrete API. The idea is that you can use this framework within PHPUnit, or SimpleTest, or anything else really, without being forced to rely on the built-in support (if any) that test framework provides. Mockery was designed specifically to implement a form of Domain Specific Language (DSL). It makes extensive use of a fluent interface mixed with methods to approximate plain English.
He includes an overview of what Mock Objects and Stubs are and how to set them up with the Mockery tool. He finishes things off with a look at the Mockery and Mock Object Expectation APIs. You can grab this first release either as a PEAR package or from its github page.
voice your opinion now!
mockery php5 stub testing unittest object simpletest phpunit standalone
|
Community Events
Don't see your event here? Let us know!
|