File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
33use Mockery as m ;
4+ use PHPUnit \Framework \TestCase ;
45use 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
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use SimpleSoftwareIO \QrCode \DataTypes \BTC ;
45
5- class BTCTest extends \PHPUnit_Framework_TestCase
6+ class BTCTest extends TestCase
67{
78 public function setUp ()
89 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use SimpleSoftwareIO \QrCode \DataTypes \Email ;
45
5- class EmailTest extends \PHPUnit_Framework_TestCase
6+ class EmailTest extends TestCase
67{
78 public function setUp ()
89 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use 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 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use 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 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use SimpleSoftwareIO \QrCode \DataTypes \SMS ;
45
5- class SMSTest extends \PHPUnit_Framework_TestCase
6+ class SMSTest extends TestCase
67{
78 public function setUp ()
89 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use SimpleSoftwareIO \QrCode \DataTypes \WiFi ;
45
5- class WiFiTest extends \PHPUnit_Framework_TestCase
6+ class WiFiTest extends TestCase
67{
78 public function setUp ()
89 {
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use SimpleSoftwareIO \QrCode \Image ;
45use 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.
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use 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.
You can’t perform that action at this time.
0 commit comments