Skip to content

Commit f32e7fd

Browse files
committed
WS-3151: Fix unit test and typo.
1 parent 3494bf6 commit f32e7fd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ php ping.php --key $API_KEY
3737
```
3838
git clone git@github.com:rosette-api/php.git
3939
cd php
40-
docker run -it -v $(pwd):/source --entrypoint bash php:78.2-cli
40+
docker run -it -v $(pwd):/source --entrypoint bash php:8.2-cli
4141
4242
apt-get update
4343
apt-get install -y git zip

spec/rosette/api/RecordSimilarityParametersSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ class RecordSimilarityParametersSpec extends ObjectBehavior
1010
{
1111
public function it_passes_validation($fields, $properties, $records)
1212
{
13-
$this->beConstructedWith($fields, $properties, $records);
13+
$this->beConstructedWith((array)$fields, (array)$properties, (array)$records);
1414
$this->shouldNotThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
1515
}
1616

1717
public function it_has_fields_undefined($fields, $properties, $records)
1818
{
19-
$this->beConstructedWith(null, $properties, $records);
19+
$this->beConstructedWith((array)null, (array)$properties, (array)$records);
2020
$this->shouldThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
2121
}
2222

2323
public function it_has_properties_undefined($fields, $properties, $records)
2424
{
25-
$this->beConstructedWith($fields, null, $records);
25+
$this->beConstructedWith((array)$fields, (array)null, (array)$records);
2626
$this->shouldThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
2727
}
2828

2929
public function it_has_records_undefined($fields, $properties, $records)
3030
{
31-
$this->beConstructedWith($fields, $properties, null);
31+
$this->beConstructedWith((array)$fields, (array)$properties, (array)null);
3232
$this->shouldThrow(RosetteConstants::$RosetteExceptionFullClassName)->duringValidate();
3333
}
3434
}

0 commit comments

Comments
 (0)