File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1313 "autoload" : {
1414 "psr-4" : { "Clue\\ React\\ Multicast\\ " : " src/" }
1515 },
16+ "autoload-dev" : {
17+ "psr-4" : { "Clue\\ Tests\\ React\\ Multicast\\ " : " tests/" }
18+ },
1619 "require" : {
1720 "php" : " >=5.3" ,
1821 "react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
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- convertErrorsToExceptions =" true"
6- convertNoticesToExceptions =" true"
7- convertWarningsToExceptions =" true"
8- >
3+ <phpunit bootstrap =" vendor/autoload.php" colors =" true" >
94 <testsuites >
105 <testsuite name =" Multicast React Test Suite" >
116 <directory >./tests/</directory >
Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Clue \Tests \React \Multicast ;
4+
35use Clue \React \Multicast \Factory ;
46
57class FunctionalTest extends TestCase
@@ -14,7 +16,7 @@ class FunctionalTest extends TestCase
1416 */
1517 public function setUpMocks ()
1618 {
17- $ this ->loop = React \EventLoop \Factory::create ();
19+ $ this ->loop = \ React \EventLoop \Factory::create ();
1820 $ this ->factory = new Factory ($ this ->loop );
1921 }
2022
@@ -34,7 +36,7 @@ public function testMultipleReceivers()
3436 {
3537 try {
3638 $ receiver1 = $ this ->factory ->createReceiver ($ this ->address );
37- } catch (BadMethodCallException $ e ) {
39+ } catch (\ BadMethodCallException $ e ) {
3840 $ this ->markTestSkipped ('No multicast support ' );
3941 }
4042
Original file line number Diff line number Diff line change 11<?php
22
3- require __DIR__ . ' /../vendor/autoload.php ' ;
3+ namespace Clue \ Tests \ React \ Multicast ;
44
5- error_reporting (-1 );
6-
7- class TestCase extends PHPUnit \Framework \TestCase
5+ class TestCase extends \PHPUnit \Framework \TestCase
86{
97 protected function expectCallableOnce ()
108 {
You can’t perform that action at this time.
0 commit comments