aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/tests/DummyRepository.php
blob: 0d9ca760b128d8e4699290b532143741d3b3c730 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace CommerceGuys\Intl\Tests;

use CommerceGuys\Intl\LocaleResolverTrait;

/**
 * Dummy repository used for testing the LocaleResolverTrait.
 */
class DummyRepository
{
    use LocaleResolverTrait;

    public function __construct()
    {
        $this->definitionPath = 'vfs://resources/dummy/';
    }

    public function runResolveLocale($locale, $fallbackLocale = null)
    {
        return $this->resolveLocale($locale, $fallbackLocale);
    }
}