Skip to content

Commit

Permalink
Linux compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
masicek committed Feb 23, 2012
1 parent 784fdb3 commit bf41707
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion PhpOptions.min.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion PhpOptions/Arguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function options()
*
* @return array
*/
public static function arguments()
public static function getArguments()
{
self::setAll();
return self::$arguments;
Expand Down
4 changes: 2 additions & 2 deletions PhpOptions/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Options
/**
* Version of PhpOptions
*/
const VERSION = '1.2.0';
const VERSION = '1.3.0';

/**
* Max length of one line
Expand Down Expand Up @@ -101,7 +101,7 @@ public function __construct()
*/
public static function arguments()
{
return Arguments::arguments();
return Arguments::getArguments();
}


Expand Down
2 changes: 1 addition & 1 deletion PhpOptions/Types/DirectoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function check($value)
$value = $this->useFilter($value);
if ($this->isFullPath($value))
{
$isDir = mkdir($value, 0, TRUE);
$isDir = mkdir($value, 0700, TRUE);
}
}

Expand Down
9 changes: 3 additions & 6 deletions Tools/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ private function runTestsUnit()
$coverage = $this->setDirSep(DATA_TOOLS . '/Coverage');
$tests = $this->setDirSep(TESTS_TOOLS . '/Unit');
$this->setArguments('boot.php',
'--strict
--coverage-html ' . $coverage . '
'--coverage-html ' . $coverage . '
' . $tests
);
\PHPUnit_TextUI_Command::main(FALSE);
Expand All @@ -204,8 +203,7 @@ private function runTestsRegression()
// run tests
$tests = $this->setDirSep(TESTS_TOOLS . '/Regression');
$this->setArguments('boot.php',
'--strict
' . $tests
$tests
);
\PHPUnit_TextUI_Command::main(FALSE);

Expand All @@ -229,8 +227,7 @@ private function runTestsMinifing()
// run tests
$tests = $this->setDirSep(TESTS_TOOLS . '/Minifing');
$this->setArguments('boot.php',
'--strict
' . $tests
$tests
);
\PHPUnit_TextUI_Command::main(FALSE);

Expand Down
4 changes: 2 additions & 2 deletions Tools/Tests/Unit/Arguments/ArgumentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Viktor Mašíček <[email protected]>
*
* @covers PhpOptions\Arguments::arguments
* @covers PhpOptions\Arguments::getArguments
* @covers PhpOptions\Arguments::setAll
* @covers PhpOptions\Arguments::readAll
*/
Expand All @@ -35,7 +35,7 @@ public function test($arguments, $expectedOptions)
$this->setPropertyValue('Arguments', 'PhpOptions\Arguments::$options', NULL);

$this->setArguments($arguments);
$this->assertEquals($expectedOptions, Arguments::arguments());
$this->assertEquals($expectedOptions, Arguments::getArguments());
}


Expand Down

0 comments on commit bf41707

Please sign in to comment.