/** * Tests the JDatabaseQuery::dump method. * * @return void * * @since 11.3 */ public function testDump() { $q = new JDatabaseQueryInspector($this->dbo); $q->select('*')->from('#__foo'); $this->assertThat($q->dump(), $this->equalTo('<pre class="jdatabasequery">' . PHP_EOL . "SELECT *" . PHP_EOL . "FROM foo" . '</pre>'), 'Tests that the dump method replaces the prefix correctly.'); }