Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50c1d47

Browse files
javiereguiluzfabpot
authored andcommitted
[WebProfilerBundle] Fix the icon for the Cache panel
1 parent 7fc2552 commit 50c1d47

File tree

5 files changed

+38
-5
lines changed

5 files changed

+38
-5
lines changed
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Icon/redirect.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
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 Symfony\Bundle\WebProfilerBundle\Tests\Resources;
13+
14+
use PHPUnit\Framework\TestCase;
15+
16+
class IconTest extends TestCase
17+
{
18+
/**
19+
* @dataProvider provideIconFilePaths
20+
*/
21+
public function testIconFileContents($iconFilePath)
22+
{
23+
$this->assertRegExp('~<svg version="1\.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="\d+" height="\d+" viewBox="0 0 \d+ \d+" enable-background="new 0 0 \d+ \d+" xml:space="preserve">.*</svg>~s', file_get_contents($iconFilePath), sprintf('The SVG metadata of the %s icon is different than expected (use the same as the other icons).', $iconFilePath));
24+
}
25+
26+
public function provideIconFilePaths()
27+
{
28+
return array_map(
29+
function ($filePath) { return (array) $filePath; },
30+
glob(__DIR__.'/../../Resources/views/Icon/*.svg')
31+
);
32+
}
33+
}

0 commit comments

Comments
 (0)