public function getMeasurementType() { return MeasurementType::model()->findByClassName(get_class($this)); }
public function testfindByClassName() { $this->assertEquals($this->measurement_type('height'), MeasurementType::model()->findByClassName('MeasurementTest_HeightMeasurement')); }