assertEquals( 5, $options->timeout ); $this->assertEquals( false, $options->ssl ); } public function testTransportOptionsSet() { $options = new ezcMailTransportOptions(); $options->timeout = 10; $options->ssl = true; $this->assertEquals( 10, $options->timeout ); $this->assertEquals( true, $options->ssl ); } public function testTransportOptionsSetInvalid() { $options = new ezcMailTransportOptions(); try { $options->timeout = 0; $this->fail( "Expected exception was not thrown" ); } catch ( ezcBaseValueException $e ) { } try { $options->timeout = 'xxx'; $this->fail( "Expected exception was not thrown" ); } catch ( ezcBaseValueException $e ) { } try { $options->ssl = 'xxx'; $this->fail( "Expected exception was not thrown" ); } catch ( ezcBaseValueException $e ) { } } public function testTransportOptionsSetNotExistent() { $options = new ezcMailTransportOptions(); try { $options->no_such_option = 'xxx'; $this->fail( "Expected exception was not thrown" ); } catch ( ezcBasePropertyNotFoundException $e ) { } } public static function suite() { return new PHPUnit_Framework_TestSuite( "ezcMailTransportOptionsTest" ); } } ?>