getPathname(); if (substr($rPath, -4) !== '.php' || strpos($rPath, '/vendor/') !== false) { continue; } $rRelative = substr($rPath, strlen($rRoot)); if (in_array($rRelative, self::LEGACY_ALLOWED, true)) { continue; } if (preg_match('/Encryption::(encrypt|decrypt)\s*\(/', (string) file_get_contents($rPath))) { $rOffenders[] = $rRelative; } } $this->assertSame(array(), $rOffenders, 'use Encryption::mintToken / readToken for stream-link tokens'); } }