Skip to content

Instantly share code, notes, and snippets.

@pmjones
Created May 27, 2016 15:35
Show Gist options
  • Save pmjones/1e50bcefa227792f1297e17a5523282a to your computer and use it in GitHub Desktop.
Save pmjones/1e50bcefa227792f1297e17a5523282a to your computer and use it in GitHub Desktop.
<?php
// add to the end of FactoryTest
public function testSetterCallable()
{
$this->factory->setter['Aura\Di\FakeChildClass']['setFake'] = function () {
return 'OOPS';
};
$object = $this->factory->newInstance('Aura\Di\FakeChildClass');
$actual = $object->getFake();
$this->assertInstanceOf('Closure', $actual);
}
@pmjones
Copy link
Author

pmjones commented May 27, 2016

Get some rest man. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment