sebastianbergmann/phpunit-skeleton-generator — Issue #6: --bootstrap is not working
Author: alexanderilyin
Created: 2012-03-04 00:52:51+00:00
State: open

I have a class `SEO_Sitemap_Cliscript` in `_packages/SEO/Sitemap/CliScript.php`:

```php
run();
```

Here is output of execution `php _scripts/seo/sitemap/CliScript.php`:

```bash
~/_packages/SEO/Sitemap/CliScript.php [--verbose] [--force|--luke]

COMMANDS
help
create_schema
fill_users

OPTIONS
--verbose
--debug-mode
--force|--luke

```

I mean that I have `_config/path.inc` which is a working "bootstrap" file. So when I want use phpunit-skelgen with bootstrap it's not working:

```bash
phpunit-skelgen --test --bootstrap _config/path.inc -- SEO_Sitemap_Cliscript _packages/SEO/Sitemap/CliScript.php SEO_Sitemap_CliScriptTest UTests/_packages/SEO/Sitemap/CliScriptTest.php
PHPUnit Skeleton Generator 1.1.0 by Sebastian Bergmann.

Fatal error: Class 'CliScript' not found in /home/ailyin/badoo/_packages/SEO/Sitemap/CliScript.php on line 10

Call Stack:
0.0001 646424 1. {main}() /local/php5/bin/phpunit-skelgen:0
0.0015 902336 2. PHPUnit_SkeletonGenerator_TextUI_Command::main() /local/php5/bin/phpunit-skelgen:44
0.0069 1865384 3. ReflectionClass->newInstanceArgs() /local/php5/share/pear/PHPUnit/SkeletonGenerator/TextUI/Command.php:166
0.0069 1866168 4. PHPUnit_SkeletonGenerator_Test->__construct() /local/php5/share/pear/PHPUnit/SkeletonGenerator/TextUI/Command.php:166
0.0073 1958568 5. include_once('/home/username/project/_packages/SEO/Sitemap/CliScript.php') /local/php5/share/pear/PHPUnit/SkeletonGenerator/Test.php:124
```