@@ -76,14 +76,14 @@ There are no rules for how test files must be placed. However, we recommend that
76
76
you establish placement rules in advance so that you can quickly understand where
77
77
the test files are located.
78
78
79
- In this document, we will place the test files corresponding to the classes in
80
- the ** app ** directory in the **tests/app ** directory. To test a new library,
79
+ In this document, the test files corresponding to the classes in the ** app ** directory
80
+ will be placed in the **tests/app ** directory. To test a new library,
81
81
**app/Libraries/Foo.php **, you would create a new file at
82
82
**tests/app/Libraries/FooTest.php **:
83
83
84
84
.. literalinclude :: overview/001.php
85
85
86
- To test one of your models, **app/Models/UserMode .php **, you might end up with
86
+ To test one of your models, **app/Models/UserModel .php **, you might end up with
87
87
something like this in **tests/app/Models/UserModelTest.php **:
88
88
89
89
.. literalinclude :: overview/002.php
@@ -121,7 +121,7 @@ parent as well so extended test cases do not interfere with staging:
121
121
Traits
122
122
------
123
123
124
- A common way to enhance your tests is by using traits to consolidate staging across different
124
+ A common way to enhance your tests is using traits to consolidate staging across different
125
125
test cases. ``CIUnitTestCase `` will detect any class traits and look for staging methods
126
126
to run named for the trait itself (i.e. `setUp{NameOfTrait}() ` and `tearDown{NameOfTrait}() `).
127
127
0 commit comments