public function testPassNoPropertyName() { $this->expectArgumentError('Functional\\invoke() expects parameter 2 to be string'); invoke($this->list, new \stdClass()); }