sebastianbergmann/phpunit — pull request #1086 by rybakit (2013-12-31 09:32:41+00:00)
Title: Check the requirements before calling the setUp()

The use case I have an issue with is:
```php
/**
* @requires extension redis
*/
class RedisQueueTest extends extends \PHPUnit_Framework_TestCase
{
protected $queue;

protected function setUp()
{
$redis = new \Redis();
$this->queue = create_redis_queue($redis);
}
}
```

Running `phpunit RedisQueueTest` fails with `Fatal error: Call to undefined method Redis::connect() ...` because the redis extension is not installed.