convertToPOSIX() public method

Returns null if conversion cannot be made.
public convertToPOSIX ( string $ezpLocale ) : string | null
$ezpLocale string
return string | null
 /**
  * @dataProvider convertToPOSIXProvider
  *
  * @covers eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::convertToPOSIX
  *
  * @param $ezpLocale
  * @param $expected
  */
 public function testConvertToPOSIX($ezpLocale, $expected)
 {
     if ($expected === null) {
         $this->logger->expects($this->once())->method('warning');
     }
     $this->assertSame($expected, $this->localeConverter->convertToPOSIX($ezpLocale));
 }
 /**
  * Get PosixLocale
  *
  * @param string $eZLocale
  *
  * @return null|string
  */
 public function getPosixLocale($eZLocale)
 {
     return $this->localeConverter->convertToPOSIX($eZLocale);
 }