PEAR2_Net_Transmitter-1.0.0a1 › PEAR2_Net_Transmitter-1.0.0a1/tests/StreamTransmitterTest.php
- PEAR2_Net_Transmitter-1.0.0a1/
- package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
namespace PEAR2\Net\Transmitter;
class RequestHandlingTest extends \PHPUnit_Framework_TestCase
{
public function testDefaultStreamTransmitterException()
{
try {
$trans = new StreamTransmitter('invalid arg');
$this->fail('Transmitter initialization had to fail.');
} catch (\Exception $e) {
$this->assertEquals(1, $e->getCode(), 'Improper exception code.');
}
}
}EOF
