RedUNIT\Base\Misc::testLegacyCode PHP Method

testLegacyCode() public method

Test Backward compatibility writer ESC-method.
public testLegacyCode ( ) : void
return void
    public function testLegacyCode()
    {
        testpack('Test Backward compatibility methods in writer.');
        asrt(R::getWriter()->safeColumn('column', TRUE), R::getWriter()->esc('column', TRUE));
        asrt(R::getWriter()->safeColumn('column', FALSE), R::getWriter()->esc('column', FALSE));
        asrt(R::getWriter()->safeTable('table', TRUE), R::getWriter()->esc('table', TRUE));
        asrt(R::getWriter()->safeTable('table', FALSE), R::getWriter()->esc('table', FALSE));
    }