Permalink
Browse files

Closes #655. BC issue in 3.7 fixed by: Revert "Positional argument co…

…unt check introduced"

This reverts commit 6ac554e.

Conflicts:

	PHPUnit/TextUI/Command.php
  • Loading branch information...
1 parent 81ab540 commit cd92dd4ab9d8e231edac9b32e8f7003fcbf02077 @edorian edorian committed Sep 24, 2012
Showing with 0 additions and 26 deletions.
  1. +0 −8 PHPUnit/TextUI/Command.php
  2. +0 −18 Tests/TextUI/positional-arguments.phpt
@@ -514,14 +514,6 @@ protected function handleArguments(array $argv)
$this->handleCustomTestSuite();
if (!isset($this->arguments['test'])) {
- if (count($this->options[1]) > 2) {
- $this->showMessage(
- 'More than two positional arguments provided.',
- FALSE
- );
- $this->showHelp();
- exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
- }
if (isset($this->options[1][0])) {
$this->arguments['test'] = $this->options[1][0];
@@ -1,18 +0,0 @@
---TEST--
-phpunit FailureTest ../_files/FailureTest.php SomethingElse
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'FailureTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/FailureTest.php';
-$_SERVER['argv'][4] = 'SomethingElse';
-
-require_once dirname(dirname(dirname(__FILE__))) . '/PHPUnit/Autoload.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann.
-
-More than two positional arguments provided.
-
-Usage: %s

0 comments on commit cd92dd4

Please sign in to comment.