| 1 | <?php |
||
| 24 | final class ObjectArgumentExceptionTest extends PHPUnit_Framework_TestCase { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Tests the __construct() method. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function testConstruct() { |
||
| 32 | |||
| 33 | $ex = new ObjectArgumentException("exception"); |
||
| 34 | |||
| 35 | $res = "The argument \"exception\" is not an object"; |
||
| 36 | $this->assertEquals($res, $ex->getMessage()); |
||
| 37 | } |
||
| 38 | |||
| 39 | } |
||
| 40 |