GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 4.2-to-master ( ed215f )
by E
06:47
created

FileSystemCopyTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 29
rs 10
c 1
b 0
f 0
wmc 3
lcom 1
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testCopyFiles() 0 9 1
A testCopyDirectory() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace ApiGen\Utils\Tests\FileSystem;
4
5
use ApiGen\Utils\FileSystem;
6
use PHPUnit\Framework\TestCase;
7
8
final class FileSystemCopyTest extends TestCase
9
{
10
    /**
11
     * @var FileSystem
12
     */
13
    private $fileSystem;
14
15
    protected function setUp(): void
16
    {
17
        $this->fileSystem = new FileSystem;
18
    }
19
20
    public function testCopyFiles(): void
21
    {
22
        $this->fileSystem->copy(
23
            [__DIR__ . '/FileSystemCopySource/SomeDir/someFile.txt' => 'renamedFile.txt'],
24
            TEMP_DIR . '/destination'
25
        );
26
        $this->assertFileExists(TEMP_DIR . '/destination');
27
        $this->assertFileExists(TEMP_DIR . '/destination/renamedFile.txt');
28
    }
29
30
    public function testCopyDirectory(): void
31
    {
32
        $this->fileSystem->copy([__DIR__ . '/FileSystemCopySource/SomeDir' => 'NewDir'], TEMP_DIR . '/destination');
33
        $this->assertFileExists(TEMP_DIR . '/destination/NewDir');
34
        $this->assertFileExists(TEMP_DIR . '/destination/NewDir/someFile.txt');
35
    }
36
}
37