<?php

namespace Sso\WebserviceBundle\Tests\Services;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Faker\Factory as FakerFactory;
use Faker\Generator as FakerGenerator;


abstract class ServicesKernelTestCase extends WebTestCase
{

    /**
     * @var ContainerInterface
     */
    protected $container;

    /**
     * @var ValidatorInterface
     */
    protected $validator;

    /**
     * @var FakerGenerator
     */
    protected $faker;

    protected function setUp()
    {
        parent::setUp();
        static::bootKernel();
        $this->container = static::$kernel->getContainer();
        $this->validator = $this->container->get('validator');
        $this->faker = FakerFactory::create();
    }

}
