1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17- require_once 'bootstrap.php ' ;
18- require_once 'Google/Client.php ' ;
1917
2018class BaseTest extends PHPUnit_Framework_TestCase
2119{
2220 const KEY = "" ;
2321 private $ token ;
2422 private $ memcacheHost ;
2523 private $ memcachePort ;
26-
24+
2725 public function __construct ()
2826 {
2927 parent ::__construct ();
@@ -34,7 +32,7 @@ public function __construct()
3432 $ this ->memcacheHost = getenv ('MEMCACHE_HOST ' ) ? getenv ('MEMCACHE_HOST ' ) : null ;
3533 $ this ->memcachePort = getenv ('MEMCACHE_PORT ' ) ? getenv ('MEMCACHE_PORT ' ) : null ;
3634 }
37-
35+
3836 public function getClient ()
3937 {
4038 $ client = new Google_Client ();
@@ -48,22 +46,20 @@ public function getClient()
4846 }
4947 return $ client ;
5048 }
51-
49+
5250 public function testClientConstructor ()
5351 {
5452 $ this ->assertInstanceOf ('Google_Client ' , $ this ->getClient ());
5553 }
56-
54+
5755 public function testIncludes ()
5856 {
59- $ prefix = dirname (dirname (__FILE__ )) . '/src/ ' ;
6057 $ path = dirname (dirname (__FILE__ )) . '/src/Google/Service ' ;
6158 foreach (glob ($ path . "/*.php " ) as $ file ) {
62- // Munge prefix so we don't double require.
63- $ this ->assertEquals (1 , require_once (str_replace ($ prefix , '' , $ file )));
59+ $ this ->assertEquals (1 , require_once ($ file ));
6460 }
6561 }
66-
62+
6763 public function checkToken ()
6864 {
6965 if (!strlen ($ this ->token )) {
0 commit comments