Commit c9f4c850 authored by Jeremy Mikola's avatar Jeremy Mikola

Revise docs and exception message for assertDatabaseExists()

parent c2f4e5e7
...@@ -59,6 +59,7 @@ class ClientFunctionalTest extends FunctionalTestCase ...@@ -59,6 +59,7 @@ class ClientFunctionalTest extends FunctionalTestCase
* the given name is found, it will be passed to the callback, which may * the given name is found, it will be passed to the callback, which may
* perform additional assertions. * perform additional assertions.
* *
* @param string $databaseName
* @param callable $callback * @param callable $callback
*/ */
private function assertDatabaseExists($databaseName, $callback = null) private function assertDatabaseExists($databaseName, $callback = null)
...@@ -78,7 +79,7 @@ class ClientFunctionalTest extends FunctionalTestCase ...@@ -78,7 +79,7 @@ class ClientFunctionalTest extends FunctionalTestCase
} }
} }
$this->assertNotNull($foundDatabase, sprintf('Found %s database on the server', $databaseName)); $this->assertNotNull($foundDatabase, sprintf('Database %s does not exist on the server', $databaseName));
if ($callback !== null) { if ($callback !== null) {
call_user_func($callback, $foundDatabase); call_user_func($callback, $foundDatabase);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment