public static function fetchProperty($object, $name) { $reflection = new \ReflectionClass($object); $property = $reflection->getProperty($name); $property->setAccessible(true); return $property->getValue($object); }
public function testMysqlFunc() { $table = TestHelper::fetchProperty($this->change, 'mysqlTable'); foreach ($table as $name => $dummy) { $this->assertHasSpot($name . '();'); } }