承接 elbformat/symfony-behat-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

elbformat/symfony-behat-bundle

Composer 安装命令:

composer require elbformat/symfony-behat-bundle

包简介

Predefined, extensible behat contexts for symfony applications.

README 文档

README

This bundle provides reusable behat contexts for symfony applications. All steps are written in present tense, as suggested on https://automationpanda.com/2021/05/11/should-gherkin-steps-use-past-present-or-future-tense/

Features

Installation

Add to your composer requirements as dev dependency.

$ composer require --dev elbformat/symfony-behat-bundle

Activate bundle in your config/bundles.php

Elbformat\SymfonyBehatBundle\ElbformatSymfonyBehatBundle::class => ['test' => true],

Use contexts in your behat.yml as you like

default:
  extensions:
    FriendsOfBehat\SymfonyExtension:
      bootstrap: tests/bootstrap.php
      kernel:
        path: src/Kernel.php
        class: App\Kernel
        environment: behat
        debug: false
  suites:
    default:
      contexts:
        - Elbformat\SymfonyBehatBundle\Context\CommandContext
        - Elbformat\SymfonyBehatBundle\Context\DateContext
        - Elbformat\SymfonyBehatBundle\Context\FormContext
        - Elbformat\SymfonyBehatBundle\Context\HtmlContext
        - Elbformat\SymfonyBehatBundle\Context\HttpContext
        - Elbformat\SymfonyBehatBundle\Context\JsonContext
        - Elbformat\SymfonyBehatBundle\Context\LoggingContext
        - Elbformat\SymfonyBehatBundle\Context\MailerContext

Mailer

To make the Test-Mailer work, you need to set the mailer dsn in config/packages/mailer.yaml

when@test:
    framework:
        mailer:
            dsn: 'test://test'

API

To not send requests to a real api, you should configure the MockClient to be used in config/packages/framework.yaml

when@test:
    framework:
        http_client:
            mock_response_factory: Elbformat\SymfonyBehatBundle\HttpClient\MockClientCallback

Examples

Examples can be found in dock/examples.md.

Updating

When updating from a previous version, see the changelog for changes.

What's next?

The next release should likely contain more tests/stability improvements.

Development

If you want to develop on the bundle you will find useful information in doc/development.md

统计信息

  • 总下载量: 12.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固