public function testPassNoPropertyName() { $this->expectArgumentError('Functional\\pluck() expects parameter 2 to be a valid property name or array index, object given'); pluck($this->propertyExistsSomewhere, new \stdClass()); }