public function testSetTimeout() { $options = ['token_rdstation' => 'xyd', 'identificador' => 'foo', 'client' => ['timeout' => 666]]; $station = new RDStation($options); $httpClient = $station->getClient(); $reflection = new \ReflectionObject($httpClient); $property = $reflection->getProperty('config'); $property->setAccessible(true); $options = $property->getValue($httpClient); $this->assertEquals(666, $options['timeout']); }