className = 'ezcWebdavServerOptions'; $this->defaultValues = array( 'realm' => 'eZ Components WebDAV', ); $this->workingValues = array( 'realm' => array( 'Some nice realm.', ' ', '23', '' ), ); $this->failingValues = array( 'realm' => array( null, true, false, 23, -42.23, array(), new stdClass(), ), ); } public function testCtorSuccess() { $class = new ReflectionClass( $this->className ); $object = $class->newInstance(); $this->assertPropertyValues( $object, $this->defaultValues ); } } ?>