File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 "autoload" : {
1414 "psr-4" : { "Clue\\ React\\ Term\\ " : " src/" }
1515 },
16+ "autoload-dev" : {
17+ "psr-4" : { "Clue\\ Tests\\ React\\ Term\\ " : " tests/" }
18+ },
1619 "require" : {
1720 "php" : " >=5.3" ,
1821 "react/stream" : " ^1.0 || ^0.7"
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22
3- <phpunit bootstrap =" tests/bootstrap.php"
4- colors =" true"
5- >
3+ <phpunit bootstrap =" vendor/autoload.php" colors =" true" >
64 <testsuites >
7- <testsuite >
5+ <testsuite name = " Term Test Suite " >
86 <directory >./tests/</directory >
97 </testsuite >
108 </testsuites >
Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Clue \Tests \React \Term ;
4+
35use Clue \React \Term \ControlCodeParser ;
46use React \Stream \ThroughStream ;
57
Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Clue \Tests \React \Term ;
4+
35use Clue \React \Term \ControlCodeParser ;
46use React \EventLoop \Factory ;
57use React \Stream \ReadableResourceStream ;
Original file line number Diff line number Diff line change 11<?php
22
3- require_once __DIR__ . ' /../vendor/autoload.php ' ;
3+ namespace Clue \ Tests \ React \ Term ;
44
5- error_reporting (-1 );
6-
7- class TestCase extends PHPUnit \Framework \TestCase
5+ class TestCase extends \PHPUnit \Framework \TestCase
86{
97 protected function expectCallableNever ()
108 {
@@ -53,14 +51,6 @@ protected function expectCallableOnceParameter($type)
5351 */
5452 protected function createCallableMock ()
5553 {
56- return $ this ->getMockBuilder ('CallableStub ' )->getMock ();
54+ return $ this ->getMockBuilder ('stdClass ' )-> setMethods ( array ( ' __invoke ' ) )->getMock ();
5755 }
5856}
59-
60- class CallableStub
61- {
62- public function __invoke ()
63- {
64- }
65- }
66-
You can’t perform that action at this time.
0 commit comments