Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 8, 2013
1 parent c4365ed commit 33e1987
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Console/Command/PhpunitShell.php
Expand Up @@ -146,7 +146,7 @@ public function packages() {
}

/**
* main installer
* Main installer
* you can pass the version yuo want to install (3.5, 3.6, ...) as first param:
* "... install 3.5" for example
*
Expand Down Expand Up @@ -219,7 +219,7 @@ public function install() {
}

/**
* get a list of the current versions of all used pear packages via phpunit channel
* Get a list of the current versions of all used pear packages via phpunit channel
* needs pear package to be installed
* you can easily check that typing `pear` in CLI.
*
Expand Down
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -48,9 +48,11 @@ It works with Mac OSX, Linux and Windows. Please report any problems.

If you have it installed in your ROOT vendors and get (fatal) errors while baking put this at the top of the VENDORS/PHPUnit/Autoload.php file:

if (strpos(get_include_path(), dirname(dirname(__FILE__))) === false) {
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)));
}
```php
if (strpos(get_include_path(), dirname(dirname(__FILE__))) === false) {
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)));
}
```

This way the vendors folder itself is also an include path and those errors will go away.
The PHPUnit files are checked/included prior to baking unit tests. So if you did not already set the path in your system, you need to do it this way.
Expand Down
2 changes: 1 addition & 1 deletion Test/Case/Console/Command/PhpunitShellTest.php
Expand Up @@ -51,7 +51,7 @@ public function testPackages() {
}

/**
* helper to directly display console output
* Helper to directly display console output
*/
class TestPhpunitShell extends PhpunitShell {

Expand Down

0 comments on commit 33e1987

Please sign in to comment.