staglag13/wom-test-bundle

PHP Developers Recruiting Test

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.0 2014-12-30 17:03 UTC

This package is not auto-updated.

Last update: 2024-04-23 01:03:51 UTC


README

Install

Add bundle to composer.json

"require": {
    ...
    "staglag13/wom-test-bundle": "*"
},

Update via composer

$ composer update staglag13/wom-test-bundle

Register bundle in app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Staglag13\WomTestBundle\Staglag13WomTestBundle(),
        );

        ...
    }
}
```
    
Add routing to app/config/routing.yml
    
```yaml
staglag13_wom_test:
    resource: "@Staglag13WomTestBundle/Resources/config/routing.yml"
    prefix:   /
```

<h3>Run</h3>

<h5>Webbrowser</h5>

Start Demo in Browser with URL: 
    
    http://localhost:8000/app_dev.php/musicmoz

<h5>Command</h5>

Run Demo via shell execute: 

    php app/console musicmoz:run

<h3>Testing</h3>

Start the PHPUnit Test via shell command:

    phpunit -c app/ vendor/staglag13/wom-test-bundle/Staglag13/WomTestBundle/