@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Graze\DataFile\Modify\Compress\CompressionType; |
| 6 | 6 | use League\Flysystem\Adapter\Local; |
| 7 | -use League\Flysystem\Filesystem; |
|
| 8 | 7 | |
| 9 | 8 | class LocalFile extends FileNode implements LocalFileNodeInterface |
| 10 | 9 | { |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Node; |
| 15 | 15 | |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $file = m::mock(FileNode::class); |
| 26 | 26 | $file->shouldReceive('getMetadata') |
| 27 | - ->andReturn([ |
|
| 28 | - 'name' => 'test', |
|
| 29 | - ]); |
|
| 27 | + ->andReturn([ |
|
| 28 | + 'name' => 'test', |
|
| 29 | + ]); |
|
| 30 | 30 | $collection = new FileNodeCollection(); |
| 31 | 31 | $collection->add($file); |
| 32 | 32 | |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $file = m::mock(FileNode::class); |
| 43 | 43 | $file->shouldReceive('getMetadata') |
| 44 | - ->andReturn([ |
|
| 45 | - 'name' => 'test', |
|
| 46 | - ]); |
|
| 44 | + ->andReturn([ |
|
| 45 | + 'name' => 'test', |
|
| 46 | + ]); |
|
| 47 | 47 | $file2 = m::mock(FileNode::class); |
| 48 | 48 | $file2->shouldReceive('getMetadata') |
| 49 | - ->andReturn([ |
|
| 50 | - 'name' => 'test2', |
|
| 51 | - ]); |
|
| 49 | + ->andReturn([ |
|
| 50 | + 'name' => 'test2', |
|
| 51 | + ]); |
|
| 52 | 52 | $collection = new FileNodeCollection(); |
| 53 | 53 | $collection->add($file); |
| 54 | 54 | $collection->add($file2); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $file = m::mock(FileNode::class); |
| 69 | 69 | $file->shouldReceive('getMetadata') |
| 70 | - ->andReturn(false); |
|
| 70 | + ->andReturn(false); |
|
| 71 | 71 | $collection = new FileNodeCollection(); |
| 72 | 72 | $collection->add($file); |
| 73 | 73 | |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | use Graze\DataFile\Test\Helper\FakeOptionalLogger; |
| 6 | 6 | use Graze\DataFile\Test\TestCase; |
| 7 | 7 | use Mockery as m; |
| 8 | -use Psr\Log\LoggerInterface; |
|
| 9 | 8 | use Psr\Log\LogLevel; |
| 9 | +use Psr\Log\LoggerInterface; |
|
| 10 | 10 | |
| 11 | 11 | class OptionalLoggerTraitTest extends TestCase |
| 12 | 12 | { |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Helper; |
| 15 | 15 | |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | $this->logger->setLogger($logger); |
| 43 | 43 | |
| 44 | 44 | $logger->shouldReceive('log') |
| 45 | - ->with(LogLevel::INFO, 'Graze\DataFile\Test\Helper\FakeOptionalLogger: some text', []) |
|
| 46 | - ->once(); |
|
| 45 | + ->with(LogLevel::INFO, 'Graze\DataFile\Test\Helper\FakeOptionalLogger: some text', []) |
|
| 46 | + ->once(); |
|
| 47 | 47 | |
| 48 | 48 | $this->logger->doLog('some text'); |
| 49 | 49 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Graze\DataFile\Test\Unit\Modify; |
| 4 | 4 | |
| 5 | -use Graze\DataFile\Modify\Exception\MakeDirectoryFailedException; |
|
| 6 | 5 | use Graze\DataFile\Modify\MakeDirectory; |
| 7 | 6 | use Graze\DataFile\Node\FileNode; |
| 8 | 7 | use Graze\DataFile\Test\TestCase; |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Modify; |
| 15 | 15 | |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | $directory = new FileNode($fileSystem, 'random/path'); |
| 29 | 29 | |
| 30 | 30 | $fileSystem->shouldReceive('createDir') |
| 31 | - ->with($directory->getDirectory(), ['visibility' => 'public']) |
|
| 32 | - ->andReturn(false); |
|
| 31 | + ->with($directory->getDirectory(), ['visibility' => 'public']) |
|
| 32 | + ->andReturn(false); |
|
| 33 | 33 | $this->expectException(MakedirectoryFailedException::class); |
| 34 | 34 | |
| 35 | 35 | $maker = new MakeDirectory(); |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Modify\Compress; |
| 15 | 15 | |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $outputFile = $node->getClone() |
| 39 | - ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension()) |
|
| 40 | - ->setCompression($this->getName()); |
|
| 39 | + ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension()) |
|
| 40 | + ->setCompression($this->getName()); |
|
| 41 | 41 | |
| 42 | 42 | $this->log(LogLevel::INFO, "Compressing file: {file} into {target} using {compression}", [ |
| 43 | 43 | 'file' => $node, |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Modify\Compress; |
| 15 | 15 | |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $outputFile = $node->getClone() |
| 39 | - ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename']) |
|
| 40 | - ->setCompression(CompressionFactory::TYPE_NONE); |
|
| 39 | + ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename']) |
|
| 40 | + ->setCompression(CompressionFactory::TYPE_NONE); |
|
| 41 | 41 | |
| 42 | 42 | $this->log(LogLevel::INFO, "DeCompressing file: {file} into {target} using {compression}", [ |
| 43 | 43 | 'file' => $node, |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify\Compress; |
| 15 | 15 | |
@@ -49,13 +49,13 @@ discard block |
||
| 49 | 49 | $this->processFactory = m::mock(ProcessFactory::class)->makePartial(); |
| 50 | 50 | $this->compressionFactory = m::mock(CompressionFactory::class); |
| 51 | 51 | $this->compressionFactory->shouldReceive('isCompression') |
| 52 | - ->with('gzip') |
|
| 53 | - ->andReturn(true); |
|
| 52 | + ->with('gzip') |
|
| 53 | + ->andReturn(true); |
|
| 54 | 54 | $this->compressionFactory->shouldReceive('isCompression') |
| 55 | - ->with('zip') |
|
| 56 | - ->andReturn(true); |
|
| 55 | + ->with('zip') |
|
| 56 | + ->andReturn(true); |
|
| 57 | 57 | $this->compressionFactory->shouldReceive('isCompression') |
| 58 | - ->andReturn(false); |
|
| 58 | + ->andReturn(false); |
|
| 59 | 59 | $this->findCompression = new FindCompression($this->compressionFactory); |
| 60 | 60 | $this->findCompression->setProcessFactory($this->processFactory); |
| 61 | 61 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | ); |
| 111 | 111 | |
| 112 | 112 | $this->processFactory->shouldReceive('createProcess') |
| 113 | - ->andReturn($process); |
|
| 113 | + ->andReturn($process); |
|
| 114 | 114 | |
| 115 | 115 | $file = new LocalFile(static::$dir . 'unknown_compression.test'); |
| 116 | 116 | $file->put('random stuff and things 2!'); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $process->shouldReceive('mustRun')->andThrow(new ProcessFailedException($process)); |
| 131 | 131 | |
| 132 | 132 | $this->processFactory->shouldReceive('createProcess') |
| 133 | - ->andReturn($process); |
|
| 133 | + ->andReturn($process); |
|
| 134 | 134 | |
| 135 | 135 | $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test'); |
| 136 | 136 | $file->put('random stuff and things 2!'); |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify\Compress; |
| 15 | 15 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $process = m::mock(Process::class)->makePartial(); |
| 106 | 106 | $processFactory = m::mock(ProcessFactory::class); |
| 107 | 107 | $processFactory->shouldReceive('createProcess') |
| 108 | - ->andReturn($process); |
|
| 108 | + ->andReturn($process); |
|
| 109 | 109 | $this->gzip->setProcessFactory($processFactory); |
| 110 | 110 | $process->shouldReceive('run')->once(); |
| 111 | 111 | $process->shouldReceive('isSuccessful')->once()->andReturn(false); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $process = m::mock(Process::class)->makePartial(); |
| 130 | 130 | $processFactory = m::mock(ProcessFactory::class); |
| 131 | 131 | $processFactory->shouldReceive('createProcess') |
| 132 | - ->andReturn($process); |
|
| 132 | + ->andReturn($process); |
|
| 133 | 133 | $this->gzip->setProcessFactory($processFactory); |
| 134 | 134 | $process->shouldReceive('run')->once(); |
| 135 | 135 | $process->shouldReceive('isSuccessful')->once()->andReturn(false); |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 4 | - * |
|
| 5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - * |
|
| 10 | - * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 4 | + * |
|
| 5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + * |
|
| 10 | + * @license https://github.com/graze/data-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify\Contract; |
| 15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $collection = m::mock(FileNodeCollectionInterface::class); |
| 58 | 58 | $collection->shouldReceive('getIterator') |
| 59 | - ->andReturn([]); |
|
| 59 | + ->andReturn([]); |
|
| 60 | 60 | |
| 61 | 61 | $node = m::mock(LocalFile::class); |
| 62 | 62 | static::assertTrue($this->merge->canContract($collection, $node)); |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | $collection = new FileNodeCollection(); |
| 68 | 68 | $file1 = m::mock(LocalFile::class); |
| 69 | 69 | $file1->shouldReceive('exists') |
| 70 | - ->andReturn(true); |
|
| 70 | + ->andReturn(true); |
|
| 71 | 71 | $file1->shouldReceive('getCompression') |
| 72 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 72 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 73 | 73 | $collection->add($file1); |
| 74 | 74 | |
| 75 | 75 | $out = m::mock(LocalFile::class); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $file2 = m::mock(FileNodeInterface::class); |
| 80 | 80 | $file2->shouldReceive('getCompression') |
| 81 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 81 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 82 | 82 | $collection->add($file2); |
| 83 | 83 | |
| 84 | 84 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -89,9 +89,9 @@ discard block |
||
| 89 | 89 | $collection = new FileNodeCollection(); |
| 90 | 90 | $file1 = m::mock(LocalFile::class); |
| 91 | 91 | $file1->shouldReceive('exists') |
| 92 | - ->andReturn(true); |
|
| 92 | + ->andReturn(true); |
|
| 93 | 93 | $file1->shouldReceive('getCompression') |
| 94 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 94 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 95 | 95 | $collection->add($file1); |
| 96 | 96 | |
| 97 | 97 | $out = m::mock(LocalFile::class); |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $file2 = m::mock(LocalFile::class); |
| 102 | 102 | $file2->shouldReceive('exists') |
| 103 | - ->andReturn(false); |
|
| 103 | + ->andReturn(false); |
|
| 104 | 104 | $file2->shouldReceive('getCompression') |
| 105 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 105 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 106 | 106 | $collection->add($file2); |
| 107 | 107 | |
| 108 | 108 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | $collection = new FileNodeCollection(); |
| 114 | 114 | $file1 = m::mock(LocalFile::class); |
| 115 | 115 | $file1->shouldReceive('exists') |
| 116 | - ->andReturn(true); |
|
| 116 | + ->andReturn(true); |
|
| 117 | 117 | $file1->shouldReceive('getCompression') |
| 118 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 118 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 119 | 119 | $collection->add($file1); |
| 120 | 120 | |
| 121 | 121 | $out = m::mock(LocalFile::class); |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $file2 = m::mock(LocalFile::class); |
| 126 | 126 | $file2->shouldReceive('exists') |
| 127 | - ->andReturn(true); |
|
| 127 | + ->andReturn(true); |
|
| 128 | 128 | $file2->shouldReceive('getCompression') |
| 129 | - ->andReturn(Gzip::NAME); |
|
| 129 | + ->andReturn(Gzip::NAME); |
|
| 130 | 130 | $collection->add($file2); |
| 131 | 131 | |
| 132 | 132 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -137,9 +137,9 @@ discard block |
||
| 137 | 137 | $collection = new FileNodeCollection(); |
| 138 | 138 | $file = m::mock(LocalFile::class); |
| 139 | 139 | $file->shouldReceive('exists') |
| 140 | - ->andReturn(false); |
|
| 140 | + ->andReturn(false); |
|
| 141 | 141 | $file->shouldReceive('getCompression') |
| 142 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 142 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 143 | 143 | $collection->add($file); |
| 144 | 144 | |
| 145 | 145 | $target = m::mock(LocalFile::class); |
@@ -154,9 +154,9 @@ discard block |
||
| 154 | 154 | $collection = new FileNodeCollection(); |
| 155 | 155 | $file = m::mock(LocalFile::class); |
| 156 | 156 | $file->shouldReceive('exists') |
| 157 | - ->andReturn(true); |
|
| 157 | + ->andReturn(true); |
|
| 158 | 158 | $file->shouldReceive('getCompression') |
| 159 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 159 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 160 | 160 | $collection->add($file); |
| 161 | 161 | |
| 162 | 162 | $target = m::mock(FileNodeInterface::class); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | { |
| 254 | 254 | $process = m::mock('Symfony\Component\Process\Process')->makePartial(); |
| 255 | 255 | $this->processFactory->shouldReceive('createProcess') |
| 256 | - ->andReturn($process); |
|
| 256 | + ->andReturn($process); |
|
| 257 | 257 | |
| 258 | 258 | $process->shouldReceive('isSuccessful')->andReturn(false); |
| 259 | 259 | |