File tree 2 files changed +9
-6
lines changed
src/Symfony/Component/Intl/Tests
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 22
22
*/
23
23
abstract class IntlTestCase extends \PHPUnit_Framework_TestCase
24
24
{
25
- protected function setUp ()
26
- {
27
- // Always use stub data for testing to have consistent results
28
- Intl::setDataSource (Intl::STUB );
29
- }
30
-
31
25
protected function is32Bit ()
32
26
{
33
27
return PHP_INT_SIZE == 4 ;
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Intl \Tests \NumberFormatter ;
13
13
14
14
use Symfony \Component \Intl \Globals \StubIntlGlobals ;
15
+ use Symfony \Component \Intl \Intl ;
15
16
use Symfony \Component \Intl \NumberFormatter \StubNumberFormatter ;
16
17
17
18
/**
20
21
*/
21
22
class StubNumberFormatterTest extends AbstractNumberFormatterTest
22
23
{
24
+ protected function setUp ()
25
+ {
26
+ // Force the use of stub data to have consistent results
27
+ Intl::setDataSource (Intl::STUB );
28
+
29
+ parent ::setUp ();
30
+ }
31
+
23
32
/**
24
33
* @expectedException \Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException
25
34
*/
You can’t perform that action at this time.
0 commit comments