29 $this->process =
new CopyProcess($this->composer, $this->io);
42 $this->process->init();
43 $this->process->copy($packages);
45 $this->assertFileExists($this->componentDir.
'/' . $file, sprintf(
'Failed to find the destination file: %s', $file));
53 'name' =>
'components/package',
59 'tests/ComponentInstaller/Test/Resources/test.css',
64 $packages =
array($package);
66 'package/tests/ComponentInstaller/Test/Resources/test.css',
71 'name' =>
'components/packagewithtwostyles',
77 'tests/ComponentInstaller/Test/Resources/test.css',
78 'tests/ComponentInstaller/Test/Resources/test2.css',
83 $packages =
array($package);
85 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test.css',
86 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test2.css',
91 'name' =>
'components/stylethatdoesnotexist',
97 'tests/ComponentInstaller/Test/Resources/test.css',
98 'tests/ComponentInstaller/Test/Resources/test-not-found.css',
103 $packages =
array($package);
105 'stylethatdoesnotexist/tests/ComponentInstaller/Test/Resources/test.css',
110 'name' =>
'components/allassets',
111 'version' =>
'1.2.3',
114 'component' =>
array(
116 'tests/ComponentInstaller/Test/Resources/test.css',
119 'tests/ComponentInstaller/Test/Resources/img.jpg',
120 'tests/ComponentInstaller/Test/Resources/img2.jpg',
123 'tests/ComponentInstaller/Test/Resources/test.js' 128 $packages =
array($package);
130 'allassets/tests/ComponentInstaller/Test/Resources/test.css',
131 'allassets/tests/ComponentInstaller/Test/Resources/img.jpg',
132 'allassets/tests/ComponentInstaller/Test/Resources/img2.jpg',
133 'allassets/tests/ComponentInstaller/Test/Resources/test.js',
138 'name' =>
'components/differentcomponentname',
139 'version' =>
'1.2.3',
142 'component' =>
array(
143 'name' =>
'diffname',
145 'tests/ComponentInstaller/Test/Resources/img.jpg',
150 $packages =
array($package);
152 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
157 'name' =>
'components/twopackages1',
158 'version' =>
'1.2.3',
161 'component' =>
array(
163 'tests/ComponentInstaller/Test/Resources/img.jpg',
169 'name' =>
'components/twopackages2',
170 'version' =>
'1.2.3',
173 'component' =>
array(
174 'name' =>
'twopackages2-diff',
176 'tests/ComponentInstaller/Test/Resources/img2.jpg',
181 $packages =
array($package, $package2);
183 'twopackages1/tests/ComponentInstaller/Test/Resources/img.jpg',
184 'twopackages2-diff/tests/ComponentInstaller/Test/Resources/img2.jpg',
189 'name' =>
'components/differentcomponentname',
190 'version' =>
'1.2.3',
193 'component' =>
array(
194 'name' =>
'diffname',
196 'tests/ComponentInstaller/Test/Resources/*.jpg',
201 $packages =
array($package);
203 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
204 'diffname/tests/ComponentInstaller/Test/Resources/img2.jpg',
Process which copies components from their source to the components folder.
testCopyStyles($packages, $files)
testCopy
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file