aureja/test-framework-bundle
Composer 安装命令:
composer require aureja/test-framework-bundle
包简介
README 文档
README
This Bundle provides base classes for functional tests to assist in setting up test-databases.
Installation
Step 1. Install via Composer
composer require aureja/test-framework-bundle "dev-master"
Step 2. Add to AppKernel.php
class AppKernel extends Kernel { /** * {@inheritdoc} */ public function registerBundles() { $bundles = [ // ... new Aureja\Bundle\TestFrameworkBundle\AurejaTestFrameworkBundle(), // ... ]; } }
Step 3. Basic usage
<?php use Aureja\Bundle\TestFrameworkBundle\Test\WebTestCase; /** * @dbIsolationPerTest */ class AcmeTest extends WebTestCase { /** * {@inheritdoc} */ protected function setUp() { $this->initClient(); } // Tests }
or
<?php use Aureja\Bundle\TestFrameworkBundle\Test\WebTestCase; /** * @dbIsolation */ class AcmeTest extends WebTestCase { /** * {@inheritdoc} */ protected function setUp() { $this->initClient(); } // Tests }
统计信息
- 总下载量: 2.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-26