/**
  * return any data type's type name
  *
  * @param  mixed $item
  *         the item to examine
  * @return array
  *         the basic type of the examined item
  */
 private static function fromString($item)
 {
     return GetStringDuckTypes::from($item);
 }
/**
 * get a full list of types that a string might satisfy
 *
 * @param  string $item
 *         the item to examine
 * @return string[]
 *         the list of type(s) that this item can be
 */
function get_string_duck_types($item)
{
    return GetStringDuckTypes::from($item);
}
 /**
  * @covers ::from
  * @covers ::fromObject
  * @dataProvider provideStringyObjectsToTest
  */
 public function testDetectsStringyObjects($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = GetStringDuckTypes::from($data);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }