Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 7 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
35 | View Code Duplication | public function iShouldSeeTheForm($id) |
|
36 | { |
||
37 | $page = $this->getSession()->getPage(); |
||
38 | $form = $page->find('css', "form#{$id}"); |
||
39 | assertNotNull($form, "form with id $id could not be found"); |
||
40 | assertTrue($form->isVisible(), "form with id $id is not visible"); |
||
41 | } |
||
42 | } |
||
43 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.