Join Joseph Lowery for an in-depth discussion in this video Setting up PHPUnit, part of Learning Laravel 4.
Php unit is the primary tool…for unit testing in Laravel.…However, it is not, as of this writing,…bundled with the initial installation.…In this lesson, I'll show you how…to get it set up and ready to run.…As mentioned earlier,…there are a number of ways to install…php unit in Laravel.…But by far, the most convenient and integrated…is through Composer.…To tell Composer that you want to bring…php unit into play,…you'll need to modify the Composer .json file,…which can be found in the root level…of the project.…
Let's open that up.…As you can see, there's a wealth of information here,…from the current Laravel version number…on line seven,…and when I scroll down,…to the preferred type of distribution…that we specified when we created this Laravel project.…And you can see that on line 33.…We're gonna add another specification…that is required only during the development phase…and not live deployment.…But make sure that you've scrolled down…to the bottom of the page…and after the final entry,…where minimum stability is set to stable,…
- Installing Laravel
- Handling testing
- Establishing an HTML view
- Connecting to a database
- Enabling version control
- Setting up-and-running unit tests
Skill Level Intermediate
1. Introduction to Laravel
2. Creating Initial Laravel Pages
3. Displaying Laravel Code
4. Creating a Laravel Application
5. Testing Your Laravel Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.