Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught Error: Call to private method Clue\React\Stdio\Readline::deleteCha #96

Closed
didaquis opened this issue Oct 6, 2019 · 3 comments

Comments

@didaquis
Copy link

didaquis commented Oct 6, 2019

I am getting this error while trying to run the tests.
Can anyone help me?

I have phpunit-watcher installed locally.

Fatal error: Uncaught Error: Call to private method Clue\React\Stdio\Readline::deleteChar() from context 'Spatie\PhpUnitWatcher\Terminal' in /Users/didac/repos/php-kata-boilerplate/vendor/spatie/phpunit-watcher/src/Terminal.php:37
Stack trace:
#0 /Users/didac/repos/php-kata-boilerplate/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(131): Spatie\PhpUnitWatcher\Terminal->Spatie\PhpUnitWatcher\{closure}('a\n')
#1 /Users/didac/repos/php-kata-boilerplate/vendor/clue/stdio-react/src/Stdio.php(50): Evenement\EventEmitter->emit('data', Array)
#2 /Users/didac/repos/php-kata-boilerplate/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): Clue\React\Stdio\Stdio->Clue\React\Stdio\{closure}('a\n')
#3 /Users/didac/repos/php-kata-boilerplate/vendor/clue/stdio-react/src/Readline.php(862): Evenement\EventEmitter->emit('data', Array)
#4 /Users/didac/repos/php-kata-boilerplate/vendor/clue/stdio-react/src/Readline.php(713): Clue\React\Stdio\Readline->processLine('\n')
#5 /Users/didac/repos/php-kata-boilerplat in /Users/didac/repos/php-kata-boilerplate/vendor/spatie/phpunit-watcher/src/Terminal.php on line 37
@JayBizzle
Copy link

Have you updated to the latest phpunit-watcher version?

Probably related to this - #94

@didaquis
Copy link
Author

didaquis commented Nov 12, 2019

Have you updated to the latest phpunit-watcher version?

Yes. Do you have another idea to fix my problem?

This is my composer file:

{
	"name": "app/php-kata-boilerplate",
	"description": "Boilerplate project for PHP testing",
	"type": "Project",
	"license": "MIT",
	"authors": [
	  	{
			"name": "Dídac García"
	  	}
	],
	"require": {
	  	"php": "^7.2"
	},
	"require-dev": {
	  	"mockery/mockery": "dev-master",
		"phpunit/phpunit": "7.5.17",
		"spatie/phpunit-watcher": "^1.21.1"
	},
	"autoload": {
		"psr-4": {
		  	"App\\": "src/"
		}
	},
	"autoload-dev": {
	  	"psr-4": {
			"Tests\\": "tests/"
	  	}
	},
	"minimum-stability": "dev"
  }

@spatie-bot
Copy link

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants