Example #1
0
 /**
  * @test
  */
 public function cutFleeb()
 {
     $fleeb_pieces = $this->_sut->cutFleeb(new Fleeb());
     $this->assertEquals(Blamf::FLEEB_DEFAULT_PIECES, count($fleeb_pieces));
     foreach ($fleeb_pieces as $fleeb) {
         $this->assertInstanceOf(Fleeb::class, $fleeb);
     }
 }
 /**
  * @Then they cut the fleeb
  */
 public function theyCutTheFleeb()
 {
     $pieces = $this->_blamf->cutFleeb(new Fleeb());
     Assert::assertEquals(Blamf::FLEEB_DEFAULT_PIECES, count($pieces));
     foreach ($pieces as $piece_of_fleeb) {
         Assert::assertInstanceOf(Fleeb::class, $piece_of_fleeb);
     }
 }
 /**
  * @return \Remotelyliving\PlumbusPhp\Plumbus
  */
 public function make()
 {
     $dinglebop = new DingleBop();
     // re-purpose schleem
     try {
         $this->_schleem = $this->_blamf->smoothDinglebopWithSchleem($dinglebop, $this->_schleem);
     } catch (OutOfSchleemException $e) {
         $this->_schleem = $this->_blamf->smoothDinglebopWithSchleem($dinglebop, new Schleem());
     }
     $grumbo = new Grumbo();
     $grumbo->push($dinglebop);
     $this->_blamf->rubDinglebopWithFleeb($grumbo->dinglebop, $this->_fleeb);
     $this->_schlami->rubDingleBop($grumbo->dinglebop);
     $this->_schlami->spitOnDingleBop($grumbo->dinglebop);
     $this->_blamf->cutFleeb($this->_fleeb);
     $this->_blamf->rubAgainstTheChumbles($grumbo);
     $this->_blamf->shavePloobis($grumbo);
     return new Plumbus($this->_blamf->shaveGrumboAway($grumbo));
 }