Changeset 17 for php/trunk/unittest


Ignore:
Timestamp:
Jul 12, 2011, 10:56:58 AM (14 years ago)
Author:
cla
Message:

rdfint

  • prefix non-standard methods of rdfa::Data and rdfa::Projection with underscore
  • add note to description of rdfa::SparlEndpoint and rdfa::SparlQuery that they are no-standard as well
Location:
php/trunk/unittest
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/unittest/makefile

    r9 r17  
    7171ifeq ($(TESTCASE),)
    7272ifeq ($(OS), Windows_NT)
    73         -@for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c changedir
     73        @for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c changedir
    7474else
    75         -@for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c changedir; done
     75        @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c changedir; done
    7676endif
    7777else
    78         -@make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) changedir
     78        @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) changedir
    7979endif
    8080
  • php/trunk/unittest/rdfa_serialize/unittest.php

    r7 r17  
    6767
    6868    // this call must fail , returning false
    69     $doc = $this->rdfaData->serialize( 'dummy');
     69    $doc = $this->rdfaData->_serialize( 'dummy');
    7070    $this->assertEquals( ($doc === false), true);
    7171
    7272    // these call must return a proper serialization
    7373    foreach ( $validTypes as $type) {
    74       $doc = $this->rdfaData->serialize( $type);
     74      $doc = $this->rdfaData->_serialize( $type);
    7575      $this->assertEquals( ($doc !== false), true);
    7676      $this->assertEquals( (strlen($doc) > 0), true);
  • php/trunk/unittest/rdfa_simple_api/unittest.php

    r7 r17  
    7777
    7878    // retrieve name
    79     $litName = $this->rdfaData->getFirstValue( $uriPerson, 'foaf:name');
     79    $litName = $this->rdfaData->_getFirstValue( $uriPerson, 'foaf:name');
    8080    $this->assertInternalType( 'string', $litName);
    8181    $this->assertGreaterThan( 0, strlen( $litName));
     
    8787
    8888    // retrieve city name
    89     $litCity =  $this->rdfaData->getFirstValue( $aUriWork[ 0], 'foaf:city');
     89    $litCity =  $this->rdfaData->_getFirstValue( $aUriWork[ 0], 'foaf:city');
    9090    $this->assertInternalType( 'string', $litCity);
    9191    $this->assertGreaterThan( 0, strlen( $litCity));
  • php/trunk/unittest/rdftestcases/unittest.php

    r7 r17  
    4646    $this->assertInstanceOf( '\rdfa\Data', $rdfaData);
    4747    $rdfaData->parse( $uri);
    48     return  $rdfaData->serialize( 'n3');
     48    return  $rdfaData->_serialize( 'n3');
    4949
    5050  } // private function _getSerializedData
Note: See TracChangeset for help on using the changeset viewer.