Completed
Push — master ( 144614...3a2d63 )
by Albin
13s
created

TestCase::testWithExistingFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Gaufrette\Extras\Tests\Resolvable\Resolver;
4
5
use Gaufrette\Extras\Resolvable\ResolvableFilesystem;
6
use PHPUnit\Framework\TestCase as BaseTestCase;
7
8
abstract class TestCase extends BaseTestCase
9
{
10
    /**
11
     * @return ResolvableFilesystem Should return a decorated filesystem
12
     */
13
    abstract protected function getFilesystem();
14
15
    public function testWithExistingFile()
16
    {
17
        $filesystem = $this->getFilesystem();
18
19
        $filesystem->write('foo/bar', '');
20
        $this->assertNotEmpty($filesystem->resolve('foo/bar'));
21
    }
22
23
    public function testWithNonExistentFile()
24
    {
25
        $filesystem = $this->getFilesystem();
26
27
        $this->assertNotEmpty($filesystem->resolve('baz'));
28
    }
29
}
30