options = new ezcWorkflowDatabaseOptions; } public function testOptions() { $this->assertTrue( isset( $this->options['prefix'] ) ); $this->assertEquals( '', $this->options['prefix'] ); $this->options['prefix'] = 'myPrefix'; $this->assertEquals( 'myPrefix', $this->options['prefix'] ); } public function testOptions2() { try { $this->options['prefix'] = null; } catch ( ezcBaseValueException $e ) { $this->assertEquals( 'The value \'\' that you were trying to assign to setting \'prefix\' is invalid. Allowed values are: string.', $e->getMessage() ); return; } $this->fail( 'Expected an ezcBaseValueException to be thrown.' ); } public function testOptions3() { try { $this->options['foo'] = 'bar'; } catch ( ezcBasePropertyNotFoundException $e ) { $this->assertEquals( 'No such property name \'foo\'.', $e->getMessage() ); return; } $this->fail( 'Expected an ezcBasePropertyNotFoundException to be thrown.' ); } } ?>