Skip to content

Commit

Permalink
Corrects syntax for PHPUnit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Mar 22, 2018
1 parent e222b86 commit 110abd5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
* - Compare speed versus simpletest.
* - move upal_init() to a class thats called early in the suite.
*/

namespace NT\Drupal\Testing\PHPUnit;

use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestResult;

/*
* @todo: Perhaps move these annotations down to the instance classes and tests.
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
*/
abstract class DrupalTestCase extends \PHPUnit_Framework_TestCase {
abstract class DrupalTestCase extends TestCase {

/**
* The profile to install as a basis for testing.
Expand Down Expand Up @@ -150,7 +155,7 @@ abstract class DrupalTestCase extends \PHPUnit_Framework_TestCase {
*/
protected $redirect_count;

public function run(\PHPUnit_Framework_TestResult $result = NULL) {
public function run(TestResult $result = NULL) {
$this->setPreserveGlobalState(FALSE);
return parent::run($result);
}
Expand Down

0 comments on commit 110abd5

Please sign in to comment.