We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php |
||
| 18 | class FieldResolverTest extends \PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | /** @var ContainerBuilder */ |
||
| 21 | private static $container; |
||
| 22 | |||
| 23 | /** @var FieldResolver */ |
||
| 24 | private static $fieldResolver; |
||
| 25 | |||
| 26 | public static function setUpBeforeClass() |
||
| 45 | |||
| 46 | public function testResolveKnownField() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @expectedException \Overblog\GraphQLBundle\Resolver\UnresolvableException |
||
| 56 | */ |
||
| 57 | public function testResolveUnknownField() |
||
| 61 | } |
||
| 62 |