/**
 * get a full list of the traits used by a class or its parents
 *
 * @param  string $item
 *         the item to examine
 * @return string[]
 *         the class's traits list
 */
function get_class_traits($item)
{
    return GetClassTraits::from($item);
}
 /**
  * @covers ::from
  * @covers ::getTraits
  * @dataProvider provideEverythingElseToTest
  */
 public function testReturnsEmptyArrayForEverythingElse($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = GetClassTraits::from($data);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }