Skip to content

Commit

Permalink
Add abstract assertSame
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Dec 5, 2016
1 parent f76fe80 commit 13978b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ArrayAssertsTrait.php
Expand Up @@ -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 = '');
}

0 comments on commit 13978b8

Please sign in to comment.