<commit_before><?php

namespace Oro\Bundle\UIBundle\Tests\Unit\Twig;

use Oro\Bundle\UIBundle\Twig\CeilExtension;

class CeilExtensionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var CeilExtension
     */
    private $extension;

    /**
     * Set up test environment
     */
    public function setUp()
    {
        $this->extension = new CeilExtension();
    }

    public function testName()
    {
        $this->assertEquals('oro_ceil', $this->extension->getName());
    }

    public function testCeil()
    {
        $this->assertEquals(5, $this->extension->ceil(4.6));
        $this->assertEquals(5, $this->extension->ceil(4.1));
    }

    public function testSetFilters()
    {
        $this->assertArrayHasKey('ceil', $this->extension->getFilters());
    }
}<commit_msg>CRM-87 Change address field sort order, remove not needed fields<commit_after><?php

namespace Oro\Bundle\UIBundle\Tests\Unit\Twig;

use Oro\Bundle\UIBundle\Twig\CeilExtension;

class CeilExtensionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var CeilExtension
     */
    private $extension;

    /**
     * Set up test environment
     */
    public function setUp()
    {
        $this->extension = new CeilExtension();
    }

    public function testName()
    {
        $this->assertEquals('oro_ceil', $this->extension->getName());
    }

    /**
     * @dataProvider provider
     */
    public function testCeil($expected, $testValue)
    {
        $this->assertEquals($expected, $this->extension->ceil($testValue));
    }

    public function provider()
    {
        return array(
            array(5, 4.6),
            array(5, 4.1)
        );
    }

    public function testSetFilters()
    {
        $this->assertArrayHasKey('ceil', $this->extension->getFilters());
    }
}
{'fraction_non_alphanumeric': 0.14046822742474915, 'fraction_numerical': 0.007803790412486065, 'mean_word_length': 2.5265225933202355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '393840', 'n_tokens_mistral': 550, 'n_tokens_neox': 542, 'n_words': 99}