Example #1
0
 public function testInitWithContentsOfFileWhenFileIsNotParsable()
 {
     $file = "/tmp/phpunttmp";
     file_put_contents($file, "√");
     $array = RTArray::alloc()->initWithContentsOfFile($file);
     unlink($file);
     $this->assertTrue(is_object($array));
     $this->assertTrue(is_a($array, "RTArray"));
     $this->assertEquals(0, $array->count());
 }