Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Minor cleanup of unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic committed May 7, 2015
1 parent 3d348a2 commit 424b0ec
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Adapter/Phpunit.php
Expand Up @@ -117,7 +117,6 @@ public function getProcess(

Job::generate(
$mutantFile,
$jobopts,
$container->getBootstrap(),
$interceptFile
);
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Phpunit/Job.php
Expand Up @@ -21,7 +21,7 @@ class Job
* @param null|string $replacingFile
* @return string
*/
public static function generate($mutantFile = null, array $args = [], $bootstrap = '', $replacingFile = null)
public static function generate($mutantFile = null, $bootstrap = '', $replacingFile = null)
{
if ('phar:' === substr(__FILE__, 0, 5)) {
$humbugBootstrap = \Phar::running() . '/bootstrap.php';
Expand Down
2 changes: 0 additions & 2 deletions src/Process/ComposerExecutableFinder.php
Expand Up @@ -31,12 +31,10 @@ private function tryAndGetNiceThing()
{
$probable = ['composer', 'composer.phar'];
$finder = new ExecutableFinder;
$located = null;
$immediatePaths = [getcwd(), realpath(getcwd().'/../'), realpath(getcwd().'/../../')];
foreach ($probable as $name) {
if ($path = $finder->find($name, null, $immediatePaths)) {
return $path;
break;
}
}
/**
Expand Down
2 changes: 1 addition & 1 deletion src/TestSuite/Mutant/Observers/SpinnerObserver.php
Expand Up @@ -28,7 +28,7 @@ class SpinnerObserver extends BaseObserver
private $count = 0;

/**
* @var int
* @var float
*/
private $time;

Expand Down
2 changes: 1 addition & 1 deletion tests/Adapter/Phpunit/JobTest.php
Expand Up @@ -19,7 +19,7 @@ class JobTest extends \PHPUnit_Framework_TestCase
public function testGenerateReturnsPHPScriptRenderedWithCurrentRunnersSettingsAndSerialisedMutationArray()
{
$this->markTestIncomplete();
$script = Job::generate('the_file.php', [], '/path/to/bootstrap.php');
$script = Job::generate('the_file.php', '/path/to/bootstrap.php');
$bootstrap = realpath(__DIR__ . '/../../../bootstrap.php');
$this->assertFileExists($bootstrap);
}
Expand Down

0 comments on commit 424b0ec

Please sign in to comment.