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 ResolverResolverTest extends \PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | /** @var ContainerBuilder */ |
||
| 21 | private static $container; |
||
| 22 | |||
| 23 | /** @var ResolverResolver */ |
||
| 24 | private static $resolverResolver; |
||
| 25 | |||
| 26 | public static function setUpBeforeClass() |
||
| 44 | |||
| 45 | public function testResolveKnownResolver() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @expectedException \Overblog\GraphQLBundle\Resolver\UnresolvableException |
||
| 54 | */ |
||
| 55 | public function testResolveUnknownResolver() |
||
| 59 | } |
||
| 60 |