1234567891011121314151617181920212223242526272829 |
- <?php
-
- require_once 'swift_required.php';
- require_once 'Swift/Tests/SwiftUnitTestCase.php';
-
- //This is more of a "cross your fingers and hope it works" test!
-
- class Swift_DependencyContainerAcceptanceTest
- extends Swift_Tests_SwiftUnitTestCase
- {
-
- public function testNoLookupsFail()
- {
- $di = Swift_DependencyContainer::getInstance();
- foreach ($di->listItems() as $itemName)
- {
- try
- {
- $di->lookup($itemName);
- }
- catch (Swift_DependencyException $e)
- {
- $this->fail($e->getMessage());
- }
- }
- }
-
- }
|