@@ -33,11 +33,11 @@ Unit Tests
33
33
----------
34
34
35
35
Writing unit tests is perhaps one of the hardest web development best practices
36
- to put into action. As web developers are not really used to test their work, a
37
- lot of questions arise: Do I have to write tests before implementing a feature?
38
- What do I need to test? Do my tests need to cover every single ~ edge case|Edge
39
- Cases~ ? How can I be sure that everything is well tested? But usually, the first
40
- question is much more basic: Where to start?
36
+ to put into action. As web developers are not really used to testing their work,
37
+ a lot of questions arise: Do I have to write tests before implementing a
38
+ feature? What do I need to test? Do my tests need to cover every single ~ edge
39
+ case|Edge Cases~ ? How can I be sure that everything is well tested? But usually,
40
+ the first question is much more basic: Where to start?
41
41
42
42
Even if we strongly advocate testing, the symfony approach is pragmatic: it's
43
43
always better to have some tests than no test at all. Do you already have a lot
@@ -47,7 +47,7 @@ you find a bug in your code. Over time, your code will become better, the ~code
47
47
coverage|Code Coverage~ will rise, and you will become more confident about it.
48
48
By starting with a pragmatic approach, you will feel more comfortable with tests
49
49
over time. The next step is to write tests for new features. In no time, you
50
- will become test addict.
50
+ will become a test addict.
51
51
52
52
The problem with most testing libraries is their steep learning curve. That's
53
53
why symfony provides a very simple testing library, ** lime** , to make writing
@@ -194,7 +194,7 @@ identify the behavior that fails.
194
194
195
195
All lime test methods take a string as their last argument that serves as the
196
196
description for the test. It's very convenient as it forces you to describe what
197
- your are really testing. It can also serve as a form of
197
+ you are really testing. It can also serve as a form of
198
198
~ documentation|Documentation~ for a method's expected behavior. Let's add some
199
199
messages to the ` slugify ` test file:
200
200
0 commit comments