Interested in learning how to get started testing your PHP applications? In this course, Andrew Perkins will teach you the very basics of testing in the PHP language. Learn what is needed to test PHP applications and why testing is important. Explore the differences between regular testing, test-driven development (TDD) and behavior-driven development (BDD). Along the way, take a look at the various frameworks that are available, to make sure your PHP websites run just as you expected. And lastly, compare and contrast the different types of tests that you can run such as unit, functional, and acceptance tests.
1.Introduction3 lessons, 05:32
2.Testing Methodologies3 lessons, 24:26
3.PHP Testing Frameworks3 lessons, 08:25
4.Test Types3 lessons, 36:05
5.Conclusion1 lesson, 00:36
Hello, and welcome. My name's Andrew Perkins. Are you interested in learning how to get started testing your PHP applications? In this course I'll teach you the very basics of testing in the PHP language. We'll first go over what is required to test your PHP applications, and what testing is itself, as well as why testing is important. We'll explore the differences between the way that a beginner may test their PHP applications and the differences between using test-driven development, or TDD for short, and behavior-driven development, or BDD for short. Along the way we'll be taking a look at the various frameworks that are available to make sure your PHP websites run just as you expect. We'll be examining the popular PHPUnit framework, Codeception, and Behat. And then lastly, we'll compare and contrast the different types of tests that you can run such as unit, functional, and acceptance tests. By the end you should have a good foundation of beginner testing knowledge to then take some of more intermediate testing courses here at Tuts+. Next up, we'll review this course's requirements and expected knowledge that you'll need in order to follow along. I'll see you there.
All right. Before we get into any testing, we should first review what you should know and what you're going to need in order to follow along with this course. Let's start with what basic programming and web development knowledge you should have. For this course, you should be able to read and write basic HTML, CSS, and PHP. You should also know how to read and write object oriented PHP and you should have basic working knowledge on how to access your computer's terminal or command-line. Now if you're unsure about any of these topics browse around here at Tutsplus and I'm sure you can find some courses to help you get up to speed. Then come back here when you're ready. Now let's move on to what you'll need to have installed. For this course you'll need to have PHP installed. Preferably a recent version. I'm using PSP version 5.5. You also need a working local development server to test your code like Apache. Now if you're using PHP version 5.4 or greater, you can also use the built in PHP server. You'll need access to your terminal or command line. If you don't know how to access these programs a quick Google search will point you in the right direction. Since I'm on a Mac I'm going to be using My Terminal. You will also need a text editor or IDE of some sort to edit your PHP files. I'll be using Sublime Text. And now lastly, you'll need your favorite browser. For this course, I'm going to be using Firefox, but you can use whatever you'd like. All right, so that's it. Now much is required to follow along. Next up, we'll learn what PHP testing is and why it's so important. I'll see you there.