Book Image

Learning Yii Testing

Book Image

Learning Yii Testing

Overview of this book

Table of Contents (16 chapters)
Learning Yii Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing Selenium WebDriver


Yii is shipped with some acceptance tests. They cover the same elements as the functional tests that we've already seen. The only difference between these two tests is technical, and by looking at the configuration you can see that they've been configured to run with PHPBrowser. This setup may be good enough for you, or it may even be better because PHPBrowser runs faster than the available acceptance testing suites.

Setting aside PHPBrowser, which we've covered in Chapter 6, Testing the API – PHPBrowser to the Rescue, Codeception can be used with other testing suites, which can perform more realistic frontend tests, including the JavaScript interaction.

Two of the choices you can have are Selenium WebDriver and PhantomJS. We won't touch PhantomJS, and it should be sufficient to know that it is a headless browser testing suite, which uses the WebDriver interface definition.

Selenium WebDriver is also known as Selenium 2.0 + WebDriver. Together with Cucumber, it...