Skip to content

Commit 45054cb

Browse files
author
Corey McCormick
committed
Update to PHPunit 6
1 parent 7ef84a5 commit 45054cb

9 files changed

Lines changed: 22 additions & 9 deletions

File tree

tests/BaconQrCodeGeneratorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?php
22

33
use Mockery as m;
4+
use PHPUnit\Framework\TestCase;
45
use SimpleSoftwareIO\QrCode\BaconQrCodeGenerator;
56

6-
class BaconQrCodeGeneratorTest extends \PHPUnit_Framework_TestCase
7+
class BaconQrCodeGeneratorTest extends TestCase
78
{
89
public function tearDown()
910
{
11+
if ($container = m::getContainer()) {
12+
$this->addToAssertionCount($container->mockery_getExpectationCount());
13+
}
14+
1015
m::close();
1116
}
1217

tests/DataTypes/BTCTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\BTC;
45

5-
class BTCTest extends \PHPUnit_Framework_TestCase
6+
class BTCTest extends TestCase
67
{
78
public function setUp()
89
{

tests/DataTypes/EmailTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\Email;
45

5-
class EmailTest extends \PHPUnit_Framework_TestCase
6+
class EmailTest extends TestCase
67
{
78
public function setUp()
89
{

tests/DataTypes/GeoTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\Geo;
45

5-
class GeoTest extends \PHPUnit_Framework_TestCase
6+
class GeoTest extends TestCase
67
{
78
public function test_it_generates_the_proper_format_for_a_geo_coordinate()
89
{

tests/DataTypes/PhoneNumberTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\PhoneNumber;
45

5-
class PhoneNumberTest extends \PHPUnit_Framework_TestCase
6+
class PhoneNumberTest extends TestCase
67
{
78
public function test_it_generates_the_proper_format_for_calling_a_phone_number()
89
{

tests/DataTypes/SMSTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\SMS;
45

5-
class SMSTest extends \PHPUnit_Framework_TestCase
6+
class SMSTest extends TestCase
67
{
78
public function setUp()
89
{

tests/DataTypes/WiFiTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\DataTypes\WiFi;
45

5-
class WiFiTest extends \PHPUnit_Framework_TestCase
6+
class WiFiTest extends TestCase
67
{
78
public function setUp()
89
{

tests/ImageMergeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\Image;
45
use SimpleSoftwareIO\QrCode\ImageMerge;
56

6-
class ImageMergeTest extends \PHPUnit_Framework_TestCase
7+
class ImageMergeTest extends TestCase
78
{
89
/**
910
* The location to save the testing image.

tests/ImageTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use SimpleSoftwareIO\QrCode\Image;
45

5-
class ImageTest extends \PHPUnit_Framework_TestCase
6+
class ImageTest extends TestCase
67
{
78
/**
89
* The location to save the testing image.

0 commit comments

Comments
 (0)