public function testGetClassName() { isSame('JBZoo', Str::getClassName('JBZoo')); isSame('JBZoo', Str::getClassName('\\JBZoo')); isSame('CCK', Str::getClassName('\\JBZoo\\CCK')); isSame('Element', Str::getClassName('\\JBZoo\\CCK\\Element')); isSame('Repeatable', Str::getClassName('\\JBZoo\\CCK\\Element\\Repeatable')); isSame('StringTest', Str::getClassName($this)); isSame('StringTest', Str::getClassName($this, false)); isSame('StringTest', Str::getClassName($this, false)); isSame('phpunit', Str::getClassName(__NAMESPACE__, true)); }