Skip to content

Commit

Permalink
Marked some test classes abstract
Browse files Browse the repository at this point in the history
1. SchemaManagerFunctionalTestCase can be run only via an extending class. Otherwise, it skips all tests. If the test case is represented as an abstract class, PhpStorm will offer a choise of concrete classes which is very handy when debugging test failures.
2. DbalFunctionalTestCase and DbalPerformanceTestCase are meant to be used as base classes and don't contain any tests.
  • Loading branch information
morozov committed Feb 23, 2019
1 parent 29c7ba6 commit b0ed680
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
use function strtolower;
use function substr;

class SchemaManagerFunctionalTestCase extends DbalFunctionalTestCase
abstract class SchemaManagerFunctionalTestCase extends DbalFunctionalTestCase
{
/** @var AbstractSchemaManager */
protected $schemaManager;
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/DbalFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use function strpos;
use function var_export;

class DbalFunctionalTestCase extends DbalTestCase
abstract class DbalFunctionalTestCase extends DbalTestCase
{
/**
* Shared connection when a TestCase is run alone (outside of it's functional suite)
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/DbalPerformanceTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* and stopTiming at the end of all tests. Tests that do not start or stop
* timing will fail.
*/
class DbalPerformanceTestCase extends DbalFunctionalTestCase
abstract class DbalPerformanceTestCase extends DbalFunctionalTestCase
{
/**
* time the test started
Expand Down

0 comments on commit b0ed680

Please sign in to comment.