gos / fixture-bundle
此包已被 弃用 且不再维护。未建议替代包。
Fixture bundle, fixture, bundle, fixture tool, doctrine, orm
dev-master / 1.0.x-dev
2014-10-01 15:40 UTC
Requires
- php: >=5.4
- doctrine/doctrine-fixtures-bundle: 2.2.*
- gos/fixture: ~1.0@dev
- sensio/framework-extra-bundle: ~3.0
This package is auto-updated.
Last update: 2020-08-17 21:56:46 UTC
README
#Gos Fixture Bundle#
该项目目前正在开发中,请小心使用。
安装
您需要安装 composer 来安装依赖项。
{ "require": { "gos/fixture-bundle": "{last stable version}" } }
然后在您的项目根目录下运行命令composer update
在您的 AppKernel.php
文件中添加此行
$bundles = array( //Other bundles new Gos\Bundle\FixtureBundle\GosFixtureBundle(), );
配置
定义我们必须要查找的您的 yaml 数据文件,您可以添加多个路径。
gos_fixture: directories: - 'src/*/*/DataFixtures/YML/'
您还可以查看
运行测试
需要 PHPUnit 3.5 或更高版本以及 Mock_Object 包。要设置和运行测试,请按照以下步骤操作
- 转到 fixture 的根目录
- 运行:composer install --dev
- 运行:phpunit
许可证
该项目受 MIT 许可证保护,有关更多信息,请参阅项目中的 LICENSE 文件。