tests/phpunit/Composer/MULoaderPluginTest.php
/**
	 * @param string $pluginName Name of plugin name to return for getName call
	 * @param string $pluginType Name of plugin type to return for getType call
	 *
	 * @return Package|\PHPUnit\Framework\MockObject\MockObject
	 */
@param string $pluginName Name of plugin name to return for getName call
@param string $pluginType Name of plugin type to return for getType call


@param string $pluginName Name of plugin name to return for getName call @param string $pluginType Name of plugin type to return for getType call
private function mock_package( string $pluginName, string $pluginType = 'wordpress-plugin' ) {
		$package = $this->getMockBuilder( Package::class )->disableOriginalConstructor()->getMock();
		$package->method( 'getType' )->willReturn( $pluginType );
		$package->method( 'getName' )->willReturn( $pluginName );
		return $package;
	}
private function mock_package ( string $ pluginName , string $ pluginType = 'wordpress-plugin' ) { $ package = $ this -> getMockBuilder ( Package :: class ) -> disableOriginalConstructor ( ) -> getMock ( ) ; $ package -> method ( 'getType' ) -> willReturn ( $ pluginType ) ; $ package -> method ( 'getName' ) -> willReturn ( $ pluginName ) ; return $ package ; }
@param string $pluginName Name of plugin name to return for getName call
 @param string $pluginType Name of plugin type to return for getType call
@param string $pluginName Name of plugin name to return for getName call @param string $pluginType Name of plugin type to return for getType call