Skip to content

Commit c9f4c85

Browse files
committed
Revise docs and exception message for assertDatabaseExists()
1 parent c2f4e5e commit c9f4c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ClientFunctionalTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function testListDatabases()
5959
* the given name is found, it will be passed to the callback, which may
6060
* perform additional assertions.
6161
*
62+
* @param string $databaseName
6263
* @param callable $callback
6364
*/
6465
private function assertDatabaseExists($databaseName, $callback = null)
@@ -78,7 +79,7 @@ private function assertDatabaseExists($databaseName, $callback = null)
7879
}
7980
}
8081

81-
$this->assertNotNull($foundDatabase, sprintf('Found %s database on the server', $databaseName));
82+
$this->assertNotNull($foundDatabase, sprintf('Database %s does not exist on the server', $databaseName));
8283

8384
if ($callback !== null) {
8485
call_user_func($callback, $foundDatabase);

0 commit comments

Comments
 (0)