'test/no_deps_a', 'test/deps_c', 'test/nested_deps_b'
],
['test/deps_c', 'test/nested_deps_b'
]],
[['test/nested_deps_b', 'test/deps_c', 'test/no_deps_c'
],
['test/nested_deps_b', 'test/deps_c', 'test/no_deps_c'
]],
];
} /**
* @covers ::getMinimalRepresentativeSubset
*
* @dataProvider providerTestGetMinimalRepresentativeSubset
*/
public function testGetMinimalRepresentativeSubset(array
$libraries, array
$expected) { $this->
assertEquals($expected,
$this->libraryDependencyResolver->
getMinimalRepresentativeSubset($libraries));
} /**
* @covers ::getMinimalRepresentativeSubset
*/
public function testGetMinimalRepresentativeSubsetInvalidInput() { $this->
expectException(\AssertionError::
class);
$this->
expectExceptionMessage('$libraries can\'t contain duplicate items.'
);
$this->libraryDependencyResolver->
getMinimalRepresentativeSubset(['test/no_deps_a', 'test/no_deps_a'
]);
}}