PEAR2_Net_RouterOS-1.0.0b1PEAR2_Net_RouterOS-1.0.0b1/tests/StreamTransmitterTest.php

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