Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mondrake authored Oct 28, 2024
1 parent 186e473 commit e151571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/src/MapUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function testLoadMapFromFreedesktopInvalidFile(): void
public function testEmptyMapNotWriteable(): void
{
$this->expectException('LogicException');
$this->assertNull($this->newMap->getFileName());
$this->assertSame('', $this->newMap->getFileName());
}

public function testWriteMapToPhpClassFile(): void
Expand Down
6 changes: 3 additions & 3 deletions tests/src/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ public function testParseMalformed(string $type): void
public function testParseAgain(): void
{
$mt = new Type('application/ogg;description=Hello there!;asd=fgh');
$this->assertSame(2, count($mt->getParameters()));
$this->assertCount(2, $mt->getParameters());

$mt = new Type('text/plain;hello=there!');
$this->assertSame(1, count($mt->getParameters()));
$this->assertCount(1, $mt->getParameters());
}

public function testGetDescription(): void
Expand Down Expand Up @@ -726,6 +726,6 @@ public static function getDefaultExtensionFailProvider()
public function testGetDefaultExtensionFail(string $type): void
{
$this->expectException(MappingException::class);
$this->assertNull((new Type($type))->getDefaultExtension());
$this->assertSame('', (new Type($type))->getDefaultExtension());
}
}

0 comments on commit e151571

Please sign in to comment.