Join Joseph Lowery for an in-depth discussion in this video Running an initial test, part of Up and Running with Laravel.
Ready to roll out some testing equipment?…In this lesson I'll show you an example of a basic test,…what to expect when the test succeeds,…and what to expect when it fails.…Plus, we'll create a custom version step-by-step.…Sound like a plan?…Let's get started.…Laravel includes an example test…in the default installation,…which you can find in the app test folder.…You'll note that there are two files in this folder,…the sample test is the one named ExampleTest.…
The other file, TestCase,…defines a class which can be used…as the basis for your own custom test.…Let's open ExampleTest dot php…to look at an actual test.…The first thing you'll notice…is that the defined class extends TestCase…which is the class defined in the other file…in this folder.…Also, the name of the defined class here,…ExampleTest, matches the file name,…a common best practice.…
The simple function testBasicExample…does two things, well, actually three.…First, not shown, it assumes the default state…and doesn't specify any particular conditions…as the given,…
- Installing Laravel
- Handling testing
- Establishing an HTML view
- Connecting to a database
- Enabling version control
- Setting up-and-running unit tests
Skill Level Intermediate
Up and Running with PHP CodeIgniter (2013)with Jon Peck1h 30m Intermediate
Up and Running with Symfony2 for PHPwith Jon Peck2h 4m 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.