Example #1
0
 public function testDumpArray()
 {
     $this->assertFalse(is_file('foobar.php'));
     $data = array('foo' => rand());
     File::dumpArray("foobar.php", $data);
     $this->assertTrue(is_file('foobar.php'));
     $this->assertEquals($data, require 'foobar.php');
     unlink('foobar.php');
 }