This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Test_Crontab | |
* | |
*/ | |
require 'vendor/autoload.php'; | |
class Test_Batch_Crontab extends PHPUnit_Framework_TestCase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Test_PHP_Syntax | |
* | |
* @group App | |
* @uses TestCase | |
* | |
*/ | |
class SyntaxTest extends PHPUnit_Framework_TestCase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Find; | |
use Test::More; | |
my @TARGET_DIR = (qw/ lib /); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop table if exists varchar_length; | |
create table varchar_length( | |
id int auto_increment NOT NULL, | |
letter016 varchar(16), | |
letter256 varchar(256), | |
primary key(id) | |
); | |
drop table if exists int_length; | |
create table int_length( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use lib './lib'; | |
package MyApp::Worker::Test; | |
use base qw/Qudo::Worker/; | |
use Data::Dumper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $str = 'gist-test'; | |
print $str."\n"; | |
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Qudo; | |
use MyApp::Worker::Santa; | |
my $qudo = Qudo->new( | |
driver_class => 'Skinny', | |
databases => [+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Qudo; | |
my $qudo = Qudo->new( | |
driver_class => 'Skinny', | |
databases => [+{ | |
dsn => 'dbi:mysql:qudo', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MyApp::Worker::Santa; | |
use strict; | |
use warnings; | |
use base qw/Qudo::Worker/; | |
sub work { | |
my ($self , $job ) = @_; | |
$job->manager->plugin->{pre_message}->(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Qudo; | |
my $qudo = Qudo->new( | |
driver_class => 'Skinny', | |
databases => [+{ | |
dsn => 'dbi:mysql:qudo', |
OlderNewer