Changeset 282 for trunk

Show
Ignore:
Timestamp:
10/18/2007 04:04:53 (13 months ago)
Author:
indeyets
Message:

regression-tests for 2 bugs which were present in earlier revisions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/php/phpunit-tests/TestDump.php

    r281 r282  
    6666        $this->assertEquals($obj, syck_load(syck_dump($obj))); 
    6767    } 
     68 
     69    public function testNumericStrings() 
     70    { 
     71        $obj = '73,123'; 
     72        $this->assertSame($obj, syck_load(syck_dump($obj))); 
     73    } 
     74 
     75    public function testLargeArrays() 
     76    { 
     77        $obj = range(1, 10000); 
     78        $this->assertSame($obj, syck_load(syck_dump($obj))); 
     79    } 
    6880}