Skip to content

Commit 6210d7e

Browse files
committed
Implement negotiated changes
1 parent c47446c commit 6210d7e

File tree

7 files changed

+21
-79
lines changed

7 files changed

+21
-79
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
composer.phar
22
/vendor/
3-
/var/
43
composer.lock
54
.DS_Store
65

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"bmitch/churn-php": "^1.7.1",
4141
"phpmetrics/phpmetrics": "^v2.8.2",
4242
"wapmorgan/php-deprecation-detector": "^2.0.33",
43-
"phpstan/phpstan": "^1.10"
43+
"phpstan/phpstan": "^1.10",
44+
"tracy/tracy": "^2.10"
4445
},
4546
"scripts": {
4647
"code-check": "./vendor/bin/phpstan analyse",

src/Responses/GetRecordingsResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
class GetRecordingsResponse extends BaseResponse
2929
{
30-
3130
/**
3231
* @return Record[]
3332
*/

src/Responses/HooksListResponse.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
class HooksListResponse extends BaseResponse
2929
{
30-
3130
/**
3231
* @return Hook[]
3332
*/

src/Util/FileDumper.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/Parameters/DeleteRecordingsParametersTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ class DeleteRecordingsParametersTest extends TestCase
3131
{
3232
public function testDeleteRecordingParameter(): void
3333
{
34-
$recordingId = $this->faker->uuid;
35-
$deleteRecording = new DeleteRecordingsParameters($recordingId);
34+
$recordingId1 = $this->faker->uuid;
35+
$recordingId2 = $this->faker->uuid;
3636

37-
$this->assertEquals($recordingId, $deleteRecording->getRecordingId());
37+
// Test by constructor
38+
$deleteRecording = new DeleteRecordingsParameters($recordingId1);
39+
$this->assertEquals($recordingId1, $deleteRecording->getRecordingId());
3840

3941
// Test setters that are ignored by the constructor
40-
$recordingIdNew = $this->faker->uuid;
41-
$deleteRecording->setRecordingId($recordingIdNew);
42-
$this->assertEquals($recordingIdNew, $deleteRecording->getRecordingId());
42+
$deleteRecording->setRecordingId($recordingId2);
43+
$this->assertEquals($recordingId2, $deleteRecording->getRecordingId());
4344
}
4445
}

tests/Parameters/PublishRecordingsParametersTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ class PublishRecordingsParametersTest extends TestCase
3131
{
3232
public function testPublishRecordingsParameters(): void
3333
{
34-
$recordingId = $this->faker->uuid;
35-
$publish = $this->faker->boolean(50);
36-
$newRecordingId = $this->faker->uuid;
37-
$newPublish = !$publish;
34+
$recordingId1 = $this->faker->uuid;
35+
$publish1 = $this->faker->boolean(50);
36+
$recordingId2 = $this->faker->uuid;
37+
$publish2 = !$publish1;
3838

39-
$publishRecording = new PublishRecordingsParameters($recordingId, $publish);
40-
41-
$this->assertEquals($recordingId, $publishRecording->getRecordingId());
42-
$this->assertEquals($publish, $publishRecording->isPublish());
39+
// Test by constructor
40+
$publishRecording = new PublishRecordingsParameters($recordingId1, $publish1);
41+
$this->assertEquals($recordingId1, $publishRecording->getRecordingId());
42+
$this->assertEquals($publish1, $publishRecording->isPublish());
4343

4444
// Test setters that are ignored by the constructor
45-
$publishRecording->setRecordingId($newRecordingId);
46-
$publishRecording->setPublish($newPublish);
47-
$this->assertEquals($newRecordingId, $publishRecording->getRecordingId());
48-
$this->assertEquals($newPublish, $publishRecording->isPublish());
45+
$publishRecording->setRecordingId($recordingId2);
46+
$publishRecording->setPublish($publish2);
47+
$this->assertEquals($recordingId2, $publishRecording->getRecordingId());
48+
$this->assertEquals($publish2, $publishRecording->isPublish());
4949
}
5050
}

0 commit comments

Comments
 (0)