Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 900-913 (lines=14) @@
897
    /**
898
     * @expectedException InvalidArgumentException
899
     */
900
    public function testNonExistentMethods()
901
    {
902
        $injector = new Injector();
903
        $config = array(
904
            'TestService' => array(
905
                'class' => TestObject::class,
906
                'calls' => array(
907
                    array('thisDoesntExist')
908
                )
909
            )
910
        );
911
912
        $injector->load($config);
913
        $item = $injector->get('TestService');
914
    }
915
916
    /**
@@ 919-932 (lines=14) @@
916
    /**
917
     * @expectedException InvalidArgumentException
918
     */
919
    public function testProtectedMethods()
920
    {
921
        $injector = new Injector();
922
        $config = array(
923
            'TestService' => array(
924
                'class' => TestObject::class,
925
                'calls' => array(
926
                    array('protectedMethod')
927
                )
928
            )
929
        );
930
931
        $injector->load($config);
932
        $item = $injector->get('TestService');
933
    }
934
935
    /**