source: php/trunk/unittest/rdftestcases/action.php

Last change on this file was 64, checked in by cla, 14 years ago

rdfint

  • added code to read list of RDF testcases from RDF data
  • TODO: execution of testcases!
  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[64]1<?PHP
2
3/* RDFInt.php - RDF Interfaces for PHP
4 * Copyright 2011 netlabs.org
5 * Author: Christian Langanke, Adrian Gschwend
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20// load library setup
21define( 'RDFINT', getenv( 'PHP_LIBROOT_RDFINT'));
22require_once( RDFINT.'/rdfa.php');
23require_once( 'rdftestcases.php');
24
25// execute makefile action
26if (count( $argv) > 0) {
27 switch( $argv[1]) {
28
29 case 'list':
30 $manifest = new RDFTestCasesManifest;
31 $manifest->listCases();
32 break;
33
34 case 'listverbose':
35 $manifest = new RDFTestCasesManifest;
36 $manifest->listCases( NULL, true);
37 break;
38
39
40 } // switch( $argv[1]) {
41
42} // if (count( $argv) > 0) {
43
44?>
Note: See TracBrowser for help on using the repository browser.