use Symfony\Component\Asset\Package;
use Symfony\Component\Asset\PackageInterface;
use Symfony\Component\Asset\Packages;
use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy;
class PackagesTest extends TestCase
{ public function testGetterSetters() { $packages =
new Packages();
$packages->
setDefaultPackage($default =
$this->
createMock(PackageInterface::
class));
$packages->
addPackage('a',
$a =
$this->
createMock(PackageInterface::
class));
$this->
assertSame($default,
$packages->
getPackage());
$this->
assertSame($a,
$packages->
getPackage('a'
));
$packages =
new Packages($default,
['a' =>
$a]);
$this->
assertSame($default,
$packages->
getPackage());
$this->
assertSame($a,
$packages->
getPackage('a'
));
} public function testGetVersion() {