承接 danwe/dataproviders-differenttypesvalues 相关项目开发

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

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

danwe/dataproviders-differenttypesvalues

最新稳定版本:v1.0.0

Composer 安装命令:

composer require danwe/dataproviders-differenttypesvalues

包简介

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

README 文档

README

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

Latest Stable Version Build Status Coverage Status Dependency Status Download count

Usage

Consider the following example:

<?php
class PersonTest extends \PHPUnit_Framework_TestCase {
	/**
	 * @expectedException InvalidArgumentException
	 *
	 * @dataProvider Danwe\DataProviders\DifferentTypesValues::oneOfEachTypeProvider
	 */
	public function testConstructionWithNonStringValues( $personName ) {
		new Person( $personName );
	}

	// ...
	// further "Person" tests
	// ...
}

Due to the test's WithNonStringValues suffix, DifferentTypesValues::oneOfEachTypeProvider will only provide non-string values.

TODOs

  • Excluding more than one type with a WithNon<TYPE1>And<TYPE2>Values test name suffix.
  • With<TYPE1>And<TYPE2>Values test name suffix to only provide values of the mentioned types.
  • DifferentTypesValues::valuesProvider to provide multiple different values for each type.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固