Skip to content

Commit 851cbee

Browse files
committed
use createInstance method to create project factory
1 parent 1d5e7f8 commit 851cbee

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

tests/component/ProjectNamespaceTest.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,7 @@ class ProjectNamespaceTest extends \PHPUnit_Framework_TestCase
4343
*/
4444
protected function setUp()
4545
{
46-
$docBlockFactory = DocBlockFactory::createInstance();
47-
48-
$this->fixture = new ProjectFactory(
49-
array(
50-
new Argument(),
51-
new Class_(),
52-
new Constant(),
53-
new DocBlockStrategy($docBlockFactory),
54-
new File(NodesFactory::createInstance()),
55-
new Function_(),
56-
new Interface_(),
57-
new Method(),
58-
new Property(new PrettyPrinter()),
59-
new Trait_(),
60-
)
61-
);
46+
$this->fixture = $this->fixture = ProjectFactory::createInstance();
6247
}
6348

6449
public function testWithNamespacedClass()

0 commit comments

Comments
 (0)