Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Replace external FTP server by a local docker instance
  [PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
  fix test
  [Validator] Add test for `D` regex modifier in `TimeValidator`
  • Loading branch information
nicolas-grekas committed Aug 13, 2024
2 parents 79ce2a5 + dba5d5f commit ccaa6c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/Part/Multipart/FormDataPartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,13 @@ public function testBoundaryContentTypeHeader()
);
}

public function testConstructThrowsOnUnexpectedFieldType()
public function testGetPartsThrowsOnUnexpectedFieldType()
{
$dataPart = new FormDataPart(['foo' => new \stdClass()]);

$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('A form field value can only be a string, an array, or an instance of TextPart ("stdClass" given).');
$this->expectExceptionMessage('The value of the form field "foo" can only be a string, an array, or an instance of TextPart, "stdClass" given.');

new FormDataPart(['foo' => new \stdClass()]);
$dataPart->getParts();
}
}

0 comments on commit ccaa6c2

Please sign in to comment.