/** * Tests the \Joomla\Database\DatabaseQuery::dump method. * * @return void * * @covers \Joomla\Database\DatabaseQuery::dump * @since 1.0 */ public function testDump() { $this->instance->select('*')->from('#__foo'); $this->assertThat($this->instance->dump(), $this->equalTo('<pre class="jdatabasequery">' . PHP_EOL . "SELECT *" . PHP_EOL . "FROM foo" . '</pre>'), 'Tests that the dump method replaces the prefix correctly.'); }