diff --git a/src/ArrayAssertsTrait.php b/src/ArrayAssertsTrait.php index 7906231..01489f4 100644 --- a/src/ArrayAssertsTrait.php +++ b/src/ArrayAssertsTrait.php @@ -93,4 +93,18 @@ abstract public function assertCount($expectedCount, $haystack, $message = ''); * @return void */ abstract public function assertInternalType($expected, $actual, $message = ''); + + /** + * Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference + * the same object. + * + * Ensures this method must be provided by classes using this trait. + * + * @param string $expected The expected value. + * @param mixed $actual The actual value. + * @param string $message Optional error message to give upon failure. + * + * @return void + */ + abstract public function assertSame($expected, $actual, $message = ''); }