From the course: PHP: Testing Legacy Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Bootstrap sequences, part 2

Bootstrap sequences, part 2

From the course: PHP: Testing Legacy Applications

Start my 1-month free trial

Bootstrap sequences, part 2

- [Instructor] Having taken a look at everything that's involved in the bootstrapping sequence, now I want to write some tests to make sure that all the functionality surrounding updating an existing test works correctly. So if I switch over to it, and I'm going to scroll to the top of the file. Again, you can see some similar things from the bootstrap file in the index declaring that we want types, we have a named space that we want this test to be inside, we've decided just for organizational purposes to have a separate name space just for tests. I'm going to click here on line 16 to show you, here's all the dependencies and other things that we need to load. All theses dependencies you see from line 16 to 26 are being loaded behind the scenes by the kernel in conjunction with all those entries that are in this services file. It's going to read this and load everything that we need so that the request is ready to go. Now for testing purposes, we have to override these things because…

Contents