File tree Expand file tree Collapse file tree 15 files changed +18
-120
lines changed
src/phpDocumentor/Reflection
unit/phpDocumentor/Reflection Expand file tree Collapse file tree 15 files changed +18
-120
lines changed Original file line number Diff line number Diff line change 77 colors =" true"
88 verbose =" true"
99 forceCoversAnnotation =" true"
10- beStrictAboutCoversAnnotation =" true "
10+ beStrictAboutCoversAnnotation =" false "
1111 beStrictAboutOutputDuringTests =" true"
1212 beStrictAboutChangesToGlobalState =" true"
1313 beStrictAboutTodoAnnotatedTests =" true"
Original file line number Diff line number Diff line change 1616use phpDocumentor \Reflection \Php \Argument as ArgumentDescriptor ;
1717use phpDocumentor \Reflection \Php \ProjectFactoryStrategy ;
1818use phpDocumentor \Reflection \Php \StrategyContainer ;
19- use phpDocumentor \Reflection \PrettyPrinter ;
2019use phpDocumentor \Reflection \Types \Context ;
2120use PhpParser \Node \Expr \Variable ;
2221use PhpParser \Node \Param ;
22+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2323use Webmozart \Assert \Assert ;
2424
2525/**
Original file line number Diff line number Diff line change 1717use phpDocumentor \Reflection \Php \Constant as ConstantElement ;
1818use phpDocumentor \Reflection \Php \StrategyContainer ;
1919use phpDocumentor \Reflection \Php \Visibility ;
20- use phpDocumentor \Reflection \PrettyPrinter ;
2120use phpDocumentor \Reflection \Types \Context ;
21+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2222
2323/**
2424 * Strategy to convert ClassConstantIterator to ConstantElement
Original file line number Diff line number Diff line change 1717use phpDocumentor \Reflection \Location ;
1818use phpDocumentor \Reflection \Php \Constant as ConstantElement ;
1919use phpDocumentor \Reflection \Php \StrategyContainer ;
20- use phpDocumentor \Reflection \PrettyPrinter ;
2120use phpDocumentor \Reflection \Types \Context ;
2221use PhpParser \Node \Arg ;
2322use PhpParser \Node \Expr \FuncCall ;
2423use PhpParser \Node \Name ;
2524use PhpParser \Node \Scalar \String_ ;
2625use PhpParser \Node \Stmt \Expression ;
26+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2727use RuntimeException ;
2828use function sprintf ;
2929
Original file line number Diff line number Diff line change 1616use phpDocumentor \Reflection \Location ;
1717use phpDocumentor \Reflection \Php \Constant as ConstantElement ;
1818use phpDocumentor \Reflection \Php \StrategyContainer ;
19- use phpDocumentor \Reflection \PrettyPrinter ;
2019use phpDocumentor \Reflection \Types \Context ;
20+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2121
2222/**
2323 * Strategy to convert GlobalConstantIterator to ConstantElement
Original file line number Diff line number Diff line change 1818use phpDocumentor \Reflection \Php \Property as PropertyDescriptor ;
1919use phpDocumentor \Reflection \Php \StrategyContainer ;
2020use phpDocumentor \Reflection \Php \Visibility ;
21- use phpDocumentor \Reflection \PrettyPrinter ;
2221use phpDocumentor \Reflection \Types \Context ;
22+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2323
2424/**
2525 * Strategy to convert PropertyIterator to PropertyDescriptor
Original file line number Diff line number Diff line change 1717use phpDocumentor \Reflection \Exception ;
1818use phpDocumentor \Reflection \File as SourceFile ;
1919use phpDocumentor \Reflection \Fqsen ;
20- use phpDocumentor \Reflection \PrettyPrinter ;
2120use phpDocumentor \Reflection \Project as ProjectInterface ;
2221use phpDocumentor \Reflection \ProjectFactory as ProjectFactoryInterface ;
22+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2323
2424/**
2525 * Factory class to transform files into a project description.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testCreateProjectWithClass() : void
7373 );
7474 $ constant = $ project ->getFiles ()[$ fileName ]->getClasses ()['\\Pizza ' ]->getConstants ()['\\Pizza::PACKAGING ' ];
7575
76- $ this ->assertEquals ('box ' , $ constant ->getValue ());
76+ $ this ->assertEquals ('\' box \' ' , $ constant ->getValue ());
7777 }
7878
7979 public function testTypedPropertiesReturnTheirType () : void
Original file line number Diff line number Diff line change 1616use Mockery as m ;
1717use phpDocumentor \Reflection \Php \Argument as ArgumentDescriptor ;
1818use phpDocumentor \Reflection \Php \ProjectFactoryStrategies ;
19- use phpDocumentor \Reflection \PrettyPrinter ;
2019use PhpParser \Node \Expr \Variable ;
2120use PhpParser \Node \Param ;
2221use PhpParser \Node \Scalar \String_ ;
22+ use PhpParser \PrettyPrinter \Standard as PrettyPrinter ;
2323use stdClass ;
2424
2525/**
2626 * @uses \phpDocumentor\Reflection\Php\Argument
2727 * @uses \phpDocumentor\Reflection\Php\Factory\Argument::matches
28- * @uses \phpDocumentor\Reflection\PrettyPrinter
2928 * @uses \phpDocumentor\Reflection\Php\ProjectFactoryStrategies
3029 * @uses \phpDocumentor\Reflection\Php\Factory\Type
3130 *
@@ -70,6 +69,6 @@ public function testCreate() : void
7069 $ this ->assertEquals ('myArgument ' , $ argument ->getName ());
7170 $ this ->assertTrue ($ argument ->isByReference ());
7271 $ this ->assertTrue ($ argument ->isVariadic ());
73- $ this ->assertEquals ('MyDefault ' , $ argument ->getDefault ());
72+ $ this ->assertEquals ('\' MyDefault \' ' , $ argument ->getDefault ());
7473 }
7574}
You can’t perform that action at this time.
0 commit comments