Lines Matching refs:this
25 $this->object = new \Vanderlee\Sentence\Sentence();
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 …
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 t…
167 …$this->assertSame(['Hello world.', ' Are you there?'], $this->object->split('Hello world. Are you …
168 …$this->assertSame(['Hello world.', 'Are you there'], $this->object->split('Hello world. Are you th…
169 …$this->assertSame(['Hello world.', 'Are you there?'], $this->object->split('Hello world. Are you t…
170 …$this->assertSame(['Hello world, Are you there?'], $this->object->split('Hello world, Are you ther…
171 …$this->assertSame(['Hello world: Are you there?'], $this->object->split('Hello world: Are you ther…
172 …$this->assertSame(['Hello world... Are you there?'], $this->object->split('Hello world... Are you …
180 …$this->assertSame(["Hello world...\r", "Are you there?"], $this->object->split("Hello world...\rAr…
181 …$this->assertSame(["Hello world...\n", " Are you there?"], $this->object->split("Hello world...\n …
182 …$this->assertSame(["Hello world...\n", "Are you there?"], $this->object->split("Hello world...\nAr…
183 …$this->assertSame(["Hello world...\r\n", "Are you there?"], $this->object->split("Hello world...\r…
184 …$this->assertSame(["Hello world...\r\n\r", "Are you there?"], $this->object->split("Hello world...…
185 …$this->assertSame(["Hello world...\n\r\n", "Are you there?"], $this->object->split("Hello world...…
186 …$this->assertSame(["Hello world...\n\n", "Are you there?"], $this->object->split("Hello world...\n…
187 …$this->assertSame(["Hello world...\r\r", "Are you there?"], $this->object->split("Hello world...\r…
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->ob…
201 …$this->assertSame(['Mr. Smith was not available for comment..'], $this->object->split("Mr. Smith w…
202 …$this->assertSame(['Hello mr. Smith.', ' Are you there?'], $this->object->split("Hello mr. Smith. …
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. Miste…
214 …$this->assertSame(["Are you there.", " Smith, sir?"], $this->object->split("Are you there. Smith, …
215 …$this->assertSame(["Are you there.", " Mr. Smith?"], $this->object->split("Are you there. Mr. Smit…
223 …$this->assertSame(["You there (not here!).", " Mister Smith"], $this->object->split("You there (no…
224 …$this->assertSame(["You (not him!) here.", " Mister Smith"], $this->object->split("You (not him!) …
225 …$this->assertSame(["(What!) you here.", " Mister Smith"], $this->object->split("(What!) you here. …
226 …$this->assertSame(["You there (not here).", " Mister Smith"], $this->object->split("You there (not…
227 …$this->assertSame(["You (not him) here.", " Mister Smith"], $this->object->split("You (not him) he…
228 …$this->assertSame(["(What) you here.", " Mister Smith"], $this->object->split("(What) you here. Mi…
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 …
255 $this->assertSame($expected, $this->object->split($text));
256 $this->assertSame(count($expected), $this->object->count($text));