Example #1
0
 public function testSetValues()
 {
     $file = new File(__DIR__ . '/fixtures/hello-world.php');
     $file->setValues(['foo' => 'foo string', 'bar' => 'bar string']);
     $this->assertAttributeEquals(['foo' => 'foo string', 'bar' => 'bar string'], 'values', $file);
     // merged
     $file->setValues(['bar' => 'changed bar string', 'baz' => 'baz string']);
     $this->assertAttributeEquals(['foo' => 'foo string', 'bar' => 'changed bar string', 'baz' => 'baz string'], 'values', $file);
 }