mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
- Autoloader for portal files in the itop-portal-base module - Dependencies moved to root composer.json - Add autoloader for /core and /application content
31 lines
965 B
PHP
31 lines
965 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Bundle\WebProfilerBundle\Tests\Resources;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class IconTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideIconFilePaths
|
|
*/
|
|
public function testIconFileContents($iconFilePath)
|
|
{
|
|
$this->assertRegExp('~<svg xmlns="http://www.w3.org/2000/svg" width="\d+" height="\d+" viewBox="0 0 \d+ \d+">.*</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));
|
|
}
|
|
|
|
public function provideIconFilePaths()
|
|
{
|
|
return array_map(function ($filePath) { return (array) $filePath; }, glob(__DIR__.'/../../Resources/views/Icon/*.svg'));
|
|
}
|
|
}
|