*/
public function testClosureExpansionDisabled() {
$obj = ObjectFactory::getObjectFromSpec( array(
- 'class' => 'ObjectFactoryTest_Fixture',
+ 'class' => 'ObjectFactoryTestFixture',
'args' => array( function() {
return 'unwrapped';
}, ),
*/
public function testClosureExpansionEnabled() {
$obj = ObjectFactory::getObjectFromSpec( array(
- 'class' => 'ObjectFactoryTest_Fixture',
+ 'class' => 'ObjectFactoryTestFixture',
'args' => array( function() {
return 'unwrapped';
}, ),
$this->assertSame( 'unwrapped', $obj->setterArgs[0] );
$obj = ObjectFactory::getObjectFromSpec( array(
- 'class' => 'ObjectFactoryTest_Fixture',
+ 'class' => 'ObjectFactoryTestFixture',
'args' => array( function() {
return 'unwrapped';
}, ),
}
}
-class ObjectFactoryTest_Fixture {
+class ObjectFactoryTestFixture {
public $args;
public $setterArgs;
public function __construct( /*...*/ ) {