Skip to content

Commit b08cbeb

Browse files
committed
switched to lower case letters to be inline with legacy and other command responses
1 parent 0bd96d1 commit b08cbeb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Connection/Protocols/ImapProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ public function folderStatus(string $folder = 'INBOX', $arguments = ['MESSAGES',
636636
if ($key === null) {
637637
$key = $value;
638638
} else {
639-
$result[$key] = (int)$value;
639+
$result[strtolower($key)] = (int)$value;
640640
$key = null;
641641
}
642642
}

tests/live/FolderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ public function testStatus(): void {
364364
$folder = $this->getFolder('INBOX');
365365
self::assertInstanceOf(Folder::class, $folder);
366366

367-
$status = $folder->getStatus();
368-
self::assertEquals(0, $status['MESSAGES']);
369-
self::assertEquals(0, $status['RECENT']);
370-
self::assertEquals(0, $status['UNSEEN']);
371-
self::assertGreaterThan(0, $status['UIDNEXT']);
372-
self::assertGreaterThan(0, $status['UIDVALIDITY']);
367+
$status = $folder->status();
368+
self::assertEquals(0, $status['messages']);
369+
self::assertEquals(0, $status['recent']);
370+
self::assertEquals(0, $status['unseen']);
371+
self::assertGreaterThan(0, $status['uidnext']);
372+
self::assertGreaterThan(0, $status['uidvalidity']);
373373
}
374374

375375
/**

0 commit comments

Comments
 (0)