PathTests::invalidNativeValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Cubiche/Web component.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Cubiche\Domain\Web\Tests\Units;
13
14
use Cubiche\Domain\System\Tests\Units\StringLiteralTests;
15
use Cubiche\Domain\Web\Path;
16
17
/**
18
 * PathTests class.
19
 *
20
 * Generated by TestGenerator on 2017-03-15 at 11:36:08.
21
 */
22
class PathTests extends StringLiteralTests
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function randomNativeValue()
28
    {
29
        return $this->faker->file('/tmp', __DIR__);
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected function invalidNativeValue()
36
    {
37
        return '//valid?';
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    protected function uniqueNativeValue()
44
    {
45
        return $this->faker->unique()->file('/tmp', __DIR__);
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    protected function fromNative($value)
52
    {
53
        return Path::fromNative($value);
54
    }
55
}
56