Skip to content

Commit

Permalink
removed some more annotations (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Apr 1, 2021
1 parent c551fb3 commit edb315f
Show file tree
Hide file tree
Showing 32 changed files with 52 additions and 152 deletions.
4 changes: 0 additions & 4 deletions tests/Phing/Input/ConsoleInputHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\NullOutput;

/**
* @internal
* @coversNothing
*/
class ConsoleInputHandlerTest extends TestCase
{
public function testDefaultValue()
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Input/NoInteractionInputHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
use Phing\Input\YesNoInputRequest;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class NoInteractionInputHandlerTest extends TestCase
{
public function testDefaultValue()
Expand Down
5 changes: 3 additions & 2 deletions tests/Phing/Io/FileParserFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
use Phing\Io\FileParserFactory;
use Phing\Io\IniFileParser;
use Phing\Io\YamlFileParser;
use PHPUnit\Framework\TestCase;

/**
* Unit test for FileParserFactory.
*
* @author Mike Lohmann <mike.lohmann@deck36.de>
*/
class FileParserFactoryTest extends \PHPUnit\Framework\TestCase
class FileParserFactoryTest extends TestCase
{
/**
* @var FileParserFactory
Expand Down Expand Up @@ -58,7 +59,7 @@ public function tearDown(): void
}

/**
* @covers \FileParserFactory::createParser
* @covers FileParserFactory::createParser
* @dataProvider parserTypeProvider
*
* @param mixed $parserName
Expand Down
9 changes: 5 additions & 4 deletions tests/Phing/Io/IniFileParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace Phing\Test\Io;

use org\bovigo\vfs\vfsStream;
use Phing\Io\File;
use Phing\Io\IniFileParser;
use Phing\Io\IOException;
Expand All @@ -36,13 +37,13 @@ class IniFileParserTest extends \PHPUnit\Framework\TestCase
protected function setUp(): void
{
$this->parser = new IniFileParser();
$this->root = \org\bovigo\vfs\vfsStream::setUp();
$this->root = vfsStream::setUp();
}

/**
* @dataProvider provideIniFiles
* @covers \IniFileParser::inVal
* @covers \IniFileParser::parseFile
* @covers IniFileParser::inVal
* @covers IniFileParser::parseFile
*
* @param mixed $data
* @param mixed $expected
Expand All @@ -57,7 +58,7 @@ public function testParseFile($data, $expected)
}

/**
* @covers \IniFileParser::parseFile
* @covers IniFileParser::parseFile
*/
public function testParseFileCouldntOpenFile()
{
Expand Down
8 changes: 3 additions & 5 deletions tests/Phing/Io/YamlFileParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public function setUp(): void
{
if (!class_exists('\Symfony\Component\Yaml\Parser')) {
$this->markTestSkipped('Yaml parser is not installed.');

exit;
}
$this->yamlFileStub = PHING_TEST_BASE . '/etc/system/io/config.yml';
$this->incorrectYamlFileStub = PHING_TEST_BASE . '/etc/system/io/config_wrong.yml';
Expand All @@ -72,7 +70,7 @@ public function tearDown(): void
}

/**
* @covers \IniFileParser::parseFile
* @covers IniFileParser::parseFile
*/
public function testParseFileFileNotReadable()
{
Expand All @@ -87,7 +85,7 @@ public function testParseFileFileNotReadable()
}

/**
* @covers \IniFileParser::parseFile
* @covers IniFileParser::parseFile
*/
public function testParseFileFileIncorrectYaml()
{
Expand All @@ -102,7 +100,7 @@ public function testParseFileFileIncorrectYaml()
* The YamlFileParser has to provide a flattened array which then is
* compatible to the actual behaviour of properties.
*
* @covers \IniFileParser::parseFile
* @covers IniFileParser::parseFile
*/
public function testParseFileFile()
{
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Listener/DefaultLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
use PHPUnit\Framework\TestCase;
use Throwable;

/**
* @internal
* @coversNothing
*/
class DefaultLoggerTest extends TestCase
{
/**
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Listener/MonologListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
use Phing\Project;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class MonologListenerTest extends TestCase
{
/**
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Listener/SilentLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
use Phing\Project;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class SilentLoggerTest extends TestCase
{
/**
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Listener/StatisticsListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
use Phing\Project;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class StatisticsListenerTest extends TestCase
{
/**
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Listener/TimestampedLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
use Phing\Project;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class TimestampedLoggerTest extends TestCase
{
/**
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/PropertyHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
use Phing\PropertyHelper;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class PropertyHelperTest extends TestCase
{
public function testUndefinedPropertyShouldNotBeReplaced()
Expand Down
26 changes: 14 additions & 12 deletions tests/Phing/Task/Optional/ArgTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
namespace Phing\Test\Task\Optional;

use Phing\Task\Optional\SymfonyConsoleArg;
use Phing\Task\OptionalSymfonyConsoleArg;
use PHPUnit\Framework\TestCase;

/**
* Test class for Arg.
* Generated by PHPUnit on 2012-02-13 at 12:02:17.
*/
class ArgTest extends \PHPUnit\Framework\TestCase
class ArgTest extends TestCase
{
/**
* @var SymfonyConsoleArg
Expand All @@ -51,8 +53,8 @@ protected function tearDown(): void
}

/**
* @covers \SymfonyConsoleArg::getName
* @covers \SymfonyConsoleArg::setName
* @covers SymfonyConsoleArg::getName
* @covers SymfonyConsoleArg::setName
*/
public function testSetGetName()
{
Expand All @@ -62,8 +64,8 @@ public function testSetGetName()
}

/**
* @covers \SymfonyConsoleArg::getValue
* @covers \SymfonyConsoleArg::setValue
* @covers SymfonyConsoleArg::getValue
* @covers SymfonyConsoleArg::setValue
*/
public function testSetGetValue()
{
Expand All @@ -73,8 +75,8 @@ public function testSetGetValue()
}

/**
* @covers \SymfonyConsoleArg::getQuotes
* @covers \SymfonyConsoleArg::setQuotes
* @covers SymfonyConsoleArg::getQuotes
* @covers SymfonyConsoleArg::setQuotes
*/
public function testGetQuotes()
{
Expand All @@ -84,7 +86,7 @@ public function testGetQuotes()
}

/**
* @covers \SymfonyConsoleArg::__toString
* @covers SymfonyConsoleArg::__toString
*/
public function testToStringWithQuotes()
{
Expand All @@ -97,7 +99,7 @@ public function testToStringWithQuotes()
}

/**
* @covers \SymfonyConsoleArg::__toString
* @covers SymfonyConsoleArg::__toString
*/
public function testToStringWithoutQuotes()
{
Expand All @@ -110,7 +112,7 @@ public function testToStringWithoutQuotes()
}

/**
* @covers \SymfonyConsoleArg::__toString
* @covers SymfonyConsoleArg::__toString
*/
public function testToStringJustName()
{
Expand All @@ -122,7 +124,7 @@ public function testToStringJustName()
}

/**
* @covers \SymfonyConsoleArg::__toString
* @covers SymfonyConsoleArg::__toString
*/
public function testToStringJustValueWithoutQuotes()
{
Expand All @@ -134,7 +136,7 @@ public function testToStringJustValueWithoutQuotes()
}

/**
* @covers \SymfonyConsoleArg::__toString
* @covers SymfonyConsoleArg::__toString
*/
public function testToStringJustValueWithQuotes()
{
Expand Down
20 changes: 11 additions & 9 deletions tests/Phing/Task/Optional/ComposerTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
use Phing\Io\FileSystem;
use Phing\Project;
use Phing\Task\Optional\ComposerTask;
use Phing\Task\OptionalComposerTask;
use Phing\Type\CommandlineArgument;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;
use ReflectionProperty;

Expand All @@ -32,7 +34,7 @@
*
* @author Nuno Costa <nuno@francodacosta.com>
*/
class ComposerTaskTest extends \PHPUnit\Framework\TestCase
class ComposerTaskTest extends TestCase
{
/**
* @var ComposerTask
Expand All @@ -58,8 +60,8 @@ protected function tearDown(): void
}

/**
* @covers \ComposerTask::getCommand
* @covers \ComposerTask::setCommand
* @covers ComposerTask::getCommand
* @covers ComposerTask::setCommand
*/
public function testSetGetCommand()
{
Expand All @@ -69,8 +71,8 @@ public function testSetGetCommand()
}

/**
* @covers \ComposerTask::getPhp
* @covers \ComposerTask::setPhp
* @covers ComposerTask::getPhp
* @covers ComposerTask::setPhp
*/
public function testSetGetPhp()
{
Expand All @@ -80,7 +82,7 @@ public function testSetGetPhp()
}

/**
* @covers \ComposerTask::setComposer
* @covers ComposerTask::setComposer
*/
public function testSetComposer()
{
Expand All @@ -95,7 +97,7 @@ public function testSetComposer()
}

/**
* @covers \ComposerTask::getComposer
* @covers ComposerTask::getComposer
*/
public function testGetComposerNotOnPath()
{
Expand All @@ -118,7 +120,7 @@ public function testGetComposerNotOnPath()
}

/**
* @covers \ComposerTask::getComposer
* @covers ComposerTask::getComposer
*/
public function testGetComposerFromPath()
{
Expand All @@ -141,7 +143,7 @@ public function testGetComposerFromPath()
}

/**
* @covers \ComposerTask::createArg
* @covers ComposerTask::createArg
*/
public function testCreateArg()
{
Expand Down
4 changes: 0 additions & 4 deletions tests/Phing/Task/Optional/IniFileTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
use Phing\Project;
use Phing\Test\Support\BuildFileTest;

/**
* @internal
* @coversNothing
*/
class IniFileTaskTest extends BuildFileTest
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
use Phing\Task\Ext\Phpstan\PHPStanTask;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class PHPStanAnalyseCommandBuilderTest extends TestCase
{
/** @var PHPStanAnalyseCommandBuilder */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
use Phing\Task\Ext\Phpstan\PHPStanTask;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class PHPStanCommandBuilderFactoryTest extends TestCase
{
/** @var PHPStanCommandBuilderFactory */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
use Phing\Task\Ext\Phpstan\PHPStanTask;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversNothing
*/
class PHPStanCommandBuilderTest extends TestCase
{
/** @var PHPStanCommandBuilderFake */
Expand Down
Loading

0 comments on commit edb315f

Please sign in to comment.