/** * @param CommitIdentifier $identifier * * @return bool */ public function equals(CommitIdentifier $identifier) { return $this->uuid->toString() === $identifier->toString(); }
/** * @depends testCanBeConstructedWithAUuidString */ public function testCanBeTranslatedIntoAString(CommitIdentifier $commitIdentifier) { $this->assertEquals(Uuid::NIL, $commitIdentifier->toString()); }