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 Akeneo\Bundle\ClassificationBundle\Doctrine\ORM\Repository; | |
use Akeneo\Bundle\StorageUtilsBundle\Doctrine\ORM\Repository\SearchableRepository; | |
use Akeneo\Component\Classification\Repository\TagRepositoryInterface; | |
/** | |
* Tag repository | |
* |
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
$collection->getIterator()->willReturn($iterator); | |
$iterator->rewind()->willReturn(null); | |
$valueCount = 1; | |
$iterator->valid()->will( | |
function () use (&$valueCount) { | |
return $valueCount-- > 0; | |
} | |
); | |
$iterator->current()->willReturn($value); |
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 Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
class CommandSpec extends ObjectBehavior | |
{ | |
function it_has_a_name() | |
{ | |
$this->getName()->shouldReturn('name:command'); | |
} |
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
// Doctrine ORM | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\AbstractQuery; | |
use Doctrine\ORM\QueryBuilder; | |
class RepositorySpec extends ObjectBehavior | |
{ | |
function let(EntityManager $em, ClassMetadata $classMetadata) | |
{ |
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
security: | |
providers: | |
api_provider: | |
memory: | |
users: | |
user: { password: password, roles: 'ROLE_API' } | |
encoders: | |
Symfony\Component\Security\Core\User\User: plaintext | |
firewalls: | |
api: |
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
{ | |
"name": "symfony/framework-standard-edition", | |
"description": "The \"Symfony Standard Edition\" distribution", | |
"autoload": { | |
"psr-0": { "": "src/" } | |
}, | |
"require": { | |
"php": ">=5.3.3", | |
"symfony/symfony": "2.2.*", | |
"doctrine/orm": "~2.2,>=2.2.3", |