public function testbuild_generic_where_clause() { $prospect = new Prospect(); //test with empty string params $expected = "prospects.last_name like '%' or prospects.first_name like '%' or prospects.assistant like '%'"; $actual = $prospect->build_generic_where_clause(''); $this->assertSame($expected, $actual); //test with valid string params $expected = "prospects.last_name like '%' or prospects.first_name like '%' or prospects.assistant like '%'"; $actual = $prospect->build_generic_where_clause('1'); $this->assertSame($expected, $actual); }