File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class DelegatingLoaderTest extends TestCase
1919{
2020 public function testConstructor ()
2121 {
22- $ loader = new DelegatingLoader ($ resolver = new LoaderResolver ());
22+ new DelegatingLoader ($ resolver = new LoaderResolver ());
2323 $ this ->assertTrue (true , '__construct() takes a loader resolver as its first argument ' );
2424 }
2525
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testExistsKo()
6767
6868 $ loadedClass = 123 ;
6969
70- $ res = new ClassExistenceResource ('MissingFooClass ' , false );
70+ new ClassExistenceResource ('MissingFooClass ' , false );
7171
7272 $ this ->assertSame (123 , $ loadedClass );
7373 } finally {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testResourceDoesNotExist()
6767 {
6868 $ this ->expectException ('InvalidArgumentException ' );
6969 $ this ->expectExceptionMessageRegExp ('/The directory ".*" does not exist./ ' );
70- $ resource = new DirectoryResource ('/____foo/foobar ' .mt_rand (1 , 999999 ));
70+ new DirectoryResource ('/____foo/foobar ' .mt_rand (1 , 999999 ));
7171 }
7272
7373 public function testIsFresh ()
@@ -165,7 +165,7 @@ public function testSerializeUnserialize()
165165 {
166166 $ resource = new DirectoryResource ($ this ->directory , '/\.(foo|xml)$/ ' );
167167
168- $ unserialized = unserialize (serialize ($ resource ));
168+ unserialize (serialize ($ resource ));
169169
170170 $ this ->assertSame (realpath ($ this ->directory ), $ resource ->getResource ());
171171 $ this ->assertSame ('/\.(foo|xml)$/ ' , $ resource ->getPattern ());
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function testResourceDoesNotExist()
5757 {
5858 $ this ->expectException ('InvalidArgumentException ' );
5959 $ this ->expectExceptionMessageRegExp ('/The file ".*" does not exist./ ' );
60- $ resource = new FileResource ('/____foo/foobar ' .mt_rand (1 , 999999 ));
60+ new FileResource ('/____foo/foobar ' .mt_rand (1 , 999999 ));
6161 }
6262
6363 public function testIsFresh ()
@@ -76,7 +76,7 @@ public function testIsFreshForDeletedResources()
7676
7777 public function testSerializeUnserialize ()
7878 {
79- $ unserialized = unserialize (serialize ($ this ->resource ));
79+ unserialize (serialize ($ this ->resource ));
8080
8181 $ this ->assertSame (realpath ($ this ->file ), $ this ->resource ->getResource ());
8282 }
You can’t perform that action at this time.
0 commit comments