+ count(self::$linkFilter->filter(
+ LinkFilter::$FILTER_TEXT,
+ '"free software " stallman "read this" -beard @website stuff'
+ ))
+ );
+ }
+
+ /**
+ * Full-text search - make sure that exact search won't work across fields.
+ */
+ public function testSearchExactTermMultiFieldsKo()
+ {
+ $this->assertEquals(
+ 0,
+ count(self::$linkFilter->filter(
+ LinkFilter::$FILTER_TEXT,
+ '"designer naming"'
+ ))
+ );
+
+ $this->assertEquals(
+ 0,
+ count(self::$linkFilter->filter(
+ LinkFilter::$FILTER_TEXT,
+ '"designernaming"'
+ ))