rouffj / howto-bundle
RouffjHowToBundle
dev-master
2014-01-02 18:06 UTC
Requires
- php: >=5.3.2
- nikic/php-parser: ~0.9
- symfony/framework-bundle: >=2.1,<2.4-dev
This package is not auto-updated.
Last update: 2024-09-23 13:04:42 UTC
README
实验“通过自动测试学习”概念的工程。
安装
步骤 1: 使用 Composer 下载 RouffjHowToBundle
告诉 Composer 在您的 composer.json 中添加 RouffjHowToBundle 并运行以下命令下载:
$ composer.phar require "rouffj/howto-bundle dev-master"
Composer 将将包安装到您项目的 vendor/rouffj 目录中。
步骤 2: 启用包
在内核中启用包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Rouffj\Bundle\HowToBundle\RouffjHowToBundle(), ); }
步骤 3: 配置包
在您的 app/config/config.yml
中的 imports
指令中添加:
- { resource: @RouffjHowToBundle/Resources/config/config.yml }
在您的 app/config/routing.yml
中添加:
_howto_bundle: resource: "@RouffjHowToBundle/Resources/config/routing.yml"
运行测试
$ cd vendor/rouffj/howto-bundle $ phpunit --testdox Rouffj\Bundle\HowToBundle\Tests\PhpParser\PhpParser [x] How to retrieve statement name [x] How to retrieve statement name supporting many declarations [x] How to retrieve expression name ... Rouffj\Bundle\HowToBundle\Tests\Symfony\Security\Voter [x] How to use voter for request based authorization ... Rouffj\Bundle\HowToBundle\Tests\Symfony\...