1 | <?php |
||
14 | class FormSubmissionFieldTest extends TestCase |
||
|
|||
15 | { |
||
16 | /** |
||
17 | * @var StringFormSubmissionField |
||
18 | */ |
||
19 | protected $object; |
||
20 | |||
21 | /** |
||
22 | * Sets up the fixture, for example, opens a network connection. |
||
23 | * This method is called before a test is executed. |
||
24 | */ |
||
25 | protected function setUp() |
||
29 | |||
30 | public function testSetGetId() |
||
37 | |||
38 | public function testSetGetFieldName() |
||
45 | |||
46 | public function testSetGetLabel() |
||
53 | |||
54 | public function testSetGetSequence() |
||
61 | |||
62 | public function testSetGetSubmission() |
||
72 | |||
73 | public function testToString() |
||
79 | } |
||
80 |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.