|
@@ 67-75 (lines=9) @@
|
| 64 |
|
* |
| 65 |
|
* @test |
| 66 |
|
*/ |
| 67 |
|
public function name_works_correctly_with_arrays() |
| 68 |
|
{ |
| 69 |
|
$this->client->name(['John', 'Jane']); |
| 70 |
|
$names = $this->getPrivateProperty(\Pixelpeter\Genderize\GenderizeClient::class, 'names'); |
| 71 |
|
|
| 72 |
|
$this->assertTrue(is_array($names->getValue($this->client))); |
| 73 |
|
$this->assertSame('John', $names->getValue($this->client)[0]); |
| 74 |
|
$this->assertSame('Jane', $names->getValue($this->client)[1]); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Names sets names correctly when given as an array |
|
@@ 82-90 (lines=9) @@
|
| 79 |
|
* |
| 80 |
|
* @test |
| 81 |
|
*/ |
| 82 |
|
public function names_works_correctly_with_arrays() |
| 83 |
|
{ |
| 84 |
|
$this->client->names(['John', 'Jane']); |
| 85 |
|
$names = $this->getPrivateProperty(\Pixelpeter\Genderize\GenderizeClient::class, 'names'); |
| 86 |
|
|
| 87 |
|
$this->assertTrue(is_array($names->getValue($this->client))); |
| 88 |
|
$this->assertSame('John', $names->getValue($this->client)[0]); |
| 89 |
|
$this->assertSame('Jane', $names->getValue($this->client)[1]); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* Country sets country correctly |