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