没有合适的资源?快使用搜索试试~ 我知道了~
test-utils:Solido Suite的测试实用程序
共51个文件
php:43个
yml:3个
jpg:1个
需积分: 12 0 下载量 52 浏览量
2021-04-09
00:42:29
上传
评论
收藏 101KB ZIP 举报
温馨提示
测试工具 该软件包包含一些Solido Suite软件包共有的测试实用程序。 功能测试 JsonResponseTrait 提供断言以检查返回的json响应的内容和深层属性。 该响应必须由静态的getResponse方法提供,并且必须是Symfony\Component\HttpFoundation\Response的实例。 属性路径 使用此特征的断言允许将深层属性检查到返回的JSON中,并将属性路径传递给断言方法。 点( . )用于访问对象属性,而方括号( [] )用于访问数组索引。 示例: user.emails[1]应该返回user对象的emails属性的第二个元素。 特殊的属性路径. 可用于指示响应中包含的整个json对象或数组。 断言 assertJsonResponse(string $message = '') 声明响应包含JSON并具有包含application/
资源推荐
资源详情
资源评论
收起资源包目录
test-utils-master.zip (51个子文件)
test-utils-master
composer.json 2KB
.github
workflows
cscheck.yml 537B
phpstan.yml 528B
tests.yml 595B
tests
Prophecy
Argument
Token
StringMatchesTokenTest.php 1KB
Symfony
WebFunctionalTestTraitTest.php 1KB
FunctionalTestTraitTest.php 6KB
ResponseStatusTraitTest.php 8KB
Constraint
JsonResponsePropertyContainsStringTest.php 5KB
JsonResponsePropertyCountTest.php 4KB
JsonResponseTest.php 2KB
JsonResponsePropertyIsTypeTest.php 4KB
JsonResponsePropertyEqualsTest.php 4KB
JsonResponsePropertyContainsTest.php 5KB
ResponseHasHeadersTest.php 3KB
ResponseStatusCodeTest.php 2KB
JsonResponsePropertiesExistTest.php 3KB
SecurityPolicyCheckedTest.php 2KB
ResponseIsRedirectionTest.php 1KB
ResponseIsSuccessfulTest.php 1KB
fixtures
TestKernel.php 1KB
photo.jpg 54KB
src
Elastica
DocumentManagerTrait.php 1KB
FakeMetadataFactory.php 2KB
Prophecy
Argument
Token
StringMatchesToken.php 1KB
Doctrine
Mongo
DocumentManagerTrait.php 2KB
FakeMetadataFactory.php 336B
ORM
MockPlatform.php 2KB
FakeMetadataFactory.php 759B
EntityManagerTrait.php 5KB
TestRepositoryFactory.php 2KB
AbstractFakeMetadataFactory.php 2KB
Symfony
FunctionalTestTrait.php 10KB
ResponseStatusTrait.php 3KB
JsonResponseTrait.php 5KB
Constraint
JsonResponsePropertyEquals.php 2KB
ResponseIsRedirection.php 909B
JsonResponsePropertyContainsString.php 2KB
ResponseStatusCode.php 2KB
ResponseIsSuccessful.php 906B
JsonResponse.php 2KB
ResponseHasHeaders.php 2KB
AbstractJsonResponseContent.php 6KB
JsonResponsePropertyCount.php 1KB
SecurityPolicyChecked.php 2KB
JsonResponsePropertyContains.php 2KB
JsonResponsePropertyIsType.php 1KB
JsonResponsePropertiesExist.php 2KB
.gitignore 45B
phpunit.xml.dist 692B
README.md 6KB
共 51 条
- 1
资源评论
真好玩主人
- 粉丝: 18
- 资源: 4632
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功