Skip to content

Commit

Permalink
reset the locale after test
Browse files Browse the repository at this point in the history
  • Loading branch information
Defender32 committed Oct 30, 2019
1 parent ef5d0d5 commit 2f59289
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/Doctrine/Common/Lexer/AbstractLexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ public function setUp() : void
$this->concreteLexer = new ConcreteLexer();
}

/**
* {@inheritdoc}
*/
public function tearDown() : void
{
setlocale(LC_ALL, null);
}

public function dataProvider()
{
return [
Expand Down Expand Up @@ -306,6 +314,5 @@ public function testMarkerAnnotationLocaleTr() : void
self::assertTrue($mutableLexer->moveNext());
self::assertEquals('@', $mutableLexer->token['value']);
self::assertEquals('ODM\Id', $mutableLexer->lookahead['value']);
setlocale(LC_ALL, null);
}
}

0 comments on commit 2f59289

Please sign in to comment.