public function setUp()
 {
     parent::setUp();
     $this->treeWalker = $this->getMockBuilder('PHPCR\\Util\\TreeWalker')->disableOriginalConstructor()->getMock();
     $ndCommand = new NodeDumpCommand();
     $this->application->add($ndCommand);
 }
 public function setUp()
 {
     parent::setUp();
     $command = new NodeTouchCommand();
     $this->application->add($command);
     // override default concrete instance with mock
     $this->phpcrHelper = $this->getMockBuilder('PHPCR\\Util\\Console\\Helper\\PhpcrHelper')->disableOriginalConstructor()->getMock();
     $this->phpcrHelper->expects($this->any())->method('getSession')->will($this->returnValue($this->session));
     $this->phpcrHelper->expects($this->any())->method('getName')->will($this->returnValue('phpcr'));
     $this->helperSet->set($this->phpcrHelper);
 }
 public function setUp()
 {
     parent::setUp();
     $this->application->add(new NodeTypeRegisterCommand());
     $this->nodeTypeManager = $this->getMockBuilder('PHPCR\\Tests\\Stubs\\MockNodeTypeManager')->disableOriginalConstructor()->getMock();
 }
 public function setUp()
 {
     parent::setUp();
     $this->application->add(new WorkspaceExportCommand());
 }
 public function setUp()
 {
     parent::setUp();
     $this->application->add(new NodesUpdateCommand());
     $this->query = $this->getMock('PHPCR\\Query\\QueryInterface');
 }
 public function setUp()
 {
     parent::setUp();
     $this->application->add(new NodeRemoveCommand());
 }