I'm planning an Apigility driven RESTful Zend Framework 2 application. For unit testing and probably also for database testing PHPUnit will be used. Now I'm about to defining functional tesgin for the application.
"Functional testing" means for me the testing of the real functionality. It also gets an integration testing aspect, since the application gets then tested "intermodularily", so it's a testing across the units/modules. (Is my understanding of the functional testing correct?)
For this testing real request will be sent and the responces compared with the expectations. With the writing requests it might be a bit more complex, but to keep it simple let's consider the GET
case only first.
(Right?)
For this purpose using of behavior testing seems to make sence. (Actually I simply don't see any other appropriate approaches.) (Right?)
If one of my logical steps is false, please correct me.
What behavior testing tools can be used in the context of a RESTful PHP (ZF2) application? PHPUnit Story Extension? behat? phpspec? Other frameworks? Or maybe direct testing over PHPUnit (defining a separate test suite and executing in its test classes behavior tests with API-calls)?
Or is all this wrong and the functional testing needs a completely different approach?