\TestMockDatabaseDriver
Class to mock JDatabaseDriver.
Synopsis
class TestMockDatabaseDriver
{
- // members
- public $lastQuery;
- // methods
- public static create()
- public string mockEscape()
- public static void mockGetQuery()
- public static string mockQuote()
- public static string mockQuoteName()
- public static void mockSetQuery()
Members
public
- $lastQuery
—
mixed
A query string or object.
Methods
public
- create() — Creates and instance of the mock JDatabase object.
- mockEscape() — Callback for the dbo escape method.
- mockGetQuery() — Callback for the dbo setQuery method.
- mockQuote() — Mocking the quote method.
- mockQuoteName() — Mock quoteName method.
- mockSetQuery() — Callback for the dbo setQuery method.