Skip to content

Commit 91330d4

Browse files
committed
Upgrade phpunit to version 8
1 parent bc9b033 commit 91330d4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.php_cs.cache
2+
/.phpunit.result.cache
23
/composer.lock
34
/vendor

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"twilio/sdk": "6.*"
2121
},
2222
"require-dev": {
23-
"friendsofphp/php-cs-fixer": "^1.9",
23+
"friendsofphp/php-cs-fixer": "^2.0",
2424
"illuminate/console": "~4||~5",
2525
"illuminate/support": "~4||~5",
26-
"phpunit/phpunit": "~4.5"
26+
"phpunit/phpunit": "~8.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

phpunit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">
1514
<directory suffix=".php">./tests/</directory>
1615
</testsuite>
1716
</testsuites>
18-
</phpunit>
17+
</phpunit>

tests/TwilioCallCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
namespace Aloha\Twilio\Tests;
33

44
use Aloha\Twilio\Commands\TwilioCallCommand;
5-
use PHPUnit_Framework_TestCase;
5+
use PHPUnit\Framework\TestCase;
66

7-
class TwilioCallCommandTest extends PHPUnit_Framework_TestCase
7+
class TwilioCallCommandTest extends TestCase
88
{
99
/**
1010
* Test the name of the command
1111
*/
1212
public function testName()
1313
{
1414
// Arrange
15-
$stub = $this->getMock('Aloha\Twilio\TwilioInterface');
15+
$stub = $this->createMock('Aloha\Twilio\TwilioInterface');
1616
$command = new TwilioCallCommand($stub);
1717

1818
// Act

tests/TwilioSmsCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
namespace Aloha\Twilio\Tests;
33

44
use Aloha\Twilio\Commands\TwilioSmsCommand;
5-
use PHPUnit_Framework_TestCase;
5+
use PHPUnit\Framework\TestCase;
66

7-
class TwilioSmsCommandTest extends PHPUnit_Framework_TestCase
7+
class TwilioSmsCommandTest extends TestCase
88
{
99
/**
1010
* Test the name of the command
1111
*/
1212
public function testName()
1313
{
1414
// Arrange
15-
$stub = $this->getMock('Aloha\Twilio\TwilioInterface');
15+
$stub = $this->createMock('Aloha\Twilio\TwilioInterface');
1616
$command = new TwilioSmsCommand($stub);
1717

1818
// Act

0 commit comments

Comments
 (0)