Skip to content

Instantly share code, notes, and snippets.

@jimbojsb
Last active December 14, 2015 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimbojsb/5143357 to your computer and use it in GitHub Desktop.
Save jimbojsb/5143357 to your computer and use it in GitHub Desktop.
setget test
public function testSetGet()
{
$d = new Document;
$d->foo[] = 'bar';
$this->assertEquals(['bar'], $d->foo);
$d->bar = 'baz';
$test = $d->bar;
$test = 'foo';
$this->assertEquals('baz', $d->bar);
$this->assertEquals('foo', $test);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment