Hoa central
Public Member Functions | List of all members
Hoa\Locale\Test\Unit\Localizer\System Class Reference
Inheritance diagram for Hoa\Locale\Test\Unit\Localizer\System:

Public Member Functions

 case_classic ()
 
 case_null ()
 
 case_not_encoding ()
 
- Public Member Functions inherited from Hoa\Test\Unit\Suite
 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Test suite of the system localizer.

Definition at line 50 of file System.php.

Member Function Documentation

Hoa\Locale\Test\Unit\Localizer\System::case_classic ( )

Definition at line 52 of file System.php.

53  {
54  $this
55  ->given(
56  $this->function->setlocale = 'C/fr_FR.UTF-8/C/C/C/C',
57  $localizer = new CUT()
58  )
59  ->when($result = $localizer->getLocale())
60  ->then
61  ->string($result)
62  ->isEqualTo('fr-FR');
63  }
Hoa\Locale\Test\Unit\Localizer\System::case_not_encoding ( )

Definition at line 78 of file System.php.

79  {
80  $this
81  ->given(
82  $this->function->setlocale = 'C/fr_FR/C/C/C/C',
83  $localizer = new CUT()
84  )
85  ->when($result = $localizer->getLocale())
86  ->then
87  ->string($result)
88  ->isEqualTo('fr-FR');
89  }
Hoa\Locale\Test\Unit\Localizer\System::case_null ( )

Definition at line 65 of file System.php.

66  {
67  $this
68  ->given(
69  $this->function->setlocale = 'C/C/C/C/C/C',
70  $localizer = new CUT()
71  )
72  ->when($result = $localizer->getLocale())
73  ->then
74  ->variable($result)
75  ->isNull();
76  }

The documentation for this class was generated from the following file: