Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 860cf9a

Browse filesBrowse files
committed
use assertSame instead of assertEquals
1 parent 1681941 commit 860cf9a
Copy full SHA for 860cf9a

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/Types/DatePointTypeTest.php
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.