Files
faveo/vendor/phpunit/phpunit/tests/Regression/GitHub/765.phpt
2016-06-13 20:41:55 +05:30

27 lines
607 B
PHP

--TEST--
GH-765: Fatal error triggered in PHPUnit when exception is thrown in data provider of a test with a dependency
--FILE--
<?php
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = 'Issue765Test';
$_SERVER['argv'][3] = dirname(__FILE__) . '/765/Issue765Test.php';
require __DIR__ . '/../../bootstrap.php';
PHPUnit_TextUI_Command::main();
?>
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
.F
Time: %s, Memory: %s
There was 1 failure:
1) Warning
The data provider specified for Issue765Test::testDependent is invalid.
FAILURES!
Tests: 2, Assertions: 1, Failures: 1.