Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
php-webdriver:使用 click() 提交表单后等待浏览器响应
除了使用sleep 在我的测试中 我想知道是否有人知道更好的策略 可以在继续我的断言之前显式等待表单提交 POST 完成 这是我的测试的一个非常浓缩的版本 结合使用 phpunitphp webdriver https github com
php
selenium
Phpunit
seleniumwebdriver
如何对 Slim 框架应用程序进行单元测试
我一直在尝试对修改其他人代码的示例进行单元测试 每次我到达测试运行时都没有错误的程度 当我期望它们通过时 我只是遇到相同的失败 网上没有大量文档 我真的不知道还能去哪里 任何人都可以看到我的代码哪里出错了 bootstrap php php
php
unittesting
Phpunit
Slim
使用 Composer 安装 PHPUNIT
我有一个关于 Symfony 2 的项目 我想在 Windows 7 上使用 PHPUNIT On githut phpunit is Composer Simply add a dependency on phpunit phpunit
php
Windows
Symfony
Phpunit
wamp
PhpStorm Docker PHPUnit 数据库
I setup https blog jetbrains com phpstorm 2016 11 docker remote interpreters PhpStorm PHP PHPUnit 与 Docker 我在 PhpStorm 数
mysql
Laravel
Docker
Phpunit
phpStorm
Selenium RC:如何检查元素是否具有给定属性?
我有一些带有onclick属性和一些没有属性 我想检查指定的元素是否具有onclick属性 我怎样才能做到这一点 getAttribute 当有属性值时返回该属性值 如果没有 它会抛出 RuntimeException 并停止测试 即使我将
php
selenium
attributes
Phpunit
seleniumrc
PHPUnit:如何测试调用不同文件中声明的另一个函数的方法
我正在尝试使用 PHPUnit 测试一个方法 它调用另一个函数 独立功能 无类 它驻留在不同的文件中 它做了一些很好的计算并返回一个对象 这是我实际的主要代码 class CreateRecords public function crea
php
Phpunit
Symfony 功能测试失败,但相同的请求在浏览器中有效
我跟着Symfony 文档 http symfony com doc current book testing html functional tests关于功能测试 以便编写我的第一个测试 但我有一些问题 我通过浏览器得到的响应效果很好
php
Symfony
Phpunit
functionaltesting
在 php 8.1.0 上使用 phpunit 9.4 捕获警告、通知和弃用
Quoting https phpunit readthedocs io en 9 5 writing tests for phpunit html testing php errors warnings and notices https
Phpunit
在 phpunit 中 __construct 与 setup 之间有什么区别?
我很想知道在测试类 construct 中创建对象是一种很好的做法 或者我们应该始终使用 setup teardown 方法 或 setUpBeforeClass tearDown AfterClass 方法 我知道每个测试都会调用 set
Phpunit
如何使 PHPunit 在警告时返回非零退出状态
当在一些失败并出现警告的测试中调用 PHPunit 时 我得到 phpunit c phpunit xml group app Warning MongoCollection insert expects parameter 1 to be
php
Phpunit
如何在 PHPUnit 中执行所有测试?
我正在尝试从我的测试套件运行所有测试 但是当我运行命令时 PHPUnit 找不到测试phpunit 我在 phpunit xml 中配置测试套件 phpunit xml
php
Testing
selenium
Phpunit
seleniumrc
PHPUnit:我如何模拟这个文件系统?
考虑以下场景 这不是生产代码 class MyClass public function myMethod create a directory path sys get temp dir md5 rand if mkdir path th
php
mocking
Phpunit
vfsstream
phpunit 避免模拟的构造函数参数
有什么方法可以避免 phpunit 调用模拟对象的构造函数 否则我需要一个模拟对象作为构造函数参数 另一个模拟对象作为构造函数参数 等等 api 似乎是这样的 getMock className methods array array ar
php
unittesting
Phpunit
如何使用 PEAR 安装程序完全删除 PHPUnit?
几天前 我使用 PEAR 安装程序安装了 PHPUnit 我还安装了 Selenium RC 用于 PHP 测试 现在我想卸载它 同时删除所有相关的文件夹和文件 我运行了以下命令 pear uninstall phpunit PHPUnit
php
Windows
selenium
Phpunit
pear
如何在Xampp中配置PhpUnit?
我已经在 Xampp 中成功安装了 PhpUnit 现在我需要配置它 我需要从文档中执行以下步骤 2 Prepare the phpunit script 1 Rename the phpunit php script to phpunit
php
installation
Phpunit
XAMPP
如何运行特定的 phpunit xml 测试套件?
我如何选择要执行的特定测试套件 phpunit 配置 config xml 配置 xml
xml
Phpunit
使用 phpunit 9.5 捕获警告、通知和弃用
Quoting https phpunit readthedocs io en 9 5 writing tests for phpunit html testing php errors warnings and notices https
Phpunit
如何在 PHPUnit 中重复测试?
我知道 repeat 选项 但我宁愿在测试中和每个测试中定义重复 在我的单元测试中 有些测试我不想重复 有些测试我比其他测试更想重复 我刚在想 protected function tearDown if test has not been
php
Phpunit
Symfony2功能测试:直接传递表单数据
我正在使用 phpunit 来运行功能测试 但我在使用某些表单时遇到问题 问题是 phpunit 不支持 JS 而我有一个带有动态填充选择框的表单 需要 jQuery 所以我需要直接传递表单数据 书 给出了以下例子 Directly sub
Symfony
Phpunit
PHPstorm PHPunit 代码共同覆盖
当我在 PHPstorm 中运行测试套件时 所有代码覆盖率都为 0 我知道这不是真的 当我从命令行运行 PHPunit 时 记录的 HTML 输出文档显示我实际上确实有覆盖率并列出所有详细信息 在 PHPstorm 中 我将 PHP 解释器
php
Phpunit
codecoverage
phpStorm
«
1
2
3
4
5
6
...14
»