protected function mockDependencies()
    {
        $dependencies = $this->getDependencyMapping();

        foreach ($dependencies as $interface => $memberName) {
            if (!isset($this->$memberName)) {
                $this->$memberName = Mockery::mock($interface);
            }

            // Update with the actual instance.
            $dependencies[$interface] = $this->$memberName;
        }

        return $dependencies;
    }
protected function mockDependencies()
    {
        $dependencies = $this->getDependencyMapping();

        foreach ($dependencies as $interface => $memberName) {
            if (!isset($this->$memberName)) {
                $this->$memberName = Mockery::mock($interface);
            }

            // Update with the actual instance.
            $dependencies[$interface] = $this->$memberName;
        }

        return $dependencies;
    }
protected function mockDependencies ( ) { $ dependencies = $ this -> getDependencyMapping ( ) ; foreach ( $ dependencies as $ interface => $ memberName ) { if ( ! isset ( $ this -> $ memberName ) ) { $ this -> $ memberName = Mockery :: mock ( $ interface ) ; } // Update with the actual instance. $ dependencies [ $ interface ] = $ this -> $ memberName ; } return $ dependencies ; }
Mock all dependencies that were not set yet

@return array

@throws Exception
Mock all dependencies that were not set yet