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::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
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