Completed
Branch 3.0.0 (1f43e9)
by Serhii
03:00
created
tests/RobotTest.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
             'Tiny Tiny RSS/1.10 (http://tt-rss.org/)'
23 23
         );
24 24
 
25
-        testUaList($this,'Robot','Name',$ualist,'Tiny RSS');
26
-        testUaList($this,'Robot','Type',$ualist,'RSS Reader');
25
+        testUaList($this, 'Robot', 'Name', $ualist, 'Tiny RSS');
26
+        testUaList($this, 'Robot', 'Type', $ualist, 'RSS Reader');
27 27
     }
28 28
     /**
29 29
      * Test Google Bots
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
             'Mediapartners-Google'
44 44
         );
45 45
 
46
-        testUaList($this,'Robot','Owner',$ualist,'Google Inc.');
47
-        testUaList($this,'Robot','Type',$ualist,'Search Engine');
48
-        testUaListBooleanTrue($this,'Robot','SearchEngine',$ualist);
46
+        testUaList($this, 'Robot', 'Owner', $ualist, 'Google Inc.');
47
+        testUaList($this, 'Robot', 'Type', $ualist, 'Search Engine');
48
+        testUaListBooleanTrue($this, 'Robot', 'SearchEngine', $ualist);
49 49
     }
50 50
     /**
51 51
      * Test Yandex Bots
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
             'Mozilla/5.0 (compatible; YandexSpravBot/1.0; +http://yandex.com/bots)'
85 85
         );
86 86
 
87
-        testUaList($this,'Robot','Owner',$ualist,'Yandex LLC.');
88
-        testUaList($this,'Robot','Type',$ualist,'Search Engine');
89
-        testUaListBooleanTrue($this,'Robot','SearchEngine',$ualist);
87
+        testUaList($this, 'Robot', 'Owner', $ualist, 'Yandex LLC.');
88
+        testUaList($this, 'Robot', 'Type', $ualist, 'Search Engine');
89
+        testUaListBooleanTrue($this, 'Robot', 'SearchEngine', $ualist);
90 90
     }
91 91
     /**
92 92
      * Test Bing Bots
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
             'Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 530) like Gecko BingPreview/1.0b'
107 107
         );
108 108
 
109
-        testUaList($this,'Robot','Name',$ualist,'Bing');
110
-        testUaList($this,'Robot','Type',$ualist,'Search Engine');
111
-        testUaListBooleanTrue($this,'Robot','SearchEngine',$ualist);
109
+        testUaList($this, 'Robot', 'Name', $ualist, 'Bing');
110
+        testUaList($this, 'Robot', 'Type', $ualist, 'Search Engine');
111
+        testUaListBooleanTrue($this, 'Robot', 'SearchEngine', $ualist);
112 112
     }
113 113
     /**
114 114
      * Test WASALive
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
             'Mozilla/5.0 (compatible; WASALive-Bot ; http://blog.wasalive.com/wasalive-bots/) '
120 120
         );
121 121
 
122
-        testUaList($this,'Robot','Name',$ualist,'WASALive Bot');
123
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
122
+        testUaList($this, 'Robot', 'Name', $ualist, 'WASALive Bot');
123
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
124 124
     }
125 125
     /**
126 126
      * Test .Net robot
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
             'MS Web Services Client Protocol 1.0.3705.0'
132 132
         );
133 133
 
134
-        testUaList($this,'Robot','Name',$ualist,'.NET Framework CLR');
135
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
134
+        testUaList($this, 'Robot', 'Name', $ualist, '.NET Framework CLR');
135
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
136 136
     }
137 137
     /**
138 138
      * Test 007ac9 robot
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
             'Mozilla/5.0 (compatible; 007ac9 Crawler; http://crawler.007ac9.net/) '
144 144
         );
145 145
 
146
-        testUaList($this,'Robot','Name',$ualist,'007ac9 Crawler');
147
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
146
+        testUaList($this, 'Robot', 'Name', $ualist, '007ac9 Crawler');
147
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
148 148
     }
149 149
     /**
150 150
      * Test 80legs robot
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
             'Mozilla/5.0 (compatible; 008/0.83; http://www.80legs.com/webcrawler.html) Gecko/2008032620 '
156 156
         );
157 157
 
158
-        testUaList($this,'Robot','Name',$ualist,'80legs Crawler');
159
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
158
+        testUaList($this, 'Robot', 'Name', $ualist, '80legs Crawler');
159
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
160 160
     }
161 161
     /**
162 162
      * Test 80123metaspider robot
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
             '123metaspider-Bot (Version: 1.04, powered by www.123metaspider.com) '
168 168
         );
169 169
 
170
-        testUaList($this,'Robot','Name',$ualist,'123metaspider Crawler');
171
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
170
+        testUaList($this, 'Robot', 'Name', $ualist, '123metaspider Crawler');
171
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
172 172
     }
173 173
     /**
174 174
      * Test 1470 robot
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             '1470.net crawler '
180 180
         );
181 181
 
182
-        testUaList($this,'Robot','Name',$ualist,'1470 Crawler');
183
-        testUaList($this,'Robot','Type',$ualist,'Bot/Crawler');
182
+        testUaList($this, 'Robot', 'Name', $ualist, '1470 Crawler');
183
+        testUaList($this, 'Robot', 'Type', $ualist, 'Bot/Crawler');
184 184
     }
185 185
 }
Please login to merge, or discard this patch.