Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/protobuf/php/tests/autoload.php

Issue 2599263002: third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Address comments Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 2
3 require_once('test.pb.php'); 3 function getGeneratedFiles($dir, &$results = array())
4 require_once('test_util.php'); 4 {
5 $files = scandir($dir);
6
7 foreach ($files as $key => $value) {
8 $path = realpath($dir.DIRECTORY_SEPARATOR.$value);
9 if (!is_dir($path)) {
10 $results[] = $path;
11 } else if ($value != "." && $value != "..") {
12 getGeneratedFiles($path, $results);
13 }
14 }
15 return $results;
16 }
17
18 foreach (getGeneratedFiles("generated") as $filename)
19 {
20 if (!is_dir($filename)) {
21 include_once $filename;
22 }
23
24 }
25
OLDNEW
« no previous file with comments | « third_party/protobuf/php/tests/array_test.php ('k') | third_party/protobuf/php/tests/encode_decode_test.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698