| @@ 97-103 (lines=7) @@ | ||
| 94 | * |
|
| 95 | * @test |
|
| 96 | */ |
|
| 97 | public function country_works_correctly() |
|
| 98 | { |
|
| 99 | $this->client->name('John')->country('US')->lang('EN'); |
|
| 100 | $country = $this->getPrivateProperty(\Pixelpeter\Genderize\GenderizeClient::class, 'country'); |
|
| 101 | ||
| 102 | $this->assertSame('US', $country->getValue($this->client)); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Lang set lang correctly |
|
| @@ 110-116 (lines=7) @@ | ||
| 107 | * |
|
| 108 | * @test |
|
| 109 | */ |
|
| 110 | public function lang_works_correctly() |
|
| 111 | { |
|
| 112 | $this->client->name('John')->country('US')->lang('EN'); |
|
| 113 | $lang = $this->getPrivateProperty(\Pixelpeter\Genderize\GenderizeClient::class, 'lang'); |
|
| 114 | ||
| 115 | $this->assertSame('EN', $lang->getValue($this->client)); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Getting a response works correctly |
|