File tree Expand file tree Collapse file tree 5 files changed +17
-5
lines changed
tests/PHPCR/Tests/Util/Console/Command Expand file tree Collapse file tree 5 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 88use Symfony \Component \Console \Helper \HelperSet ;
99use PHPCR \Util \Console \Helper \PhpcrHelper ;
1010
11- require_once (__DIR__ .'/Stubb/AbstractNode .php ' );
11+ require_once (__DIR__ .'/Stubb/MockNode .php ' );
1212
1313abstract class BaseCommandTest extends \PHPUnit_Framework_TestCase
1414{
@@ -18,7 +18,7 @@ public function setUp()
1818 $ this ->workspace = $ this ->getMock ('PHPCR\WorkspaceInterface ' );
1919 $ this ->repository = $ this ->getMock ('PHPCR\RepositoryInterface ' );
2020
21- $ this ->node1 = $ this ->getMock ('PHPCR\Tests\Util\Console\Command\Stubb\AbstractNode ' );
21+ $ this ->node1 = $ this ->getMock ('PHPCR\Tests\Util\Console\Command\Stubb\MockNode ' );
2222
2323 $ this ->dumperHelper = $ this ->getMockBuilder (
2424 'PHPCR\Util\Console\Helper\PhpcrConsoleDumperHelper '
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public function setUp()
1212 parent ::setUp ();
1313 $ this ->application ->add (new NodeTypeListCommand ());
1414 $ this ->nodeTypeManager = $ this ->getMockBuilder (
15- 'Jackalope\NodeType\NodeTypeManager '
15+ 'PHPCR\Tests\Util\Console\Command\Stubb\MockNodeTypeManager '
1616 )->disableOriginalConstructor ()->getMock ();
1717 }
1818
Original file line number Diff line number Diff line change 55use Symfony \Component \Console \Application ;
66use PHPCR \Util \Console \Command \NodeTypeRegisterCommand ;
77
8+ require_once (__DIR__ .'/Stubb/MockNodeTypeManager.php ' );
9+
810class NodeTypeRegisterCommandTest extends BaseCommandTest
911{
1012 public function setUp ()
1113 {
1214 parent ::setUp ();
1315 $ this ->application ->add (new NodeTypeRegisterCommand ());
1416 $ this ->nodeTypeManager = $ this ->getMockBuilder (
15- 'Jackalope\NodeType\NodeTypeManager '
17+ 'PHPCR\Tests\Util\Console\Command\Stubb\MockNodeTypeManager '
1618 )->disableOriginalConstructor ()->getMock ();
1719 }
1820
Original file line number Diff line number Diff line change 44
55use PHPCR \NodeInterface ;
66
7- abstract class AbstractNode implements \Iterator, NodeInterface
7+ abstract class MockNode implements \Iterator, NodeInterface
88{
99}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace PHPCR \Tests \Util \Console \Command \Stubb ;
4+
5+ use PHPCR \NodeType \NodeTypeManagerInterface ;
6+
7+ abstract class MockNodeTypeManager implements \Iterator, NodeTypeManagerInterface
8+ {
9+ }
10+
You can’t perform that action at this time.
0 commit comments