定制 freshp/phpunit-webtestcase-fixture-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

freshp/phpunit-webtestcase-fixture-helper

Composer 安装命令:

composer require freshp/phpunit-webtestcase-fixture-helper

包简介

Helps to manage fixtures for test-environment in webtestcases.

README 文档

README

Software License Latest Stable Version Total Downloads

phpunit webtestcase doctrine fixture helper

This package can easily setup database for tests for dev or test-environments. Uses doctrine FixtureInterface for edge to edge tests.

tasks:

  • drop the current database
  • create a new blank database for dev or test environment
  • migrate by forcing the doctrine schema update
  • load all fixtures by given FixtureInterface

usage

  1. create a FixtureInterface like the example class example/Fixtures/DataFixtures/ORM/LoadFixtures.php
  2. write a test-class like example/Unit/Route/ExampleRouteTest.php a extend from the given ApiTestCase
  3. use static access to create the client for example in the setUpBeforeClass or the setUp method
    self::createClientWithDatabaseAndFixtures(new LoadFixtures());
    

统计信息

  • 总下载量: 55
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固