Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit d2a41e0

Browse files
author
Edson Medina
committed
Fixed old broken unit tests
1 parent e985f61 commit d2a41e0

File tree

53 files changed

+55
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+55
-76
lines changed

tests/AbstractIssueTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<?php
22

33
require_once __DIR__.'/../vendor/autoload.php';
4-
use edsonmedina\php_testability\AbstractIssue;
5-
use PhpParser\Node\Expr\Exit_;
64

7-
class AbstractIssueTest extends PHPUnit_Framework_TestCase
5+
class AbstractIssueTest extends PHPUnit\Framework\TestCase
86
{
97
/**
108
* @covers edsonmedina\php_testability\AbstractIssue::getLine

tests/AllTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class AllTests
66
{
77
public static function suite()
88
{
9-
$suite = new PHPUnit_Framework_TestSuite('PHP_Testability unit tests');
9+
$suite = new PHPUnit\Framework\TestSuite('PHP_Testability unit tests');
1010

1111
self::addDir(__DIR__, $suite);
1212

tests/AnalyserAbstractFactoryTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use edsonmedina\php_testability\AnalyserAbstractFactory;
55
use edsonmedina\php_testability\Contexts\DirectoryContext;
66

7-
class AnalyserAbstractFactoryTest extends PHPUnit_Framework_TestCase
7+
class AnalyserAbstractFactoryTest extends PHPUnit\Framework\TestCase
88
{
99
/**
1010
* @covers edsonmedina\php_testability\AnalyserAbstractFactory::createTraverser
@@ -14,9 +14,6 @@ public function testCreateTraverser ()
1414
{
1515
$factory = new AnalyserAbstractFactory();
1616

17-
$data_stub = $this->createMock('edsonmedina\php_testability\ReportDataInterface');
18-
$scope_stub = $this->createMock('edsonmedina\php_testability\AnalyserScope');
19-
2017
$traverser = $factory->createTraverser (new DirectoryContext('/'));
2118

2219
$this->assertInstanceOf ('PhpParser\NodeTraverser', $traverser);

tests/AnalyserFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_once __DIR__.'/../vendor/autoload.php';
44
use edsonmedina\php_testability\AnalyserFactory;
55

6-
class AnalyserFactoryTest extends PHPUnit_Framework_TestCase
6+
class AnalyserFactoryTest extends PHPUnit\Framework\TestCase
77
{
88
/**
99
* @covers edsonmedina\php_testability\AnalyserFactory::create

tests/ContextStackTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use edsonmedina\php_testability\Contexts\ClassContext;
99
use edsonmedina\php_testability\Contexts\FileSpecification;
1010

11-
class ContextStackTest extends PHPUnit_Framework_TestCase
11+
class ContextStackTest extends PHPUnit\Framework\TestCase
1212
{
1313
/**
1414
* @covers edsonmedina\php_testability\ContextStack::__construct

tests/Contexts/AnonymousFunctionContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use edsonmedina\php_testability\Contexts\AnonymousFunctionContext;
66

7-
class AnonymousFunctionContextTest extends PHPUnit_Framework_TestCase
7+
class AnonymousFunctionContextTest extends PHPUnit\Framework\TestCase
88
{
99
/**
1010
* @covers edsonmedina\php_testability\Contexts\AnonymousFunctionContext::__construct

tests/Contexts/ClassContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use edsonmedina\php_testability\Contexts\ClassContext;
66

7-
class ClassContextTest extends PHPUnit_Framework_TestCase
7+
class ClassContextTest extends PHPUnit\Framework\TestCase
88
{
99
/**
1010
* @covers edsonmedina\php_testability\Contexts\ClassContext::__construct

tests/Contexts/CollectionSpecificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use edsonmedina\php_testability\Contexts\FunctionContext;
1212
use edsonmedina\php_testability\Contexts\AnonymousFunctionContext;
1313

14-
class CollectionSpecificationTest extends PHPUnit_Framework_TestCase
14+
class CollectionSpecificationTest extends PHPUnit\Framework\TestCase
1515
{
1616
/**
1717
* @covers edsonmedina\php_testability\Contexts\CollectionSpecification::isSatisfiedBy

tests/Contexts/DirectoryContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use edsonmedina\php_testability\Contexts\DirectoryContext;
66

7-
class DirectoryContextTest extends PHPUnit_Framework_TestCase
7+
class DirectoryContextTest extends PHPUnit\Framework\TestCase
88
{
99
/**
1010
* @covers edsonmedina\php_testability\Contexts\DirectoryContext::__construct

tests/Contexts/DirectorySpecificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use edsonmedina\php_testability\Contexts\FileContext;
88
use edsonmedina\php_testability\Contexts\ClassContext;
99

10-
class DirectorySpecificationTest extends PHPUnit_Framework_TestCase
10+
class DirectorySpecificationTest extends PHPUnit\Framework\TestCase
1111
{
1212
/**
1313
* @covers edsonmedina\php_testability\Contexts\DirectorySpecification::isSatisfiedBy

0 commit comments

Comments
 (0)