/** * @test */ public function homeHasPlumbus() { $home = new Home((new PlumbusFactory())->make()); $this->assertTrue($home->hasPlumbus()); $this->assertInstanceOf(Plumbus::class, $home->getPlumbus()); }
/** * @Given everyone has a plumbus in their home */ public function everyoneHasAPlumbusInTheirHome() { $plumbus = (new PlumbusFactory())->make(); $home = new Home($plumbus); Assert::isTrue($home->hasPlumbus()); }