<commit_before><?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_View
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */

namespace ZendTest\I18n\View\Helper;

use DateTime;
use Locale;
use IntlDateFormatter;
use Zend\I18n\View\Helper\DateFormat as DateFormatHelper;

/**
 * Test class for Zend_View_Helper_Currency
 *
 * @category   Zend
 * @package    Zend_View
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @group      Zend_View
 * @group      Zend_View_Helper
 */
class DateFormatTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var DateFormatHelper
     */
    public $helper;

    /**
     * Sets up the fixture, for example, open a network connection.
     * This method is called before a test is executed.
     *
     * @return void
     */
    public function setUp()
    {
        $this->helper = new DateFormatHelper();
    }

    /**
     * Tears down the fixture, for example, close a network connection.
     * This method is called after a test is executed.
     *
     * @return void
     */
    public function tearDown()
    {
        unset($this->helper);
    }

    public function currencyTestsDataProvider()
    {
        return array(
            // FULL format varies based on OS
            // array(
            //     'de_DE',
            //     'Europe/Berlin',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     'Dienstag, 3. Juli 2012 00:44:03 Deutschland',
            // ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::LONG,
                IntlDateFormatter::LONG,
                new DateTime('2012-07-02T22:44:03Z'),
                '3. Juli 2012 00:44:03 MESZ',
            ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::MEDIUM,
                IntlDateFormatter::MEDIUM,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.2012 00:44:03',
            ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::SHORT,
                IntlDateFormatter::SHORT,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.12 00:44',
            ),
            // FULL format varies based on OS
            // array(
            //     'ru_RU',
            //     'Europe/Moscow',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     '3 июля 2012 г. 2:44:03 Россия (Москва)',
            // ),
            array(
                'ru_RU',
                'Europe/Moscow',
                IntlDateFormatter::LONG,
                IntlDateFormatter::LONG,
                new DateTime('2012-07-02T22:44:03Z'),
                '3 июля 2012 г. 2:44:03 GMT+04:00',
            ),
            array(
                'ru_RU',
                'Europe/Moscow',
                IntlDateFormatter::MEDIUM,
                IntlDateFormatter::MEDIUM,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.2012 2:44:03',
            ),
            array(
                'ru_RU',
                'Europe/Moscow',
                IntlDateFormatter::SHORT,
                IntlDateFormatter::SHORT,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.12 2:44',
            ),
            // FULL format varies based on OS
            // array(
            //     'en_US',
            //     'America/New_York',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     'Monday, July 2, 2012 6:44:03 PM ET',
            // ),<commit_msg>[zen-66] Remove another date format with issues<commit_after><?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_View
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.<EMAIL>)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */

namespace ZendTest\I18n\View\Helper;

use DateTime;
use Locale;
use IntlDateFormatter;
use Zend\I18n\View\Helper\DateFormat as DateFormatHelper;

/**
 * Test class for Zend_View_Helper_Currency
 *
 * @category   Zend
 * @package    Zend_View
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @group      Zend_View
 * @group      Zend_View_Helper
 */
class DateFormatTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var DateFormatHelper
     */
    public $helper;

    /**
     * Sets up the fixture, for example, open a network connection.
     * This method is called before a test is executed.
     *
     * @return void
     */
    public function setUp()
    {
        $this->helper = new DateFormatHelper();
    }

    /**
     * Tears down the fixture, for example, close a network connection.
     * This method is called after a test is executed.
     *
     * @return void
     */
    public function tearDown()
    {
        unset($this->helper);
    }

    public function currencyTestsDataProvider()
    {
        return array(
            // FULL format varies based on OS
            // array(
            //     'de_DE',
            //     'Europe/Berlin',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     'Dienstag, 3. Juli 2012 00:44:03 Deutschland',
            // ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::LONG,
                IntlDateFormatter::LONG,
                new DateTime('2012-07-02T22:44:03Z'),
                '3. Juli 2012 00:44:03 MESZ',
            ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::MEDIUM,
                IntlDateFormatter::MEDIUM,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.2012 00:44:03',
            ),
            array(
                'de_DE',
                'Europe/Berlin',
                IntlDateFormatter::SHORT,
                IntlDateFormatter::SHORT,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.12 00:44',
            ),
            // FULL format varies based on OS
            // array(
            //     'ru_RU',
            //     'Europe/Moscow',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     '3 июля 2012 г. 2:44:03 Россия (Москва)',
            // ),
            // LONG format varies based on OS for ru_RU locale
            // array(
            //     'ru_RU',
            //     'Europe/Moscow',
            //     IntlDateFormatter::LONG,
            //     IntlDateFormatter::LONG,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     '3 июля 2012 г. 2:44:03 GMT+04:00',
            // ),
            array(
                'ru_RU',
                'Europe/Moscow',
                IntlDateFormatter::MEDIUM,
                IntlDateFormatter::MEDIUM,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.2012 2:44:03',
            ),
            array(
                'ru_RU',
                'Europe/Moscow',
                IntlDateFormatter::SHORT,
                IntlDateFormatter::SHORT,
                new DateTime('2012-07-02T22:44:03Z'),
                '03.07.12 2:44',
            ),
            // FULL format varies based on OS
            // array(
            //     'en_US',
            //     'America/New_York',
            //     IntlDateFormatter::FULL,
            //     IntlDateFormatter::FULL,
            //     new DateTime('2012-07-02T22:44:03Z'),
            //     'Monday, July 2, 2012 6:44:03 PM ET',
            // ),
{'fraction_non_alphanumeric': 0.1152981479498983, 'fraction_numerical': 0.05331334974842094, 'mean_word_length': 1.4545454545454546, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5555465', 'n_tokens_mistral': 3083, 'n_tokens_neox': 2666, 'n_words': 641}