-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
tests/phpunit/Unit/Exception/ServiceAliasAssignmentExceptionTest.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 | ||
|
||
namespace Onoi\CallbackContainer\Tests\Exception; | ||
|
||
use Onoi\CallbackContainer\Exception\ServiceAliasAssignmentException; | ||
|
||
/** | ||
* @covers \Onoi\CallbackContainer\Exception\ServiceAliasAssignmentException | ||
* @group onoi-callback-container | ||
* | ||
* @license GNU GPL v2+ | ||
* @since 2.0 | ||
* | ||
* @author mwjames | ||
*/ | ||
class ServiceAliasAssignmentExceptionTest extends \PHPUnit_Framework_TestCase { | ||
|
||
public function testCanConstruct() { | ||
|
||
$this->assertInstanceOf( | ||
'\Onoi\CallbackContainer\Exception\ServiceAliasAssignmentException', | ||
new ServiceAliasAssignmentException( 'foo' ) | ||
); | ||
|
||
$this->assertInstanceOf( | ||
'\RuntimeException', | ||
new ServiceAliasAssignmentException( 'foo' ) | ||
); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
tests/phpunit/Unit/Exception/ServiceAliasCrossAssignmentExceptionTest.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 | ||
|
||
namespace Onoi\CallbackContainer\Tests\Exception; | ||
|
||
use Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException; | ||
|
||
/** | ||
* @covers \Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException | ||
* @group onoi-callback-container | ||
* | ||
* @license GNU GPL v2+ | ||
* @since 2.0 | ||
* | ||
* @author mwjames | ||
*/ | ||
class ServiceAliasCrossAssignmentExceptionTest extends \PHPUnit_Framework_TestCase { | ||
|
||
public function testCanConstruct() { | ||
|
||
$this->assertInstanceOf( | ||
'\Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException', | ||
new ServiceAliasCrossAssignmentException( 'foo', 'Bar', 'Foobar' ) | ||
); | ||
|
||
$this->assertInstanceOf( | ||
'\RuntimeException', | ||
new ServiceAliasCrossAssignmentException( 'foo', 'Bar', 'Foobar' ) | ||
); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
tests/phpunit/Unit/Exception/ServiceAliasMismatchExceptionTest.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 | ||
|
||
namespace Onoi\CallbackContainer\Tests\Exception; | ||
|
||
use Onoi\CallbackContainer\Exception\ServiceAliasMismatchException; | ||
|
||
/** | ||
* @covers \Onoi\CallbackContainer\Exception\ServiceAliasMismatchException | ||
* @group onoi-callback-container | ||
* | ||
* @license GNU GPL v2+ | ||
* @since 2.0 | ||
* | ||
* @author mwjames | ||
*/ | ||
class ServiceAliasMismatchExceptionTest extends \PHPUnit_Framework_TestCase { | ||
|
||
public function testCanConstruct() { | ||
|
||
$this->assertInstanceOf( | ||
'\Onoi\CallbackContainer\Exception\ServiceAliasMismatchException', | ||
new ServiceAliasMismatchException( 'foo' ) | ||
); | ||
|
||
$this->assertInstanceOf( | ||
'\RuntimeException', | ||
new ServiceAliasMismatchException( 'foo' ) | ||
); | ||
} | ||
|
||
} |