$resource ) { $source = $locator->findSource( $resource ); $source->resource = $resource; self::assertSame( 'ezcTemplateSourceCode', get_class( $source ), 'findSource(<' . $resource . '>) did not return the correct object.' ); self::assertSame( $locations[$key]->stream, $source->stream, 'Property does not match expected value for resource <' . $resource . '>.' ); self::assertSame( $locations[$key]->resource, $source->resource, 'Property does not match expected value for resource <' . $resource . '>.' ); } } } ?>