+ public function test_terms_containing_guillemets_handled()
+ {
+ $page = $this->entities->newPage(['html' => '<p>«Hello there» and « there »</p>']);
+
+ $scoreByTerm = $page->searchTerms()->pluck('score', 'term');
+ $expected = ['Hello', 'there', 'and'];
+ foreach ($expected as $term) {
+ $this->assertNotNull($scoreByTerm->get($term), "Failed asserting that \"$term\" is indexed");
+ }
+
+ $nonExpected = ['«', '»'];
+ foreach ($nonExpected as $term) {
+ $this->assertNull($scoreByTerm->get($term), "Failed asserting that \"$term\" is not indexed");
+ }
+ }
+