phpunit-spiderling:Capybara 启发的集成测试 - selenium、phantomjs 等

时间:2021-05-30 11:09:49
【文件属性】:
文件名称:phpunit-spiderling:Capybara 启发的集成测试 - selenium、phantomjs 等
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-30 11:09:49
PHP PHPUnit小蜘蛛 深受水水启发。 充分利用包。 它使您能够使用强大的 DSL 快速编写集成测试,并在具有不同功能和性能组合的不同驱动程序之间进行选择 - 例如 phanomjs 或带有 curl 的原始 php。 示例测试: use Openbuildings \ PHPUnitSpiderling \ TestCase ; class SpiderlingTest extends TestCase { /** * @driver phantomjs */ public function test_sample () { $ this -> visit ( 'http://example.com/index.html' ) -> assertHasCss ( '#navlink-1' , array ( 'text' => 'Subpage 1'
【文件预览】:
phpunit-spiderling-master
----.gitignore(167B)
----src()
--------TestCase.php(5KB)
--------Assert.php(4KB)
--------SaveOnFailure.php(6KB)
--------Constraint()
----.travis.yml(716B)
----assets()
--------error-page.php(2KB)
----LICENSE(1KB)
----composer.json(839B)
----composer.lock(68KB)
----README.md(6KB)
----.php_cs.dist(2KB)
----tests()
--------expected.html(2KB)
--------kohana_constants.php(102B)
--------SaveOnFailureTest.php(5KB)
--------Constraint()
--------index.html(3KB)
--------SpiderlingTest.php(2KB)
--------AssertTest.php(1KB)
----.scrutinizer.yml(138B)
----phpunit.xml.dist(571B)
----.editorconfig(353B)

网友评论