How to Test Zend Framework Applications with Codeception - Part Two
In part two of the series on testing Zend Framework applications with Codeception, we see how to retrieve and test registered services using BDD-style testing
This week’s been an exciting one on the podcast, with two new episodes covering interoperability and how to configure Zend Expressive applications. Here’s a recap.
This week’s been an exciting one on the podcast, with two new episodes covering interoperability and how to configure Zend Expressive applications. Here’s a recap.
On Monday episode four of the podcast was released. In this one I talked about a key benefit of building applications with Zend Expressive, as it’s built on PSR-7 - Interoperability. Here’s an summary:
Interoperability moves us, as a community, yet further away from silo’d implementations and full stack or kitchen sink approaches, which we’ve known in the PHP community for some years now.
What’s more, it encourages us to drop an old attitude which has persisted in the PHP community for too long: “not made, or not developed, here”.
This attitude resulted in copious amounts of duplicate code; duplicate code instead of best-of-breed libraries. Libraries which the entire community knows about, critiques, and improves.
Check out the episode for more. I’m sure you’ll get a lot out of it.
Yesterday, episode 5 of the podcast was released. In this one I talked about the essentials of configuring an expressive application, one based on the standalone installer. Specifically, I covered the four types of applications which can commonly built with expressive. These are:
Check out the episode for more. I’m sure you’ll see just how flexible and accommodating Zend Expressive is, especially in comparison to previous versions of Zend Framework, and how things used to be in PHP.
Next week, the momentum continues! On Monday I’m talking about the standard expressive directory structure. On Thursday I’m giving an overview of the default expressive routing library, FastRoute. See you then!
In part two of the series on testing Zend Framework applications with Codeception, we see how to retrieve and test registered services using BDD-style testing
Testing is essential for creating reliable software. Whether you’re writing a small application for your local club or an application to back your startup, it needs test coverage to ensure it works properly. In this series, I show you how to test Zend Framework 2 applications using the comprehensive testing framework - Codeception.
**Do you test your application in the right way? Or do you attempt to do it all at once, in many locations? When you’re stuck, do you ask for help?
Do you need to mock objects in your Zend Framework 2 applications and find PHPUnit unintuitive, even difficult? If so, come and learn Mockery instead.
Please consider buying me a coffee. It really helps me to keep producing new tutorials.
Join the discussion
comments powered by Disqus