Skip to content

Commit

Permalink
Merge branch '4.1'
Browse files Browse the repository at this point in the history
* 4.1:
  fixed usage of setUp in tests
  fixed usage of setUp in tests
  fixed usage of setUp in tests
  [travis] minor fix (quater)
  • Loading branch information
fabpot committed Sep 4, 2018
2 parents 59fad59 + 1c3d3db commit a82b2a7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/rm-invalid-lowest-lock-files.php
Expand Up @@ -79,7 +79,7 @@ function getContentHash(array $composerJson)
continue 2;
}

if (isset($composerJsons[$name][2]['repositories']) && !isset($lockedJson[$key]['repositories'])) {
if (isset($composerJsons[$name][2]['repositories']) && !isset($lockedJson['repositories'])) {
// the locked package has been patched locally but the lock references a commit,
// which means the referencing package itself is not modified
continue;
Expand Down
Expand Up @@ -26,7 +26,7 @@ class ContainerBagTest extends TestCase
/** @var ContainerBag */
private $containerBag;

public function setUp()
protected function setUp()
{
$this->parameterBag = new ParameterBag(array('foo' => 'value'));
$this->containerBag = new ContainerBag(new Container($this->parameterBag));
Expand Down
Expand Up @@ -58,7 +58,7 @@ public function getStore()
/** @var CombinedStore */
private $store;

public function setup()
protected function setUp()
{
$this->strategy = $this->getMockBuilder(StrategyInterface::class)->getMock();
$this->store1 = $this->getMockBuilder(StoreInterface::class)->getMock();
Expand Down
Expand Up @@ -22,7 +22,7 @@ class ConsensusStrategyTest extends TestCase
/** @var ConsensusStrategy */
private $strategy;

public function setup()
protected function setUp()
{
$this->strategy = new ConsensusStrategy();
}
Expand Down
Expand Up @@ -22,7 +22,7 @@ class UnanimousStrategyTest extends TestCase
/** @var UnanimousStrategy */
private $strategy;

public function setup()
protected function setUp()
{
$this->strategy = new UnanimousStrategy();
}
Expand Down
Expand Up @@ -210,12 +210,12 @@ private function getGeneratorAndStorage()
);
}

public function setUp()
protected function setUp()
{
$_SERVER['HTTPS'] = 'on';
}

public function tearDown()
protected function tearDown()
{
parent::tearDown();

Expand Down

0 comments on commit a82b2a7

Please sign in to comment.