Commit Graph

25 Commits

Author SHA1 Message Date
Daniel Mason
c862009505 Enable redis server in travis for testing 2018-05-25 19:53:55 +12:00
Daniel Mason
ae84530132 - Reformatted files to PSR2 standard
- Removed credis for native phpredis
- Tidied up some docs
- Setting up new travis.ci build
2018-05-25 19:26:54 +12:00
Chris Boulton
8113e624c4 use a mock to test correct redis exceptions are surfaced 2016-10-15 01:50:45 -07:00
Chris Boulton
81cb92b964 throw Resque_RedisException whenever an errror connecting/talking to redis occurs 2016-10-14 15:03:17 -07:00
Sebastian Machuca
be19e12c31
Making the factory the default layer to construct jobs 2016-10-14 14:41:19 +11:00
Sebastian Machuca
df20186c37
Convert spaces to tabs 2016-10-13 14:45:02 +11:00
Sebastian Machuca
8f542e5035
Making the factory responsible to set the arguments and the queue 2016-10-12 19:22:31 +11:00
Sebastian Machuca
de22db6826
Making it compatible with PHP < 5.5
Making the factory receive the classname
2016-10-06 16:07:16 +11:00
Sebastian Machuca
7d2ce1bc8b
BIG-28720 Allowing to use a factory instead of manually instantite the Jobs 2016-10-06 12:54:41 +11:00
Magnus Persson
5aed917f72 Resolves chrisboulton/php-resque#145 2015-03-11 23:41:12 +01:00
Axel K.
226ec33bb0 Test for asserting that correct items get dequeued when args are provided 2014-11-10 15:33:42 +01:00
Wedy Chainy
29e37784cd Alter dequeue - now accepting 'args' and "ID" arguments 2014-09-23 09:42:31 +10:00
Wedy Chainy
4a97c14628 dequeue 2014-09-22 16:17:16 +10:00
Rockstar04
726e58a297 Added basic logging class for a fallback
Corrected unit tests for new code

Add partial unit coverage for logging class

Add newline to logTest file
2013-06-25 12:01:50 -07:00
Chris Boulton
b31830c0bf when testing job recreation, compare the results of ->getArguments() 2013-05-12 15:40:35 +10:00
Chris Boulton
8d6da21473 restructure tests, use composer to autoload test requirements 2013-01-12 22:01:13 +11:00
Chris Boulton
c908109a74 Remove silly copyright line in docblock comments, update email address, remove copyright year because it is boring to maintain 2012-10-13 17:55:41 +11:00
Hélio Costa e Silva
016a7a13fd Added support of Redis prefix (namespaces) 2011-11-22 14:55:40 -02:00
Chris Boulton
700af834b4 Unit tests should not be directly accessing payload[args] now that we have getArguments() 2011-09-16 15:30:36 +10:00
chris.boulton
6f43fcfed8 Add a plugin/event/hook system 2011-03-27 18:42:46 +11:00
Chris Boulton
5f64653149 Change job classes to be instantiated rather than calling methods statically. This obviously makes it easier for state information to be destroyed after a job runs. This change is NOT backwards compatible and requests job classes be rewritten. Jobs also no longer receive arguments in the perform/setUp/tearDown methods but instead are passed as a $args variable to the instantiated job 2010-08-01 15:23:41 +10:00
Chris Boulton
6e6d7ad859 Add setUp and tearDown callbacks for jobs 2010-04-20 10:02:34 +10:00
Chris Boulton
3f04a0a971 Remove unnecessary call to worker->unregisterWorker in the JobTest teardown method 2010-04-19 15:01:47 +10:00
Chris Boulton
c5396f4e86 Change arguments for jobs to an array instead of an object. Also change other json encoded items to decode to an array rather than objects 2010-04-19 10:35:50 +10:00
Chris Boulton
cb4205d508 Initial commit 2010-04-18 23:58:43 +10:00