mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add types to Repository
tests (#10227)
This commit is contained in:
parent
3d9e9ba66f
commit
d51c7685da
15 changed files with 133 additions and 23 deletions
|
@ -24,7 +24,9 @@ use Symfony\Component\Process\Process;
|
|||
|
||||
class GitHubDriverTest extends TestCase
|
||||
{
|
||||
/** @var string */
|
||||
private $home;
|
||||
/** @var Config */
|
||||
private $config;
|
||||
|
||||
public function setUp()
|
||||
|
@ -340,6 +342,13 @@ class GitHubDriverTest extends TestCase
|
|||
$process->assertComplete($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|object $object
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setAttribute($object, $attribute, $value)
|
||||
{
|
||||
$attr = new \ReflectionProperty($object, $attribute);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue