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