@@ -96,20 +96,20 @@ public function itEnsuresAddedCallablesAreFormattedForPrint( ArrayPhpFile $file
96
96
#[Test]
97
97
#[Depends( 'itAddsCallableOfVariousTypes ' )]
98
98
public function itEnsuresImportedItemAliasCanBeRetrieved ( ArrayPhpFile $ file ): void {
99
- $ this ->assertSame ( 'TestCase::class ' , $ file ->getAliasOf ( TestCase::class ) );
100
- $ this ->assertSame ( 'ArrayPhpFileTest::class ' , $ file ->getAliasOf ( $ this ->itAddsCallableOfVariousTypes ( ... ) ) );
99
+ $ this ->assertSame ( 'TestCase ' , $ file ->getAliasOf ( TestCase::class ) );
100
+ $ this ->assertSame ( 'ArrayPhpFileTest ' , $ file ->getAliasOf ( $ this ->itAddsCallableOfVariousTypes ( ... ) ) );
101
101
$ this ->assertSame (
102
- 'ArrayPhpFileTest::class ' ,
102
+ 'ArrayPhpFileTest ' ,
103
103
$ file ->getAliasOf ( array ( self ::class, __FUNCTION__ ) ),
104
104
'Does not matter with method name if classname is same '
105
105
);
106
- $ this ->assertSame ( 'TestCase::class ' , $ file ->getAliasOf ( TestCase::assertIsString ( ... ) ) );
106
+ $ this ->assertSame ( 'TestCase ' , $ file ->getAliasOf ( TestCase::assertIsString ( ... ) ) );
107
107
$ this ->assertSame (
108
108
'testFirstClassCallable ' ,
109
109
$ file ->getAliasOf ( testFirstClassCallable ( ... ), PhpNamespace::NAME_FUNCTION )
110
110
);
111
111
112
- $ this ->assertSame ( 'DateTime::class ' , $ file ->getAliasOf ( \DateTime::createFromFormat ( ... ) ) );
112
+ $ this ->assertSame ( 'DateTime ' , $ file ->getAliasOf ( \DateTime::createFromFormat ( ... ) ) );
113
113
114
114
// Global function is not imported. So, no alias.
115
115
$ this ->expectException ( OutOfBoundsException::class );
0 commit comments