mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-15 10:13:58 +02:00
Merge pull request #107 from stevenbenner/gh-pages
American English fix
This commit is contained in:
@@ -17,7 +17,7 @@ expected, from the point you build them all the way through the development cycl
|
||||
values going in and out of various functions and methods, you can make sure the internal logic is
|
||||
working correctly. By using Dependency Injection and building "mock" classes and stubs you can verify that dependencies are correctly used for even better test coverage.
|
||||
|
||||
When you create a class or function you should create a unit test for each behaviour it must have. At a very basic level you should
|
||||
When you create a class or function you should create a unit test for each behavior it must have. At a very basic level you should
|
||||
make sure it errors if you send it bad arguments and make sure it works if you send it valid arguments.
|
||||
This will help ensure that when you make changes to this class or function later on in the development
|
||||
cycle that the old functionality continues to work as expected. The only alternative to this would be
|
||||
|
@@ -4,7 +4,7 @@ isChild: true
|
||||
|
||||
## Complementary Testing Tools
|
||||
|
||||
Besides individual testing and behaviour driven frameworks, there are also a number of generic frameworks and helper libraries useful for any preferred approach taken.
|
||||
Besides individual testing and behavior driven frameworks, there are also a number of generic frameworks and helper libraries useful for any preferred approach taken.
|
||||
|
||||
### Tool Links
|
||||
|
||||
|
Reference in New Issue
Block a user