/**
  * @param \Remotelyliving\PlumbusPhp\Models\DingleBop $dinglebop
  *
  * @throws \Remotelyliving\PlumbusPhp\Exceptions\PlumbusPhpException
  */
 public function push(DingleBop $dinglebop)
 {
     if (!$dinglebop->wasSmoothedWithSchleem()) {
         throw new PlumbusPhpException('This dinglebop has not been smoothed with schleem yet.');
     }
     $this->dinglebop = $dinglebop;
 }
 /**
  * @test
  */
 public function rubDinglebopWithFleeb()
 {
     $fleeb = new Fleeb();
     $this->_dinglebop->expects($this->once())->method('handleRubbing')->with($fleeb);
     $this->_sut->rubDinglebopWithFleeb($this->_dinglebop, $fleeb);
 }
Exemple #3
0
 /**
  * @param \Remotelyliving\PlumbusPhp\Models\DingleBop $dingleBop
  * @param \Remotelyliving\PlumbusPhp\Models\Fleeb     $fleeb
  */
 public function rubDinglebopWithFleeb(DingleBop $dingleBop, Fleeb $fleeb)
 {
     $dingleBop->handleRubbing($fleeb);
 }
 /**
  * @param \Remotelyliving\PlumbusPhp\Models\DingleBop $dingleBop
  */
 public function rubDingleBop(DingleBop $dingleBop)
 {
     $dingleBop->setWasRubbedBySchlami(true);
 }
 /**
  * @test
  * @expectedException \Remotelyliving\PlumbusPhp\Exceptions\FleebHydrationException
  */
 public function handleRubbingFleebException()
 {
     $this->_sut->handleRubbing(new Fleeb());
 }
 /**
  * @test
  */
 public function plumbus()
 {
     $this->_dinglebop->method('isPlumbusable')->willReturn(true);
     $plumbus = new Plumbus($this->_dinglebop);
     $this->assertInstanceOf(Plumbus::class, $plumbus);
 }
 /**
  * @test
  */
 public function rubDingleBop()
 {
     $this->_dinglebop->expects($this->once())->method('setWasRubbedBySchlami')->with(true);
     $this->_sut->rubDingleBop($this->_dinglebop);
 }