summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Models/Search.php2
-rw-r--r--tests/app/Models/SearchTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index a22e242af..85340ff13 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -11,7 +11,7 @@ require_once(LIB_PATH . '/lib_date.php');
class FreshRSS_Search {
// This contains the user input string
- private $raw_input;
+ private $raw_input = '';
// The following properties are extracted from the raw input
private $intitle;
private $min_date;
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index 20ea09433..9e3ca6765 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -10,7 +10,7 @@ class SearchTest extends \PHPUnit_Framework_TestCase {
*/
public function test__construct_whenInputIsEmpty_getsOnlyNullValues($input) {
$search = new FreshRSS_Search($input);
- $this->assertNull($search->getRawInput());
+ $this->assertEquals('', $search->getRawInput());
$this->assertNull($search->getIntitle());
$this->assertNull($search->getMinDate());
$this->assertNull($search->getMaxDate());