streams/library/intl/tests/DummyRepository.php

24 lines
463 B
PHP
Raw Normal View History

<?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);
}
}