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