public static function equal($expected, $actual, $description = NULL) { self::$counter++; if (!self::isEqual($expected, $actual)) { self::fail(self::describe('%1 should be equal to %2', $description), $actual, $expected); } }
/** * @eventListener onFoo * @param int $one * @param int $two * @param int $three */ public function onFoo($one, $two, $three) { Assert::equal(1, $one); Assert::equal(2, $two); Assert::equal(3, $three); $this->called = TRUE; }