[cs] remove unused imports, short array and order imports on tests

This commit is contained in:
TomasVotruba
2017-11-12 21:23:54 +01:00
committed by Jaap van Otterdijk
parent 6e5fc0c312
commit 44c0ac7d5f
6 changed files with 4 additions and 14 deletions
-1
View File
@@ -12,7 +12,6 @@
namespace phpDocumentor\Reflection\DocBlock;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock;
/**
@@ -36,18 +36,18 @@ class AlignFormatterTest extends \PHPUnit_Framework_TestCase
*/
public function testFormatterCallsToStringAndReturnsAStandardRepresentation()
{
$tags = array(
$tags = [
new Param('foobar', new String_()),
new Version('1.2.0'),
new Link('http://www.example.com', new Description('Examples'))
);
];
$fixture = new AlignFormatter($tags);
$expected = array(
$expected = [
'@param string $foobar',
'@version 1.2.0',
'@link http://www.example.com Examples'
);
];
foreach ($tags as $key => $tag) {
$this->assertSame(
@@ -12,7 +12,6 @@
namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\Tags\Generic;
-2
View File
@@ -15,9 +15,7 @@ namespace phpDocumentor\Reflection\DocBlock\Tags;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
use phpDocumentor\Reflection\TypeResolver;
use phpDocumentor\Reflection\Types\Context;
use phpDocumentor\Reflection\Types\String_;
/**
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Source