Skip to content

Commit 5b34f38

Browse files
committed
tests: .expect files moved to /expected
1 parent 2f8743d commit 5b34f38

21 files changed

+12
-12
lines changed

tests/PhpGenerator/ClassType.from.anonymous.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ $res[] = ClassType::from(new class extends Class1 {
4343
}
4444
});
4545

46-
Assert::matchFile(__DIR__ . '/ClassType.from.anonymous.expect', implode("\n", $res));
46+
Assert::matchFile(__DIR__ . '/expected/ClassType.from.anonymous.expect', implode("\n", $res));

tests/PhpGenerator/ClassType.from.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ $res[] = ClassType::from(Abc\Class4::class);
2525
$res[] = ClassType::from(Abc\Class5::class);
2626
$res[] = ClassType::from(Abc\Class6::class);
2727

28-
Assert::matchFile(__DIR__ . '/ClassType.from.expect', implode("\n", $res));
28+
Assert::matchFile(__DIR__ . '/expected/ClassType.from.expect', implode("\n", $res));

tests/PhpGenerator/ClassType.from.trait.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ $res[] = ClassType::from('Trait2');
4545
$res[] = ClassType::from('Class1');
4646
$res[] = ClassType::from('Class2');
4747

48-
Assert::matchFile(__DIR__ . '/ClassType.from.trait.expect', implode("\n", $res));
48+
Assert::matchFile(__DIR__ . '/expected/ClassType.from.trait.expect', implode("\n", $res));

tests/PhpGenerator/ClassType.inheritance.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class B extends A implements I3
5555
}
5656

5757

58-
Assert::matchFile(__DIR__ . '/ClassType.inheritance.expect', (string) ClassType::from('B'));
58+
Assert::matchFile(__DIR__ . '/expected/ClassType.inheritance.expect', (string) ClassType::from('B'));

tests/PhpGenerator/ClassType.interface.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Assert::same(['IOne', 'ITwo'], $interface->getExtends());
2424

2525
$interface->addMethod('getForm');
2626

27-
Assert::matchFile(__DIR__ . '/ClassType.interface.expect', (string) $interface);
27+
Assert::matchFile(__DIR__ . '/expected/ClassType.interface.expect', (string) $interface);

tests/PhpGenerator/ClassType.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $method->addParameter('res', null)
9999
->setReference(true)
100100
->setTypeHint('array');
101101

102-
Assert::matchFile(__DIR__ . '/ClassType.expect', (string) $class);
102+
Assert::matchFile(__DIR__ . '/expected/ClassType.expect', (string) $class);
103103

104104

105105
// global setters & getters

tests/PhpGenerator/PhpFile.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ $traitG = $file->addTrait('Baz\\G');
6868
Assert::same($file->addNamespace('Baz'), $traitG->getNamespace());
6969

7070

71-
Assert::matchFile(__DIR__ . '/PhpFile.regular.expect', (string) $file);
71+
Assert::matchFile(__DIR__ . '/expected/PhpFile.regular.expect', (string) $file);
7272

7373
$file->addClass('H');
7474

7575
$file->addClass('FooBar\\I');
7676

77-
Assert::matchFile(__DIR__ . '/PhpFile.bracketed.expect', (string) $file);
77+
Assert::matchFile(__DIR__ . '/expected/PhpFile.bracketed.expect', (string) $file);
7878

7979
$file = new PhpFile;
8080
$file->addClass('A');
8181

82-
Assert::matchFile(__DIR__ . '/PhpFile.globalNamespace.expect', (string) $file);
82+
Assert::matchFile(__DIR__ . '/expected/PhpFile.globalNamespace.expect', (string) $file);

tests/PhpGenerator/PhpNamespace.fqn.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $method->addParameter('one')
3434
$method->addParameter('two')
3535
->setTypeHint('\Two');
3636

37-
Assert::matchFile(__DIR__ . '/PhpNamespace.fqn1.expect', (string) $class);
37+
Assert::matchFile(__DIR__ . '/expected/PhpNamespace.fqn1.expect', (string) $class);
3838

3939

4040
// global namespace
@@ -58,4 +58,4 @@ $method->addParameter('one')
5858
$method->addParameter('two')
5959
->setTypeHint('\Two');
6060

61-
Assert::matchFile(__DIR__ . '/PhpNamespace.fqn2.expect', (string) $class);
61+
Assert::matchFile(__DIR__ . '/expected/PhpNamespace.fqn2.expect', (string) $class);

tests/PhpGenerator/PhpNamespace.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ $method->addParameter('c')->setTypeHint('parent');
7575
$method->addParameter('d')->setTypeHint('array');
7676
$method->addParameter('e')->setTypeHint('callable');
7777

78-
Assert::matchFile(__DIR__ . '/PhpNamespace.expect', (string) $namespace);
78+
Assert::matchFile(__DIR__ . '/expected/PhpNamespace.expect', (string) $namespace);

0 commit comments

Comments
 (0)