/** * @test */ public function shaveGrumboAway() { $grumbo = new Grumbo(); $this->_dinglebop->method('wasSmoothedWithSchleem')->willReturn(true); $grumbo->push($this->_dinglebop); $this->_sut->shavePloobis($grumbo); $this->_sut->rubAgainstTheChumbles($grumbo); $this->assertSame($this->_dinglebop, $this->_sut->shaveGrumboAway($grumbo)); }
/** * @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)); }
/** * @Then the ploobis and grumbo are shaved away */ public function thePloobisAndGrumboAreShavedAway() { $this->_blamf->shavePloobis($this->_grumbo); Assert::assertFalse(isset($this->_grumbo->ploobis)); $this->_dingle_bop = $this->_blamf->shaveGrumboAway($this->_grumbo); }