mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Update PHPUnit to 8.5
This commit is contained in:
parent
d2ede370be
commit
2a771dfb2d
58 changed files with 1385 additions and 749 deletions
|
@ -28,7 +28,7 @@ class FossilDriverTest extends TestCase
|
|||
*/
|
||||
protected $config;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
$this->config = new Config();
|
||||
|
@ -39,7 +39,7 @@ class FossilDriverTest extends TestCase
|
|||
));
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
|
@ -33,7 +33,7 @@ class GitBitbucketDriverTest extends TestCase
|
|||
/** @var string */
|
||||
private $home;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
|
||||
|
@ -51,7 +51,7 @@ class GitBitbucketDriverTest extends TestCase
|
|||
->getMock();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem;
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
|
@ -28,7 +28,7 @@ class GitHubDriverTest extends TestCase
|
|||
/** @var Config */
|
||||
private $config;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
$this->config = new Config();
|
||||
|
@ -39,7 +39,7 @@ class GitHubDriverTest extends TestCase
|
|||
));
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem;
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
|
@ -45,7 +45,7 @@ class GitLabDriverTest extends TestCase
|
|||
*/
|
||||
private $httpDownloader;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
$this->config = new Config();
|
||||
|
@ -66,7 +66,7 @@ class GitLabDriverTest extends TestCase
|
|||
$this->httpDownloader = $this->prophesize('Composer\Util\HttpDownloader');
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
|
@ -26,7 +26,7 @@ class HgDriverTest extends TestCase
|
|||
/** @var string */
|
||||
private $home;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
|
@ -38,7 +38,7 @@ class HgDriverTest extends TestCase
|
|||
));
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem;
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
|
@ -61,7 +61,7 @@ class PerforceDriverTest extends TestCase
|
|||
const TEST_DEPOT = 'TEST_DEPOT_CONFIG';
|
||||
const TEST_BRANCH = 'TEST_BRANCH_CONFIG';
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testPath = $this->getUniqueTmpDirectory();
|
||||
$this->config = $this->getTestConfig($this->testPath);
|
||||
|
@ -78,7 +78,7 @@ class PerforceDriverTest extends TestCase
|
|||
$this->overrideDriverInternalPerforce($this->perforce);
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
//cleanup directory under test path
|
||||
$fs = new Filesystem;
|
||||
|
|
|
@ -29,7 +29,7 @@ class SvnDriverTest extends TestCase
|
|||
*/
|
||||
protected $config;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
$this->config = new Config();
|
||||
|
@ -40,7 +40,7 @@ class SvnDriverTest extends TestCase
|
|||
));
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
public function tearDown(): void
|
||||
{
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($this->home);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue