Skip to content

Commit

Permalink
StyleCI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienrn committed Jul 21, 2016
1 parent 87f8171 commit 57bf035
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/UnitTest/Module/Config/Step/LoadConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function tearDown()
public function it_should_load_simple_config()
{
// Copy fixtures to working directory.
$this->filesystem->copy($this->getFixturePath("couscous-simple.yml"), $this->workingDir.DIRECTORY_SEPARATOR.LoadConfig::FILENAME);
$this->filesystem->copy($this->getFixturePath('couscous-simple.yml'), $this->workingDir.DIRECTORY_SEPARATOR.LoadConfig::FILENAME);

// Create a project for working directory.
$project = new Project($this->workingDir, '');
Expand All @@ -50,7 +50,7 @@ public function it_should_load_simple_config()
$step->__invoke($project);

$this->assertEquals(['some/dir', 'some/other/dir'], $project->metadata['include']);
$this->assertEquals("coucous-simple!", $project->metadata['title']);
$this->assertEquals('coucous-simple!', $project->metadata['title']);
}

/**
Expand All @@ -59,8 +59,8 @@ public function it_should_load_simple_config()
public function it_should_overwrite_config()
{
// Copy fixtures to working directory.
$this->filesystem->copy($this->getFixturePath("couscous-with-import.yml"), $this->workingDir.DIRECTORY_SEPARATOR.LoadConfig::FILENAME);
$this->filesystem->copy($this->getFixturePath("imported-file1.yml"), $this->workingDir.DIRECTORY_SEPARATOR."imported-file1.yml");
$this->filesystem->copy($this->getFixturePath('couscous-with-import.yml'), $this->workingDir.DIRECTORY_SEPARATOR.LoadConfig::FILENAME);
$this->filesystem->copy($this->getFixturePath('imported-file1.yml'), $this->workingDir.DIRECTORY_SEPARATOR.'imported-file1.yml');

// Create a project for working directory.
$project = new Project($this->workingDir, '');
Expand All @@ -71,13 +71,13 @@ public function it_should_overwrite_config()
$step->__invoke($project);

$this->assertEquals(['some/dir', 'some/other/dir', 'other/dir/imported'], $project->metadata['include']);
$this->assertEquals("overwritten by imported-file1.yml", $project->metadata['title']);
$this->assertEquals('overwritten by imported-file1.yml', $project->metadata['title']);
}

/**
* Locate fixtures and return path.
*
* @param string $name
* @param string $name
*
* @return string
*/
Expand All @@ -99,7 +99,7 @@ public function getUniqueTmpDirectory()
$root = sys_get_temp_dir();

do {
$unique = $root . DIRECTORY_SEPARATOR . uniqid('couscous-test-' . rand(1000, 9000));
$unique = $root.DIRECTORY_SEPARATOR.uniqid('couscous-test-'.rand(1000, 9000));

if (!$this->filesystem->exists($unique)) {
// Create and return.
Expand Down

0 comments on commit 57bf035

Please sign in to comment.