public function testUrl() { $server = 'http://thumbor.example.com'; $secret = 'butts'; $original = 'http://example.com/llamas.jpg'; $builder = BuilderFactory::construct($server, $secret)->url($original); $expected = Builder::construct($server, $secret, $original); $this->assertEquals($expected, $builder); }
/** * Register the service provider. * * @return void */ public function register() { $this->app['phumbor'] = $this->app->share(function ($app) { return \Thumbor\Url\BuilderFactory::construct(Config::get('laravel-phumbor::server'), Config::get('laravel-phumbor::key')); }); }