/** * @dataProvider stringCastDataProvider * @param string $expected * @param mixed $value */ public function testSetValuesSetsProperty($expected, $value) { if ($value === null) { $expected = null; } $values = array('foo', $value, null); if (!is_string($value) && $value !== null) { $this->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisInvalidArgumentException', null, 1413440336); } $this->subjectUnderTest->setValues($values); $this->assertAttributeSame(array('foo', $expected, null), 'values', $this->subjectUnderTest); }
/** * {@inheritdoc} * * @param string[] $values */ public function setValues(array $values) { // currently no special behavior here. It's just a string value. parent::setValues($values); }