Code Duplication    Length = 9-10 lines in 2 locations

tests/AssetFactoryTest.php 2 locations

@@ 40-48 (lines=9) @@
37
        unlink($this->getTestFilePath());
38
    }
39
40
    public function testAssetPropertiesFromPath()
41
    {
42
        $asset = AssetFactory::createFromPath($this->getTestFilePath());
43
44
        $this->assertEquals('asset-management.test', $asset->getFilename());
45
        $this->assertEquals('test', $asset->getExtension());
46
        $this->assertEquals($this->getTestFilePath(), $asset->getPathname());
47
        $this->assertEquals('text/plain', $asset->getMimeType());
48
    }
49
50
    public function testAssetPropertiesFromSplFileInfo()
51
    {
@@ 50-59 (lines=10) @@
47
        $this->assertEquals('text/plain', $asset->getMimeType());
48
    }
49
50
    public function testAssetPropertiesFromSplFileInfo()
51
    {
52
        $file = new \SplFileInfo($this->getTestFilePath());
53
        $asset = AssetFactory::createFromSplFileInfo($file);
54
55
        $this->assertEquals('asset-management.test', $asset->getFilename());
56
        $this->assertEquals('test', $asset->getExtension());
57
        $this->assertEquals($this->getTestFilePath(), $asset->getPathname());
58
        $this->assertEquals('text/plain', $asset->getMimeType());
59
    }
60
61
    public function testAssetPropertiesFromUploadedFile()
62
    {