Development

Changeset 20973

You must first sign up to be able to contribute.

Changeset 20973

Show
Ignore:
Timestamp:
08/09/09 20:28:43 (5 years ago)
Author:
bschussek
Message:

Fixed property transformation in LimeTesterObject?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/branches/2.0-experimental/lib/tester/LimeTesterObject.php

    r20964 r20973  
    3636      // public    $property => "property" 
    3737 
    38       if ($key{0} == "\0"
     38      if (preg_match('/^\0.+\0(.+)$/', $key, $matches)
    3939      { 
    40         if ($key{1} == '*') 
    41         { 
    42           $key = substr($key, 3); 
    43         } 
    44         else 
    45         { 
    46           $key = substr($key, strlen(get_class($object)) + 2); 
    47         } 
     40        $key = $matches[1]; 
    4841      } 
    4942