Skip to content

Commit 38d351a

Browse files
gbprodsebastianbergmann
authored andcommitted
Fix occurences of PHPUnit_* namespaces
1 parent 744ed7f commit 38d351a

9 files changed

+131
-114
lines changed

src/assertions.rst

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,14 +2452,14 @@ assertThat()
24522452
############
24532453
24542454
More complex assertions can be formulated using the
2455-
``PHPUnit_Framework_Constraint`` classes. They can be
2455+
``PHPUnit\Framework\Constraint`` classes. They can be
24562456
evaluated using the ``assertThat()`` method.
24572457
:numref:`appendixes.assertions.assertThat.example` shows how the
24582458
``logicalNot()`` and ``equalTo()``
24592459
constraints can be used to express the same assertion as
24602460
``assertNotEquals()``.
24612461
2462-
``assertThat(mixed $value, PHPUnit_Framework_Constraint $constraint[, $message = ''])``
2462+
``assertThat(mixed $value, PHPUnit\Framework\Constraint $constraint[, $message = ''])``
24632463
24642464
Reports an error identified by ``$message`` if the ``$value`` does not match the ``$constraint``.
24652465
@@ -2488,7 +2488,7 @@ Reports an error identified by ``$message`` if the ``$value`` does not match the
24882488
?>
24892489
24902490
:numref:`appendixes.assertions.assertThat.tables.constraints` shows the
2491-
available ``PHPUnit_Framework_Constraint`` classes.
2491+
available ``PHPUnit\Framework\Constraint`` classes.
24922492
24932493
.. rst-class:: table
24942494
.. list-table:: Constraints
@@ -2497,71 +2497,71 @@ available ``PHPUnit_Framework_Constraint`` classes.
24972497
24982498
* - Constraint
24992499
- Meaning
2500-
* - ``PHPUnit_Framework_Constraint_Attribute attribute(PHPUnit_Framework_Constraint $constraint, $attributeName)``
2500+
* - ``PHPUnit\Framework\Constraint\Attribute attribute(PHPUnit\Framework\Constraint $constraint, $attributeName)``
25012501
- Constraint that applies another constraint to an attribute of a class or an object.
2502-
* - ``PHPUnit_Framework_Constraint_IsAnything anything()``
2502+
* - ``PHPUnit\Framework\Constraint\IsAnything anything()``
25032503
- Constraint that accepts any input value.
2504-
* - ``PHPUnit_Framework_Constraint_ArrayHasKey arrayHasKey(mixed $key)``
2504+
* - ``PHPUnit\Framework\Constraint\ArrayHasKey arrayHasKey(mixed $key)``
25052505
- Constraint that asserts that the array it is evaluated for has a given key.
2506-
* - ``PHPUnit_Framework_Constraint_TraversableContains contains(mixed $value)``
2506+
* - ``PHPUnit\Framework\Constraint\TraversableContains contains(mixed $value)``
25072507
- Constraint that asserts that the ``array`` or object that implements the ``Iterator`` interface it is evaluated for contains a given value.
2508-
* - ``PHPUnit_Framework_Constraint_TraversableContainsOnly containsOnly(string $type)``
2508+
* - ``PHPUnit\Framework\Constraint\TraversableContainsOnly containsOnly(string $type)``
25092509
- Constraint that asserts that the ``array`` or object that implements the ``Iterator`` interface it is evaluated for contains only values of a given type.
2510-
* - ``PHPUnit_Framework_Constraint_TraversableContainsOnly containsOnlyInstancesOf(string $classname)``
2510+
* - ``PHPUnit\Framework\Constraint\TraversableContainsOnly containsOnlyInstancesOf(string $classname)``
25112511
- Constraint that asserts that the ``array`` or object that implements the ``Iterator`` interface it is evaluated for contains only instances of a given classname.
2512-
* - ``PHPUnit_Framework_Constraint_IsEqual equalTo($value, $delta = 0, $maxDepth = 10)``
2512+
* - ``PHPUnit\Framework\Constraint\IsEqual equalTo($value, $delta = 0, $maxDepth = 10)``
25132513
- Constraint that checks if one value is equal to another.
2514-
* - ``PHPUnit_Framework_Constraint_Attribute attributeEqualTo($attributeName, $value, $delta = 0, $maxDepth = 10)``
2514+
* - ``PHPUnit\Framework\Constraint\Attribute attributeEqualTo($attributeName, $value, $delta = 0, $maxDepth = 10)``
25152515
- Constraint that checks if a value is equal to an attribute of a class or of an object.
2516-
* - ``PHPUnit_Framework_Constraint_DirectoryExists directoryExists()``
2516+
* - ``PHPUnit\Framework\Constraint\DirectoryExists directoryExists()``
25172517
- Constraint that checks if the directory that it is evaluated for exists.
2518-
* - ``PHPUnit_Framework_Constraint_FileExists fileExists()``
2518+
* - ``PHPUnit\Framework\Constraint\FileExists fileExists()``
25192519
- Constraint that checks if the file(name) that it is evaluated for exists.
2520-
* - ``PHPUnit_Framework_Constraint_IsReadable isReadable()``
2520+
* - ``PHPUnit\Framework\Constraint\IsReadable isReadable()``
25212521
- Constraint that checks if the file(name) that it is evaluated for is readable.
2522-
* - ``PHPUnit_Framework_Constraint_IsWritable isWritable()``
2522+
* - ``PHPUnit\Framework\Constraint\IsWritable isWritable()``
25232523
- Constraint that checks if the file(name) that it is evaluated for is writable.
2524-
* - ``PHPUnit_Framework_Constraint_GreaterThan greaterThan(mixed $value)``
2524+
* - ``PHPUnit\Framework\Constraint\GreaterThan greaterThan(mixed $value)``
25252525
- Constraint that asserts that the value it is evaluated for is greater than a given value.
2526-
* - ``PHPUnit_Framework_Constraint_Or greaterThanOrEqual(mixed $value)``
2526+
* - ``PHPUnit\Framework\Constraint\Or greaterThanOrEqual(mixed $value)``
25272527
- Constraint that asserts that the value it is evaluated for is greater than or equal to a given value.
2528-
* - ``PHPUnit_Framework_Constraint_ClassHasAttribute classHasAttribute(string $attributeName)``
2528+
* - ``PHPUnit\Framework\Constraint\ClassHasAttribute classHasAttribute(string $attributeName)``
25292529
- Constraint that asserts that the class it is evaluated for has a given attribute.
2530-
* - ``PHPUnit_Framework_Constraint_ClassHasStaticAttribute classHasStaticAttribute(string $attributeName)``
2530+
* - ``PHPUnit\Framework\Constraint\ClassHasStaticAttribute classHasStaticAttribute(string $attributeName)``
25312531
- Constraint that asserts that the class it is evaluated for has a given static attribute.
2532-
* - ``PHPUnit_Framework_Constraint_ObjectHasAttribute hasAttribute(string $attributeName)``
2532+
* - ``PHPUnit\Framework\Constraint\ObjectHasAttribute hasAttribute(string $attributeName)``
25332533
- Constraint that asserts that the object it is evaluated for has a given attribute.
2534-
* - ``PHPUnit_Framework_Constraint_IsIdentical identicalTo(mixed $value)``
2534+
* - ``PHPUnit\Framework\Constraint\IsIdentical identicalTo(mixed $value)``
25352535
- Constraint that asserts that one value is identical to another.
2536-
* - ``PHPUnit_Framework_Constraint_IsFalse isFalse()``
2536+
* - ``PHPUnit\Framework\Constraint\IsFalse isFalse()``
25372537
- Constraint that asserts that the value it is evaluated is ``false``.
2538-
* - ``PHPUnit_Framework_Constraint_IsInstanceOf isInstanceOf(string $className)``
2538+
* - ``PHPUnit\Framework\Constraint\IsInstanceOf isInstanceOf(string $className)``
25392539
- Constraint that asserts that the object it is evaluated for is an instance of a given class.
2540-
* - ``PHPUnit_Framework_Constraint_IsNull isNull()``
2540+
* - ``PHPUnit\Framework\Constraint\IsNull isNull()``
25412541
- Constraint that asserts that the value it is evaluated is ``null``.
2542-
* - ``PHPUnit_Framework_Constraint_IsTrue isTrue()``
2542+
* - ``PHPUnit\Framework\Constraint\IsTrue isTrue()``
25432543
- Constraint that asserts that the value it is evaluated is ``true``.
2544-
* - ``PHPUnit_Framework_Constraint_IsType isType(string $type)``
2544+
* - ``PHPUnit\Framework\Constraint\IsType isType(string $type)``
25452545
- Constraint that asserts that the value it is evaluated for is of a specified type.
2546-
* - ``PHPUnit_Framework_Constraint_LessThan lessThan(mixed $value)``
2546+
* - ``PHPUnit\Framework\Constraint\LessThan lessThan(mixed $value)``
25472547
- Constraint that asserts that the value it is evaluated for is smaller than a given value.
2548-
* - ``PHPUnit_Framework_Constraint_Or lessThanOrEqual(mixed $value)``
2548+
* - ``PHPUnit\Framework\Constraint\Or lessThanOrEqual(mixed $value)``
25492549
- Constraint that asserts that the value it is evaluated for is smaller than or equal to a given value.
25502550
* - ``logicalAnd()``
25512551
- Logical AND.
2552-
* - ``logicalNot(PHPUnit_Framework_Constraint $constraint)``
2552+
* - ``logicalNot(PHPUnit\Framework\Constraint $constraint)``
25532553
- Logical NOT.
25542554
* - ``logicalOr()``
25552555
- Logical OR.
25562556
* - ``logicalXor()``
25572557
- Logical XOR.
2558-
* - ``PHPUnit_Framework_Constraint_PCREMatch matchesRegularExpression(string $pattern)``
2558+
* - ``PHPUnit\Framework\Constraint\PCREMatch matchesRegularExpression(string $pattern)``
25592559
- Constraint that asserts that the string it is evaluated for matches a regular expression.
2560-
* - ``PHPUnit_Framework_Constraint_StringContains stringContains(string $string, bool $case)``
2560+
* - ``PHPUnit\Framework\Constraint\StringContains stringContains(string $string, bool $case)``
25612561
- Constraint that asserts that the string it is evaluated for contains a given string.
2562-
* - ``PHPUnit_Framework_Constraint_StringEndsWith stringEndsWith(string $suffix)``
2562+
* - ``PHPUnit\Framework\Constraint\StringEndsWith stringEndsWith(string $suffix)``
25632563
- Constraint that asserts that the string it is evaluated for ends with a given suffix.
2564-
* - ``PHPUnit_Framework_Constraint_StringStartsWith stringStartsWith(string $prefix)``
2564+
* - ``PHPUnit\Framework\Constraint\StringStartsWith stringStartsWith(string $prefix)``
25652565
- Constraint that asserts that the string it is evaluated for starts with a given prefix.
25662566
25672567
.. _appendixes.assertions.assertTrue:

src/code-coverage-analysis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ generate code coverage with unit tests.
283283
:name: code-coverage-analysis.specifying-covered-methods.examples.GuestbookIntegrationTest.php
284284
285285
<?php
286-
use PHPUnit\Framework\TestCase;
286+
use PHPUnit\DbUnit\TestCase
287287
288-
class GuestbookIntegrationTest extends PHPUnit_Extensions_Database_TestCase
288+
class GuestbookIntegrationTest extends TestCase
289289
{
290290
/**
291291
* @coversNothing

src/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ be used to configure PHPUnit's core functionality.
2929
convertWarningsToExceptions="true"
3030
forceCoversAnnotation="false"
3131
mapTestClassNameToCoveredClassName="false"
32-
printerClass="PHPUnit_TextUI_ResultPrinter"
32+
printerClass="PHPUnit\TextUI\ResultPrinter"
3333
<!--printerFile="/path/to/ResultPrinter.php"-->
3434
processIsolation="false"
3535
stopOnError="false"
3636
stopOnFailure="false"
3737
stopOnIncomplete="false"
3838
stopOnSkipped="false"
3939
stopOnRisky="false"
40-
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
40+
testSuiteLoaderClass="PHPUnit\Runner\StandardTestSuiteLoader"
4141
<!--testSuiteLoaderFile="/path/to/StandardTestSuiteLoader.php"-->
4242
timeoutForSmallTests="1"
4343
timeoutForMediumTests="10"

0 commit comments

Comments
 (0)