public function testApiDefine_ReturnsCaller() { $test = $this->getTest(); $factory = $this->createFactory(); $callable = function () { }; $test->assertSame($factory, $factory->define($callable)); }