| Current Path : /home/rtorresani/www/vendor/magento/framework/Filter/Test/Unit/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/Filter/Test/Unit/SprintfTest.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\Filter\Test\Unit;
use Magento\Framework\Filter\Sprintf;
use PHPUnit\Framework\TestCase;
class SprintfTest extends TestCase
{
public function testFilter()
{
$sprintfFilter = new Sprintf('Formatted value: "%s"', 2, ',', ' ');
$this->assertEquals('Formatted value: "1 234,57"', $sprintfFilter->filter(1234.56789));
}
}