Code Duplication    Length = 14-14 lines in 2 locations

tests/php/Core/Injector/InjectorTest.php 2 locations

@@ 883-896 (lines=14) @@
880
    /**
881
     * @expectedException InvalidArgumentException
882
     */
883
    public function testNonExistentMethods()
884
    {
885
        $injector = new Injector();
886
        $config = array(
887
            'TestService' => array(
888
                'class' => TestObject::class,
889
                'calls' => array(
890
                    array('thisDoesntExist')
891
                )
892
            )
893
        );
894
895
        $injector->load($config);
896
        $item = $injector->get('TestService');
897
    }
898
899
    /**
@@ 902-915 (lines=14) @@
899
    /**
900
     * @expectedException InvalidArgumentException
901
     */
902
    public function testProtectedMethods()
903
    {
904
        $injector = new Injector();
905
        $config = array(
906
            'TestService' => array(
907
                'class' => TestObject::class,
908
                'calls' => array(
909
                    array('protectedMethod')
910
                )
911
            )
912
        );
913
914
        $injector->load($config);
915
        $item = $injector->get('TestService');
916
    }
917
918
    /**