42 $this->composer->getConfig()->merge(array(
'config' =>
$config));
43 $this->process->init();
44 $result = $this->process->packageStyles($packages);
45 $this->assertEquals($expected,
$result);
52 'name' =>
'components/package',
53 'type' =>
'component',
57 'tests/ComponentInstaller/Test/Resources/test.css',
63 $packages = array($package);
66 'tests/ComponentInstaller/Test/Resources/test.css' => array(
67 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
71 $tests[] = array($packages, array(), $expected);
75 'name' =>
'components/package2',
76 'type' =>
'component',
80 'tests/ComponentInstaller/Test/Resources/test-not-found.css',
86 $packages = array($package, $package2);
89 'tests/ComponentInstaller/Test/Resources/test.css' => array(
90 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
94 $tests[] = array($packages, array(), $expected);
98 'name' =>
'components/package3',
99 'type' =>
'component',
101 'component' => array(
103 'tests/ComponentInstaller/Test/Resources/test2.css',
109 $packages = array($package, $package3);
112 'tests/ComponentInstaller/Test/Resources/test.css' => array(
113 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
117 'tests/ComponentInstaller/Test/Resources/test2.css' => array(
118 realpath(
'tests/ComponentInstaller/Test/Resources/test2.css'),
122 $tests[] = array($packages, array(), $expected);
126 'name' =>
'components/package4',
127 'type' =>
'component',
129 'component' => array(
131 'tests/ComponentInstaller/Test/Resources/*.css',
137 $packages = array($package);
140 'tests/ComponentInstaller/Test/Resources/*.css' => array(
141 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
142 realpath(
'tests/ComponentInstaller/Test/Resources/test2.css'),
146 $tests[] = array($packages, array(), $expected);
An exception for terminatinating execution or to throw for unit testing.
Builds the require.css file from all Component stylesheets.
testPackageStyles(array $packages, array $config, $expected=null)
testPackageStyles