Skip to content

Commit

Permalink
switched to lower case letters to be inline with legacy and other com…
Browse files Browse the repository at this point in the history
…mand responses
  • Loading branch information
Webklex committed Jun 30, 2023
1 parent 0bd96d1 commit b08cbeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Connection/Protocols/ImapProtocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public function folderStatus(string $folder = 'INBOX', $arguments = ['MESSAGES',
if ($key === null) {
$key = $value;
} else {
$result[$key] = (int)$value;
$result[strtolower($key)] = (int)$value;
$key = null;
}
}
Expand Down
12 changes: 6 additions & 6 deletions tests/live/FolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,12 @@ public function testStatus(): void {
$folder = $this->getFolder('INBOX');
self::assertInstanceOf(Folder::class, $folder);

$status = $folder->getStatus();
self::assertEquals(0, $status['MESSAGES']);
self::assertEquals(0, $status['RECENT']);
self::assertEquals(0, $status['UNSEEN']);
self::assertGreaterThan(0, $status['UIDNEXT']);
self::assertGreaterThan(0, $status['UIDVALIDITY']);
$status = $folder->status();
self::assertEquals(0, $status['messages']);
self::assertEquals(0, $status['recent']);
self::assertEquals(0, $status['unseen']);
self::assertGreaterThan(0, $status['uidnext']);
self::assertGreaterThan(0, $status['uidvalidity']);
}

/**
Expand Down

0 comments on commit b08cbeb

Please sign in to comment.