8000 use assertSame instead of assertEquals · symfony/symfony@7a05df7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a05df7

Browse files
committed
use assertSame instead of assertEquals
1 parent d9d2acf commit 7a05df7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bridge/Doctrine/Tests/Types/DatePointTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testDatePointConvertsToDatabaseValue()
5252
$expected = $datePoint->format('Y-m-d H:i:s');
5353
$actual = $this->type->convertToDatabaseValue($datePoint, new PostgreSQLPlatform());
5454

55-
$this->assertEquals($expected, $actual);
55+
$this->assertSame($expected, $actual);
5656
}
5757

5858
public function testDatePointConvertsToPHPValue()
@@ -78,11 +78,11 @@ public function testDateTimeImmutableConvertsToPHPValue()
7878
$actual = $this->type->convertToPHPValue($dateTime, new SqlitePlatform());
7979
$expected = DatePoint::createFromInterface($dateTime);
8080

81-
$this->assertEquals($expected->format($format), $actual->format($format));
81+
$this->assertSame($expected->format($format), $actual->format($format));
8282
}
8383

8484
public function testGetName()
8585
{
86-
$this->assertEquals('date_point', $this->type->getName());
86+
$this->assertSame('date_point', $this->type->getName());
8787
}
8888
}

0 commit comments

Comments
 (0)
0