11<?php
22
3+ namespace Clue \Tests \React \Ami \Protocol ;
4+
35use Clue \React \Ami \Protocol \Parser ;
6+ use Clue \Tests \React \Ami \TestCase ;
47
58class ParserTest extends TestCase
69{
@@ -13,7 +16,7 @@ public function testParseResponse()
1316 $ this ->assertCount (1 , $ ret );
1417
1518 $ first = reset ($ ret );
16- /* @var $first Clue\React\Ami\Protocol\Response */
19+ /* @var $first \ Clue\React\Ami\Protocol\Response */
1720
1821 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
1922 $ this ->assertEquals ('Success ' , $ first ->getFieldValue ('Response ' ));
@@ -28,7 +31,7 @@ public function testParseResponseSpace()
2831 $ this ->assertCount (1 , $ ret );
2932
3033 $ first = reset ($ ret );
31- /* @var $first Clue\React\Ami\Protocol\Response */
34+ /* @var $first \ Clue\React\Ami\Protocol\Response */
3235
3336 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
3437 $ this ->assertEquals (' spaces ' , $ first ->getFieldValue ('Message ' ));
@@ -43,7 +46,7 @@ public function testParsingMultipleEvents()
4346 $ this ->assertCount (2 , $ ret );
4447
4548 $ first = reset ($ ret );
46- /* @var $first Clue\React\Ami\Protocol\Event */
49+ /* @var $first \ Clue\React\Ami\Protocol\Event */
4750
4851 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Event ' , $ first );
4952 $ this ->assertEquals ('TestA ' , $ first ->getName ());
@@ -58,7 +61,7 @@ public function testParseResponseMultipleValues()
5861 $ this ->assertCount (1 , $ ret );
5962
6063 $ first = reset ($ ret );
61- /* @var $first Clue\React\Ami\Protocol\Response */
64+ /* @var $first \ Clue\React\Ami\Protocol\Response */
6265
6366 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
6467 $ this ->assertEquals ('one ' , $ first ->getFieldValue ('Message ' ));
@@ -74,7 +77,7 @@ public function testParsingCommandResponse()
7477 $ this ->assertCount (1 , $ ret );
7578
7679 $ first = reset ($ ret );
77- /* @var $first Clue\React\Ami\Protocol\Response */
80+ /* @var $first \ Clue\React\Ami\Protocol\Response */
7881
7982 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
8083 $ this ->assertEquals ('Follows ' , $ first ->getFieldValue ('Response ' ));
@@ -90,7 +93,7 @@ public function testParsingCommandResponseEmpty()
9093 $ this ->assertCount (1 , $ ret );
9194
9295 $ first = reset ($ ret );
93- /* @var $first Clue\React\Ami\Protocol\Response */
96+ /* @var $first \ Clue\React\Ami\Protocol\Response */
9497
9598 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
9699 $ this ->assertEquals ('Follows ' , $ first ->getFieldValue ('Response ' ));
@@ -106,7 +109,7 @@ public function testParsingResponseIsNotCommandResponse()
106109 $ this ->assertCount (1 , $ ret );
107110
108111 $ first = reset ($ ret );
109- /* @var $first Clue\React\Ami\Protocol\Response */
112+ /* @var $first \ Clue\React\Ami\Protocol\Response */
110113
111114 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
112115 $ this ->assertEquals ('Success ' , $ first ->getFieldValue ('Response ' ));
@@ -133,7 +136,7 @@ public function testParsingMissingSpaceWithValue()
133136 $ this ->assertCount (1 , $ ret );
134137
135138 $ first = reset ($ ret );
136- /* @var $first Clue\React\Ami\Protocol\Response */
139+ /* @var $first \ Clue\React\Ami\Protocol\Response */
137140
138141 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
139142 $ this ->assertEquals ('NoSpace ' , $ first ->getFieldValue ('Response ' ));
@@ -148,7 +151,7 @@ public function testParsingMissingSpaceEmptyValue()
148151 $ this ->assertCount (1 , $ ret );
149152
150153 $ first = reset ($ ret );
151- /* @var $first Clue\React\Ami\Protocol\Response */
154+ /* @var $first \ Clue\React\Ami\Protocol\Response */
152155
153156 $ this ->assertInstanceOf ('Clue\React\Ami\Protocol\Response ' , $ first );
154157 $ this ->assertEquals ('' , $ first ->getFieldValue ('Response ' ));
0 commit comments