Cocur\Slugify\Tests\Bridge\Silex\SlugifySilexProviderTest::register PHP Method

register() public method

public register ( )
    public function register()
    {
        // it seems like Application is not mockable.
        $app = new Application();
        $app->register(new SlugifyServiceProvider());
        $app->boot();
        $this->assertArrayHasKey('slugify', $app);
        $this->assertArrayHasKey('slugify.provider', $app);
        $this->assertArrayHasKey('slugify.options', $app);
        $this->assertInstanceOf('Cocur\\Slugify\\Slugify', $app['slugify']);
    }
SlugifySilexProviderTest