summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/t/testertests_interp_set.php
blob: 6e5fa2276b8df52908917932558d58c0c047c009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

    $lib = 'Test-More.php';
    require_once($lib);
    $t = new TestMore();
    $t->plan(1);

    if (strpos(strtoupper($_SERVER['OS']),'WINDOWS') !== FALSE) {
        // Should also accept extension
        $newinterp = 'php.exe';
    } else {
        // Fair guess
        $newinterp = '/usr/local/bin/php';
    }

    $t->is( $t->interp($newinterp),$newinterp,"set valid alternate interp by passing arg: interp($newinterp)");

?>