public static function getDir($value) { if (Inspekt::isArrayOrArrayObject($value)) { return Inspekt::walkArray($value, 'getDir'); } else { return dirname($value); } }
/** * Generated from @assert ('/usr/lib/php/Pear.php') === '/usr/lib/php'. */ public function testGetDir() { $this->assertSame('/usr/lib/php', Inspekt::getDir('/usr/lib/php/Pear.php')); }