/** * @test */ public function itShouldHasUuidIdentifier() { $merchant = new Merchant('Joyeria Baguette', 'Address'); Assertion::uuid($merchant->id()); }
/** * @param $name */ private function setName($name) { Assertion::notBlank($name, 'Merchant name is required'); Assertion::string($name, 'Merchant name must be string type'); $this->name = $name; }
/** * @param $price */ private function setPrice($price) { Assertion::float($price, 'Price must be a float value'); $this->price = $price; }
/** * @test */ public function itShouldHasUuidIdentifier() { $product = FakeProductBuilder::build(); Assertion::uuid($product->id()); }