getMethod($name); $method->setAccessible(true); return $method; } public function setUp() { $this->_socket = new Socket(); } public function testGetConfigForConstruct() { $ref_conf = static::getMethod('getConfig'); $config = $ref_conf->invokeArgs($this->_socket, Array()); $this->assertEquals(array_values(Socket::$_defaults), $config); } }