-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #942 from LeSuisse/phpunit-8
Add support for PHPUnit 8.0
- Loading branch information
Showing
34 changed files
with
360 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ phpunit.xml | |
.php_cs.cache | ||
docs/api | ||
phpDocumentor.phar* | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditionsForV7AndPrevious.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Mockery | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://github.com/padraic/mockery/blob/master/LICENSE | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to padraic@php.net so we can send you a copy immediately. | ||
* | ||
* @category Mockery | ||
* @package Mockery | ||
* @copyright Copyright (c) 2019 Enalean | ||
* @license https://github.com/mockery/mockery/blob/master/LICENSE New BSD License | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Mockery\Adapter\Phpunit; | ||
|
||
trait MockeryPHPUnitIntegrationAssertPostConditionsForV7AndPrevious | ||
{ | ||
protected function assertPostConditions() | ||
{ | ||
$this->mockeryAssertPostConditions(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditionsForV8.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Mockery | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://github.com/padraic/mockery/blob/master/LICENSE | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to padraic@php.net so we can send you a copy immediately. | ||
* | ||
* @category Mockery | ||
* @package Mockery | ||
* @copyright Copyright (c) 2019 Enalean | ||
* @license https://github.com/mockery/mockery/blob/master/LICENSE New BSD License | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Mockery\Adapter\Phpunit; | ||
|
||
trait MockeryPHPUnitIntegrationAssertPostConditionsForV8 | ||
{ | ||
protected function assertPostConditions() : void | ||
{ | ||
$this->mockeryAssertPostConditions(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
library/Mockery/Adapter/Phpunit/MockeryTestCaseSetUpForV7AndPrevious.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* Mockery | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://github.com/padraic/mockery/blob/master/LICENSE | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to padraic@php.net so we can send you a copy immediately. | ||
* | ||
* @category Mockery | ||
* @package Mockery | ||
* @copyright Copyright (c) 2019 Enalean | ||
* @license https://github.com/mockery/mockery/blob/master/LICENSE New BSD License | ||
*/ | ||
|
||
namespace Mockery\Adapter\Phpunit; | ||
|
||
trait MockeryTestCaseSetUpForV7AndPrevious | ||
{ | ||
protected function setUp() | ||
{ | ||
parent::setUp(); | ||
$this->mockeryTestSetUp(); | ||
} | ||
|
||
protected function tearDown() | ||
{ | ||
$this->mockeryTestTearDown(); | ||
parent::tearDown(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
library/Mockery/Adapter/Phpunit/MockeryTestCaseSetUpForV8.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* Mockery | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://github.com/padraic/mockery/blob/master/LICENSE | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to padraic@php.net so we can send you a copy immediately. | ||
* | ||
* @category Mockery | ||
* @package Mockery | ||
* @copyright Copyright (c) 2019 Enalean | ||
* @license https://github.com/mockery/mockery/blob/master/LICENSE New BSD License | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Mockery\Adapter\Phpunit; | ||
|
||
trait MockeryTestCaseSetUpForV8 | ||
{ | ||
protected function setUp() : void | ||
{ | ||
parent::setUp(); | ||
$this->mockeryTestSetUp(); | ||
} | ||
|
||
protected function tearDown() : void | ||
{ | ||
$this->mockeryTestTearDown(); | ||
parent::tearDown(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.