1<?php
2/**
3 * @author Jean Carlo Machado <contato@jeancarlomachado.com.br>
4 */
5class Test extends PHPUnit_Framework_TestCase
6{
7    public function testOne()
8    {
9        $this->expectExceptionMessage('message');
10
11        throw new Exception('message');
12    }
13
14    public function testTwo()
15    {
16        $this->expectExceptionCode(123);
17
18        throw new Exception('message', 123);
19    }
20}
21