Skip to content

Commit

Permalink
Adjust PHPUnit Framework namespace for PHPUnit6
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Apr 1, 2019
1 parent 1429132 commit c4432d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/acceptance/features/bootstrap/TextEditorContext.php
Expand Up @@ -79,7 +79,7 @@ public function createATextFileWithTheNameUsingTheWebUI(
public function nearTheNewTextFileBoxATooltipShouldBeDisplayedOnTheWebUI(
$toolTipText
) {
PHPUnit_Framework_Assert::assertEquals(
PHPUnit\Framework\Assert::assertEquals(
$toolTipText,
$this->textEditorPage->getTooltipOfNewTextFileBox()
);
Expand Down Expand Up @@ -124,7 +124,7 @@ public function theUserInputsTheFollowingInTheTextArea(
* @return void
*/
public function thereShouldBeLinesOfTextInTheTextArea($number) {
PHPUnit_Framework_Assert::assertEquals(
PHPUnit\Framework\Assert::assertEquals(
$number,
\count($this->textEditorPage->textFileContent())
);
Expand All @@ -141,7 +141,7 @@ public function thereShouldBeLinesOfTextInTheTextArea($number) {
public function lineOfTheTextShouldBe($number, $text) {
$lineIndex = $number - 1;
$textFileContent = $this->textEditorPage->textFileContent();
PHPUnit_Framework_Assert::assertEquals(
PHPUnit\Framework\Assert::assertEquals(
$text,
$textFileContent[$lineIndex]
);
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/controller/filehandlingcontrollerTest.php
Expand Up @@ -35,16 +35,16 @@ class FileHandlingControllerTest extends TestCase {
/** @var string */
protected $appName;

/** @var \OCP\IRequest | \PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IRequest | \PHPUnit\Framework\MockObject\MockObject */
protected $requestMock;

/** @var \OCP\IL10N | \PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IL10N | \PHPUnit\Framework\MockObject\MockObject */
private $l10nMock;

/** @var \OCP\ILogger | \PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\ILogger | \PHPUnit\Framework\MockObject\MockObject */
private $loggerMock;

/** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */
/** @var \OC\Files\View | \PHPUnit\Framework\MockObject\MockObject */
private $viewMock;

public function setUp() {
Expand Down

0 comments on commit c4432d6

Please sign in to comment.