/**
  * @covers ::from
  * @dataProvider provideDataToTest
  */
 public function testCanCallStatically($data, $expectedResult)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = StripNamespace::from($data);
     // ----------------------------------------------------------------
     // test the results
     $this->assertEquals($expectedResult, $actualResult);
 }
/**
 * get the name of a class, minus its namespace
 *
 * @param  string|object $item
 *         the item to examine
 * @return string
 *         the class's non-qualified classname
 * @throws InvalidArgumentException
 *         - if we have not been given a string or object
 *         - if the string does not contain the name of a defined
 *           class / interface / trait
 */
function strip_namespace($item)
{
    return StripNamespace::from($item);
}