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
19
19
{
20
20
public function testConstructor ()
21
21
{
22
- $ loader = new DelegatingLoader ($ resolver = new LoaderResolver ());
22
+ new DelegatingLoader ($ resolver = new LoaderResolver ());
23
23
$ this ->assertTrue (true , '__construct() takes a loader resolver as its first argument ' );
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testExistsKo()
67
67
68
68
$ loadedClass = 123 ;
69
69
70
- $ res = new ClassExistenceResource ('MissingFooClass ' , false );
70
+ new ClassExistenceResource ('MissingFooClass ' , false );
71
71
72
72
$ this ->assertSame (123 , $ loadedClass );
73
73
} finally {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testResourceDoesNotExist()
67
67
{
68
68
$ this ->expectException ('InvalidArgumentException ' );
69
69
$ 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 ));
71
71
}
72
72
73
73
public function testIsFresh ()
@@ -165,7 +165,7 @@ public function testSerializeUnserialize()
165
165
{
166
166
$ resource = new DirectoryResource ($ this ->directory , '/\.(foo|xml)$/ ' );
167
167
168
- $ unserialized = unserialize (serialize ($ resource ));
168
+ unserialize (serialize ($ resource ));
169
169
170
170
$ this ->assertSame (realpath ($ this ->directory ), $ resource ->getResource ());
171
171
$ this ->assertSame ('/\.(foo|xml)$/ ' , $ resource ->getPattern ());
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function testResourceDoesNotExist()
57
57
{
58
58
$ this ->expectException ('InvalidArgumentException ' );
59
59
$ 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 ));
61
61
}
62
62
63
63
public function testIsFresh ()
@@ -76,7 +76,7 @@ public function testIsFreshForDeletedResources()
76
76
77
77
public function testSerializeUnserialize ()
78
78
{
79
- $ unserialized = unserialize (serialize ($ this ->resource ));
79
+ unserialize (serialize ($ this ->resource ));
80
80
81
81
$ this ->assertSame (realpath ($ this ->file ), $ this ->resource ->getResource ());
82
82
}
You can’t perform that action at this time.
0 commit comments