Skip to content

Commit da0883e

Browse files
committed
Actulized test docs
1 parent 96ed93e commit da0883e

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

tests/integration/Transfer/TransferTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ public function testTypeMismatchFromArrayShouldFailWithError(): void
352352
]);
353353
}
354354

355-
#[TestDox('Access required property before initialising should throw exception')]
356-
public function testAccessRequiredPropertyBeforeInitialisingShouldThrowException(): void
355+
#[TestDox('Access required property before initializing should throw exception')]
356+
public function testAccessRequiredPropertyBeforeInitializingShouldThrowException(): void
357357
{
358358
// Arrange
359359
$requiredTransfer = new RequiredTransfer();

tests/integration/TransferGenerator/TransferGeneratorFacadeErrorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public static function invalidDefinitionDataProvider(): Generator
189189
];
190190
}
191191

192-
#[TestDox('Fail generate transfer objects')]
193-
public function testFailGenerateTransferObjects(): void
192+
#[TestDox('Failed to generate transfer objects')]
193+
public function testFailedToGenerateTransferObjects(): void
194194
{
195195
// Arrange
196196
$configPath = $this->getConfigPath('invalid-class-name');

tests/unit/Shared/Filesystem/FileAppenderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public static function tearDownAfterClass(): void
3737
self::closeFile();
3838
}
3939

40-
#[TestDox('Failed open file should throw exception')]
41-
public function testFailedOpenFileShouldThrowException(): void
40+
#[TestDox('Failed to open file should throw exception')]
41+
public function testFailedToOpenFileShouldThrowException(): void
4242
{
4343
// Expect
4444
$this->fileAppenderMock->expects($this->once())
@@ -53,8 +53,8 @@ public function testFailedOpenFileShouldThrowException(): void
5353
$this->fileAppenderMock->appendToFile(self::FILE_NAME, self::FILE_CONTENT);
5454
}
5555

56-
#[TestDox('Failed write file should throw exception')]
57-
public function testFailedWriteFileShouldThrowException(): void
56+
#[TestDox('Failed to write file should throw exception')]
57+
public function testFailedToWriteFileShouldThrowException(): void
5858
{
5959
// Arrange
6060
$file = self::openFile();
@@ -127,8 +127,8 @@ public function testCloseFile(): void
127127
$this->fileAppenderMock->closeFile(self::FILE_NAME);
128128
}
129129

130-
#[TestDox('File is not exist in the cache should skip closing file')]
131-
public function testFileIsNotExistInTheCacheShouldSkipCloseFile(): void
130+
#[TestDox('File does not exist in the cache should skip closing file')]
131+
public function testFileDoesNotExistInTheCacheShouldSkipClosingFile(): void
132132
{
133133
// Arrange
134134
$fileName = 'some-name.txt';

tests/unit/Shared/Filesystem/FileReaderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public static function tearDownAfterClass(): void
3737
self::closeFile();
3838
}
3939

40-
#[TestDox('Failed open file should throw exception')]
41-
public function testFailOpenFileShouldThrowException(): void
40+
#[TestDox('Failed to open file should throw exception')]
41+
public function testFailedToOpenFileShouldThrowException(): void
4242
{
4343
// Expect
4444
$this->fileReaderMock->expects($this->once())
@@ -62,8 +62,8 @@ public function testFailOpenFileShouldThrowException(): void
6262
$this->fileReaderMock->readFile(self::FILE_NAME)->current();
6363
}
6464

65-
#[TestDox('Failed read file should throw exception')]
66-
public function testFailedReadFileShouldThrowException(): void
65+
#[TestDox('Failed to read file should throw exception')]
66+
public function testFailedToReadFileShouldThrowException(): void
6767
{
6868
// Arrange
6969
$file = self::openFile();
@@ -96,8 +96,8 @@ public function testFailedReadFileShouldThrowException(): void
9696
$this->fileReaderMock->readFile(self::FILE_NAME)->current();
9797
}
9898

99-
#[TestDox('Failed close file should throw exception')]
100-
public function testFailedCloseFileShouldThrowException(): void
99+
#[TestDox('Failed to close file should throw exception')]
100+
public function testFailedToCloseFileShouldThrowException(): void
101101
{
102102
// Arrange
103103
$file = self::openFile();

tests/unit/Shared/Reader/FileReaderProgressTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testReadFile(): void
7878

7979
#[TestWith([0])]
8080
#[TestWith([false])]
81-
#[TestDox('Empty file size "$filesize" should throw exception')]
81+
#[TestDox('Empty file "$filesize" should throw exception')]
8282
public function testEmptyFileShouldThrowException(int|false $filesize): void
8383
{
8484
// Arrange
@@ -107,8 +107,8 @@ public function testEmptyFileShouldThrowException(int|false $filesize): void
107107
$this->fileReaderProgressMock->readFile($filename)->current();
108108
}
109109

110-
#[TestDox('File not exist should throw exception')]
111-
public function testFileNotExistShouldThrowException(): void
110+
#[TestDox('File does not exist should throw exception')]
111+
public function testFileDoesNotExistShouldThrowException(): void
112112
{
113113
// Arrange
114114
$filename = 'some-path/test.txt';

tests/unit/Shared/Reader/JsonReaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ protected function setUp(): void
3030
$this->reader = new JsonReader($this->filesystemStub);
3131
}
3232

33-
#[TestDox('Failed getJsonContent should throw exception')]
34-
public function testFailedGetJsonContentShouldThrowException(): void
33+
#[TestDox('Failed to getJsonContent should throw exception')]
34+
public function testFailedToGetJsonContentShouldThrowException(): void
3535
{
3636
// Expect
3737
$this->filesystemStub

tests/unit/TransferGenerator/Config/Config/ConfigProxyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ protected function setUp(): void
2121
$this->proxy = new ConfigProxy();
2222
}
2323

24-
#[TestDox('Get transfer namespace without loading config first should throw exception')]
25-
public function testGetTransferNamespaceWithoutLoadingConfigFirstShouldThrowException(): void
24+
#[TestDox('Get transfer namespace without loading the config first should throw exception')]
25+
public function testGetTransferNamespaceWithoutLoadingTheConfigFirstShouldThrowException(): void
2626
{
2727
// Arrange
2828
ConfigProxy::resetConfig();

tests/unit/TransferGenerator/Generator/Filesystem/GeneratorFilesystemTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ protected function setUp(): void
4040
);
4141
}
4242

43-
#[TestDox('Duplication file write should throw exception')]
44-
public function testDuplicationFileWriteShouldThrowException(): void
43+
#[TestDox('Duplicate file write should throw exception')]
44+
public function testDuplicateFileWriteShouldThrowException(): void
4545
{
4646
// Arrange
4747
$contentTransfer = new TransferGeneratorContentTransfer([

0 commit comments

Comments
 (0)