Changeset 941

Show
Ignore:
Timestamp:
09/25/07 23:17:54 (1 year ago)
Author:
mikey
Message:

finished reflection type

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/test/php/net/stubbles/reflection/stubReflectionFunctionTestCase.php

    r900 r941  
    103103    { 
    104104        $this->assertNull($this->stubRefFunction2->getReturnType()); 
    105         $this->assertEqual($this->stubRefFunction1->getReturnType(), 'string'); 
     105        $this->assertIdentical($this->stubRefFunction1->getReturnType(), stubReflectionPrimitive::$STRING); 
    106106        $refFunction3 = new stubReflectionFunction('stubTestWithOutDocBlock'); 
    107107        $this->assertNull($refFunction3->getReturnType()); 
  • trunk/src/test/php/net/stubbles/reflection/stubReflectionMethodTestCase.php

    r900 r941  
    208208    { 
    209209        $this->assertNull($this->stubRefMethod1->getReturnType()); 
    210         $this->assertEqual($this->stubRefMethod2->getReturnType(), 'string'); 
     210        $this->assertIdentical($this->stubRefMethod2->getReturnType(), stubReflectionPrimitive::$STRING); 
    211211        $this->assertNull($this->stubRefMethod3->getReturnType()); 
    212         $this->assertEqual($this->stubRefMethod4->getReturnType(), 'string'); 
     212        $this->assertIdentical($this->stubRefMethod4->getReturnType(), stubReflectionPrimitive::$STRING); 
    213213        $refClass = $this->stubRefMethod5->getReturnType(); 
    214214        $this->assertIsA($refClass, 'stubReflectionClass');