Skip to content

Use PSR-1 for PHPUnit TestCase #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/CND/Reader/BufferReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace PHPCR\Tests\Util\CND\Reader;

use PHPCR\Util\CND\Reader\BufferReader;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class BufferReaderTest extends PHPUnit_Framework_TestCase
class BufferReaderTest extends TestCase
{
public function test__construct()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/CND/Reader/FileReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use InvalidArgumentException;
use PHPCR\Util\CND\Reader\FileReader;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class FileReaderTest extends PHPUnit_Framework_TestCase
class FileReaderTest extends TestCase
{
/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/CND/Scanner/GenericScannerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
use PHPCR\Util\CND\Scanner\TokenQueue;
use PHPCR\Util\CND\Scanner\TokenFilter;
use PHPCR\Util\CND\Scanner\Context\DefaultScannerContext;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use Test;
use TestClass;

class GenericScannerTest extends PHPUnit_Framework_TestCase
class GenericScannerTest extends TestCase
{
protected $expectedTokens = [

Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/CND/Scanner/TokenQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use PHPCR\Util\CND\Scanner\Token;
use PHPCR\Util\CND\Scanner\TokenQueue;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class TokenQueueTest extends PHPUnit_Framework_TestCase
class TokenQueueTest extends TestCase
{
/**
* @var Token
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/CND/Scanner/TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace PHPCR\Tests\Util\CND\Scanner;

use PHPCR\Util\CND\Scanner\Token;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class TokenTest extends PHPUnit_Framework_TestCase
class TokenTest extends TestCase
{
/**
* @var Token
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/Console/Command/BaseCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PHPCR\Tests\Stubs\MockNode;
use PHPCR\Tests\Stubs\MockRow;
use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Console\Helper\HelperSet;
Expand All @@ -22,7 +22,7 @@
require_once __DIR__.'/../../../Stubs/MockNodeTypeManager.php';
require_once __DIR__.'/../../../Stubs/MockRow.php';

abstract class BaseCommandTest extends PHPUnit_Framework_TestCase
abstract class BaseCommandTest extends TestCase
{
/**
* @var SessionInterface|PHPUnit_Framework_MockObject_MockObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
use PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperPropertyVisitor;
use PHPCR\Util\TreeWalker;
use Symfony\Component\Console\Output\OutputInterface;
use PHPUnit\Framework\TestCase;

class PhpcrConsoleDumperHelperTest extends PHPUnit_Framework_TestCase
class PhpcrConsoleDumperHelperTest extends TestCase
{
private $outputMock;
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/NodeHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use PHPCR\Tests\Stubs\MockNode;
use PHPCR\Util\NodeHelper;
use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

require_once __DIR__.'/../Stubs/MockNode.php';

class NodeHelperTest extends PHPUnit_Framework_TestCase
class NodeHelperTest extends TestCase
{
/**
* @var array
Expand Down
3 changes: 2 additions & 1 deletion tests/PHPCR/Tests/Util/PathHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use PHPCR\RepositoryException;
use PHPCR\Util\PathHelper;
use stdClass;
use PHPUnit\Framework\TestCase;

class PathHelperTest extends \PHPUnit_Framework_TestCase
class PathHelperTest extends TestCase
{
// assertValidPath tests

Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/QOM/BaseSqlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace PHPCR\Tests\Util\QOM;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

abstract class BaseSqlGeneratorTest extends PHPUnit_Framework_TestCase
abstract class BaseSqlGeneratorTest extends TestCase
{
public function testNot()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/QOM/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use PHPCR\Query\QOM\SourceInterface;
use PHPCR\Util\QOM\QueryBuilder;
use PHPUnit_Framework_MockObject_MockObject;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use RuntimeException;

class QueryBuilderTest extends PHPUnit_Framework_TestCase
class QueryBuilderTest extends TestCase
{
/**
* @var PHPUnit_Framework_MockObject_MockObject|QueryObjectModelFactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/QOM/Sql1GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use DateTime;
use PHPCR\Util\QOM\Sql1Generator;
use PHPCR\Util\ValueConverter;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class Sql1GeneratorTest extends PHPUnit_Framework_TestCase
class Sql1GeneratorTest extends TestCase
{
/**
* @var Sql1Generator
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/QOM/Sql2ToQomQueryConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
use PHPCR\Util\QOM\Sql2ToQomQueryConverter;
use PHPCR\Util\ValueConverter;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class Sql2ToQomQueryConverterTest extends PHPUnit_Framework_TestCase
class Sql2ToQomQueryConverterTest extends TestCase
{
/**
* @var QueryObjectModelFactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/TraversingItemVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace PHPCR\Tests\Util;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class TraversingItemVisitorTest extends PHPUnit_Framework_TestCase
class TraversingItemVisitorTest extends TestCase
{
public function testVisitor()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/UUIDHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace PHPCR\Tests\Util;

use PHPCR\Util\UUIDHelper;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

class UUIDHelperTest extends PHPUnit_Framework_TestCase
class UUIDHelperTest extends TestCase
{
public function testGenerateUUID()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPCR/Tests/Util/ValueConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use PHPCR\Tests\Stubs\MockNode;
use PHPCR\Util\ValueConverter;
use PHPCR\ValueFormatException;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

require_once __DIR__.'/../Stubs/MockNode.php';

/**
* A test for the PHPCR\PropertyType class
*/
class ValueConverterTest extends PHPUnit_Framework_TestCase
class ValueConverterTest extends TestCase
{
/**
* @var ValueConverter
Expand Down