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
'use strict'; | |
var gulp = require('gulp'); | |
var _ = require('lodash'); | |
var jest = require('jest-cli'); | |
var minimist = require('minimist'); | |
var gulpCliOptions = minimist(process.argv.slice(2)); | |
var config = require('./jest.config'); |
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
grunt.initConfig({ | |
connect: { | |
test: { | |
options: { | |
port: 9001, | |
hostname: 'localhost', | |
base: [ | |
'.tmp', | |
'test', | |
'<%= yeoman.app %>' |
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
services: | |
m6web_redismock_factory: | |
class: M6Web\Component\RedisMock\RedisMockFactory | |
my_redis_service_name: | |
class: M6Web\Component\RedisMock\RedisMock | |
factory_service: m6web_redismock_factory | |
factory_method: getAdapter | |
arguments: | |
- "My\Redis\Library" |
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 | |
$factory = new \M6Web\Component\RedisMock\RedisMockFactory(); | |
$myRedisMockClass = $factory->getAdapterClass('My\Redis\Library'); | |
$myRedisMock = new $myRedisMockClass($myParameters); |
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
services: | |
your_redis_service_name: | |
class: M6Web\Component\RedisMock\RedisMock |
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
{ | |
"require-dev": { | |
"m6web/redis-mock": "~1.2" | |
} | |
} |
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 | |
namespace M6\Bundle\MyRESTBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use FOS\RestBundle\Controller\Annotations as Rest; | |
use FOS\RestBundle\Request\ParamFetcher; | |
use FOS\RestBundle\View\View; | |
use FOS\RestBundle\Controller\Annotations\Route; |
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 | |
namespace M6\Bundle\MyRESTBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
use M6\Bundle\MyRESTBundle\Form\TalkType; |
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 | |
namespace M6\Helpers\Bundle\ORMBundle\Test\Controller; | |
use atoum\AtoumBundle\Test\Controller\ControllerTest as BaseControllerTest; | |
use atoum\AtoumBundle\Test\Asserters; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Output\NullOutput; |
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 | |
namespace M6\Helpers\Bundle\ORMBundle\Test\Controller; | |
use atoum\AtoumBundle\Test\Controller\ControllerTest; | |
use atoum\AtoumBundle\Test\Asserters; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Criteria; |
NewerOlder