/** * Tells whether two string literals are equal by comparing their values * * @param ValueObjectInterface $stringLiteral * @return bool */ public function sameValueAs(ValueObjectInterface $stringLiteral) { if (false === Util::classEquals($this, $stringLiteral)) { return false; } return $this->toNative() === $stringLiteral->toNative(); }
/** * Tells whether two UUID are equal by comparing their values * * @param UUID $uuid * @return bool */ public function sameValueAs(ValueObjectInterface $uuid) { if (false === Util::classEquals($this, $uuid)) { return false; } return $this->toNative() === $uuid->toNative(); }
public function testGetClassAsString() { $util = new Util(); $this->assertEquals(Util::class, Util::getClassAsString($util)); }