ExpressiveInstaller\OptionalPackages::removeDevDependencies PHP Method

removeDevDependencies() public static method

The dev dependencies should be removed from the stability flags, require-dev and the composer file.
public static removeDevDependencies ( )
    public static function removeDevDependencies()
    {
        foreach (self::$devDependencies as $devDependency) {
            unset(self::$stabilityFlags[$devDependency]);
            unset(self::$composerDevRequires[$devDependency]);
            unset(self::$composerDefinition['require-dev'][$devDependency]);
        }
    }

Usage Example

 public function testDevDependenciesAreRemoved()
 {
     // Prepare the installer
     OptionalPackages::removeDevDependencies();
     $this->assertComposerHasPackages($this->standardDependencies);
     $this->assertComposerNotHasPackages($this->devDependencies);
 }
All Usage Examples Of ExpressiveInstaller\OptionalPackages::removeDevDependencies