1 00:00:00,239 --> 00:00:06,629 The final rule to add to our convert method is words that start with a vowel. 2 00:00:06,629 --> 00:00:10,699 These words do not have any letters moved around. 3 00:00:10,699 --> 00:00:14,390 They just add the string ay to the end. 4 00:00:14,390 --> 00:00:16,760 We can duplicate one of our other tests. 5 00:00:20,190 --> 00:00:29,239 And we'll change the name to convertStartingVowelWordToPigLatin(). 6 00:00:29,239 --> 00:00:32,789 We'll need a new word that starts with a vowel. 7 00:00:32,789 --> 00:00:35,079 How about unit? 8 00:00:35,079 --> 00:00:40,920 Our expected results will be unitay, 9 00:00:40,920 --> 00:00:44,029 and we run our code. 10 00:00:44,029 --> 00:00:46,789 The force test fails as expected. 11 00:00:46,789 --> 00:00:50,505 By looking at the results, we can see that the convert 12 00:00:50,505 --> 00:00:54,480 method is moving the first letter U to the end of the word. 13 00:00:54,480 --> 00:00:59,619 Why don't you give it a try and see if you can make the last test pass. 14 00:00:59,619 --> 00:01:03,770 You can approach this in the same way as we did the consonant clusters. 15 00:01:03,770 --> 00:01:10,025 This time using the vowels A, E, I, O, and U. 16 00:01:10,025 --> 00:01:13,965 Test-driven development can seem overwhelming when you're first getting 17 00:01:13,965 --> 00:01:15,182 started with testing. 18 00:01:15,182 --> 00:01:19,861 And if you already have an application, it's not really feasible. 19 00:01:19,861 --> 00:01:23,209 You don't need to take an all or nothing approach. 20 00:01:23,209 --> 00:01:25,870 One test is better than no test. 21 00:01:25,870 --> 00:01:29,699 And each method that you test leaves your code better and 22 00:01:29,699 --> 00:01:32,231 more documented than it was before. 23 00:01:32,231 --> 00:01:37,520 You can add additional tests while you're fixing bugs or adding new features. 24 00:01:37,520 --> 00:01:38,943 In the next section, 25 00:01:38,943 --> 00:01:43,300 we'll look at how we can use PHP unit to test an existing project.