Composer\Test\Satis\WebBuilderTest::testGetDescSortedVersions PHP Method

testGetDescSortedVersions() public method

public testGetDescSortedVersions ( $expected, $packages )
    public function testGetDescSortedVersions($expected, $packages)
    {
        $reflection = new \ReflectionClass(get_class($this->webBuilder));
        $method = $reflection->getMethod('getDescSortedVersions');
        $method->setAccessible(true);
        $this->assertEquals($expected, $method->invokeArgs($this->webBuilder, $packages));
    }