Example #1
0
 public function mock(Mock $dataSet = null)
 {
     if ($dataSet === null) {
         $dataSet = Mock::getNull();
     }
     $this->mock = $dataSet;
     return $this;
 }
Example #2
0
 /**
  * @return \Yaoi\Database\Utility\Contract
  */
 public function getUtility()
 {
     $driver = $this->driver;
     return $this->mock->get('utility', function () use($driver) {
         return $driver->getUtility();
     });
 }
Example #3
0
 public function mock(Mock $dataSet = null)
 {
     if (null === $dataSet) {
         $dataSet = Mock::getNull();
     }
     $this->mock = $dataSet;
 }