Lines Matching refs:assertSame
33 $this->assertSame(0, $this->object->count(''));
34 $this->assertSame(0, $this->object->count(' '));
35 $this->assertSame(0, $this->object->count("\n"));
43 $this->assertSame(1, $this->object->count('Hello'));
44 $this->assertSame(1, $this->object->count('Hello.'));
45 $this->assertSame(1, $this->object->count('Hello...'));
46 $this->assertSame(1, $this->object->count('Hello!'));
47 $this->assertSame(1, $this->object->count('Hello?'));
48 $this->assertSame(1, $this->object->count('Hello?!'));
56 $this->assertSame(1, $this->object->count('Hello world'));
57 $this->assertSame(1, $this->object->count('Hello world.'));
58 $this->assertSame(1, $this->object->count('Hello world...'));
59 $this->assertSame(1, $this->object->count('Hello world!'));
60 $this->assertSame(1, $this->object->count('Hello world?'));
61 $this->assertSame(1, $this->object->count('Hello world?!'));
69 $this->assertSame(2, $this->object->count('Hello world. Are you there'));
70 $this->assertSame(2, $this->object->count('Hello world. Are you there?'));
71 $this->assertSame(1, $this->object->count('Hello world, Are you there?'));
72 $this->assertSame(1, $this->object->count('Hello world: Are you there?'));
73 $this->assertSame(1, $this->object->count('Hello world... Are you there?'));
81 $this->assertSame(2, $this->object->count("Hello world...\rAre you there?"));
82 $this->assertSame(2, $this->object->count("Hello world...\nAre you there?"));
83 $this->assertSame(2, $this->object->count("Hello world...\r\nAre you there?"));
84 $this->assertSame(2, $this->object->count("Hello world...\r\n\rAre you there?"));
85 $this->assertSame(2, $this->object->count("Hello world...\n\r\nAre you there?"));
86 $this->assertSame(2, $this->object->count("Hello world...\n\nAre you there?"));
87 $this->assertSame(2, $this->object->count("Hello world...\r\rAre you there?"));
95 $this->assertSame(1, $this->object->count("Hello mr. Smith."));
96 $this->assertSame(1, $this->object->count("Hello, OMG Kittens!"));
97 $this->assertSame(1, $this->object->count("Hello, abbrev. Kittens!"));
98 $this->assertSame(1, $this->object->count("Hello, O.M.G. Kittens!"));
99 $this->assertSame(1, $this->object->count("Last week, former director of the A.B.C. John B. Smith was fired."));
100 $this->assertSame(1, $this->object->count("Mr. Smith was not available for comment.."));
108 $this->assertSame(2, $this->object->count("Hello there. Brave new world."));
109 $this->assertSame(1, $this->object->count("Hello there... Brave new world."));
110 $this->assertSame(2, $this->object->count("Hello there?... Brave new world."));
111 $this->assertSame(2, $this->object->count("Hello there!... Brave new world."));
112 $this->assertSame(2, $this->object->count("Hello there!!! Brave new world."));
113 $this->assertSame(2, $this->object->count("Hello there??? Brave new world."));
121 $this->assertSame(2, $this->object->count("You? Smith?"));
122 $this->assertSame(2, $this->object->count("You there? Smith?"));
123 $this->assertSame(1, $this->object->count("You mr. Smith?"));
124 $this->assertSame(2, $this->object->count("Are you there. Mister Smith?"));
125 $this->assertSame(2, $this->object->count("Are you there. Smith, sir?"));
126 $this->assertSame(2, $this->object->count("Are you there. Mr. Smith?"));
134 $this->assertSame([], $this->object->split(''));
135 $this->assertSame([], $this->object->split(' '));
136 $this->assertSame([], $this->object->split("\n"));
144 $this->assertSame(['Fix "these" quotes'], $this->object->split('Fix "these" quotes'));
145 $this->assertSame(['Fix "these" quotes'], $this->object->split("Fix \xC2\xABthese\xC2\xAB quotes"));
153 $this->assertSame(['Hello'], $this->object->split('Hello'));
154 $this->assertSame(['Hello.'], $this->object->split('Hello.'));
155 $this->assertSame(['Hello...'], $this->object->split('Hello...'));
156 $this->assertSame(['Hello!'], $this->object->split('Hello!'));
157 $this->assertSame(['Hello?'], $this->object->split('Hello?'));
158 $this->assertSame(['Hello?!'], $this->object->split('Hello?!'));
166 $this->assertSame(['Hello world.', ' Are you there'], $this->object->split('Hello world. Are you there'));
167 $this->assertSame(['Hello world.', ' Are you there?'], $this->object->split('Hello world. Are you there?'));
168 $this->assertSame(['Hello world.', 'Are you there'], $this->object->split('Hello world. Are you there', Sentence::SPLIT_TRIM));
169 $this->assertSame(['Hello world.', 'Are you there?'], $this->object->split('Hello world. Are you there?', Sentence::SPLIT_TRIM));
170 $this->assertSame(['Hello world, Are you there?'], $this->object->split('Hello world, Are you there?'));
171 $this->assertSame(['Hello world: Are you there?'], $this->object->split('Hello world: Are you there?'));
172 $this->assertSame(['Hello world... Are you there?'], $this->object->split('Hello world... Are you there?'));
180 $this->assertSame(["Hello world...\r", "Are you there?"], $this->object->split("Hello world...\rAre you there?"));
181 $this->assertSame(["Hello world...\n", " Are you there?"], $this->object->split("Hello world...\n Are you there?"));
182 $this->assertSame(["Hello world...\n", "Are you there?"], $this->object->split("Hello world...\nAre you there?"));
183 $this->assertSame(["Hello world...\r\n", "Are you there?"], $this->object->split("Hello world...\r\nAre you there?"));
184 $this->assertSame(["Hello world...\r\n\r", "Are you there?"], $this->object->split("Hello world...\r\n\rAre you there?"));
185 $this->assertSame(["Hello world...\n\r\n", "Are you there?"], $this->object->split("Hello world...\n\r\nAre you there?"));
186 $this->assertSame(["Hello world...\n\n", "Are you there?"], $this->object->split("Hello world...\n\nAre you there?"));
187 $this->assertSame(["Hello world...\r\r", "Are you there?"], $this->object->split("Hello world...\r\rAre you there?"));
196 $this->assertSame(['Hello mr. Smith.'], $this->object->split("Hello mr. Smith."));
197 $this->assertSame(['Hello, OMG Kittens!'], $this->object->split("Hello, OMG Kittens!"));
198 $this->assertSame(['Hello, abbrev. Kittens!'], $this->object->split("Hello, abbrev. Kittens!"));
199 $this->assertSame(['Hello, O.M.G. Kittens!'], $this->object->split("Hello, O.M.G. Kittens!"));
200 $this->assertSame(['Last week, former director of the A.B.C. John B. Smith was fired.'], $this->object->split("Last week, former director of the A.B.C. John B. Smith was fired."));
201 $this->assertSame(['Mr. Smith was not available for comment..'], $this->object->split("Mr. Smith was not available for comment.."));
202 $this->assertSame(['Hello mr. Smith.', ' Are you there?'], $this->object->split("Hello mr. Smith. Are you there?"));
210 $this->assertSame(["You?", " Smith?"], $this->object->split("You? Smith?"));
211 $this->assertSame(["You there?", " Smith?"], $this->object->split("You there? Smith?"));
212 $this->assertSame(["You mr. Smith?"], $this->object->split("You mr. Smith?"));
213 $this->assertSame(["Are you there.", " Mister Smith?"], $this->object->split("Are you there. Mister Smith?"));
214 $this->assertSame(["Are you there.", " Smith, sir?"], $this->object->split("Are you there. Smith, sir?"));
215 $this->assertSame(["Are you there.", " Mr. Smith?"], $this->object->split("Are you there. Mr. Smith?"));
223 $this->assertSame(["You there (not here!).", " Mister Smith"], $this->object->split("You there (not here!). Mister Smith"));
224 $this->assertSame(["You (not him!) here.", " Mister Smith"], $this->object->split("You (not him!) here. Mister Smith"));
225 $this->assertSame(["(What!) you here.", " Mister Smith"], $this->object->split("(What!) you here. Mister Smith"));
226 $this->assertSame(["You there (not here).", " Mister Smith"], $this->object->split("You there (not here). Mister Smith"));
227 $this->assertSame(["You (not him) here.", " Mister Smith"], $this->object->split("You (not him) here. Mister Smith"));
228 $this->assertSame(["(What) you here.", " Mister Smith"], $this->object->split("(What) you here. Mister Smith"));
236 $this->assertSame(1, $this->object->count("The price is £25.50, including postage and packing."));
237 $this->assertSame(1, $this->object->count("The price is 25.50, including postage and packing."));
238 $this->assertSame(1, $this->object->count("I went true to size at 10.5 cms."));
239 $this->assertSame(2, $this->object->count("The prices are £25.50 or £27.50, including postage and packing. I went true to size at 10.5 cms."));
255 $this->assertSame($expected, $this->object->split($text));
256 $this->assertSame(count($expected), $this->object->count($text));