Lines Matching refs:autoloader
56 $autoloader = new SUT(),
62 $autoloader->addNamespace($prefix, $baseDirectoryA),
63 $result = $autoloader->addNamespace($prefix, $baseDirectoryB)
66 ->boolean($autoloader->hasBaseDirectory($prefix))
68 ->array($autoloader->getBaseDirectories($prefix))
79 $autoloader = new SUT(),
85 $autoloader->addNamespace($prefix, $baseDirectoryA),
86 $result = $autoloader->addNamespace($prefix, $baseDirectoryB)
89 ->boolean($autoloader->hasBaseDirectory($prefix))
91 ->array($autoloader->getBaseDirectories($prefix))
102 $autoloader = new SUT(),
106 ->when($result = $autoloader->addNamespace($prefix, $baseDirectory))
108 ->boolean($autoloader->hasBaseDirectory('Foo\Bar\\'))
110 ->array($autoloader->getBaseDirectories('Foo\Bar\\'))
118 $autoloader = new SUT(),
122 ->when($result = $autoloader->addNamespace($prefix, $baseDirectory))
124 ->boolean($autoloader->hasBaseDirectory('Foo\Bar\\'))
126 ->array($autoloader->getBaseDirectories('Foo\Bar\\'))
134 $autoloader = new SUT(),
138 ->when($result = $autoloader->addNamespace($prefix, $baseDirectory))
140 ->boolean($autoloader->hasBaseDirectory('Foo\Bar\\'))
142 ->array($autoloader->getBaseDirectories('Foo\Bar\\'))
150 $autoloader = new \Mock\Hoa\Consistency\Autoloader(),
151 $autoloader->addNamespace('Foo\Bar\\', 'Source/Foo/Bar/'),
152 $this->calling($autoloader)->requireFile = function ($file) {
156 ->when($result = $autoloader->load('Foo\Bar\Baz\Qux'))
165 ->given($autoloader = new SUT())
166 ->when($result = $autoloader->load('Foo'))
178 $autoloader = new \Mock\Hoa\Consistency\Autoloader(),
179 $autoloader->addNamespace('Foo\Bar\\', 'Source/Foo/'),
180 … $this->calling($autoloader)->runAutoloaderStack = function ($entity) use ($self, &$called) {
188 $autoloader->register()
190 ->when($result = $autoloader->load('Foo\Bar\Baz'))
204 $autoloader = new \Mock\Hoa\Consistency\Autoloader(),
205 … $this->calling($autoloader)->runAutoloaderStack = function ($entity) use ($self, &$called) {
210 $autoloader->register()
212 ->when($result = $autoloader->load('Foo\Bar\Baz'))
224 $autoloader = new SUT(),
233 ->when($result = $autoloader->requireFile($filename))
245 $autoloader = new SUT(),
248 ->when($result = $autoloader->requireFile('/hoa/flatland'))
257 ->given($autoloader = new SUT())
258 ->when($result = $autoloader->hasBaseDirectory('foo'))
267 ->given($autoloader = new SUT())
268 ->when($result = $autoloader->getBaseDirectories('foo'))
312 ->given($autoloader = new SUT())
313 ->when($result = $autoloader->register())
317 ->array($autoloader->getRegisteredAutoloaders())
325 $autoloader = new SUT(),
326 $oldRegisteredAutoloaders = $autoloader->getRegisteredAutoloaders()
328 ->when($result = $autoloader->register())
332 ->integer(count($autoloader->getRegisteredAutoloaders()))
335 ->when($result = $autoloader->unregister())
339 ->array($autoloader->getRegisteredAutoloaders())