コード例 #1
0
ファイル: ClosureJobTest.php プロジェクト: indigophp/queue
 public function _before()
 {
     $this->manager = \Mockery::mock('Indigo\\Queue\\Manager\\ManagerInterface');
     $this->manager->shouldReceive('getPayload')->andReturn(['closure' => serialize(new SerializableClosure(function () {
         return true;
     }))]);
 }
 protected function getVendor($hipayId)
 {
     if ($hipayId == $this->operator->getHipayId()) {
         return $this->operator;
     }
     if ($hipayId == $this->technical->getHipayId()) {
         return $this->technical;
     }
     return $this->vendorManager->findByHipayId($hipayId);
 }
コード例 #3
0
 /**
  * @throws \Maiorano\Shortcodes\Exceptions\RegisterException
  */
 private function setupManager()
 {
     $this->manager = new ShortcodeManager();
     foreach ($this->config['tags'] as $tag) {
         $shortcode = $this->buildShortcode($tag);
         $this->manager->register($shortcode);
     }
 }
コード例 #4
0
ファイル: ExpandableTrait.php プロジェクト: mecum/expand
 /**
  * Using extensions
  *
  * @param string $name Extension name
  * @param array $args Arguments of the extension
  */
 public function __call($name, array $args)
 {
     return $this->extensions->call($this, $name, $args);
 }