Пример #1
0
 /**
  * @param InputInterface $input
  * @return \Samurai\Task\ITask
  */
 private function getTask(InputInterface $input)
 {
     $factory = new AliasManagementTaskFactory();
     return $factory->create($input, $this->getServices());
 }
 public function testCreateForListing()
 {
     $factory = new AliasManagementTaskFactory();
     $result = $factory->create($this->provideInput(['action' => 'list']), new Container());
     $this->assertInstanceOf('Samurai\\Alias\\Task\\Listing', $result);
 }