Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/standard/cloudsql/test/cloudsqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function createApplication()
$dsn = getenv('MYSQL_DSN');
$username = getenv('MYSQL_USERNAME');
$password = getenv('MYSQL_PASSWORD');
if (!isset($dsn, $username) || false === $password) {
if (empty($dsn) || empty($username) || false === $password) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's trivial, but why it only compares $password to false? Can it also be empty($password)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this because, while not best practice, it is possible to have an empty password.

$this->markTestSkipped('set the MYSQL_DSN, MYSQL_USER and MYSQL_PASSWORD environment variables');
}

Expand Down