O'Reilly logo

Learning Yii Testing by Matteo Pescarin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Testing the API – PHPBrowser to the Rescue

We are now going to delve into functional testing. In the previous chapter, we created the initial steps that deal with the user model, but now we will be creating the REST interface that deals with the user.

Before we even start to worry about the REST interface and its tests, we will be analyzing what's already available in the Yii basic app and later expand on the topic to create more awesome stuff.

This chapter is hence divided into three sections with an increasing level of difficulty, so keep your eyes peeled and feel free to revisit it multiple times until you understand each section which are:

  • Functional tests in Yii 2
  • Functional tests for REST interfaces
  • Creating a RESTful web service with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required