public function testCheckInIsIdempotent() { $id = Uuid::createNew(); $book = new Book($id); $book->checkIn(); $events = $book->getUncommittedChanges()->getIterator()->getArrayCopy(); self::assertCount(0, $events); }