@@ 78-90 (lines=13) @@ | ||
75 | $this->assertEquals($expected, $actual); |
|
76 | } |
|
77 | ||
78 | public function testCopyRecursive() |
|
79 | { |
|
80 | $this->fixtures->createAndCdToSandbox(); |
|
81 | ||
82 | $this->assertFileExists('some/deeply/nested'); |
|
83 | $this->assertFileExists('some/deeply/nested/structu.re'); |
|
84 | $result = $this->taskCopyDir(['some/deeply' => 'some_destination/deeply']) |
|
85 | ->run(); |
|
86 | $this->assertTrue($result->wasSuccessful()); |
|
87 | $this->assertFileExists('some_destination/deeply/nested'); |
|
88 | $this->assertFileExists('some_destination/deeply/nested/structu.re'); |
|
89 | ||
90 | } |
|
91 | ||
92 | public function testCopyRecursiveWithExcludedFile() |
|
93 | { |
@@ 25-40 (lines=16) @@ | ||
22 | $this->fixtures->cleanup(); |
|
23 | } |
|
24 | ||
25 | public function testFlattenDir() |
|
26 | { |
|
27 | $this->fixtures->createAndCdToSandbox(); |
|
28 | ||
29 | $result = $this->taskFlattenDir([ |
|
30 | 'some/deeply/nested/*.re' => 'flattened', |
|
31 | '*.txt' => 'flattened' |
|
32 | ]) |
|
33 | ->run(); |
|
34 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
|
35 | ||
36 | $this->assertFileExists('flattened'); |
|
37 | $this->assertFileExists('flattened/structu.re'); |
|
38 | $this->assertFileExists('flattened/a.txt'); |
|
39 | $this->assertFileExists('flattened/b.txt'); |
|
40 | } |
|
41 | ||
42 | public function testFlattenDirIncludingParents() |
|
43 | { |