Add pear modules, mail and net_smtp via composer (#93)
Add pear modules, mail and net_smtp via composer, remove php 5.6 build due to phpunit 6
This commit is contained in:
@@ -292,18 +292,12 @@ class CodeCoverageTest extends TestCase
|
||||
$coverage->getData()
|
||||
);
|
||||
|
||||
if (version_compare(\PHPUnit_Runner_Version::id(), '4.7', '>=')) {
|
||||
$size = 'unknown';
|
||||
} else {
|
||||
$size = 'small';
|
||||
}
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
'BankAccountTest::testBalanceIsInitiallyZero' => ['size' => $size, 'status' => null],
|
||||
'BankAccountTest::testBalanceCannotBecomeNegative' => ['size' => $size, 'status' => null],
|
||||
'BankAccountTest::testBalanceCannotBecomeNegative2' => ['size' => $size, 'status' => null],
|
||||
'BankAccountTest::testDepositWithdrawMoney' => ['size' => $size, 'status' => null]
|
||||
'BankAccountTest::testBalanceIsInitiallyZero' => ['size' => 'unknown', 'status' => null],
|
||||
'BankAccountTest::testBalanceCannotBecomeNegative' => ['size' => 'unknown', 'status' => null],
|
||||
'BankAccountTest::testBalanceCannotBecomeNegative2' => ['size' => 'unknown', 'status' => null],
|
||||
'BankAccountTest::testDepositWithdrawMoney' => ['size' => 'unknown', 'status' => null]
|
||||
],
|
||||
$coverage->getTests()
|
||||
);
|
||||
@@ -430,8 +424,6 @@ class CodeCoverageTest extends TestCase
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
@@ -478,7 +470,28 @@ class CodeCoverageTest extends TestCase
|
||||
$this->coverage->setDisableIgnoredLines(true);
|
||||
|
||||
$this->assertEquals(
|
||||
[],
|
||||
[
|
||||
7,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
26,
|
||||
27,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
37
|
||||
],
|
||||
$this->getLinesToBeIgnored()->invoke(
|
||||
$this->coverage,
|
||||
TEST_FILES_PATH . 'source_with_ignore.php'
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
|
||||
namespace SebastianBergmann\CodeCoverage;
|
||||
|
||||
class FilterTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FilterTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var Filter
|
||||
|
||||
@@ -10,10 +10,12 @@
|
||||
|
||||
namespace SebastianBergmann\CodeCoverage;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers SebastianBergmann\CodeCoverage\Util
|
||||
*/
|
||||
class UtilTest extends \PHPUnit_Framework_TestCase
|
||||
class UtilTest extends TestCase
|
||||
{
|
||||
public function testPercent()
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ class XMLTest extends TestCase
|
||||
{
|
||||
$expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForBankAccount';
|
||||
|
||||
$xml = new Facade;
|
||||
$xml = new Facade('1.0.0');
|
||||
$xml->process($this->getCoverageForBankAccount(), self::$TEST_TMP_PATH);
|
||||
|
||||
$this->assertFilesEquals($expectedFilesPath, self::$TEST_TMP_PATH);
|
||||
@@ -49,7 +49,7 @@ class XMLTest extends TestCase
|
||||
{
|
||||
$expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForFileWithIgnoredLines';
|
||||
|
||||
$xml = new Facade;
|
||||
$xml = new Facade('1.0.0');
|
||||
$xml->process($this->getCoverageForFileWithIgnoredLines(), self::$TEST_TMP_PATH);
|
||||
|
||||
$this->assertFilesEquals($expectedFilesPath, self::$TEST_TMP_PATH);
|
||||
@@ -57,10 +57,9 @@ class XMLTest extends TestCase
|
||||
|
||||
public function testForClassWithAnonymousFunction()
|
||||
{
|
||||
$expectedFilesPath =
|
||||
self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForClassWithAnonymousFunction';
|
||||
$expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForClassWithAnonymousFunction';
|
||||
|
||||
$xml = new Facade;
|
||||
$xml = new Facade('1.0.0');
|
||||
$xml->process($this->getCoverageForClassWithAnonymousFunction(), self::$TEST_TMP_PATH);
|
||||
|
||||
$this->assertFilesEquals($expectedFilesPath, self::$TEST_TMP_PATH);
|
||||
|
||||
Reference in New Issue
Block a user