commit
914200b515
|
@ -14,6 +14,8 @@ class User
|
||||||
protected $description;
|
protected $description;
|
||||||
protected $imageUrl;
|
protected $imageUrl;
|
||||||
protected $urls;
|
protected $urls;
|
||||||
|
protected $gender;
|
||||||
|
protected $locale;
|
||||||
|
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
|
@ -61,6 +63,8 @@ class User
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'imageUrl' => $this->imageUrl,
|
'imageUrl' => $this->imageUrl,
|
||||||
'urls' => $this->urls,
|
'urls' => $this->urls,
|
||||||
|
'gender' => $this->gender,
|
||||||
|
'locale' => $this->locale,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +103,12 @@ class User
|
||||||
case 'urls':
|
case 'urls':
|
||||||
$this->urls = $value;
|
$this->urls = $value;
|
||||||
break;
|
break;
|
||||||
|
case 'gender':
|
||||||
|
$this->gender = $value;
|
||||||
|
break;
|
||||||
|
case 'locale':
|
||||||
|
$this->locale = $value;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,9 @@ class UserTest extends \PHPUnit_Framework_TestCase
|
||||||
'location' => 'mock_location',
|
'location' => 'mock_location',
|
||||||
'description' => 'mock_description',
|
'description' => 'mock_description',
|
||||||
'imageUrl' => 'mock_imageUrl',
|
'imageUrl' => 'mock_imageUrl',
|
||||||
'urls' => 'mock_urls'
|
'urls' => 'mock_urls',
|
||||||
|
'gender' => 'mock_gender',
|
||||||
|
'locale' => 'mock_locale'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue