O'Reilly logo

CodeIgniter for Rapid PHP Application Development by David Upton

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 8. Using CI to Test Code

This chapter looks at how CI can help you to test your code. Testing is the heart of our application. We've built it to test other remote applications; we also want to test it itself, as we develop it. CI makes this a lot easier.

However, 'testing' can mean a lot of things, so we start off by looking at the difference between the two main types, and at some other reasons for which you might want to run tests.

Then we look at CI classes to help with testing:

  • Unit tests

  • Benchmarking

  • The 'profiler'

  • Ways in which CI helps you to involve your database in tests without scrambling live data

Why Test, and What For?

A lot has been written about testing. It has become an industry. Complex programs employ an army of testers or test ...

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