public function testGetName() { $callback = function () { // noop }; $test = new Test($callback, 'foo'); $this->assertSame('foo', $test->getName()); }