josegonzalez/cakephp-queuesadilla

Queue::reset() doesn't reset $_queuers

asaliev opened this issue · 2 comments

I've been doing some work around the Queue class, and while testing I've encountered an issue that the private property $_queuers doesn't get reset in the reset() method, giving me unwanted results across different phpunit test functions.

Is there a particular reason for not resetting queuers, or it's just something that's been missed?

Referenced function:

public static function reset()
{
static::$_registry = null;
static::$_config = [];
static::$_dirtyConfig = true;
}

Nope, but pull requests welcome :)

@josegonzalez gotcha ;)