assertFalse( $opts->refetch ); } public function testCtorArgs() { $opts = new ezcPersistentSessionIdentityDecoratorOptions( array( 'refetch' => true ) ); $this->assertTrue( $opts->refetch ); } public function testGetAccessSuccess() { $opts = new ezcPersistentSessionIdentityDecoratorOptions(); $this->assertFalse( $opts->refetch ); } public function testGetAccessFailure() { $opts = new ezcPersistentSessionIdentityDecoratorOptions(); try { echo $opts->fooBar; $this->fail( 'Exception not thrown on get access to non-existent property.' ); } catch ( ezcBasePropertyNotFoundException $e ) {} } public function testIssetAccess() { $opts = new ezcPersistentSessionIdentityDecoratorOptions(); $this->assertTrue( isset( $opts->refetch ) ); $this->assertFalse( isset( $opts->fooBar ) ); } public function testSetAccessSuccess() { $opts = new ezcPersistentSessionIdentityDecoratorOptions(); $this->assertSetProperty( $opts, 'refetch', array( true, false ) ); } public function testSetAccessFailure() { $opts = new ezcPersistentSessionIdentityDecoratorOptions(); $this->assertSetPropertyFails( $opts, 'refetch', array( null, 23, 42.23, 'foo', array(), new stdClass() ) ); } } ?>