ParagonIE\EasyDB\Tests\EscapeLikeTest::testEscapeLike PHP Method

testEscapeLike() public method

public testEscapeLike ( $input, $expected )
    public function testEscapeLike($input, $expected)
    {
        // This defines sqlite, but mysql and postgres share the same rules
        $easydb = new EasyDB($this->getMockPDO(), 'sqlite');
        $output = $easydb->escapeLikeValue($input);
        $this->assertSame($expected, $output);
    }