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

Public Member Functions

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

Detailed Description

Class .

Test suite of the HTTP localizer.

Definition at line 50 of file Http.php.

Member Function Documentation

Hoa\Locale\Test\Unit\Localizer\Http::case_cfws ( )

Definition at line 62 of file Http.php.

63  {
64  $this
65  ->given($localizer = new CUT('fr-fr , en-uk ; q = 0.7'))
66  ->when($result = $localizer->getLocale())
67  ->then
68  ->string($result)
69  ->isEqualTo('fr-fr');
70  }
Hoa\Locale\Test\Unit\Localizer\Http::case_classic ( )

Definition at line 52 of file Http.php.

53  {
54  $this
55  ->given($localizer = new CUT('fr-fr,en-uk;q=0.7,en;q=0.3'))
56  ->when($result = $localizer->getLocale())
57  ->then
58  ->string($result)
59  ->isEqualTo('fr-fr');
60  }
Hoa\Locale\Test\Unit\Localizer\Http::case_q_on_first ( )

Definition at line 72 of file Http.php.

73  {
74  $this
75  ->given($localizer = new CUT('fr-fr;q=0.9,en-uk;q=0.7'))
76  ->when($result = $localizer->getLocale())
77  ->then
78  ->string($result)
79  ->isEqualTo('fr-fr');
80  }

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