elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

Deep comparisons with self::ANYTHING #332

Open elliotchance opened 8 years ago

elliotchance commented 8 years ago

The self::ANYTHING is used as a placeholder for mocks, but it should also be used for deep companions:

$this->assert($myObject)->equals([
    'id' => 123,
    'name' => self::ANYTHING
]);