content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | remove constructor ... move to app | d51fb166aa48feaf1cd6eaaddd265f11f3f7d092 | <ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php
<ide> trait ResetsPasswords {
<ide> */
<ide> protected $passwords;
<ide>
<del> /**
<del> * Create a new password controller instance.
<del> *
<del> * @param Guard $auth
<del> * @param PasswordBroker $passwords
<del> * @return void
<del> */
<del> public function __construct(Guard $auth, PasswordBroker $passwords)
<del> {
<del> $this->auth = $auth;
<del> $this->passwords = $passwords;
<del>
<del> $this->middleware('guest');
<del> }
<del>
<ide> /**
<ide> * Display the form to request a password reset link.
<ide> * | 1 |
Text | Text | add changelog for custom content type | 2263769c792a32d02826837ef8df5ae5ad1e3682 | <ide><path>actionmailer/CHANGELOG.md
<ide>
<ide> *Jeremy Daer*
<ide>
<add>* Mime type: allow to custom content type when setting body in headers
<add> and attachments.
<add>
<add> Example:
<add>
<add> def test_emails
<add> attachments["invoice.pdf"] = "This is test File content"
<add> mail(body: "Hello there", content_type: "text/html")
<add> end
<add>
<add> *Minh Quy*
<add>
<ide> Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionmailer/CHANGELOG.md) for previous changes.
<ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][action-mailer] for detailed changes.
<ide> whether your templates should perform caching or not.
<ide> ([Pull Request](https://github.com/rails/rails/pull/22825))
<ide>
<add>* Added support for custom `content_type` when setting body in
<add> headers and attachments.
<add> ([Pull Request](https://github.com/rails/rails/pull/27227))
<add>
<ide>
<ide> Active Record
<ide> ------------- | 2 |
Java | Java | fix undertow zero-copy-support | 45aa1edf871e7e86cbd9523146a94b911d944736 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.java
<ide> import io.undertow.util.HttpString;
<ide> import org.reactivestreams.Processor;
<ide> import org.reactivestreams.Publisher;
<add>import org.xnio.channels.Channels;
<ide> import org.xnio.channels.StreamSinkChannel;
<ide> import reactor.core.publisher.Mono;
<ide>
<ide> protected void applyStatusCode() {
<ide>
<ide> @Override
<ide> public Mono<Void> writeWith(File file, long position, long count) {
<del> applyHeaders();
<del> applyCookies();
<del> try {
<del> StreamSinkChannel responseChannel = getUndertowExchange().getResponseChannel();
<del> @SuppressWarnings("resource")
<del> FileChannel in = new FileInputStream(file).getChannel();
<del> long result = responseChannel.transferFrom(in, position, count);
<del> if (result < count) {
<del> return Mono.error(new IOException(
<del> "Could only write " + result + " out of " + count + " bytes"));
<del> }
<del> else {
<add> return doCommit(() -> {
<add> FileChannel source = null;
<add> try {
<add> source = new FileInputStream(file).getChannel();
<add> StreamSinkChannel destination = getUndertowExchange().getResponseChannel();
<add> Channels.transferBlocking(destination, source, position, count);
<ide> return Mono.empty();
<ide> }
<del> }
<del> catch (IOException ex) {
<del> return Mono.error(ex);
<del> }
<add> catch (IOException ex) {
<add> return Mono.error(ex);
<add> }
<add> finally {
<add> if (source != null) {
<add> try {
<add> source.close();
<add> }
<add> catch (IOException ex) {
<add> // ignore
<add> }
<add> }
<add> }
<add> });
<ide> }
<ide>
<ide> @Override | 1 |
Text | Text | fix wrong script name (showdown -> marked) | 94325ea3ef28b8fc50113d1117f3e46dd268321a | <ide><path>docs/docs/tutorial.ja-JP.md
<ide> var Comment = React.createClass({
<ide> });
<ide> ```
<ide>
<del>このコードでは Showdown のライブラリを呼び出すことしかしていません。`this.props.children` は React によってラップされたテキストですが、これを Showdown が理解できる生の文字列に変換する必要があります。そのため、上のコードでは明示的に `toString()` を呼び出しているのです。
<add>このコードでは marked のライブラリを呼び出すことしかしていません。`this.props.children` は React によってラップされたテキストですが、これを marked が理解できる生の文字列に変換する必要があります。そのため、上のコードでは明示的に `toString()` を呼び出しているのです。
<ide>
<ide> しかし問題があります!ブラウザがレンダリングしたコメントは次のように表示されているはずです -- "`<p>`This is `<em>`another`</em>` comment`</p>`" このようなタグは実際に HTML としてレンダリングさせたいですね。
<ide>
<ide> var Comment = React.createClass({
<ide> });
<ide> ```
<ide>
<del>これは特別な API であり、生の HTML が挿入されにくくなるよう意図的に作ったものです。しかし、ここでは Showdown のためにこのバックドアを利用しています。
<add>これは特別な API であり、生の HTML が挿入されにくくなるよう意図的に作ったものです。しかし、ここでは marked のためにこのバックドアを利用しています。
<ide>
<del>**注意:** この機能を使うことで、Showdown は安全なものと信頼することになります。
<add>**注意:** この機能を使うことで、marked は安全なものと信頼することになります。
<ide>
<ide> ### データモデルとの連携
<ide> | 1 |
Go | Go | fix typos in error message | ebf005491268eaa0c5eb759cdd5d02f59db81a4f | <ide><path>libnetwork/ipam/allocator.go
<ide> func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error)
<ide> }
<ide>
<ide> if as != localAddressSpace && as != globalAddressSpace {
<del> return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces")
<add> return nil, types.NotImplementedErrorf("no default pool available for non-default address spaces")
<ide> }
<ide>
<ide> aSpace, err := a.getAddrSpace(as) | 1 |
Text | Text | fix appearance of video thumbnail | 384e8fe195c1a49d21d5c95ccc5db1287cecf2e1 | <ide><path>docs/docs/videos.md
<ide> A [tagtree.tv](http://tagtree.tv/) video conveying the principles of [Thinking i
<ide> ### Going big with React ###
<ide>
<ide> "On paper, all those JS frameworks look promising: clean implementations, quick code design, flawless execution. But what happens when you stress test Javascript? What happens when you throw 6 megabytes of code at it? In this talk, we'll investigate how React performs in a high stress situation, and how it has helped our team build safe code on a massive scale."
<del>
<del><figure>[](https://skillsmatter.com/skillscasts/5429-going-big-with-react#video)</figure>
<add><figure>[](https://skillsmatter.com/skillscasts/5429-going-big-with-react#video)</figure>
<ide>
<ide>
<ide> ### CodeWinds | 1 |
Python | Python | add list locations to linode driver | fed66e0eeddccb22b10c70bb38c11d686019086b | <ide><path>libcloud/drivers/linode.py
<ide> #
<ide>
<ide> from libcloud.types import Provider, NodeState
<del>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node
<add>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node, NodeLocation
<ide> from libcloud.base import NodeImage
<ide> from copy import copy
<ide>
<ide> def list_images(self):
<ide> distros.append(i)
<ide> return distros
<ide>
<add> def list_locations(self):
<add> params = { "api_action": "avail.datacenters" }
<add> data = self.connection.request(LINODE_ROOT, params=params).object
<add> nl = []
<add> for dc in data:
<add> country = None
<add> #TODO: this is a hack!
<add> if dc["LOCATION"][-3:] == "USA":
<add> country = "US"
<add> elif dc["LOCATION"][-2:] == "UK":
<add> country = "GB"
<add> else:
<add> raise LinodeException(0xFD, "Unable to convert data center location to country: '%s'" % dc["LOCATION"])
<add> nl.append(NodeLocation(dc["DATACENTERID"], dc["LOCATION"], country, self))
<add> return nl
<add>
<ide> def linode_set_datacenter(self, did):
<ide> # Set the datacenter for create requests.
<ide> # | 1 |
Go | Go | devmapper backend plugin | 86dd2473c1351df87520111b1b1ba9953f9e5f09 | <ide><path>devmapper/plugin.go
<add>package devmapper
<add>
<add>import (
<add> "github.com/dotcloud/docker/archive"
<add>)
<add>
<add>type Image interface {
<add> ID() string
<add> Parent() (Image, error)
<add> Path() string
<add>}
<add>
<add>type DMBackend struct {
<add> *DeviceSet
<add>}
<add>
<add>func (b *DMBackend) Init(home string) error {
<add> b.DeviceSet = NewDeviceSet(home)
<add> if err := b.DeviceSet.ensureInit(); err != nil {
<add> return err
<add> }
<add> return nil
<add>}
<add>
<add>func (b *DMBackend) Shutdown() error {
<add> return b.DeviceSet.Shutdown()
<add>}
<add>
<add>func (b *DMBackend) Create(img image, layer archive.Archive) error {
<add> // Determine the source of the snapshot (parent id or init device)
<add> var parentID string
<add> if parent, err := img.Parent(); err != nil {
<add> return err
<add> } else if parent != nil {
<add> parentID = parent.ID()
<add> }
<add> // Create the device for this image by snapshotting source
<add> if err := b.DeviceSet.AddDevice(img.ID(), parentID); err != nil {
<add> return err
<add> }
<add> // Mount the device in rootfs
<add> mp := b.mountpoint(id)
<add> if err := os.MkdirAll(mp); err != nil {
<add> return err
<add> }
<add> if err := b.DeviceSet.MountDevice(id, mp, false); err != nil {
<add> return err
<add> }
<add> // Apply the layer as a diff
<add> if layer != nil {
<add> if err := archive.ApplyLayer(mp, layer); err != nil {
<add> return err
<add> }
<add> }
<add> return nil
<add>}
<add>
<add>
<add>func (b *DMBackend) mountpoint(id string) string {
<add> if b.home == "" {
<add> return ""
<add> }
<add> return path.Join(b.home, "mnt", id)
<add>}
<add>
<add>func (b *DMBackend) Changes(img *Image, dest string) ([]Change, error) {
<add> return nil, fmt.Errorf("Not implemented")
<add>}
<add>
<add>func (b *DMBackend) Layer(img *Image, dest string) (Archive, error) {
<add> return nil, fmt.Errorf("Not implemented")
<add>} | 1 |
Python | Python | add weight to all objective functions | d6eb8a47d7293ed2d81d77e2e855acecd855487d | <ide><path>keras/objectives.py
<ide>
<ide> epsilon = 1.0e-15
<ide>
<del>def mean_squared_error(y_true, y_pred):
<del> return T.sqr(y_pred - y_true).mean()
<add>def mean_squared_error(y_true, y_pred, weight=None):
<add> if weight is not None:
<add> return T.sqr(weight*(y_pred - y_true)).mean()
<add> else:
<add> return T.sqr(y_pred - y_true).mean()
<ide>
<del>def mean_absolute_error(y_true, y_pred):
<del> return T.abs_(y_pred - y_true).mean()
<add>def mean_absolute_error(y_true, y_pred, weight=None):
<add> if weight is not None:
<add> return T.abs_(weight*(y_pred - y_true)).mean()
<add> else:
<add> return T.abs_(y_pred - y_true).mean()
<ide>
<del>def squared_hinge(y_true, y_pred):
<del> return T.sqr(T.maximum(1. - y_true * y_pred, 0.)).mean()
<add>def squared_hinge(y_true, y_pred, weight=None):
<add> if weight is not None:
<add> return T.sqr(T.maximum(1. - weight*(y_true * y_pred), 0.)).mean()
<add> else:
<add> return T.sqr(T.maximum(1. - y_true * y_pred, 0.)).mean()
<ide>
<del>def hinge(y_true, y_pred):
<del> return T.maximum(1. - y_true * y_pred, 0.).mean()
<add>def hinge(y_true, y_pred, weight=None):
<add> if weight is not None:
<add> return T.maximum(1. - weight*(y_true * y_pred), 0.).mean()
<add> else:
<add> return T.maximum(1. - y_true * y_pred, 0.).mean()
<ide>
<ide> def categorical_crossentropy(y_true, y_pred, weight=None):
<ide> '''Expects a binary class matrix instead of a vector of scalar classes | 1 |
Javascript | Javascript | fix some regexp nits | 8beff648518aa8e846221d03e31bea5f78f62010 | <ide><path>benchmark/buffers/buffer-write.js
<ide> function main(conf) {
<ide> var buff = new clazz(8);
<ide> var fn = `write${conf.type}`;
<ide>
<del> if (fn.match(/Int/))
<add> if (/Int/.test(fn))
<ide> benchInt(buff, fn, len, noAssert);
<ide> else
<ide> benchFloat(buff, fn, len, noAssert);
<ide><path>benchmark/common.js
<ide> function Benchmark(fn, configs, options) {
<ide> Benchmark.prototype._parseArgs = function(argv, configs) {
<ide> const cliOptions = {};
<ide> const extraOptions = {};
<add> const validArgRE = /^(.+?)=([\s\S]*)$/;
<ide> // Parse configuration arguments
<ide> for (const arg of argv) {
<del> const match = arg.match(/^(.+?)=([\s\S]*)$/);
<add> const match = arg.match(validArgRE);
<ide> if (!match) {
<ide> console.error(`bad argument: ${arg}`);
<ide> process.exit(1);
<ide><path>benchmark/crypto/cipher-stream.js
<ide> var bench = common.createBenchmark(main, {
<ide>
<ide> function main(conf) {
<ide> var api = conf.api;
<del> if (api === 'stream' && process.version.match(/^v0\.[0-8]\./)) {
<add> if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
<ide> console.error('Crypto streams not available until v0.10');
<ide> // use the legacy, just so that we can compare them.
<ide> api = 'legacy';
<ide><path>benchmark/crypto/hash-stream-creation.js
<ide> var bench = common.createBenchmark(main, {
<ide>
<ide> function main(conf) {
<ide> var api = conf.api;
<del> if (api === 'stream' && process.version.match(/^v0\.[0-8]\./)) {
<add> if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
<ide> console.error('Crypto streams not available until v0.10');
<ide> // use the legacy, just so that we can compare them.
<ide> api = 'legacy';
<ide><path>benchmark/crypto/hash-stream-throughput.js
<ide> var bench = common.createBenchmark(main, {
<ide>
<ide> function main(conf) {
<ide> var api = conf.api;
<del> if (api === 'stream' && process.version.match(/^v0\.[0-8]\./)) {
<add> if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
<ide> console.error('Crypto streams not available until v0.10');
<ide> // use the legacy, just so that we can compare them.
<ide> api = 'legacy'; | 5 |
Javascript | Javascript | add unit tests for 0 hour bighour checking | ff17d895fad59bd9559264c7a65d7a97de1489ff | <ide><path>src/test/moment/is_valid.js
<ide> test('oddball permissiveness', function (assert) {
<ide> //https://github.com/moment/moment/issues/1122
<ide> assert.ok(moment('3:25', ['h:mma', 'hh:mma', 'H:mm', 'HH:mm']).isValid());
<ide> });
<add>
<add>test('0 hour is invalid in strict', function (assert) {
<add> assert.equal(moment('00:01', 'hh:mm', true).isValid(), false, '00 hour is invalid in strict');
<add> assert.equal(moment('00:01', 'hh:mm').isValid(), true, '00 hour is valid in normal');
<add> assert.equal(moment('0:01', 'h:mm', true).isValid(), false, '0 hour is invalid in strict');
<add> assert.equal(moment('0:01', 'h:mm').isValid(), true, '0 hour is valid in normal');
<add>}); | 1 |
PHP | PHP | use proper assertion | ebbae988f5697b0a456f27c0c865515b4c0ab51a | <ide><path>tests/Cache/CacheArrayStoreTest.php
<ide> public function testItemsCanBeFlushed()
<ide> public function testCacheKey()
<ide> {
<ide> $store = new ArrayStore;
<del> $this->assertEquals('', $store->getPrefix());
<add> $this->assertEmpty($store->getPrefix());
<ide> }
<ide> }
<ide><path>tests/Cache/CacheMemcachedStoreTest.php
<ide> public function testGetAndSetPrefix()
<ide> $store->setPrefix('foo');
<ide> $this->assertEquals('foo:', $store->getPrefix());
<ide> $store->setPrefix(null);
<del> $this->assertSame('', $store->getPrefix());
<add> $this->assertEmpty($store->getPrefix());
<ide> }
<ide> }
<ide><path>tests/Cache/CacheRedisStoreTest.php
<ide> public function testGetAndSetPrefix()
<ide> $redis->setPrefix('foo');
<ide> $this->assertEquals('foo:', $redis->getPrefix());
<ide> $redis->setPrefix(null);
<del> $this->assertSame('', $redis->getPrefix());
<add> $this->assertEmpty($redis->getPrefix());
<ide> }
<ide>
<ide> protected function getRedis()
<ide><path>tests/Cache/CacheRepositoryTest.php
<ide> public function testAddWithDatetimeInPastOrZeroMinutesReturnsImmediately()
<ide> $repo = $this->getRepository();
<ide> $repo->getStore()->shouldReceive('add', 'get', 'put')->never();
<ide> $result = $repo->add('foo', 'bar', Carbon::now()->subMinutes(10));
<del> $this->assertSame(false, $result);
<add> $this->assertFalse($result);
<ide> $result = $repo->add('foo', 'bar', Carbon::now()->addSeconds(5));
<del> $this->assertSame(false, $result);
<add> $this->assertFalse($result);
<ide> }
<ide>
<ide> public function testRegisterMacroWithNonStaticCall()
<ide><path>tests/Routing/RoutingRouteTest.php
<ide> public function testBasicDispatchingOfRoutes()
<ide>
<ide> $router = $this->getRouter();
<ide> $router->get('foo/bar', function () { return 'hello'; });
<del> $this->assertEquals('', $router->dispatch(Request::create('foo/bar', 'HEAD'))->getContent());
<add> $this->assertEmpty($router->dispatch(Request::create('foo/bar', 'HEAD'))->getContent());
<ide>
<ide> $router = $this->getRouter();
<ide> $router->any('foo/bar', function () { return 'hello'; });
<del> $this->assertEquals('', $router->dispatch(Request::create('foo/bar', 'HEAD'))->getContent());
<add> $this->assertEmpty($router->dispatch(Request::create('foo/bar', 'HEAD'))->getContent());
<ide>
<ide> $router = $this->getRouter();
<ide> $router->get('foo/bar', function () { return 'first'; });
<ide> public function testHeadDispatcher()
<ide>
<ide> $response = $router->dispatch(Request::create('foo', 'HEAD'));
<ide> $this->assertEquals(200, $response->getStatusCode());
<del> $this->assertEquals('', $response->getContent());
<add> $this->assertEmpty($response->getContent());
<ide>
<ide> $router = $this->getRouter();
<ide> $router->match(['GET'], 'foo', function () { return 'bar'; });
<ide><path>tests/Support/SupportStrTest.php
<ide> public function testSubstr()
<ide> $this->assertEquals('ЛЁ', Str::substr('БГДЖИЛЁ', -2));
<ide> $this->assertEquals('И', Str::substr('БГДЖИЛЁ', -3, 1));
<ide> $this->assertEquals('ДЖИЛ', Str::substr('БГДЖИЛЁ', 2, -1));
<del> $this->assertEquals(false, Str::substr('БГДЖИЛЁ', 4, -4));
<add> $this->assertEmpty(Str::substr('БГДЖИЛЁ', 4, -4));
<ide> $this->assertEquals('ИЛ', Str::substr('БГДЖИЛЁ', -3, -1));
<ide> $this->assertEquals('ГДЖИЛЁ', Str::substr('БГДЖИЛЁ', 1));
<ide> $this->assertEquals('ГДЖ', Str::substr('БГДЖИЛЁ', 1, 3));
<ide> $this->assertEquals('БГДЖ', Str::substr('БГДЖИЛЁ', 0, 4));
<ide> $this->assertEquals('Ё', Str::substr('БГДЖИЛЁ', -1, 1));
<del> $this->assertEquals(false, Str::substr('Б', 2));
<add> $this->assertEmpty(Str::substr('Б', 2));
<ide> }
<ide>
<ide> public function testUcfirst()
<ide><path>tests/View/ViewFactoryTest.php
<ide> public function testInjectStartsSectionWithContent()
<ide> public function testEmptyStringIsReturnedForNonSections()
<ide> {
<ide> $factory = $this->getFactory();
<del> $this->assertEquals('', $factory->yieldContent('foo'));
<add> $this->assertEmpty($factory->yieldContent('foo'));
<ide> }
<ide>
<ide> public function testSectionFlushing() | 7 |
Javascript | Javascript | remove all listeners of animatednode when detached | cd8319433b79fd403c97b9e20d6d329c2db9a288 | <ide><path>Libraries/Animated/nodes/AnimatedNode.js
<ide>
<ide> import type {PlatformConfig} from '../AnimatedPlatformConfig';
<ide>
<add>import ReactNativeFeatureFlags from '../../ReactNative/ReactNativeFeatureFlags';
<ide> import NativeAnimatedHelper from '../NativeAnimatedHelper';
<ide> import invariant from 'invariant';
<ide>
<ide> export default class AnimatedNode {
<ide> __nativeAnimatedValueListener: ?any;
<ide> __attach(): void {}
<ide> __detach(): void {
<add> if (ReactNativeFeatureFlags.removeListenersOnDetach()) {
<add> this.removeAllListeners();
<add> }
<ide> if (this.__isNative && this.__nativeTag != null) {
<ide> NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);
<ide> this.__nativeTag = undefined;
<ide><path>Libraries/ReactNative/ReactNativeFeatureFlags.js
<ide> export type FeatureFlags = {|
<ide> * to render react components driven by classes written in C++.
<ide> */
<ide> enableCppRenderSystem: () => boolean,
<add>
<add> removeListenersOnDetach: () => boolean,
<ide> |};
<ide>
<ide> const ReactNativeFeatureFlags: FeatureFlags = {
<ide> const ReactNativeFeatureFlags: FeatureFlags = {
<ide> animatedShouldDebounceQueueFlush: () => false,
<ide> animatedShouldUseSingleOp: () => false,
<ide> enableCppRenderSystem: () => false,
<add> removeListenersOnDetach: () => false,
<ide> };
<ide>
<ide> module.exports = ReactNativeFeatureFlags; | 2 |
Javascript | Javascript | change http back to a 1.1 client | 9a70abbf1378060d1b46240eed0dcd0dffd526ff | <ide><path>lib/http.js
<ide> function ClientRequest (method, uri, headers) {
<ide> }
<ide> this.closeOnFinish = true;
<ide>
<del> this.sendHeaderLines(method + " " + uri + " HTTP/1.0\r\n", headers);
<add> this.sendHeaderLines(method + " " + uri + " HTTP/1.1\r\n", headers);
<ide> }
<ide> node.inherits(ClientRequest, OutgoingMessage);
<ide> | 1 |
Ruby | Ruby | fix handling of default non-host cellar | 2ed333947874ea4291a9007afbda15c2f56b2e35 | <ide><path>Library/Homebrew/software_spec.rb
<ide> class BottleSpecification
<ide> def initialize
<ide> @rebuild = 0
<ide> @prefix = Homebrew::DEFAULT_PREFIX
<del> @all_tags_cellar = Homebrew::DEFAULT_CELLAR
<ide> @repository = Homebrew::DEFAULT_REPOSITORY
<ide> @collector = Utils::Bottles::Collector.new
<ide> @root_url_specs = {}
<ide> def cellar(val = nil)
<ide> # )
<ide> # end
<ide>
<del> return collector.dig(Utils::Bottles.tag, :cellar) || @all_tags_cellar if val.nil?
<add> return collector.dig(Utils::Bottles.tag, :cellar) || @all_tags_cellar || Homebrew::DEFAULT_CELLAR if val.nil?
<ide>
<ide> @all_tags_cellar = val
<ide> end
<ide> def sha256(hash)
<ide> end
<ide>
<ide> cellar ||= all_tags_cellar
<add> cellar ||= if tag.to_s.end_with?("_linux")
<add> Homebrew::DEFAULT_LINUX_CELLAR
<add> elsif tag.to_s.start_with?("arm64_")
<add> Homebrew::DEFAULT_MACOS_ARM_CELLAR
<add> else
<add> Homebrew::DEFAULT_MACOS_CELLAR
<add> end
<add>
<ide> collector[tag] = { checksum: Checksum.new(digest), cellar: cellar }
<ide> end
<ide>
<ide><path>Library/Homebrew/test/dev-cmd/bottle_spec.rb
<ide> def install
<ide> new_catalina_sha256 = "ec6d7f08412468f28dee2be17ad8cd8b883b16b34329efcecce019b8c9736428"
<ide> new_hash = { "tags" => { "catalina" => { "sha256" => new_catalina_sha256 } } }
<ide> expected_checksum_hash = { mojave: "7571772bf7a0c9fe193e70e521318b53993bee6f351976c9b6e01e00d13d6c3f" }
<del> expected_checksum_hash[:cellar] = Homebrew::DEFAULT_CELLAR
<add> expected_checksum_hash[:cellar] = Homebrew::DEFAULT_MACOS_CELLAR
<ide> expect(homebrew.merge_bottle_spec([:sha256], old_spec, new_hash)).to eq [
<ide> ["sha256 catalina: old: #{old_catalina_sha256.inspect}, new: #{new_catalina_sha256.inspect}"],
<ide> [expected_checksum_hash], | 2 |
Ruby | Ruby | fix segmentation fault in ruby 2.0.0-p353 | 8033d3370c56d8d69673c000182922228504706c | <ide><path>activesupport/lib/active_support/duration.rb
<ide> def sum(sign, time = ::Time.current) #:nodoc:
<ide>
<ide> private
<ide>
<add> # We define it as a workaround to Ruby 2.0.0-p353 bug.
<add> # For more information, check rails/rails#13055.
<add> # It should be dropped once a new Ruby patch-level
<add> # release after 2.0.0-p353 happens.
<add> def ===(other) #:nodoc:
<add> value === other
<add> end
<add>
<ide> def method_missing(method, *args, &block) #:nodoc:
<ide> value.send(method, *args, &block)
<ide> end
<ide><path>activesupport/test/core_ext/duration_test.rb
<ide> def test_to_json
<ide> assert_equal '172800', 2.days.to_json
<ide> end
<ide>
<add> def test_case_when
<add> cased = case 1.day when 1.day then "ok" end
<add> assert_equal cased, "ok"
<add> end
<add>
<ide> protected
<ide> def with_env_tz(new_tz = 'US/Eastern')
<ide> old_tz, ENV['TZ'] = ENV['TZ'], new_tz | 2 |
Text | Text | fix spelling mistake in readme.md | ee31c9f8c63497d6e2931d5ed45e3638c25ef7e6 | <ide><path>README.md
<ide> Keras is compatible with: __Python 2.7-3.6__.
<ide>
<ide> - __User friendliness.__ Keras is an API designed for human beings, not machines. It puts user experience front and center. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear and actionable feedback upon user error.
<ide>
<del>- __Modularity.__ A model is understood as a sequence or a graph of standalone, fully-configurable modules that can be plugged together with as few restrictions as possible. In particular, neural layers, cost functions, optimizers, initialization schemes, activation functions, regularization schemes are all standalone modules that you can combine to create new models.
<add>- __Modularity.__ A model is understood as a sequence or a graph of standalone, fully configurable modules that can be plugged together with as few restrictions as possible. In particular, neural layers, cost functions, optimizers, initialization schemes, activation functions, regularization schemes are all standalone modules that you can combine to create new models.
<ide>
<ide> - __Easy extensibility.__ New modules are simple to add (as new classes and functions), and existing modules provide ample examples. To be able to easily create new modules allows for total expressiveness, making Keras suitable for advanced research.
<ide> | 1 |
Python | Python | fix logic in train cli timing eval on gpu | c045a9c7f637f85f7beccdae48a4cb765516d558 | <ide><path>spacy/cli/train.py
<ide> def train(
<ide> gpu_wps = nwords / (end_time - start_time)
<ide> # Only evaluate on CPU in the first iteration (for
<ide> # timing) if GPU is enabled
<del> if i >= 1:
<add> if i == 0:
<ide> with Model.use_device("cpu"):
<ide> nlp_loaded = util.load_model_from_path(epoch_model_path)
<ide> for name, component in nlp_loaded.pipeline: | 1 |
PHP | PHP | add a command to run all options | a0506536e790181ed186be97ccf06b4333337ef1 | <ide><path>lib/Cake/Console/Command/UpgradeShell.php
<ide> function startup() {
<ide> $this->out('<warning>Dry-run mode enabled!</warning>', 1, Shell::QUIET);
<ide> }
<ide> }
<add>
<add> function all() {
<add> foreach($this->OptionParser->subcommands() as $command) {
<add> $name = $command->name();
<add> if ($name === 'all') {
<add> continue;
<add> }
<add> $this->out('Running ' . $name);
<add> $this->$name();
<add> }
<add> }
<add>
<ide> /**
<ide> * Update helpers.
<ide> *
<ide> function getOptionParser() {
<ide> return parent::getOptionParser()
<ide> ->description("A shell to help automate upgrading from CakePHP 1.3 to 2.0. \n" .
<ide> "Be sure to have a backup of your application before running these commands.")
<add> ->addSubcommand('all', array(
<add> 'help' => 'Run all upgrade commands.',
<add> 'parser' => $subcommandParser
<add> ))
<ide> ->addSubcommand('i18n', array(
<ide> 'help' => 'Update the i18n translation method calls.',
<ide> 'parser' => $subcommandParser | 1 |
Java | Java | view resolution with content negotiation | 8cc72b320bc86e5acb380f3588d1ec926ed1e681 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/View.java
<ide> public interface View {
<ide>
<ide> /**
<del> * Return the list of media types this encoder supports.
<add> * Return the list of media types this View supports, or an empty list.
<ide> */
<ide> List<MediaType> getSupportedMediaTypes();
<ide>
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java
<ide> import org.springframework.core.ResolvableType;
<ide> import org.springframework.core.annotation.AnnotationAwareOrderComparator;
<ide> import org.springframework.core.convert.ConversionService;
<add>import org.springframework.http.MediaType;
<ide> import org.springframework.ui.Model;
<del>import org.springframework.util.Assert;
<ide> import org.springframework.util.StringUtils;
<ide> import org.springframework.web.bind.annotation.ModelAttribute;
<ide> import org.springframework.web.method.HandlerMethod;
<ide> import org.springframework.web.reactive.HandlerResult;
<ide> import org.springframework.web.reactive.HandlerResultHandler;
<add>import org.springframework.web.reactive.accept.HeaderContentTypeResolver;
<add>import org.springframework.web.reactive.accept.RequestedContentTypeResolver;
<add>import org.springframework.web.reactive.result.ContentNegotiatingResultHandlerSupport;
<add>import org.springframework.web.server.NotAcceptableStatusException;
<ide> import org.springframework.web.server.ServerWebExchange;
<ide> import org.springframework.web.util.HttpRequestPathHelper;
<ide>
<del>
<ide> /**
<ide> * {@code HandlerResultHandler} that encapsulates the view resolution algorithm
<ide> * supporting the following return types:
<ide> * If a view is left unspecified (e.g. by returning {@code null} or a
<ide> * model-related return value), a default view name is selected.
<ide> *
<del> * <p>This result handler should be ordered late relative to other result
<del> * handlers. See {@link #setOrder(int)} for more details.
<add> * <p>By default this resolver is ordered at {@link Ordered#LOWEST_PRECEDENCE}
<add> * and generally needs to be late in the order since it interprets any String
<add> * return value as a view name while others may interpret the same otherwise
<add> * based on annotations (e.g. for {@code @ResponseBody}).
<ide> *
<ide> * @author Rossen Stoyanchev
<ide> */
<del>public class ViewResolutionResultHandler implements HandlerResultHandler, Ordered {
<add>public class ViewResolutionResultHandler extends ContentNegotiatingResultHandlerSupport
<add> implements HandlerResultHandler, Ordered {
<ide>
<ide> private final List<ViewResolver> viewResolvers = new ArrayList<>(4);
<ide>
<del> private final ConversionService conversionService;
<del>
<del> private int order = Ordered.LOWEST_PRECEDENCE;
<add> private final List<View> defaultViews = new ArrayList<>(4);
<ide>
<ide> private final HttpRequestPathHelper pathHelper = new HttpRequestPathHelper();
<ide>
<ide>
<add> /**
<add> * Constructor with {@code ViewResolver}s and a {@code ConversionService} only
<add> * and creating a {@link HeaderContentTypeResolver}, i.e. using Accept header
<add> * to determine the requested content type.
<add> * @param resolvers the resolver to use
<add> * @param conversionService for converting other reactive types (e.g. rx.Single) to Mono
<add> */
<add> public ViewResolutionResultHandler(List<ViewResolver> resolvers, ConversionService conversionService) {
<add> this(resolvers, conversionService, new HeaderContentTypeResolver());
<add> }
<add>
<ide> /**
<ide> * Constructor with {@code ViewResolver}s tand a {@code ConversionService}.
<ide> * @param resolvers the resolver to use
<del> * @param service for converting other reactive types (e.g. rx.Single) to Mono
<add> * @param conversionService for converting other reactive types (e.g. rx.Single) to Mono
<add> * @param contentTypeResolver for resolving the requested content type
<ide> */
<del> public ViewResolutionResultHandler(List<ViewResolver> resolvers, ConversionService service) {
<del> Assert.notNull(service, "'conversionService' is required.");
<add> public ViewResolutionResultHandler(List<ViewResolver> resolvers, ConversionService conversionService,
<add> RequestedContentTypeResolver contentTypeResolver) {
<add>
<add> super(conversionService, contentTypeResolver);
<ide> this.viewResolvers.addAll(resolvers);
<ide> AnnotationAwareOrderComparator.sort(this.viewResolvers);
<del> this.conversionService = service;
<ide> }
<ide>
<ide>
<ide> public List<ViewResolver> getViewResolvers() {
<ide> }
<ide>
<ide> /**
<del> * Set the order for this result handler relative to others.
<del> * <p>By default this is set to {@link Ordered#LOWEST_PRECEDENCE} and
<del> * generally needs to be used late in the order since it interprets any
<del> * String return value as a view name while others may interpret the same
<del> * otherwise based on annotations (e.g. for {@code @ResponseBody}).
<del> * @param order the order
<add> * Set the default views to consider always when resolving view names and
<add> * trying to satisfy the best matching content type.
<ide> */
<del> public void setOrder(int order) {
<del> this.order = order;
<add> public void setDefaultViews(List<View> defaultViews) {
<add> this.defaultViews.clear();
<add> if (defaultViews != null) {
<add> this.defaultViews.addAll(defaultViews);
<add> }
<ide> }
<ide>
<del> @Override
<del> public int getOrder() {
<del> return this.order;
<add> public List<View> getDefaultViews() {
<add> return this.defaultViews;
<ide> }
<ide>
<ide> @Override
<ide> public boolean supports(HandlerResult result) {
<ide> if (isSupportedType(clazz)) {
<ide> return true;
<ide> }
<del> if (this.conversionService.canConvert(clazz, Mono.class)) {
<add> if (getConversionService().canConvert(clazz, Mono.class)) {
<ide> clazz = result.getReturnValueType().getGeneric(0).getRawClass();
<ide> return isSupportedType(clazz);
<ide> }
<ide> public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result)
<ide> ResolvableType elementType;
<ide> ResolvableType returnType = result.getReturnValueType();
<ide>
<del> if (this.conversionService.canConvert(returnType.getRawClass(), Mono.class)) {
<add> if (getConversionService().canConvert(returnType.getRawClass(), Mono.class)) {
<ide> Optional<Object> optionalValue = result.getReturnValue();
<ide> if (optionalValue.isPresent()) {
<del> Mono<?> converted = this.conversionService.convert(optionalValue.get(), Mono.class);
<add> Mono<?> converted = getConversionService().convert(optionalValue.get(), Mono.class);
<ide> valueMono = converted.map(o -> o);
<ide> }
<ide> else {
<ide> public Mono<Void> handleResult(ServerWebExchange exchange, HandlerResult result)
<ide> else if (returnValue instanceof CharSequence) {
<ide> String viewName = returnValue.toString();
<ide> Locale locale = Locale.getDefault(); // TODO
<del> return Flux.fromIterable(getViewResolvers())
<del> .concatMap(resolver -> resolver.resolveViewName(viewName, locale))
<del> .next()
<del> .otherwiseIfEmpty(handleUnresolvedViewName(viewName))
<del> .then(view -> view.render(result, null, exchange));
<add> return resolveViewAndRender(viewName, locale, result, exchange);
<add>
<ide> }
<ide> else {
<ide> // Should not happen
<ide> private static String getNameForReturnValue(Object returnValue, MethodParameter
<ide> }
<ide> }
<ide>
<del> private Mono<View> handleUnresolvedViewName(String viewName) {
<del> return Mono.error(new IllegalStateException(
<del> "Could not resolve view with name '" + viewName + "'."));
<add> private Mono<? extends Void> resolveViewAndRender(String viewName, Locale locale,
<add> HandlerResult result, ServerWebExchange exchange) {
<add>
<add> return Flux.fromIterable(getViewResolvers())
<add> .concatMap(resolver -> resolver.resolveViewName(viewName, locale))
<add> .switchIfEmpty(Mono.error(
<add> new IllegalStateException(
<add> "Could not resolve view with name '" + viewName + "'.")))
<add> .asList()
<add> .then(views -> {
<add> views.addAll(getDefaultViews());
<add>
<add> List<MediaType> producibleTypes = getProducibleMediaTypes(views);
<add> MediaType bestMediaType = selectMediaType(exchange, producibleTypes);
<add>
<add> if (bestMediaType != null) {
<add> for (View view : views) {
<add> for (MediaType supported : view.getSupportedMediaTypes()) {
<add> if (supported.isCompatibleWith(bestMediaType)) {
<add> return view.render(result, bestMediaType, exchange);
<add> }
<add> }
<add> }
<add> }
<add>
<add> return Mono.error(new NotAcceptableStatusException(producibleTypes));
<add> });
<add> }
<add>
<add> private List<MediaType> getProducibleMediaTypes(List<View> views) {
<add> List<MediaType> result = new ArrayList<>();
<add> views.forEach(view -> result.addAll(view.getSupportedMediaTypes()));
<add> return result;
<ide> }
<ide>
<ide> }
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java
<ide> import org.springframework.http.MediaType;
<ide> import org.springframework.http.server.reactive.MockServerHttpRequest;
<ide> import org.springframework.http.server.reactive.MockServerHttpResponse;
<del>import org.springframework.http.server.reactive.ServerHttpRequest;
<ide> import org.springframework.http.server.reactive.ServerHttpResponse;
<ide> import org.springframework.ui.ExtendedModelMap;
<ide> import org.springframework.ui.Model;
<ide> import org.springframework.ui.ModelMap;
<ide> import org.springframework.web.bind.annotation.ModelAttribute;
<ide> import org.springframework.web.method.HandlerMethod;
<ide> import org.springframework.web.reactive.HandlerResult;
<del>import org.springframework.web.reactive.HandlerResultHandler;
<add>import org.springframework.web.server.NotAcceptableStatusException;
<ide> import org.springframework.web.server.ServerWebExchange;
<ide> import org.springframework.web.server.adapter.DefaultServerWebExchange;
<ide> import org.springframework.web.server.session.DefaultWebSessionManager;
<ide> */
<ide> public class ViewResolutionResultHandlerTests {
<ide>
<add> private MockServerHttpRequest request;
<add>
<ide> private MockServerHttpResponse response;
<ide>
<ide> private ModelMap model;
<ide> public class ViewResolutionResultHandlerTests {
<ide> @Before
<ide> public void setUp() throws Exception {
<ide> this.model = new ExtendedModelMap().addAttribute("id", "123");
<add> this.request = new MockServerHttpRequest(HttpMethod.GET, new URI("/path"));
<add> this.response = new MockServerHttpResponse();
<ide> }
<ide>
<ide>
<ide> public void supportsWithNullReturnValue() throws Exception {
<ide>
<ide> @Test
<ide> public void order() throws Exception {
<del> TestViewResolver resolver1 = new TestViewResolver();
<del> TestViewResolver resolver2 = new TestViewResolver();
<add> TestViewResolver resolver1 = new TestViewResolver(new String[] {});
<add> TestViewResolver resolver2 = new TestViewResolver(new String[] {});
<ide> resolver1.setOrder(2);
<ide> resolver2.setOrder(1);
<ide>
<ide> public void testBean() throws Exception {
<ide> .assertValuesWith(buf -> assertEquals("account: {id=123, testBean=TestBean[name=Joe]}", asString(buf)));
<ide> }
<ide>
<add> @Test
<add> public void selectBestMediaType() throws Exception {
<add> TestView htmlView = new TestView("account");
<add> htmlView.setMediaTypes(Collections.singletonList(MediaType.TEXT_HTML));
<add>
<add> TestView jsonView = new TestView("defaultView");
<add> jsonView.setMediaTypes(Collections.singletonList(MediaType.APPLICATION_JSON));
<add>
<add> this.request.getHeaders().setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));
<add>
<add> handle("/account", "account", "handleString",
<add> Collections.singletonList(new TestViewResolver(htmlView)),
<add> Collections.singletonList(jsonView));
<add>
<add> assertEquals(MediaType.APPLICATION_JSON, this.response.getHeaders().getContentType());
<add> new TestSubscriber<DataBuffer>().bindTo(this.response.getBody())
<add> .assertValuesWith(buf -> assertEquals("defaultView: {id=123}", asString(buf)));
<add> }
<add>
<add> @Test
<add> public void selectBestMediaTypeNotAcceptable() throws Exception {
<add> TestView htmlView = new TestView("account");
<add> htmlView.setMediaTypes(Collections.singletonList(MediaType.TEXT_HTML));
<add>
<add> this.request.getHeaders().setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));
<add>
<add> handle("/account", "account", "handleString", new TestViewResolver(htmlView))
<add> .assertError(NotAcceptableStatusException.class);
<add>
<add> }
<ide>
<ide> private void testSupports(String methodName, boolean supports) throws NoSuchMethodException {
<ide> Method method = TestController.class.getMethod(methodName);
<ide> private void testSupports(String methodName, boolean supports) throws NoSuchMeth
<ide> private TestSubscriber<Void> handle(String path, Object value, String methodName,
<ide> ViewResolver... resolvers) throws Exception {
<ide>
<del> List<ViewResolver> resolverList = Arrays.asList(resolvers);
<add> return handle(path, value, methodName, Arrays.asList(resolvers), Collections.emptyList());
<add> }
<add>
<add> private TestSubscriber<Void> handle(String path, Object value, String methodName,
<add> List<ViewResolver> resolvers, List<View> defaultViews) throws Exception {
<add>
<ide> ConversionService conversionService = new DefaultConversionService();
<del> HandlerResultHandler handler = new ViewResolutionResultHandler(resolverList, conversionService);
<add> ViewResolutionResultHandler handler = new ViewResolutionResultHandler(resolvers, conversionService);
<add> handler.setDefaultViews(defaultViews);
<add>
<ide> Method method = TestController.class.getMethod(methodName);
<ide> HandlerMethod handlerMethod = new HandlerMethod(new TestController(), method);
<ide> ResolvableType type = ResolvableType.forMethodReturnType(method);
<ide> HandlerResult handlerResult = new HandlerResult(handlerMethod, value, type, this.model);
<ide>
<del> ServerHttpRequest request = new MockServerHttpRequest(HttpMethod.GET, new URI(path));
<del> this.response = new MockServerHttpResponse();
<add> this.request.setUri(new URI(path));
<ide> WebSessionManager sessionManager = new DefaultWebSessionManager();
<del> ServerWebExchange exchange = new DefaultServerWebExchange(request, this.response, sessionManager);
<add> ServerWebExchange exchange = new DefaultServerWebExchange(this.request, this.response, sessionManager);
<ide>
<ide> Mono<Void> mono = handler.handleResult(exchange, handlerResult);
<ide>
<ide> public TestViewResolver(String... viewNames) {
<ide> Arrays.stream(viewNames).forEach(name -> this.views.put(name, new TestView(name)));
<ide> }
<ide>
<add> public TestViewResolver(TestView... views) {
<add> Arrays.stream(views).forEach(view -> this.views.put(view.getName(), view));
<add> }
<add>
<ide> public void setOrder(int order) {
<ide> this.order = order;
<ide> }
<ide> public static final class TestView implements View {
<ide>
<ide> private final String name;
<ide>
<add> private List<MediaType> mediaTypes = Collections.singletonList(MediaType.TEXT_PLAIN);
<add>
<ide>
<ide> public TestView(String name) {
<ide> this.name = name;
<ide> public String getName() {
<ide> return this.name;
<ide> }
<ide>
<add> public void setMediaTypes(List<MediaType> mediaTypes) {
<add> this.mediaTypes = mediaTypes;
<add> }
<add>
<ide> @Override
<ide> public List<MediaType> getSupportedMediaTypes() {
<del> return null;
<add> return this.mediaTypes;
<ide> }
<ide>
<ide> @Override
<ide> public Mono<Void> render(HandlerResult result, MediaType mediaType, ServerWebExchange exchange) {
<ide> String value = this.name + ": " + result.getModel().toString();
<ide> assertNotNull(value);
<ide> ServerHttpResponse response = exchange.getResponse();
<add> if (mediaType != null) {
<add> response.getHeaders().setContentType(mediaType);
<add> }
<ide> return response.writeWith(Flux.just(asDataBuffer(value)));
<ide> }
<ide> } | 3 |
Mixed | Javascript | restore js implementation of realpath | 08996fde3c08c0cfabc7cc3fe332d83f674ab099 | <ide><path>doc/api/fs.md
<ide> added: v0.1.31
<ide> Asynchronous realpath(3). The `callback` gets two arguments `(err,
<ide> resolvedPath)`. May use `process.cwd` to resolve relative paths.
<ide>
<add>Only paths that can be converted to UTF8 strings are supported.
<add>
<ide> The optional `options` argument can be a string specifying an encoding, or an
<ide> object with an `encoding` property specifying the character encoding to use for
<ide> the path passed to the callback. If the `encoding` is set to `'buffer'`,
<ide> added: v0.1.31
<ide>
<ide> Synchronous realpath(3). Returns the resolved path.
<ide>
<add>Only paths that can be converted to UTF8 strings are supported.
<add>
<ide> The optional `options` argument can be a string specifying an encoding, or an
<ide> object with an `encoding` property specifying the character encoding to use for
<del>the path passed to the callback. If the `encoding` is set to `'buffer'`,
<del>the path returned will be passed as a `Buffer` object.
<add>the returned value. If the `encoding` is set to `'buffer'`, the path returned
<add>will be passed as a `Buffer` object.
<ide>
<ide> ## fs.rename(oldPath, newPath, callback)
<ide> <!-- YAML
<ide><path>lib/fs.js
<ide> fs.unwatchFile = function(filename, listener) {
<ide> };
<ide>
<ide>
<del>fs.realpathSync = function realpathSync(path, options) {
<add>// Regexp that finds the next portion of a (partial) path
<add>// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
<add>const nextPartRe = isWindows ?
<add> /(.*?)(?:[\/\\]+|$)/g :
<add> /(.*?)(?:[\/]+|$)/g;
<add>
<add>// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
<add>const splitRootRe = isWindows ?
<add> /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/ :
<add> /^[\/]*/;
<add>
<add>function encodeRealpathResult(result, options, err) {
<add> if (!options || !options.encoding || options.encoding === 'utf8' || err)
<add> return result;
<add> const asBuffer = Buffer.from(result);
<add> if (options.encoding === 'buffer') {
<add> return asBuffer;
<add> } else {
<add> return asBuffer.toString(options.encoding);
<add> }
<add>}
<add>
<add>fs.realpathSync = function realpathSync(p, options) {
<ide> if (!options)
<ide> options = {};
<ide> else if (typeof options === 'string')
<ide> options = {encoding: options};
<ide> else if (typeof options !== 'object')
<ide> throw new TypeError('"options" must be a string or an object');
<del> nullCheck(path);
<del> return binding.realpath(pathModule._makeLong(path), options.encoding);
<add> nullCheck(p);
<add>
<add> p = p.toString('utf8');
<add> p = pathModule.resolve(p);
<add>
<add> const seenLinks = {};
<add> const knownHard = {};
<add>
<add> // current character position in p
<add> var pos;
<add> // the partial path so far, including a trailing slash if any
<add> var current;
<add> // the partial path without a trailing slash (except when pointing at a root)
<add> var base;
<add> // the partial path scanned in the previous round, with slash
<add> var previous;
<add>
<add> start();
<add>
<add> function start() {
<add> // Skip over roots
<add> var m = splitRootRe.exec(p);
<add> pos = m[0].length;
<add> current = m[0];
<add> base = m[0];
<add> previous = '';
<add>
<add> // On windows, check that the root exists. On unix there is no need.
<add> if (isWindows && !knownHard[base]) {
<add> fs.lstatSync(base);
<add> knownHard[base] = true;
<add> }
<add> }
<add>
<add> // walk down the path, swapping out linked pathparts for their real
<add> // values
<add> // NB: p.length changes.
<add> while (pos < p.length) {
<add> // find the next part
<add> nextPartRe.lastIndex = pos;
<add> var result = nextPartRe.exec(p);
<add> previous = current;
<add> current += result[0];
<add> base = previous + result[1];
<add> pos = nextPartRe.lastIndex;
<add>
<add> // continue if not a symlink
<add> if (knownHard[base]) {
<add> continue;
<add> }
<add>
<add> var resolvedLink;
<add> var stat = fs.lstatSync(base);
<add> if (!stat.isSymbolicLink()) {
<add> knownHard[base] = true;
<add> continue;
<add> }
<add>
<add> // read the link if it wasn't read before
<add> // dev/ino always return 0 on windows, so skip the check.
<add> var linkTarget = null;
<add> if (!isWindows) {
<add> var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
<add> if (seenLinks.hasOwnProperty(id)) {
<add> linkTarget = seenLinks[id];
<add> }
<add> }
<add> if (linkTarget === null) {
<add> fs.statSync(base);
<add> linkTarget = fs.readlinkSync(base);
<add> }
<add> resolvedLink = pathModule.resolve(previous, linkTarget);
<add>
<add> if (!isWindows) seenLinks[id] = linkTarget;
<add>
<add> // resolve the link, then start over
<add> p = pathModule.resolve(resolvedLink, p.slice(pos));
<add> start();
<add> }
<add>
<add> return encodeRealpathResult(p, options);
<ide> };
<ide>
<ide>
<del>fs.realpath = function realpath(path, options, callback) {
<add>fs.realpath = function realpath(p, options, callback) {
<add> if (typeof callback !== 'function') {
<add> callback = maybeCallback(options);
<add> options = {};
<add> }
<add>
<ide> if (!options) {
<ide> options = {};
<ide> } else if (typeof options === 'function') {
<del> callback = options;
<ide> options = {};
<ide> } else if (typeof options === 'string') {
<ide> options = {encoding: options};
<ide> } else if (typeof options !== 'object') {
<ide> throw new TypeError('"options" must be a string or an object');
<ide> }
<del> callback = makeCallback(callback);
<del> if (!nullCheck(path, callback))
<add> if (!nullCheck(p, callback))
<ide> return;
<del> var req = new FSReqWrap();
<del> req.oncomplete = callback;
<del> binding.realpath(pathModule._makeLong(path), options.encoding, req);
<del> return;
<del>};
<ide>
<add> p = p.toString('utf8');
<add> p = pathModule.resolve(p);
<add>
<add> const seenLinks = {};
<add> const knownHard = {};
<add>
<add> // current character position in p
<add> var pos;
<add> // the partial path so far, including a trailing slash if any
<add> var current;
<add> // the partial path without a trailing slash (except when pointing at a root)
<add> var base;
<add> // the partial path scanned in the previous round, with slash
<add> var previous;
<add>
<add> start();
<add>
<add> function start() {
<add> // Skip over roots
<add> var m = splitRootRe.exec(p);
<add> pos = m[0].length;
<add> current = m[0];
<add> base = m[0];
<add> previous = '';
<add>
<add> // On windows, check that the root exists. On unix there is no need.
<add> if (isWindows && !knownHard[base]) {
<add> fs.lstat(base, function(err) {
<add> if (err) return callback(err);
<add> knownHard[base] = true;
<add> LOOP();
<add> });
<add> } else {
<add> process.nextTick(LOOP);
<add> }
<add> }
<add>
<add> // walk down the path, swapping out linked pathparts for their real
<add> // values
<add> function LOOP() {
<add> // stop if scanned past end of path
<add> if (pos >= p.length) {
<add> return callback(null, encodeRealpathResult(p, options));
<add> }
<add>
<add> // find the next part
<add> nextPartRe.lastIndex = pos;
<add> var result = nextPartRe.exec(p);
<add> previous = current;
<add> current += result[0];
<add> base = previous + result[1];
<add> pos = nextPartRe.lastIndex;
<add>
<add> // continue if not a symlink
<add> if (knownHard[base]) {
<add> return process.nextTick(LOOP);
<add> }
<add>
<add> return fs.lstat(base, gotStat);
<add> }
<add>
<add> function gotStat(err, stat) {
<add> if (err) return callback(err);
<add>
<add> // if not a symlink, skip to the next path part
<add> if (!stat.isSymbolicLink()) {
<add> knownHard[base] = true;
<add> return process.nextTick(LOOP);
<add> }
<add>
<add> // stat & read the link if not read before
<add> // call gotTarget as soon as the link target is known
<add> // dev/ino always return 0 on windows, so skip the check.
<add> if (!isWindows) {
<add> var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
<add> if (seenLinks.hasOwnProperty(id)) {
<add> return gotTarget(null, seenLinks[id], base);
<add> }
<add> }
<add> fs.stat(base, function(err) {
<add> if (err) return callback(err);
<add>
<add> fs.readlink(base, function(err, target) {
<add> if (!isWindows) seenLinks[id] = target;
<add> gotTarget(err, target);
<add> });
<add> });
<add> }
<add>
<add> function gotTarget(err, target, base) {
<add> if (err) return callback(err);
<add>
<add> var resolvedLink = pathModule.resolve(previous, target);
<add> gotResolvedLink(resolvedLink);
<add> }
<add>
<add> function gotResolvedLink(resolvedLink) {
<add> // resolve the link, then start over
<add> p = pathModule.resolve(resolvedLink, p.slice(pos));
<add> start();
<add> }
<add>};
<ide>
<ide> fs.mkdtemp = function(prefix, options, callback) {
<ide> if (!prefix || typeof prefix !== 'string')
<ide><path>test/parallel/test-fs-realpath-buffer-encoding.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const fs = require('fs');
<add>
<add>const string_dir = fs.realpathSync(common.fixturesDir);
<add>const buffer_dir = Buffer.from(string_dir);
<add>
<add>const encodings = ['ascii', 'utf8', 'utf16le', 'ucs2',
<add> 'base64', 'binary', 'hex'];
<add>var expected = {};
<add>encodings.forEach((encoding) => {
<add> expected[encoding] = buffer_dir.toString(encoding);
<add>});
<add>
<add>
<add>// test sync version
<add>for (var encoding in expected) {
<add> const expected_value = expected[encoding];
<add> let result;
<add>
<add> result = fs.realpathSync(string_dir, {encoding: encoding});
<add> assert.strictEqual(result, expected_value);
<add>
<add> result = fs.realpathSync(string_dir, encoding);
<add> assert.strictEqual(result, expected_value);
<add>
<add> result = fs.realpathSync(buffer_dir, {encoding: encoding});
<add> assert.strictEqual(result, expected_value);
<add>
<add> result = fs.realpathSync(buffer_dir, encoding);
<add> assert.strictEqual(result, expected_value);
<add>}
<add>
<add>let buffer_result;
<add>buffer_result = fs.realpathSync(string_dir, {encoding: 'buffer'});
<add>assert.deepStrictEqual(buffer_result, buffer_dir);
<add>
<add>buffer_result = fs.realpathSync(string_dir, 'buffer');
<add>assert.deepStrictEqual(buffer_result, buffer_dir);
<add>
<add>buffer_result = fs.realpathSync(buffer_dir, {encoding: 'buffer'});
<add>assert.deepStrictEqual(buffer_result, buffer_dir);
<add>
<add>buffer_result = fs.realpathSync(buffer_dir, 'buffer');
<add>assert.deepStrictEqual(buffer_result, buffer_dir);
<add>
<add>// test async version
<add>for (encoding in expected) {
<add> const expected_value = expected[encoding];
<add>
<add> fs.realpath(string_dir, {encoding: encoding}, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.strictEqual(res, expected_value);
<add> }));
<add> fs.realpath(string_dir, encoding, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.strictEqual(res, expected_value);
<add> }));
<add> fs.realpath(buffer_dir, {encoding: encoding}, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.strictEqual(res, expected_value);
<add> }));
<add> fs.realpath(buffer_dir, encoding, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.strictEqual(res, expected_value);
<add> }));
<add>}
<add>
<add>fs.realpath(string_dir, {encoding: 'buffer'}, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.deepStrictEqual(res, buffer_dir);
<add>}));
<add>
<add>fs.realpath(string_dir, 'buffer', common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.deepStrictEqual(res, buffer_dir);
<add>}));
<add>
<add>fs.realpath(buffer_dir, {encoding: 'buffer'}, common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.deepStrictEqual(res, buffer_dir);
<add>}));
<add>
<add>fs.realpath(buffer_dir, 'buffer', common.mustCall((err, res) => {
<add> assert(!err);
<add> assert.deepStrictEqual(res, buffer_dir);
<add>}));
<ide><path>test/parallel/test-fs-realpath-on-substed-drive.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const fs = require('fs');
<add>const spawnSync = require('child_process').spawnSync;
<add>
<add>if (!common.isWindows) {
<add> common.skip('Test for Windows only');
<add> return;
<add>}
<add>let result;
<add>
<add>// create a subst drive
<add>const driveLetters = 'ABCDEFGHIJKLMNOPQRSTUWXYZ';
<add>let drive;
<add>for (var i = 0; i < driveLetters.length; ++i) {
<add> drive = `${driveLetters[i]}:`;
<add> result = spawnSync('subst', [drive, common.fixturesDir]);
<add> if (result.status === 0)
<add> break;
<add>}
<add>if (i === driveLetters.length) {
<add> common.skip('Cannot create subst drive');
<add> return;
<add>}
<add>
<add>// schedule cleanup (and check if all callbacks where called)
<add>process.on('exit', function() {
<add> spawnSync('subst', ['/d', drive]);
<add>});
<add>
<add>// test:
<add>const filename = `${drive}\\empty.js`;
<add>const filenameBuffer = Buffer.from(filename);
<add>
<add>result = fs.realpathSync(filename);
<add>assert.strictEqual(result, filename);
<add>
<add>result = fs.realpathSync(filename, 'buffer');
<add>assert(Buffer.isBuffer(result));
<add>assert(result.equals(filenameBuffer));
<add>
<add>fs.realpath(filename, common.mustCall(function(err, result) {
<add> assert(!err);
<add> assert.strictEqual(result, filename);
<add>}));
<add>
<add>fs.realpath(filename, 'buffer', common.mustCall(function(err, result) {
<add> assert(!err);
<add> assert(Buffer.isBuffer(result));
<add> assert(result.equals(filenameBuffer));
<add>})); | 4 |
Ruby | Ruby | use backticks instead of popen | 8b4645d895e6d998e56603dcd05362e20df0ac71 | <ide><path>Library/Homebrew/utils.rb
<ide> def archs_for_command cmd
<ide> cmd = `/usr/bin/which #{cmd}` unless Pathname.new(cmd).absolute?
<ide> cmd.gsub! ' ', '\\ ' # Escape spaces in the filename.
<ide>
<del> archs = IO.popen("/usr/bin/file -L #{cmd}").readlines.inject([]) do |archs, line|
<add> lines = `/usr/bin/file -L #{cmd}`
<add> archs = lines.to_a.inject([]) do |archs, line|
<ide> case line
<ide> when /Mach-O (executable|dynamically linked shared library) ppc/
<ide> archs << :ppc7400 | 1 |
Mixed | Ruby | add more documentation for create_join_table | 743d15bba182df80d003d205690ead988970299c | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def create_table(table_name, options = {})
<ide> # Set to true to drop the table before creating it.
<ide> # Defaults to false.
<ide> #
<add> # Note that +create_join_table+ does not create any indices by default; you can use
<add> # its block form to do so yourself:
<add> #
<add> # create_join_table :products, :categories do |t|
<add> # t.index :products
<add> # t.index :categories
<add> # end
<add> #
<ide> # ====== Add a backend specific option to the generated SQL (MySQL)
<ide> # create_join_table(:assemblies, :parts, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8')
<ide> # generates:
<ide><path>guides/source/migrations.md
<ide> create_join_table :products, :categories, column_options: {null: true}
<ide> will create the `product_id` and `category_id` with the `:null` option as
<ide> `true`.
<ide>
<add>`create_join_table` also accepts a block, which you can use to add indices
<add>(which are not created by default) or additional columns:
<add>
<add>```ruby
<add>create_join_table :products, :categories do |t|
<add> t.index :products
<add> t.index :categories
<add>end
<add>```
<add>
<ide> ### Changing Tables
<ide>
<ide> A close cousin of `create_table` is `change_table`, used for changing existing | 2 |
Python | Python | add global pooling layers | 065fb2a74ccde5f411483df9cfa1e95c64800c73 | <ide><path>docs/autogen.py
<ide> sys.setdefaultencoding('utf8')
<ide>
<ide> from keras.layers import convolutional
<add>from keras.layers import pooling
<ide> from keras.layers import local
<ide> from keras.layers import recurrent
<ide> from keras.layers import core
<ide> {
<ide> 'page': 'layers/pooling.md',
<ide> 'classes': [
<del> convolutional.MaxPooling1D,
<del> convolutional.MaxPooling2D,
<del> convolutional.MaxPooling3D,
<del> convolutional.AveragePooling1D,
<del> convolutional.AveragePooling2D,
<del> convolutional.AveragePooling3D,
<add> pooling.MaxPooling1D,
<add> pooling.MaxPooling2D,
<add> pooling.MaxPooling3D,
<add> pooling.AveragePooling1D,
<add> pooling.AveragePooling2D,
<add> pooling.AveragePooling3D,
<add> pooling.GlobalMaxPooling1D,
<add> pooling.GlobalAveragePooling1D,
<add> pooling.GlobalMaxPooling2D,
<add> pooling.GlobalAveragePooling2D,
<ide> ],
<ide> },
<ide> {
<ide><path>keras/layers/pooling.py
<ide> def _pooling_function(self, inputs, pool_size, strides,
<ide> output = K.pool3d(inputs, pool_size, strides,
<ide> border_mode, dim_ordering, pool_mode='avg')
<ide> return output
<add>
<add>
<add>class _GlobalPooling1D(Layer):
<add>
<add> def __init__(self, **kwargs):
<add> super(_GlobalPooling1D, self).__init__(**kwargs)
<add> self.input_spec = [InputSpec(ndim=3)]
<add>
<add> def get_output_shape_for(self, input_shape):
<add> return (input_shape[0], input_shape[2])
<add>
<add> def call(self, x, mask=None):
<add> raise NotImplementedError
<add>
<add>
<add>class GlobalAveragePooling1D(_GlobalPooling1D):
<add> '''Global average pooling operation for temporal data.
<add>
<add> # Input shape
<add> 3D tensor with shape: `(samples, steps, features)`.
<add>
<add> # Output shape
<add> 2D tensor with shape: `(samples, features)`.
<add> '''
<add>
<add> def call(self, x, mask=None):
<add> return K.mean(x, axis=1)
<add>
<add>
<add>class GlobalMaxPooling1D(_GlobalPooling1D):
<add> '''Global max pooling operation for temporal data.
<add>
<add> # Input shape
<add> 3D tensor with shape: `(samples, steps, features)`.
<add>
<add> # Output shape
<add> 2D tensor with shape: `(samples, features)`.
<add> '''
<add>
<add> def call(self, x, mask=None):
<add> return K.max(x, axis=1)
<add>
<add>
<add>class _GlobalPooling2D(Layer):
<add>
<add> def __init__(self, dim_ordering='default', **kwargs):
<add> super(_GlobalPooling2D, self).__init__(**kwargs)
<add> if dim_ordering == 'default':
<add> dim_ordering = K.image_dim_ordering()
<add> print(dim_ordering)
<add> self.dim_ordering = dim_ordering
<add> self.input_spec = [InputSpec(ndim=4)]
<add>
<add> def get_output_shape_for(self, input_shape):
<add> if self.dim_ordering == 'tf':
<add> return (input_shape[0], input_shape[3])
<add> else:
<add> return (input_shape[0], input_shape[1])
<add>
<add> def call(self, x, mask=None):
<add> raise NotImplementedError
<add>
<add> def get_config(self):
<add> config = {'dim_ordering': self.dim_ordering}
<add> base_config = super(_GlobalPooling2D, self).get_config()
<add> return dict(list(base_config.items()) + list(config.items()))
<add>
<add>
<add>class GlobalAveragePooling2D(_GlobalPooling2D):
<add> '''Global average pooling operation for spatial data.
<add>
<add> # Arguments
<add> dim_ordering: 'th' or 'tf'. In 'th' mode, the channels dimension
<add> (the depth) is at index 1, in 'tf' mode is it at index 3.
<add> It defaults to the `image_dim_ordering` value found in your
<add> Keras config file at `~/.keras/keras.json`.
<add> If you never set it, then it will be "th".
<add>
<add> # Input shape
<add> 4D tensor with shape:
<add> `(samples, channels, rows, cols)` if dim_ordering='th'
<add> or 4D tensor with shape:
<add> `(samples, rows, cols, channels)` if dim_ordering='tf'.
<add>
<add> # Output shape
<add> 2D tensor with shape:
<add> `(nb_samples, channels)`
<add> '''
<add>
<add> def call(self, x, mask=None):
<add> if self.dim_ordering == 'tf':
<add> return K.mean(x, axis=[1, 2])
<add> else:
<add> return K.mean(x, axis=[2, 3])
<add>
<add>
<add>class GlobalMaxPooling2D(_GlobalPooling2D):
<add> '''Global max pooling operation for spatial data.
<add>
<add> # Arguments
<add> dim_ordering: 'th' or 'tf'. In 'th' mode, the channels dimension
<add> (the depth) is at index 1, in 'tf' mode is it at index 3.
<add> It defaults to the `image_dim_ordering` value found in your
<add> Keras config file at `~/.keras/keras.json`.
<add> If you never set it, then it will be "th".
<add>
<add> # Input shape
<add> 4D tensor with shape:
<add> `(samples, channels, rows, cols)` if dim_ordering='th'
<add> or 4D tensor with shape:
<add> `(samples, rows, cols, channels)` if dim_ordering='tf'.
<add>
<add> # Output shape
<add> 2D tensor with shape:
<add> `(nb_samples, channels)`
<add> '''
<add>
<add> def call(self, x, mask=None):
<add> if self.dim_ordering == 'tf':
<add> return K.max(x, axis=[1, 2])
<add> else:
<add> return K.max(x, axis=[2, 3])
<ide><path>tests/keras/layers/test_convolutional.py
<ide> from keras.utils.test_utils import layer_test, keras_test
<ide> from keras.utils.np_utils import conv_input_length
<ide> from keras import backend as K
<del>from keras.layers import convolutional
<add>from keras.layers import convolutional, pooling
<ide>
<ide>
<ide> @keras_test
<ide> def test_separable_conv_2d():
<ide> input_shape=(nb_samples, stack_size, nb_row, nb_col))
<ide>
<ide>
<add>@keras_test
<add>def test_globalpooling_1d():
<add> layer_test(pooling.GlobalMaxPooling1D,
<add> input_shape=(3, 4, 5))
<add> layer_test(pooling.GlobalAveragePooling1D,
<add> input_shape=(3, 4, 5))
<add>
<add>
<add>@keras_test
<add>def test_globalpooling_2d():
<add> layer_test(pooling.GlobalMaxPooling2D,
<add> kwargs={'dim_ordering': 'th'},
<add> input_shape=(3, 4, 5, 6))
<add> layer_test(pooling.GlobalMaxPooling2D,
<add> kwargs={'dim_ordering': 'tf'},
<add> input_shape=(3, 5, 6, 4))
<add> layer_test(pooling.GlobalAveragePooling2D,
<add> kwargs={'dim_ordering': 'th'},
<add> input_shape=(3, 4, 5, 6))
<add> layer_test(pooling.GlobalAveragePooling2D,
<add> kwargs={'dim_ordering': 'tf'},
<add> input_shape=(3, 5, 6, 4))
<add>
<add>
<ide> @keras_test
<ide> def test_maxpooling_2d():
<ide> pool_size = (3, 3)
<ide> def test_cropping_1d():
<ide> kwargs={'cropping': (2, 2)},
<ide> input_shape=input.shape)
<ide>
<add>
<ide> def test_cropping_2d():
<ide> nb_samples = 2
<ide> stack_size = 2
<del> input_len_dim1 = 10
<del> input_len_dim2 = 20
<add> input_len_dim1 = 8
<add> input_len_dim2 = 8
<ide> cropping = ((2, 2), (3, 3))
<ide> dim_ordering = K.image_dim_ordering()
<del>
<add>
<ide> if dim_ordering == 'th':
<ide> input = np.random.rand(nb_samples, stack_size, input_len_dim1, input_len_dim2)
<ide> else:
<ide> input = np.random.rand(nb_samples, input_len_dim1, input_len_dim2, stack_size)
<del> # basic test
<add> # basic test
<ide> layer_test(convolutional.Cropping2D,
<ide> kwargs={'cropping': cropping,
<ide> 'dim_ordering': dim_ordering},
<ide> def test_cropping_2d():
<ide> out = K.eval(layer.output)
<ide> # compare with numpy
<ide> if dim_ordering == 'th':
<del> expected_out = input[:,
<del> :,
<del> cropping[0][0]:-cropping[0][1],
<add> expected_out = input[:,
<add> :,
<add> cropping[0][0]:-cropping[0][1],
<ide> cropping[1][0]:-cropping[1][1]]
<ide> else:
<del> expected_out = input[:,
<del> cropping[0][0]:-cropping[0][1],
<del> cropping[1][0]:-cropping[1][1],
<add> expected_out = input[:,
<add> cropping[0][0]:-cropping[0][1],
<add> cropping[1][0]:-cropping[1][1],
<ide> :]
<ide>
<ide> assert_allclose(out, expected_out)
<ide> def test_cropping_2d():
<ide> def test_cropping_3d():
<ide> nb_samples = 2
<ide> stack_size = 2
<del> input_len_dim1 = 10
<del> input_len_dim2 = 20
<del> input_len_dim3 = 30
<add> input_len_dim1 = 8
<add> input_len_dim2 = 8
<add> input_len_dim3 = 8
<ide> cropping = ((2, 2), (3, 3), (2, 3))
<ide> dim_ordering = K.image_dim_ordering()
<del>
<add>
<ide> if dim_ordering == 'th':
<ide> input = np.random.rand(nb_samples, stack_size, input_len_dim1, input_len_dim2, input_len_dim3)
<ide> else:
<ide> input = np.random.rand(nb_samples, input_len_dim1, input_len_dim2, input_len_dim3, stack_size)
<del> # basic test
<add> # basic test
<ide> layer_test(convolutional.Cropping3D,
<ide> kwargs={'cropping': cropping,
<ide> 'dim_ordering': dim_ordering},
<ide> def test_cropping_3d():
<ide> out = K.eval(layer.output)
<ide> # compare with numpy
<ide> if dim_ordering == 'th':
<del> expected_out = input[:,
<del> :,
<del> cropping[0][0]:-cropping[0][1],
<del> cropping[1][0]:-cropping[1][1],
<add> expected_out = input[:,
<add> :,
<add> cropping[0][0]:-cropping[0][1],
<add> cropping[1][0]:-cropping[1][1],
<ide> cropping[2][0]:-cropping[2][1]]
<ide> else:
<del> expected_out = input[:,
<del> cropping[0][0]:-cropping[0][1],
<del> cropping[1][0]:-cropping[1][1],
<del> cropping[2][0]:-cropping[2][1],
<add> expected_out = input[:,
<add> cropping[0][0]:-cropping[0][1],
<add> cropping[1][0]:-cropping[1][1],
<add> cropping[2][0]:-cropping[2][1],
<ide> :]
<ide>
<ide> assert_allclose(out, expected_out)
<ide>
<del>
<del>def test_cropping_3d():
<del> pass
<ide> if __name__ == '__main__':
<ide> pytest.main([__file__]) | 3 |
Java | Java | add unit tests for handlerthreadscheduler | 0959aa599fa3089efb508b85ebd51bf634c5c02c | <ide><path>rxjava-contrib/rxjava-android/src/main/java/rx/concurrency/HandlerThreadScheduler.java
<ide> package rx.concurrency;
<ide>
<ide> import android.os.Handler;
<add>import org.junit.Test;
<add>import org.junit.runner.RunWith;
<add>import org.mockito.ArgumentCaptor;
<ide> import rx.Scheduler;
<ide> import rx.Subscription;
<add>import rx.android.testsupport.AndroidTestRunner;
<ide> import rx.operators.AtomicObservableSubscription;
<ide> import rx.util.functions.Func2;
<ide>
<ide> import java.util.concurrent.TimeUnit;
<ide>
<add>import static org.mockito.Matchers.any;
<add>import static org.mockito.Matchers.anyLong;
<add>import static org.mockito.Matchers.eq;
<add>import static org.mockito.Mockito.mock;
<add>import static org.mockito.Mockito.never;
<add>import static org.mockito.Mockito.verify;
<add>
<ide> /**
<ide> * Schedules actions to run on an Android Handler thread.
<ide> */
<ide> public void run() {
<ide> return subscription;
<ide> }
<ide> }
<add>
<add> @RunWith(AndroidTestRunner.class)
<add> public static final class UnitTest {
<add>
<add> @Test
<add> public void shouldScheduleActionOnHandlerThread() {
<add> final Handler handler = mock(Handler.class);
<add> final Object state = new Object();
<add> final Func2<Scheduler, Object, Subscription> action = mock(Func2.class);
<add>
<add> Scheduler scheduler = new HandlerThreadScheduler(handler);
<add> scheduler.schedule(state, action);
<add>
<add> // verify that we post to the given Handler
<add> ArgumentCaptor<Runnable> runnable = ArgumentCaptor.forClass(Runnable.class);
<add> verify(handler).post(runnable.capture());
<add>
<add> // verify that the given handler delegates to our action
<add> runnable.getValue().run();
<add> verify(action).call(scheduler, state);
<add> }
<add>
<add> @Test
<add> public void shouldScheduleDelayedActionOnHandlerThread() {
<add> final Handler handler = mock(Handler.class);
<add> final Object state = new Object();
<add> final Func2<Scheduler, Object, Subscription> action = mock(Func2.class);
<add>
<add> Scheduler scheduler = new HandlerThreadScheduler(handler);
<add> scheduler.schedule(state, action, 1L, TimeUnit.SECONDS);
<add>
<add> // verify that we post to the given Handler
<add> ArgumentCaptor<Runnable> runnable = ArgumentCaptor.forClass(Runnable.class);
<add> verify(handler).postDelayed(runnable.capture(), eq(1000L));
<add>
<add> // verify that the given handler delegates to our action
<add> runnable.getValue().run();
<add> verify(action).call(scheduler, state);
<add> }
<add>
<add> @Test
<add> public void scheduleDelayedActionShouldForwardToNormalPostIfDelayIsZero() {
<add> final Handler handler = mock(Handler.class);
<add> final Object state = new Object();
<add> final Func2<Scheduler, Object, Subscription> action = mock(Func2.class);
<add>
<add> Scheduler scheduler = new HandlerThreadScheduler(handler);
<add> scheduler.schedule(state, action, 0L, TimeUnit.SECONDS);
<add>
<add> // verify that we post to the given Handler
<add> verify(handler).post(any(Runnable.class));
<add> verify(handler, never()).postDelayed(any(Runnable.class), anyLong());
<add> }
<add>
<add> }
<ide> }
<ide>
<ide> | 1 |
Go | Go | use const for clocktickspersecond | b42ac8d370a8ef8ec720dff0ca9dfb3530ac0a6a | <ide><path>daemon/stats/collector.go
<ide> type Collector struct {
<ide> interval time.Duration
<ide> publishers map[*container.Container]*pubsub.Publisher
<ide> bufReader *bufio.Reader
<del>
<del> // The following fields are not set on Windows currently.
<del> clockTicksPerSecond uint64
<ide> }
<ide>
<ide> // NewCollector creates a stats collector that will poll the supervisor with the specified interval
<ide> func NewCollector(supervisor supervisor, interval time.Duration) *Collector {
<ide> bufReader: bufio.NewReaderSize(nil, 128),
<ide> }
<ide> s.cond = sync.NewCond(&s.m)
<del>
<del> platformNewStatsCollector(s)
<del>
<ide> return s
<ide> }
<ide>
<ide><path>daemon/stats/collector_unix.go
<ide> import (
<ide> "strconv"
<ide> "strings"
<ide>
<del> "github.com/opencontainers/runc/libcontainer/system"
<ide> "golang.org/x/sys/unix"
<ide> )
<ide>
<del>// platformNewStatsCollector performs platform specific initialisation of the
<del>// Collector structure.
<del>func platformNewStatsCollector(s *Collector) {
<del> s.clockTicksPerSecond = uint64(system.GetClockTicks())
<del>}
<del>
<del>const nanoSecondsPerSecond = 1e9
<add>const (
<add> // The value comes from `C.sysconf(C._SC_CLK_TCK)`, and
<add> // on Linux it's a constant which is safe to be hard coded,
<add> // so we can avoid using cgo here. For details, see:
<add> // https://github.com/containerd/cgroups/pull/12
<add> clockTicksPerSecond = 100
<add> nanoSecondsPerSecond = 1e9
<add>)
<ide>
<ide> // getSystemCPUUsage returns the host system's cpu usage in
<ide> // nanoseconds. An error is returned if the format of the underlying
<ide> func (s *Collector) getSystemCPUUsage() (uint64, error) {
<ide> totalClockTicks += v
<ide> }
<ide> return (totalClockTicks * nanoSecondsPerSecond) /
<del> s.clockTicksPerSecond, nil
<add> clockTicksPerSecond, nil
<ide> }
<ide> }
<ide> return 0, fmt.Errorf("invalid stat format. Error trying to parse the '/proc/stat' file")
<ide><path>daemon/stats/collector_windows.go
<ide> package stats // import "github.com/docker/docker/daemon/stats"
<ide>
<del>// platformNewStatsCollector performs platform specific initialisation of the
<del>// Collector structure. This is a no-op on Windows.
<del>func platformNewStatsCollector(s *Collector) {
<del>}
<del>
<ide> // getSystemCPUUsage returns the host system's cpu usage in
<ide> // nanoseconds. An error is returned if the format of the underlying
<ide> // file does not match. This is a no-op on Windows. | 3 |
Javascript | Javascript | remove reactinstancemap_do_not_use shim | b43b36dd91dcd09282a334b61e79dd89e2a08dcf | <ide><path>scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> */
<del>
<del>'use strict';
<del>
<del>const {
<del> __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
<del>} = require('ReactDOM');
<del>
<del>module.exports =
<del> __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactInstanceMap; | 1 |
Text | Text | add issue and pr templates | 31ed2dba2469be0da82dcfe83c0869147aa7dcf9 | <ide><path>.github/ISSUE_TEMPLATE.md
<add>### Resume
<add>
<add>| Q | A
<add>| ------------- | ---
<add>| Bug? | yes/no
<add>| New feature? | yes/no
<add>
<add>### Description
<add>
<add>
<add>### Versions
<add>
<add><!-- You can use `glances -V` to retrieve Glances and PSutil versions -->
<add>
<add>* Glances:
<add>* PSutil:
<add>* OS:
<ide><path>.github/PULL_REQUEST_TEMPLATE.md
<add>### Resume
<add>
<add>| Q | A
<add>| ------------- | ---
<add>| Bug fix? | yes/no
<add>| New feature? | yes/no
<add>| BC breaks? | yes/no
<add>| Deprecations? | yes/no
<add>| Fixed tickets | comma-separated list of tickets fixed by the PR, if any
<add>
<add>### Description | 2 |
Javascript | Javascript | set default encoding in sendbody | 4e16e386fec675b576669e67f25efe47854ffef6 | <ide><path>lib/http.js
<ide> OutgoingMessage.prototype.sendHeaderLines = function (first_line, headers) {
<ide> };
<ide>
<ide> OutgoingMessage.prototype.sendBody = function (chunk, encoding) {
<add> encoding = encoding || "ascii";
<ide> if (this.chunked_encoding) {
<ide> this.send(process._byteLength(chunk, encoding).toString(16));
<ide> this.send(CRLF); | 1 |
Javascript | Javascript | fix typo in lib/internal/http2/core.js | 8c33b71bdfe36038c3661dc64027271130ffaea8 | <ide><path>lib/internal/http2/core.js
<ide> class Http2Session extends EventEmitter {
<ide> }
<ide>
<ide> // Sets the local window size (local endpoints's window size)
<del> // Returns 0 if sucess or throw an exception if NGHTTP2_ERR_NOMEM
<add> // Returns 0 if success or throw an exception if NGHTTP2_ERR_NOMEM
<ide> // if the window allocation fails
<ide> setLocalWindowSize(windowSize) {
<ide> if (this.destroyed) | 1 |
Javascript | Javascript | fix comma expression in animationaction | 84a68f359a06c33ce5042b8e7c57993cff2d0450 | <ide><path>src/animation/AnimationAction.js
<ide> AnimationAction.prototype = {
<ide>
<ide> if ( interpolant === null ) {
<ide>
<del> interpolant = mixer._lendControlInterpolant(),
<add> interpolant = mixer._lendControlInterpolant();
<ide> this._timeScaleInterpolant = interpolant;
<ide>
<ide> }
<ide> AnimationAction.prototype = {
<ide>
<ide> if ( interpolant === null ) {
<ide>
<del> interpolant = mixer._lendControlInterpolant(),
<add> interpolant = mixer._lendControlInterpolant();
<ide> this._weightInterpolant = interpolant;
<ide>
<ide> } | 1 |
Ruby | Ruby | use db_config to retrieve adapter in resolver | da75da6c3f68e43f08845af663b196b815ce5e05 | <ide><path>activerecord/lib/active_record/connection_adapters/resolver.rb
<ide> def spec(config)
<ide> pool_name = config if config.is_a?(Symbol)
<ide>
<ide> db_config = resolve(config, pool_name)
<del> spec = db_config.configuration_hash
<ide>
<del> raise(AdapterNotSpecified, "database configuration does not specify adapter") unless spec.key?(:adapter)
<add> raise(AdapterNotSpecified, "database configuration does not specify adapter") unless db_config.adapter
<ide>
<ide> # Require the adapter itself and give useful feedback about
<ide> # 1. Missing adapter gems and
<ide> # 2. Adapter gems' missing dependencies.
<del> path_to_adapter = "active_record/connection_adapters/#{spec[:adapter]}_adapter"
<add> path_to_adapter = "active_record/connection_adapters/#{db_config.adapter}_adapter"
<ide> begin
<ide> require path_to_adapter
<ide> rescue LoadError => e
<ide> def spec(config)
<ide> if e.path == path_to_adapter
<ide> # We can assume that a non-builtin adapter was specified, so it's
<ide> # either misspelled or missing from Gemfile.
<del> raise LoadError, "Could not load the '#{spec[:adapter]}' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile.", e.backtrace
<add> raise LoadError, "Could not load the '#{db_config.adapter}' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile.", e.backtrace
<ide>
<ide> # Bubbled up from the adapter require. Prefix the exception message
<ide> # with some guidance about how to address it and reraise.
<ide> else
<del> raise LoadError, "Error loading the '#{spec[:adapter]}' Active Record adapter. Missing a gem it depends on? #{e.message}", e.backtrace
<add> raise LoadError, "Error loading the '#{db_config.adapter}' Active Record adapter. Missing a gem it depends on? #{e.message}", e.backtrace
<ide> end
<ide> end
<ide>
<ide> unless ActiveRecord::Base.respond_to?(db_config.adapter_method)
<del> raise AdapterNotFound, "database configuration specifies nonexistent #{spec[:adapter]} adapter"
<add> raise AdapterNotFound, "database configuration specifies nonexistent #{db_config.adapter} adapter"
<ide> end
<ide>
<del> ConnectionSpecification.new(spec.delete(:name) || "primary", db_config)
<add> ConnectionSpecification.new(db_config.configuration_hash.delete(:name) || "primary", db_config)
<ide> end
<ide>
<ide> # Returns fully resolved connection, accepts hash, string or symbol. | 1 |
Ruby | Ruby | add missing newline in verbose mode | 59458eac515c87455f83c823b292fe3bfd52e015 | <ide><path>Library/Homebrew/cmd/link.rb
<ide> module Homebrew extend self
<ide> def link
<ide> ARGV.kegs.each do |keg|
<ide> print "Linking #{keg}... "
<add> puts if ARGV.verbose?
<ide> begin
<ide> puts "#{keg.link} symlinks created"
<ide> rescue Exception | 1 |
Javascript | Javascript | fix symbolicate logspew for `/debuggerworker.js` | 5e73c070e8ed2c125ed5face64f4334af384bfc6 | <ide><path>packager/react-packager/src/Server/__tests__/Server-test.js
<ide> describe('processRequest', () => {
<ide> requestHandler,
<ide> 'index.ios.includeRequire.bundle'
<ide> ).then(response => {
<del> expect(response.body).toEqual('this is the source')
<add> expect(response.body).toEqual('this is the source');
<ide> expect(Bundler.prototype.bundle).toBeCalledWith({
<ide> entryFile: 'index.ios.js',
<ide> inlineSourceMap: false,
<ide> describe('processRequest', () => {
<ide> });
<ide> });
<ide> });
<add>
<add> pit('ignores `/debuggerWorker.js` stack frames', () => {
<add> const body = JSON.stringify({stack: [{
<add> file: 'http://localhost:8081/debuggerWorker.js',
<add> lineNumber: 123,
<add> column: 456,
<add> }]});
<add>
<add> return makeRequest(
<add> requestHandler,
<add> '/symbolicate',
<add> { rawBody: body }
<add> ).then(response => {
<add> expect(JSON.parse(response.body)).toEqual({
<add> stack: [{
<add> file: 'http://localhost:8081/debuggerWorker.js',
<add> lineNumber: 123,
<add> column: 456,
<add> }]
<add> });
<add> });
<add> });
<ide> });
<ide>
<ide> describe('/symbolicate handles errors', () => {
<ide><path>packager/react-packager/src/Server/index.js
<ide> class Server {
<ide> e => {
<ide> res.writeHead(500);
<ide> res.end('Internal Error');
<del> console.log(e.stack);
<add> console.log(e.stack); // eslint-disable-line no-console-disallow
<ide> }
<ide> );
<ide> } else if (parts[1] === 'graph'){
<ide> class Server {
<ide>
<ide> // In case of multiple bundles / HMR, some stack frames can have
<ide> // different URLs from others
<del> const urls = stack.map(frame => frame.file);
<del> const uniqueUrls = urls.filter((elem, idx) => urls.indexOf(elem) === idx);
<add> const urlIndexes = {};
<add> const uniqueUrls = [];
<add> stack.forEach(frame => {
<add> const sourceUrl = frame.file;
<add> // Skip `/debuggerWorker.js` which drives remote debugging because it
<add> // does not need to symbolication.
<add> if (!urlIndexes.hasOwnProperty(sourceUrl) &&
<add> !sourceUrl.endsWith('/debuggerWorker.js')) {
<add> urlIndexes[sourceUrl] = uniqueUrls.length;
<add> uniqueUrls.push(sourceUrl);
<add> }
<add> });
<ide>
<del> const sourceMaps = uniqueUrls.map(sourceUrl => this._sourceMapForURL(sourceUrl));
<add> const sourceMaps = uniqueUrls.map(
<add> sourceUrl => this._sourceMapForURL(sourceUrl)
<add> );
<ide> return Promise.all(sourceMaps).then(consumers => {
<ide> return stack.map(frame => {
<del> const idx = uniqueUrls.indexOf(frame.file);
<add> const sourceUrl = frame.file;
<add> if (!urlIndexes.hasOwnProperty(sourceUrl)) {
<add> return frame;
<add> }
<add> const idx = urlIndexes[sourceUrl];
<ide> const consumer = consumers[idx];
<del>
<ide> const original = consumer.originalPositionFor({
<ide> line: frame.lineNumber,
<ide> column: frame.column,
<ide> });
<del>
<ide> if (!original) {
<ide> return frame;
<ide> }
<del>
<ide> return Object.assign({}, frame, {
<ide> file: original.source,
<ide> lineNumber: original.line, | 2 |
PHP | PHP | reduce code nesting and improve readability | d015a9311a605deb6a4b7b3d08b9cf24b6032949 | <ide><path>src/View/View.php
<ide> public function exists(string $name): bool
<ide> */
<ide> public function extend(string $name)
<ide> {
<del> if ($name[0] === '/' || $this->_currentType === static::TYPE_TEMPLATE) {
<del> $parent = $this->_getTemplateFileName($name);
<del> } else {
<del> switch ($this->_currentType) {
<del> case static::TYPE_ELEMENT:
<del> $parent = $this->_getElementFileName($name);
<del> if (!$parent) {
<del> [$plugin, $name] = $this->pluginSplit($name);
<del> $paths = $this->_paths($plugin);
<del> $defaultPath = $paths[0] . static::TYPE_ELEMENT . DIRECTORY_SEPARATOR;
<del> throw new LogicException(sprintf(
<del> 'You cannot extend an element which does not exist (%s).',
<del> $defaultPath . $name . $this->_ext
<del> ));
<del> }
<del> break;
<del> case static::TYPE_LAYOUT:
<del> $parent = $this->_getLayoutFileName($name);
<del> break;
<del> default:
<del> $parent = $this->_getTemplateFileName($name);
<del> }
<add> $type = $name[0] === '/' ? static::TYPE_TEMPLATE : $this->_currentType;
<add> switch ($type) {
<add> case static::TYPE_ELEMENT:
<add> $parent = $this->_getElementFileName($name);
<add> if (!$parent) {
<add> [$plugin, $name] = $this->pluginSplit($name);
<add> $paths = $this->_paths($plugin);
<add> $defaultPath = $paths[0] . static::TYPE_ELEMENT . DIRECTORY_SEPARATOR;
<add> throw new LogicException(sprintf(
<add> 'You cannot extend an element which does not exist (%s).',
<add> $defaultPath . $name . $this->_ext
<add> ));
<add> }
<add> break;
<add> case static::TYPE_LAYOUT:
<add> $parent = $this->_getLayoutFileName($name);
<add> break;
<add> default:
<add> $parent = $this->_getTemplateFileName($name);
<ide> }
<ide>
<ide> if ($parent === $this->_current) { | 1 |
Go | Go | remove unused constants | 3cc0963ad16a5abd67aeba22cefac34a40ac70ef | <ide><path>term/term.go
<ide> type Termios struct {
<ide> Ospeed uint32
<ide> }
<ide>
<del>const (
<del> // Input flags
<del> inpck = 0x010
<del> istrip = 0x020
<del> icrnl = 0x100
<del> ixon = 0x200
<del>
<del> // Output flags
<del> opost = 0x1
<del>
<del> // Control flags
<del> cs8 = 0x300
<del>
<del> // Local flags
<del> icanon = 0x100
<del> iexten = 0x400
<del>)
<del>
<del>const (
<del> HUPCL = 0x4000
<del> ICANON = 0x100
<del> ICRNL = 0x100
<del> IEXTEN = 0x400
<del> BRKINT = 0x2
<del> CFLUSH = 0xf
<del> CLOCAL = 0x8000
<del> CREAD = 0x800
<del> CS5 = 0x0
<del> CS6 = 0x100
<del> CS7 = 0x200
<del> CS8 = 0x300
<del> CSIZE = 0x300
<del> CSTART = 0x11
<del> CSTATUS = 0x14
<del> CSTOP = 0x13
<del> CSTOPB = 0x400
<del> CSUSP = 0x1a
<del> IGNBRK = 0x1
<del> IGNCR = 0x80
<del> IGNPAR = 0x4
<del> IMAXBEL = 0x2000
<del> INLCR = 0x40
<del> INPCK = 0x10
<del> ISIG = 0x80
<del> ISTRIP = 0x20
<del> IUTF8 = 0x4000
<del> IXANY = 0x800
<del> IXOFF = 0x400
<del> IXON = 0x200
<del> NOFLSH = 0x80000000
<del> OCRNL = 0x10
<del> OFDEL = 0x20000
<del> OFILL = 0x80
<del> ONLCR = 0x2
<del> ONLRET = 0x40
<del> ONOCR = 0x20
<del> ONOEOT = 0x8
<del> OPOST = 0x1
<del> RENB = 0x1000
<del> PARMRK = 0x8
<del> PARODD = 0x2000
<del>
<del> TOSTOP = 0x400000
<del> VDISCARD = 0xf
<del> VDSUSP = 0xb
<del> VEOF = 0x0
<del> VEOL = 0x1
<del> VEOL2 = 0x2
<del> VERASE = 0x3
<del> VINTR = 0x8
<del> VKILL = 0x5
<del> VLNEXT = 0xe
<del> VMIN = 0x10
<del> VQUIT = 0x9
<del> VREPRINT = 0x6
<del> VSTART = 0xc
<del> VSTATUS = 0x12
<del> VSTOP = 0xd
<del> VSUSP = 0xa
<del> VT0 = 0x0
<del> VT1 = 0x10000
<del> VTDLY = 0x10000
<del> VTIME = 0x11
<del> ECHO = 0x00000008
<del>
<del> PENDIN = 0x20000000
<del>)
<del>
<ide> type State struct {
<ide> termios Termios
<ide> } | 1 |
PHP | PHP | remove comment bloat from string class | fa6489be6caed26ebbc87ab49cf9c216c834ce18 | <ide><path>laravel/str.php
<ide> class Str {
<ide> * <code>
<ide> * // Convert a string to lowercase
<ide> * echo Str::lower('STOP YELLING');
<del> *
<del> * // Convert a UTF-8 string to lowercase
<del> * echo Str::lower('Τάχιστη');
<ide> * </code>
<ide> *
<ide> * @param string $value
<ide> public static function lower($value)
<ide> * <code>
<ide> * // Convert a string to uppercase
<ide> * echo Str::upper('speak louder');
<del> *
<del> * // Convert a UTF-8 string to uppercase
<del> * echo Str::upper('Τάχιστη');
<ide> * </code>
<ide> *
<ide> * @param string $value
<ide> public static function upper($value)
<ide> * <code>
<ide> * // Convert a string to title case
<ide> * echo Str::title('taylor otwell');
<del> *
<del> * // Convert a UTF-8 string to title case
<del> * echo Str::title('Τάχιστη αλώπηξ');
<ide> * </code>
<ide> *
<ide> * @param string $value
<ide> public static function title($value)
<ide> * <code>
<ide> * // Get the length of a string
<ide> * echo Str::length('taylor otwell');
<del> *
<del> * // Get the length of a UTF-8 string
<del> * echo Str::length('Τάχιστη αλώπηξ');
<ide> * </code>
<ide> *
<ide> * @param string $value | 1 |
Text | Text | remove cmake dependency | 49a32dd2dcfc059fa46b34b929101253b2718f09 | <ide><path>docs/building-atom.md
<ide> atom][download].
<ide>
<ide> * Use OS X 10.8 or later
<ide> * Install the latest node 0.10.x release (32bit preferable)
<del>* Install cmake
<ide> * Clone [atom][atom-git] to `~/github/atom`
<ide> * Run `~/github/atom/script/build`
<ide> | 1 |
Javascript | Javascript | fix preview cursor position | af5ddf21234a4508d7889c8dd172245cf7d4c422 | <ide><path>lib/internal/repl/utils.js
<ide> function setupPreview(repl, contextSymbol, bufferSymbol, active) {
<ide> const { cursorPos, displayPos } = getPreviewPos();
<ide> const rows = displayPos.rows - cursorPos.rows;
<ide> moveCursor(repl.output, 0, rows);
<del> const { cols: resultCols } = repl._getDisplayPos(result);
<ide> repl.output.write(`\n${result}`);
<del> moveCursor(repl.output, cursorPos.cols - resultCols, -rows - 1);
<add> cursorTo(repl.output, cursorPos.cols);
<add> moveCursor(repl.output, 0, -rows - 1);
<ide> });
<ide> };
<ide>
<ide><path>test/parallel/test-repl-history-navigation.js
<ide> const tests = [
<ide> // 360 % 250 + 2 === 112 (+1)
<ide> `${prompt}${'veryLongName'.repeat(30)}`, '\x1B[113G',
<ide> // "// 'I should be previewed'".length + 86 === 112 (+1)
<del> "\n// 'I should be previewed'", '\x1B[86C\x1B[1A',
<add> "\n// 'I should be previewed'", '\x1B[113G', '\x1B[1A',
<ide> // Preview cleanup
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> // 4. WORD LEFT
<ide> const tests = [
<ide> '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> `${prompt}${'veryLongName'.repeat(30)}`, '\x1B[3G', '\x1B[1A',
<del> '\x1B[1B', "\n// 'I should be previewed'", '\x1B[24D\x1B[2A',
<add> '\x1B[1B', "\n// 'I should be previewed'", '\x1B[3G', '\x1B[2A',
<ide> // Preview cleanup
<ide> '\x1B[2B', '\x1B[2K', '\x1B[2A',
<ide> // 5. UP
<ide> '\x1B[1G', '\x1B[0J',
<ide> `${prompt}e`, '\x1B[4G',
<ide> // '// RangeError: visible'.length - 19 === 3 (+1)
<del> '\n// RangeError: visible', '\x1B[19D\x1B[1A',
<add> '\n// RangeError: visible', '\x1B[4G', '\x1B[1A',
<ide> // Preview cleanup
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> // 6. Backspace
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> ', '\x1B[3G', 'x', '1',
<ide> `\n// '${'あ'.repeat(124)}'`,
<del> '\x1B[1C\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> x', '\x1B[4G', '2',
<ide> `\n// '${'🐕'.repeat(124)}'`,
<del> '\x1B[1C\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> x', '\x1B[4G', '3',
<ide> `\n// '${'𐐷'.repeat(248)}'`,
<del> '\x1B[1C\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> x', '\x1B[4G', '4',
<ide> `\n// 'a${'\u0301'.repeat(1000)}'`,
<del> '\x1B[2D\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> ', '\x1B[3G', 'y', '1',
<ide> `\n// '${'あ'.repeat(121)}...`,
<del> '\x1B[245D\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> y', '\x1B[4G', '2',
<ide> `\n// '${'🐕'.repeat(121)}...`,
<del> '\x1B[245D\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\x1B[1G', '\x1B[0J',
<ide> '> y', '\x1B[4G', '3',
<ide> `\n// '${'𐐷'.repeat(242)}...`,
<del> '\x1B[245D\x1B[1A',
<add> '\x1B[5G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\r\n',
<ide> '\x1B[1G', '\x1B[0J',
<ide><path>test/parallel/test-repl-preview.js
<ide> async function tests(options) {
<ide> const testCases = [
<ide> ['foo', [2, 4], '[Function: foo]',
<ide> 'foo',
<del> '\x1B[90m[Function: foo]\x1B[39m\x1B[5D\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<add> '\x1B[90m[Function: foo]\x1B[39m\x1B[11G\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<ide> '\x1B[36m[Function: foo]\x1B[39m',
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G'],
<ide> ['koo', [2, 4], '[Function: koo]',
<ide> 'k\x1B[90moo\x1B[39m\x1B[9G\x1B[0Ko\x1B[90mo\x1B[39m\x1B[10G\x1B[0Ko',
<del> '\x1B[90m[Function: koo]\x1B[39m\x1B[5D\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<add> '\x1B[90m[Function: koo]\x1B[39m\x1B[11G\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<ide> '\x1B[36m[Function: koo]\x1B[39m',
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G'],
<ide> ['a', [1, 2], undefined],
<ide> async function tests(options) {
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G'],
<ide> ['1n + 2n', [2, 5], '\x1B[33m3n\x1B[39m',
<ide> '1n + 2',
<del> '\x1B[90mType[39m\x1B[57D\x1B[1A\x1B[1B\x1B[2K\x1B[1An',
<del> '\x1B[90m3n\x1B[39m\x1B[12C\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<add> '\x1B[90mType[39m\x1B[14G\x1B[1A\x1B[1B\x1B[2K\x1B[1An',
<add> '\x1B[90m3n\x1B[39m\x1B[15G\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<ide> '\x1B[33m3n\x1B[39m',
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G'],
<ide> ['{ a: true };', [2, 4], '\x1B[33mtrue\x1B[39m',
<ide> '{ a: tru\x1B[90me\x1B[39m\x1B[16G\x1B[0Ke };',
<del> '\x1B[90mtrue\x1B[39m\x1B[15C\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<add> '\x1B[90mtrue\x1B[39m\x1B[20G\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<ide> '\x1B[33mtrue\x1B[39m',
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G'],
<ide> [' \t { a: true};', [2, 5], '\x1B[33mtrue\x1B[39m',
<ide> ' \t { a: tru\x1B[90me\x1B[39m\x1B[26G\x1B[0Ke}',
<del> '\x1B[90m{ a: true }\x1B[39m\x1B[16C\x1B[1A\x1B[1B\x1B[2K\x1B[1A;',
<del> '\x1B[90mtrue\x1B[39m\x1B[24C\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<add> '\x1B[90m{ a: true }\x1B[39m\x1B[28G\x1B[1A\x1B[1B\x1B[2K\x1B[1A;',
<add> '\x1B[90mtrue\x1B[39m\x1B[29G\x1B[1A\x1B[1B\x1B[2K\x1B[1A\r',
<ide> '\x1B[33mtrue\x1B[39m',
<ide> '\x1B[1G\x1B[0Jrepl > \x1B[8G']
<ide> ];
<ide><path>test/parallel/test-repl-reverse-search.js
<ide> const tests = [
<ide> '\r\n',
<ide> '\x1B[1G', '\x1B[0J',
<ide> prompt, '\x1B[3G',
<del> '1', '+', '1', '\n// 2', '\x1B[1C\x1B[1A',
<add> '1', '+', '1', '\n// 2', '\x1B[6G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\r\n',
<ide> '2\n',
<ide> const tests = [
<ide> '2\n',
<ide> '\x1B[1G', '\x1B[0J',
<ide> prompt, '\x1B[3G',
<del> '2', '\n// 2', '\x1B[1D\x1B[1A',
<add> '2', '\n// 2', '\x1B[4G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\nbck-i-search: _', '\x1B[1A', '\x1B[4G',
<ide> '\x1B[3G', '\x1B[0J',
<ide> const tests = [
<ide> `${prompt}ab = "aaaa"`, '\x1B[14G',
<ide> '\x1B[1G', '\x1B[0J',
<ide> `${prompt}repl.repl.historyIndex`, '\x1B[25G', '\n// 8',
<del> '\x1B[20C\x1B[1A',
<add> '\x1B[25G', '\x1B[1A',
<ide> '\x1B[1B', '\x1B[2K', '\x1B[1A',
<ide> '\nfwd-i-search: _', '\x1B[1A', '\x1B[25G',
<ide> '\x1B[3G', '\x1B[0J', | 4 |
Ruby | Ruby | remove unused require | a027a750d0a3790965de9faa78c3eeb7f79f517e | <ide><path>actionpack/lib/action_dispatch/testing/test_process.rb
<ide> require 'action_dispatch/middleware/cookies'
<ide> require 'action_dispatch/middleware/flash'
<del>require 'active_support/core_ext/hash/indifferent_access'
<ide>
<ide> module ActionDispatch
<ide> module TestProcess | 1 |
Ruby | Ruby | reflect new version in dry-run | cc0ca73183f1e92579169eb038b10a98bd7c455a | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> require "formula"
<ide>
<ide> module Homebrew
<add> def inreplace_pairs(path, replacement_pairs)
<add> if ARGV.dry_run?
<add> contents = path.open("r") { |f| Formulary.set_encoding(f).read }
<add> contents.extend(StringInreplaceExtension)
<add> replacement_pairs.each do |old, new|
<add> ohai "replace \"#{old}\" with \"#{new}\"" unless ARGV.flag?("--quiet")
<add> contents.gsub!(old, new)
<add> end
<add> if contents.errors.any?
<add> raise Utils::InreplaceError, path => contents.errors
<add> end
<add> contents
<add> else
<add> Utils::Inreplace.inreplace(path) do |s|
<add> replacement_pairs.each do |old, new|
<add> ohai "replace \"#{old}\" with \"#{new}\"" unless ARGV.flag?("--quiet")
<add> s.gsub!(old, new)
<add> end
<add> end
<add> path.open("r") { |f| Formulary.set_encoding(f).read }
<add> end
<add> end
<add>
<add> def formula_version(formula, spec, contents = nil)
<add> name = formula.name
<add> path = formula.path
<add> if contents
<add> Formulary.from_contents(name, path, contents, spec).version
<add> else
<add> Formulary::FormulaLoader.new(name, path).get_formula(spec).version
<add> end
<add> end
<add>
<ide> def bump_formula_pr
<ide> formula = ARGV.formulae.first
<ide> odie "No formula found!" unless formula
<ide> def bump_formula_pr
<ide> safe_system "brew", "update"
<ide> end
<ide>
<del> Utils::Inreplace.inreplace(formula.path) do |s|
<del> if new_url_hash
<del> old_url = formula_spec.url
<del> if ARGV.dry_run?
<del> ohai "replace '#{old_url}' with '#{new_url}'"
<del> ohai "replace '#{old_hash}' with '#{new_hash}'"
<del> else
<del> s.gsub!(old_url, new_url)
<del> s.gsub!(old_hash, new_hash)
<del> end
<del> else
<del> resource_specs = formula_spec.specs
<del> old_tag = resource_specs[:tag]
<del> old_revision = resource_specs[:revision]
<del> if ARGV.dry_run?
<del> ohai "replace '#{old_tag}' with '#{new_tag}'"
<del> ohai "replace '#{old_revision}' with '#{new_revision}'"
<del> else
<del> s.gsub!(/['"]#{old_tag}['"]/, "\"#{new_tag}\"")
<del> s.gsub!(old_revision, new_revision)
<del> end
<del> end
<add> old_formula_version = formula_version(formula, requested_spec)
<add>
<add> replacement_pairs = if new_url_hash
<add> [
<add> [formula_spec.url, new_url],
<add> [old_hash, new_hash],
<add> ]
<add> else
<add> [
<add> [formula_spec.specs[:tag], new_tag],
<add> [formula_spec.specs[:revision], new_revision],
<add> ]
<ide> end
<ide>
<del> new_formula = Formulary.load_formula_from_path(formula.name, formula.path)
<del> new_formula_version = new_formula.version
<add> new_contents = inreplace_pairs(formula.path, replacement_pairs)
<add>
<add> new_formula_version = formula_version(formula, requested_spec, new_contents)
<add>
<add> if new_formula_version < old_formula_version
<add> odie <<-EOS.undent
<add> You probably need to bump this formula manually since changing the
<add> version from #{old_formula_version} to #{new_formula_version} would be a downgrade.
<add> EOS
<add> elsif new_formula_version == old_formula_version
<add> odie <<-EOS.undent
<add> You probably need to bump this formula manually since the new version
<add> and old version are both #{new_formula_version}.
<add> EOS
<add> end
<ide>
<ide> unless Formula["hub"].any_version_installed?
<ide> if ARGV.dry_run? | 1 |
Python | Python | add support for time-distributed softmax | 8f2d6d2714aa1b60950a2fc355d39297b7f2cdfb | <ide><path>keras/activations.py
<ide>
<ide>
<ide> def softmax(x):
<del> return K.softmax(x)
<add> ndim = K.ndim(x)
<add> if ndim == 2:
<add> return K.softmax(x)
<add> elif ndim == 3:
<add> # apply softmax to each timestep
<add> def step(x, states):
<add> return K.softmax(x), []
<add> last_output, outputs, states = K.rnn(step, x, [], masking=False)
<add> return outputs
<add> else:
<add> raise Exception('Cannot apply softmax to a tensor that is not 2D or 3D. ' +
<add> 'Here, ndim=' + str(ndim))
<ide>
<ide>
<ide> def softplus(x): | 1 |
PHP | PHP | simplify encryption mac validation | 2aa0563d7fdf1de0d0c7be00d50c2eeaa184b219 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> protected function validPayload($payload)
<ide> */
<ide> protected function validMac(array $payload)
<ide> {
<del> $calculated = $this->calculateMac($payload, $bytes = random_bytes(16));
<del>
<ide> return hash_equals(
<del> hash_hmac('sha256', $payload['mac'], $bytes, true), $calculated
<del> );
<del> }
<del>
<del> /**
<del> * Calculate the hash of the given payload.
<del> *
<del> * @param array $payload
<del> * @param string $bytes
<del> * @return string
<del> */
<del> protected function calculateMac($payload, $bytes)
<del> {
<del> return hash_hmac(
<del> 'sha256', $this->hash($payload['iv'], $payload['value']), $bytes, true
<add> $this->hash($payload['iv'], $payload['value']), $payload['mac']
<ide> );
<ide> }
<ide> | 1 |
Text | Text | update changelog for v2.15.0-beta.3 | 979190c8f6b0023f4672508d0be3d8d53b585019 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.15.0-beta.3 (August 8, 2017)
<add>
<add>- [#14848](https://github.com/emberjs/ember.js/pull/14848) [BUGFIX] Allow boolean values for current-when
<add>- [#15572](https://github.com/emberjs/ember.js/pull/15572) [BUGFIX] Fix issue with using negative numbers as an argument passed in from the template.
<add>- [#15535](https://github.com/emberjs/ember.js/pull/15535) [BUGFIX] Ensure that properties of functions are able to be rendered.
<add>- [#14753](https://github.com/emberjs/ember.js/pull/14753) [BUGFIX] Fix `<input type=XXX>` feature detect issue affecting Safari.
<add>- [#15176](https://github.com/emberjs/ember.js/pull/15176) [BUGFIX] Ensure `Controller.prototype.replaceRoute` considers engine's mount point.
<add>- [#15513](https://github.com/emberjs/ember.js/pull/15513) [BUGFIX] Release root components after they are destroyed.
<add>
<ide> ### 2.15.0-beta.2 (July 20, 2017)
<ide>
<ide> - [#15511](https://github.com/emberjs/ember.js/pull/15511) [BUGFIX] Fixes `onFulfillment` being `undefined` when stepping through RSVP code. | 1 |
Ruby | Ruby | fix style offences | 22d68fb99b02b1b41afd3f7e109d0cb6af099005 | <ide><path>Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb
<ide> class UrlLegacyCommaSeparators < Base
<ide> include OnUrlStanza
<ide> extend AutoCorrector
<ide>
<del> MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version.after_comma'."
<add> MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma'"\
<add> "and 'version.csv.second' instead of 'version.after_comma'."
<ide>
<del> def on_url_stanza(stanza)
<add> def on_url_stanza(stanza)
<ide> return if stanza.stanza_node.type == :block
<del>
<add>
<ide> url_node = stanza.stanza_node.first_argument
<ide>
<ide> legacy_comma_separator_pattern = /version.(before|after)_comma/ | 1 |
PHP | PHP | add methods to contract | 0066b5da6f009275348ab71904da2376c6c47281 | <ide><path>src/Illuminate/Contracts/Notifications/Factory.php
<ide> interface Factory
<ide> * @return mixed
<ide> */
<ide> public function channel($name = null);
<add>
<add> /**
<add> * Send the given notification to the given notifiable entities.
<add> *
<add> * @param \Illuminate\Support\Collection|array|mixed $notifiables
<add> * @param mixed $notification
<add> * @return void
<add> */
<add> public function send($notifiables, $notification);
<add>
<add> /**
<add> * Send the given notification immediately.
<add> *
<add> * @param \Illuminate\Support\Collection|array|mixed $notifiables
<add> * @param mixed $notification
<add> * @return void
<add> */
<add> public function sendNow($notifiables, $notification);
<ide> } | 1 |
Python | Python | make model summary wrap | ba8f81ae45bfa8beb38d1629810262c3b391598c | <ide><path>keras/utils/layer_utils.py
<ide> def print_summary(model, line_length=None, positions=None, print_fn=None):
<ide> relevant_nodes += v
<ide>
<ide> def print_row(fields, positions):
<del> line = ''
<del> for i in range(len(fields)):
<del> if i > 0:
<del> line = line[:-1] + ' '
<del> line += str(fields[i])
<del> line = line[:positions[i]]
<del> line += ' ' * (positions[i] - len(line))
<del> print_fn(line)
<add> left_to_print = [str(x) for x in fields]
<add> while any(left_to_print):
<add> line = ''
<add> for col in range(len(left_to_print)):
<add> if col > 0:
<add> start_pos = positions[col-1]
<add> else:
<add> start_pos = 0
<add> end_pos = positions[col]
<add> # Leave room for a space to delineate columns
<add> # we don't need one if we are printing the last column
<add> space = 1 if col != len(positions) - 1 else 0
<add> delta = end_pos - start_pos - space
<add> fit_into_line = left_to_print[col][:delta]
<add> line += fit_into_line
<add> line += ' ' if space else ''
<add> left_to_print[col] = left_to_print[col][delta:]
<add>
<add> # Pad out to the next position
<add> line += ' ' * (positions[col] - len(line))
<add> print_fn(line)
<ide>
<ide> print_fn('Model: "{}"'.format(model.name))
<ide> print_fn('_' * line_length)
<ide> def print_layer_summary_with_connections(layer):
<ide>
<ide> name = layer.name
<ide> cls_name = layer.__class__.__name__
<del> if not connections:
<del> first_connection = ''
<del> else:
<del> first_connection = connections[0]
<ide> fields = [
<ide> name + ' (' + cls_name + ')', output_shape,
<del> layer.count_params(), first_connection
<add> layer.count_params(), connections
<ide> ]
<ide> print_row(fields, positions)
<del> if len(connections) > 1:
<del> for i in range(1, len(connections)):
<del> fields = ['', '', '', connections[i]]
<del> print_row(fields, positions)
<ide>
<ide> layers = model.layers
<ide> for i in range(len(layers)): | 1 |
Python | Python | fix mypy errors in kylin example | 4f5172edf5e23f08f4d39c0e2c113c966ea137c3 | <ide><path>airflow/providers/apache/kylin/example_dags/example_kylin_dag.py
<ide> def gen_build_time():
<ide> return {'date_start': '1325347200000', 'date_end': '1325433600000'}
<ide>
<ide>
<del>gen_build_time = gen_build_time()
<del>gen_build_time_output_date_start = gen_build_time['date_start']
<del>gen_build_time_output_date_end = gen_build_time['date_end']
<add>gen_build_time_task = gen_build_time()
<add>gen_build_time_output_date_start = gen_build_time_task['date_start']
<add>gen_build_time_output_date_end = gen_build_time_task['date_end']
<ide>
<ide> build_task1 = KylinCubeOperator(
<ide> task_id="kylin_build_1", | 1 |
Python | Python | remove unused import | 8a67ddd6f12c6870245c0ed7263e30ebe81ede33 | <ide><path>spacy/util.py
<ide> from contextlib import contextmanager
<ide> import tempfile
<ide> import shutil
<del>import hashlib
<ide> import shlex
<ide>
<ide> try: | 1 |
Java | Java | allow access to applied property sources | eb1776e79df3c1b7916bf11a61bdc33ba6889d38 | <ide><path>spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> import org.springframework.core.env.PropertySource;
<ide> import org.springframework.core.env.PropertySources;
<ide> import org.springframework.core.env.PropertySourcesPropertyResolver;
<add>import org.springframework.util.Assert;
<ide> import org.springframework.util.StringValueResolver;
<ide>
<ide> /**
<ide> public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
<ide>
<ide> private MutablePropertySources propertySources;
<ide>
<add> private PropertySources appliedPropertySources;
<add>
<ide> private Environment environment;
<ide>
<ide>
<ide> public String getProperty(String key) {
<ide> }
<ide>
<ide> this.processProperties(beanFactory, new PropertySourcesPropertyResolver(this.propertySources));
<add> this.appliedPropertySources = this.propertySources;
<ide> }
<ide>
<ide> /**
<ide> protected void processProperties(ConfigurableListableBeanFactory beanFactory, Pr
<ide> "Call processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver) instead");
<ide> }
<ide>
<add> /**
<add> * Returns the property sources that were actually applied during
<add> * {@link #postProcessBeanFactory(ConfigurableListableBeanFactory) post-processing}.
<add> * @return the property sources that were applied
<add> * @throws IllegalStateException if the property sources have not yet been applied
<add> * @since 4.0
<add> */
<add> public PropertySources getAppliedPropertySources() throws IllegalStateException {
<add> Assert.state(this.appliedPropertySources != null, "PropertySources have not get been applied");
<add> return this.appliedPropertySources;
<add> }
<add>
<ide> }
<ide><path>spring-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java
<ide>
<ide> package org.springframework.context.support;
<ide>
<del>import static org.hamcrest.CoreMatchers.equalTo;
<del>import static org.hamcrest.CoreMatchers.is;
<del>import static org.hamcrest.CoreMatchers.nullValue;
<del>import static org.junit.Assert.assertThat;
<del>import static org.springframework.beans.factory.support.BeanDefinitionBuilder.genericBeanDefinition;
<del>import static org.springframework.beans.factory.support.BeanDefinitionBuilder.rootBeanDefinition;
<del>
<ide> import java.util.Properties;
<ide>
<add>import org.junit.Rule;
<ide> import org.junit.Test;
<add>import org.junit.rules.ExpectedException;
<ide> import org.springframework.beans.factory.BeanDefinitionStoreException;
<ide> import org.springframework.beans.factory.support.DefaultListableBeanFactory;
<del>import org.springframework.core.env.StandardEnvironment;
<ide> import org.springframework.core.env.MutablePropertySources;
<ide> import org.springframework.core.env.PropertySource;
<add>import org.springframework.core.env.StandardEnvironment;
<ide> import org.springframework.core.io.ClassPathResource;
<ide> import org.springframework.core.io.Resource;
<ide> import org.springframework.mock.env.MockEnvironment;
<ide> import org.springframework.mock.env.MockPropertySource;
<del>
<ide> import org.springframework.tests.sample.beans.TestBean;
<ide>
<add>import static org.hamcrest.CoreMatchers.*;
<add>import static org.junit.Assert.*;
<add>import static org.springframework.beans.factory.support.BeanDefinitionBuilder.*;
<add>
<ide> /**
<ide> * Unit tests for {@link PropertySourcesPlaceholderConfigurer}.
<ide> *
<ide> */
<ide> public class PropertySourcesPlaceholderConfigurerTests {
<ide>
<add> @Rule
<add> public ExpectedException thrown = ExpectedException.none();
<add>
<ide> @Test
<ide> public void replacementFromEnvironmentProperties() {
<ide> DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
<ide> public void replacementFromEnvironmentProperties() {
<ide> ppc.setEnvironment(env);
<ide> ppc.postProcessBeanFactory(bf);
<ide> assertThat(bf.getBean(TestBean.class).getName(), equalTo("myValue"));
<add> assertThat(ppc.getAppliedPropertySources(), not(nullValue()));
<ide> }
<ide>
<ide> @Test
<ide> public void explicitPropertySources() {
<ide> pc.setPropertySources(propertySources);
<ide> pc.postProcessBeanFactory(bf);
<ide> assertThat(bf.getBean(TestBean.class).getName(), equalTo("foo"));
<add> assertEquals(pc.getAppliedPropertySources().iterator().next(), propertySources.iterator().next());
<ide> }
<ide>
<ide> @Test
<ide> public void explicitPropertySourcesExcludesEnvironment() {
<ide> pc.setIgnoreUnresolvablePlaceholders(true);
<ide> pc.postProcessBeanFactory(bf);
<ide> assertThat(bf.getBean(TestBean.class).getName(), equalTo("${my.name}"));
<add> assertEquals(pc.getAppliedPropertySources().iterator().next(), propertySources.iterator().next());
<ide> }
<ide>
<ide> @Test
<ide> public void nullValueIsPreserved() {
<ide> ppc.postProcessBeanFactory(bf);
<ide> assertThat(bf.getBean(TestBean.class).getName(), nullValue());
<ide> }
<add>
<add> @Test
<add> public void getAppliedPropertySourcesTooEarly() throws Exception {
<add> PropertySourcesPlaceholderConfigurer ppc = new PropertySourcesPlaceholderConfigurer();
<add> thrown.expect(IllegalStateException.class);
<add> ppc.getAppliedPropertySources();
<add> }
<ide> } | 2 |
Javascript | Javascript | fix assert.strictequal argument order | a2392704b2987073a2c918f349e91e7c5ecaed7c | <ide><path>test/parallel/test-vm-new-script-new-context.js
<ide> const Script = require('vm').Script;
<ide> const script = new Script('\'passed\';');
<ide> const result1 = script.runInNewContext();
<ide> const result2 = script.runInNewContext();
<del> assert.strictEqual('passed', result1);
<del> assert.strictEqual('passed', result2);
<add> assert.strictEqual(result1, 'passed');
<add> assert.strictEqual(result2, 'passed');
<ide> }
<ide>
<ide> {
<ide> const Script = require('vm').Script;
<ide> global.hello = 5;
<ide> const script = new Script('hello = 2');
<ide> script.runInNewContext();
<del> assert.strictEqual(5, global.hello);
<add> assert.strictEqual(global.hello, 5);
<ide>
<ide> // Cleanup
<ide> delete global.hello;
<ide> const Script = require('vm').Script;
<ide> /* eslint-disable no-unused-vars */
<ide> const baz = script.runInNewContext(global.obj);
<ide> /* eslint-enable no-unused-vars */
<del> assert.strictEqual(1, global.obj.foo);
<del> assert.strictEqual(2, global.obj.bar);
<del> assert.strictEqual(2, global.foo);
<add> assert.strictEqual(global.obj.foo, 1);
<add> assert.strictEqual(global.obj.bar, 2);
<add> assert.strictEqual(global.foo, 2);
<ide>
<ide> // cleanup
<ide> delete global.code; | 1 |
Javascript | Javascript | fix typo in faunadb example | 372031246daf598bd2896fe923280ddfee84b5d7 | <ide><path>examples/with-graphql-faunadb/scripts/setup.js
<ide> readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
<ide> console.error(`Could not import schema, closing`)
<ide> })
<ide> .then(res => {
<del> // The GraphQL schema is important, this means that we now have a GuestbookEntry Colleciton and an entries index.
<add> // The GraphQL schema is important, this means that we now have a GuestbookEntry Collection and an entries index.
<ide> // Then we create a token that can only read and write to that index and collection
<ide> var client = new faunadb.Client({ secret: adminKey })
<ide> return client
<ide> readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
<ide> console.error(`Failed to create role, closing`)
<ide> })
<ide> .then(res => {
<del> // The GraphQL schema is important, this means that we now have a GuestbookEntry Colleciton and an entries index.
<add> // The GraphQL schema is important, this means that we now have a GuestbookEntry Collection and an entries index.
<ide> // Then we create a token that can only read and write to that index and collection
<ide> var client = new faunadb.Client({ secret: adminKey })
<ide> return client | 1 |
Javascript | Javascript | use hasownproperty in for in loops | df23e1484709e185b06b1a453b9d0eac4719d727 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> var hotInitCode = Template.getFunctionContent(function() {
<ide> appliedUpdate[moduleId] = hotUpdate[moduleId];
<ide> addAllToSet(outdatedModules, result[0]);
<ide> for(var moduleId in result[1]) {
<del> if(!outdatedDependencies[moduleId])
<del> outdatedDependencies[moduleId] = [];
<del> addAllToSet(outdatedDependencies[moduleId], result[1][moduleId]);
<add> if(Object.prototype.hasOwnProperty.call(result[1], moduleId)) {
<add> if(!outdatedDependencies[moduleId])
<add> outdatedDependencies[moduleId] = [];
<add> addAllToSet(outdatedDependencies[moduleId], result[1][moduleId]);
<add> }
<ide> }
<ide> }
<ide>
<ide> var hotInitCode = Template.getFunctionContent(function() {
<ide>
<ide> // remove outdated dependency from module children
<ide> for(var moduleId in outdatedDependencies) {
<del> var module = installedModules[moduleId];
<del> var moduleOutdatedDependencies = outdatedDependencies[moduleId];
<del> for(var j = 0; j < moduleOutdatedDependencies.length; j++) {
<del> var dependency = moduleOutdatedDependencies[j];
<del> var idx = module.children.indexOf(dependency);
<del> if(idx >= 0) module.children.splice(idx, 1);
<add> if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
<add> var module = installedModules[moduleId];
<add> var moduleOutdatedDependencies = outdatedDependencies[moduleId];
<add> for(var j = 0; j < moduleOutdatedDependencies.length; j++) {
<add> var dependency = moduleOutdatedDependencies[j];
<add> var idx = module.children.indexOf(dependency);
<add> if(idx >= 0) module.children.splice(idx, 1);
<add> }
<ide> }
<ide> }
<ide>
<ide> var hotInitCode = Template.getFunctionContent(function() {
<ide>
<ide> // insert new code
<ide> for(var moduleId in appliedUpdate) {
<del> modules[moduleId] = appliedUpdate[moduleId];
<add> if(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {
<add> modules[moduleId] = appliedUpdate[moduleId];
<add> }
<ide> }
<ide>
<ide> // call accept handlers
<ide> var error = null;
<ide> for(var moduleId in outdatedDependencies) {
<del> var module = installedModules[moduleId];
<del> var moduleOutdatedDependencies = outdatedDependencies[moduleId];
<del> var callbacks = [];
<del> for(var i = 0; i < moduleOutdatedDependencies.length; i++) {
<del> var dependency = moduleOutdatedDependencies[i];
<del> var cb = module.hot._acceptedDependencies[dependency];
<del> if(callbacks.indexOf(cb) >= 0) continue;
<del> callbacks.push(cb);
<del> }
<del> for(var i = 0; i < callbacks.length; i++) {
<del> var cb = callbacks[i];
<del> try {
<del> cb(outdatedDependencies);
<del> } catch(err) {
<del> if(!error)
<del> error = err;
<add> if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
<add> var module = installedModules[moduleId];
<add> var moduleOutdatedDependencies = outdatedDependencies[moduleId];
<add> var callbacks = [];
<add> for(var i = 0; i < moduleOutdatedDependencies.length; i++) {
<add> var dependency = moduleOutdatedDependencies[i];
<add> var cb = module.hot._acceptedDependencies[dependency];
<add> if(callbacks.indexOf(cb) >= 0) continue;
<add> callbacks.push(cb);
<add> }
<add> for(var i = 0; i < callbacks.length; i++) {
<add> var cb = callbacks[i];
<add> try {
<add> cb(outdatedDependencies);
<add> } catch(err) {
<add> if(!error)
<add> error = err;
<add> }
<ide> }
<ide> }
<ide> } | 1 |
Javascript | Javascript | add missing space to key warning | 7c63d0178daef797bcd8ed71f5fbc445a15192ac | <ide><path>src/renderers/shared/stack/reconciler/ReactChildReconciler.js
<ide> function instantiateChild(childInstances, child, name, selfDebugID) {
<ide> if (!keyUnique) {
<ide> warning(
<ide> false,
<del> 'flattenChildren(...):' +
<add> 'flattenChildren(...): ' +
<ide> 'Encountered two children with the same key, `%s`. ' +
<ide> 'Keys should be unique so that components maintain their identity ' +
<ide> 'across updates. Non-unique keys may cause children to be ' + | 1 |
Ruby | Ruby | handle tap aliases | 0165a810f72f6ac4dd4385c31e749fc786a04c58 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search_tap(user, repo, rx)
<ide> end
<ide>
<ide> def search_formulae(rx)
<del> aliases = Formula.aliases
<add> aliases = Formula.alias_full_names
<ide> results = (Formula.full_names+aliases).grep(rx).sort
<add> result_names = results.map { |name| name.split("/")[-1] }.uniq
<ide>
<ide> results.map do |name|
<ide> canonical_name = Formulary.canonical_name(name)
<ide> # Ignore aliases from results when the full name was also found
<del> if aliases.include?(name) && results.include?(canonical_name)
<add> if aliases.include?(name) && result_names.include?(canonical_name)
<ide> next
<ide> elsif (HOMEBREW_CELLAR/canonical_name).directory?
<ide> "#{name} (installed)" | 1 |
Ruby | Ruby | fix rails console --sandbox | be3e10cd26bc8ec29c6474d03a08a8e733108e7d | <ide><path>activerecord/lib/active_record/railties/console_sandbox.rb
<del>ActiveRecord::Base.connection.begin_db_transaction
<add>ActiveRecord::Base.connection.begin_transaction
<ide> at_exit do
<del> ActiveRecord::Base.connection.rollback_db_transaction
<add> ActiveRecord::Base.connection.rollback_transaction
<ide> end
<ide><path>railties/lib/rails/commands/console.rb
<ide> def available_environments
<ide> def initialize(app, options={})
<ide> @app = app
<ide> @options = options
<add>
<add> app.sandbox = sandbox?
<ide> app.load_console
<add>
<ide> @console = app.config.console || IRB
<ide> end
<ide>
<ide> def debugger?
<ide> end
<ide>
<ide> def start
<del> app.sandbox = sandbox?
<ide> require_debugger if debugger?
<ide> set_environment! if environment?
<ide>
<ide><path>railties/test/application/console_test.rb
<ide> def test_access_to_helpers
<ide> assert_equal 'Once upon a time in a world...',
<ide> helper.truncate('Once upon a time in a world far far away')
<ide> end
<add>end
<add>
<add>begin
<add> require "pty"
<add>rescue LoadError
<add>end
<ide>
<del> def test_with_sandbox
<del> require 'rails/all'
<del> value = false
<add>class FullStackConsoleTest < ActiveSupport::TestCase
<add> def setup
<add> skip "PTY unavailable" unless defined?(PTY) && PTY.respond_to?(:open)
<ide>
<del> Class.new(Rails::Railtie) do
<del> console do |app|
<del> value = app.sandbox?
<add> build_app
<add> app_file 'app/models/post.rb', <<-CODE
<add> class Post < ActiveRecord::Base
<add> end
<add> CODE
<add> system "#{app_path}/bin/rails runner 'Post.connection.create_table :posts'"
<add>
<add> @master, @slave = PTY.open
<add> end
<add>
<add> def teardown
<add> teardown_app
<add> end
<add>
<add> def assert_output(expected, timeout = 0.2)
<add> timeout = Time.now + timeout
<add>
<add> output = ""
<add> until output.include?(expected) || Time.now > timeout
<add> if IO.select([@master], [], [], 0.1)
<add> output << @master.readpartial(100)
<ide> end
<ide> end
<ide>
<del> load_environment(true)
<del> assert value
<add> assert output.include?(expected), "#{expected.inspect} expected, but got:\n\n#{output}"
<add> end
<add>
<add> def write_prompt(command)
<add> @master.puts command
<add> assert_output command
<add> end
<add>
<add> def kill(pid)
<add> Process.kill('QUIT', pid)
<add> Process.wait(pid)
<add> rescue Errno::ESRCH
<add> end
<add>
<add> def spawn_console
<add> pid = Process.spawn(
<add> "#{app_path}/bin/rails console --sandbox",
<add> in: @slave, out: @slave, err: @slave
<add> )
<add>
<add> assert_output "> ", 5
<add> pid
<add> end
<add>
<add> def test_sandbox
<add> pid = spawn_console
<add>
<add> write_prompt "Post.count"
<add> assert_output "=> 0"
<add>
<add> write_prompt "Post.create"
<add> assert_output "=> "
<add>
<add> write_prompt "Post.count"
<add> assert_output "=> 1"
<add>
<add> kill pid
<add>
<add> pid = spawn_console
<add>
<add> write_prompt "Post.count"
<add> assert_output "=> 0"
<add> ensure
<add> kill pid
<ide> end
<ide> end | 3 |
Go | Go | add check for overlapping subnets | 9fe5cc10b239b99113797712ca044af1163747d1 | <ide><path>libnetwork/ipam/structures.go
<ide> func (aSpace *addrSpace) updatePoolDBOnAdd(k SubnetKey, nw *net.IPNet, ipr *Addr
<ide> defer aSpace.Unlock()
<ide>
<ide> // Check if already allocated
<del> if p, ok := aSpace.subnets[k]; ok {
<add> if _, ok := aSpace.subnets[k]; ok {
<ide> if pdf {
<ide> return nil, types.InternalMaskableErrorf("predefined pool %s is already reserved", nw)
<ide> }
<del> aSpace.incRefCount(p, 1)
<del> return func() error { return nil }, nil
<add> // This means the same pool is already allocated. updatePoolDBOnAdd is called when there
<add> // is request for a pool/subpool. It should ensure there is no overlap with existing pools
<add> return nil, ipamapi.ErrPoolOverlap
<ide> }
<ide>
<ide> // If master pool, check for overlap | 1 |
Javascript | Javascript | remove old comment | f092c6a8df521e08b94c65d8e4e5cf0af20e81b0 | <ide><path>packages/ember-metal/lib/computed.js
<ide> function keysForDep(obj, depsMeta, depKey) {
<ide> return keys;
<ide> }
<ide>
<del>/* return obj[META_KEY].deps */
<ide> function metaForDeps(obj, meta) {
<ide> return keysForDep(obj, meta, 'deps');
<ide> } | 1 |
Python | Python | remove default value for required argument | 3a9ef1f2ba89b77f61a7791681edd60661364fc6 | <ide><path>libcloud/compute/drivers/maxihost.py
<ide> def list_key_pairs(self):
<ide> data = self.connection.request('/account/keys')
<ide> return list(map(self._to_key_pair, data.object['ssh_keys']))
<ide>
<del> def create_key_pair(self, name, public_key=''):
<add> def create_key_pair(self, name, public_key):
<ide> """
<ide> Create a new SSH key.
<ide>
<ide> :param name: Key name (required)
<ide> :type name: ``str``
<ide>
<del> :param public_key: Valid public key string (required)
<add> :param public_key: base64 encoded public key string (required)
<ide> :type public_key: ``str``
<ide> """
<ide> attr = {'name': name, 'public_key': public_key} | 1 |
Python | Python | fix typo in airflow/cli/cli_parser.py | c839705bf62313827e3f0c4468176923624627a4 | <ide><path>airflow/cli/cli_parser.py
<ide> def _format_action(self, action: Action):
<ide>
<ide> self._indent()
<ide> subactions = action._get_subactions() # pylint: disable=protected-access
<del> action_subcommnads, group_subcommnands = partition(
<add> action_subcommands, group_subcommands = partition(
<ide> lambda d: isinstance(ALL_COMMANDS_DICT[d.dest], GroupCommand), subactions
<ide> )
<ide> parts.append("\n")
<ide> parts.append('%*s%s:\n' % (self._current_indent, '', "Groups"))
<ide> self._indent()
<del> for subaction in group_subcommnands:
<add> for subaction in group_subcommands:
<ide> parts.append(self._format_action(subaction))
<ide> self._dedent()
<ide>
<ide> parts.append("\n")
<ide> parts.append('%*s%s:\n' % (self._current_indent, '', "Commands"))
<ide> self._indent()
<ide>
<del> for subaction in action_subcommnads:
<add> for subaction in action_subcommands:
<ide> parts.append(self._format_action(subaction))
<ide> self._dedent()
<ide> self._dedent() | 1 |
Go | Go | remove duplicate imports | 5dbfe310fe624c66714f8c5017692f528af4c87f | <ide><path>pkg/libcontainer/nsinit/nsinit/main.go
<ide> import (
<ide>
<ide> "github.com/dotcloud/docker/pkg/libcontainer"
<ide> "github.com/dotcloud/docker/pkg/libcontainer/nsinit"
<del>
<del> "github.com/dotcloud/docker/pkg/libcontainer"
<del> "github.com/dotcloud/docker/pkg/libcontainer/nsinit"
<ide> )
<ide>
<ide> var ( | 1 |
Javascript | Javascript | resolve the query back to the promise | f52d5b536901b5e9136556afb56e2c710aec7568 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> User.prototype.requestAuthEmail = requestAuthEmail;
<ide>
<ide> User.prototype.requestUpdateEmail = function requestUpdateEmail(newEmail) {
<add>
<ide> const currentEmail = this.email;
<ide> const isOwnEmail = isTheSame(newEmail, currentEmail);
<del> const sameUpdate = isTheSame(newEmail, this.newEmail);
<del> const messageOrNull = getWaitMessage(this.emailVerifyTTL);
<del> if (isOwnEmail) {
<del> if (this.emailVerified) {
<del> // email is already associated and verified with this account
<del> throw wrapHandledError(
<del> new Error('email is already verified'),
<del> {
<del> type: 'info',
<del> message: `${newEmail} is already associated with this account.`
<del> }
<del> );
<del> } else if (!this.emailVerified && messageOrNull) {
<del> // email is associated but unverified and
<del> // email is within time limit
<del> throw wrapHandledError(
<del> new Error(),
<del> {
<del> type: 'info',
<del> message: messageOrNull
<del> }
<del> );
<add> const isResendUpdateToSameEmail = isTheSame(newEmail, this.newEmail);
<add> const isLinkSentWithinLimit = getWaitMessage(this.emailVerifyTTL);
<add> const isVerifiedEmail = this.emailVerified;
<add>
<add> if (isOwnEmail && isVerifiedEmail) {
<add> // email is already associated and verified with this account
<add> throw wrapHandledError(
<add> new Error('email is already verified'),
<add> {
<add> type: 'info',
<add> message: `
<add> ${newEmail} is already associated with this account.
<add> You can update a new email address instead.`
<ide> }
<add> );
<ide> }
<del> if (sameUpdate && messageOrNull) {
<add> if (isResendUpdateToSameEmail && isLinkSentWithinLimit) {
<ide> // trying to update with the same newEmail and
<ide> // confirmation email is still valid
<ide> throw wrapHandledError(
<ide> module.exports = function(User) {
<ide> type: 'info',
<ide> message: dedent`
<ide> We have already sent an email confirmation request to ${newEmail}.
<del> Please check your inbox.`
<add> ${isLinkSentWithinLimit}`
<ide> }
<ide> );
<ide> }
<ide> if (!isEmail('' + newEmail)) {
<ide> throw createEmailError();
<ide> }
<add>
<ide> // newEmail is not associated with this user, and
<ide> // this attempt to change email is the first or
<ide> // previous attempts have expired
<del>
<del> if (isOwnEmail || (sameUpdate && !messageOrNull)) {
<del> const update = {
<add> if (
<add> !isOwnEmail ||
<add> (isOwnEmail && !isVerifiedEmail) ||
<add> (isResendUpdateToSameEmail && !isLinkSentWithinLimit)
<add> ) {
<add> const updateConfig = {
<ide> newEmail,
<ide> emailVerified: false,
<ide> emailVerifyTTL: new Date()
<ide> };
<del> return this.update$(update).toPromise()
<del> .then(() => {
<del> Object.assign(this, update);
<del> return;
<del> })
<del> .then(() => this.requestAuthEmail(false, newEmail).toPromise());
<add> return Observable.forkJoin(
<add> this.update$(updateConfig),
<add> this.requestAuthEmail(false, newEmail),
<add> (user, message) => ({ user, message })
<add> )
<add> .map(({ message }) => message);
<add>
<ide> } else {
<ide> return 'Something unexpected happened whilst updating your email.';
<ide> }
<ide><path>server/boot/settings.js
<ide> export default function settingsController(app) {
<ide> .withMessage('Email format is invalid.')
<ide> ];
<ide>
<del> function updateMyEmail(req, res) {
<add> function updateMyEmail(req, res, next) {
<ide> const { user, body: { email } } = req;
<del> return res.json({ message: user.requestUpdateEmail(email) } );
<add> return user.requestUpdateEmail(email)
<add> .subscribe(
<add> (message) => res.json({ message: message }),
<add> next
<add> );
<ide> }
<ide>
<ide> const updateMyCurrentChallengeValidators = [ | 2 |
PHP | PHP | fix uuids when queueing | 18d26df24f1f3b17bd20c7244d9b85d273138d79 | <ide><path>src/Illuminate/Notifications/ChannelManager.php
<ide> public function sendNow($notifiables, $notification, array $channels = null)
<ide> foreach ($channels as $channel) {
<ide> $notification = clone $original;
<ide>
<del> $notification->id = $notificationId;
<add> if (! $notification->id) {
<add> $notification->id = $notificationId;
<add> }
<ide>
<ide> if (! $this->shouldSendNotification($notifiable, $notification, $channel)) {
<ide> continue;
<ide> protected function queueNotification($notifiables, $notification)
<ide>
<ide> $bus = $this->app->make(Bus::class);
<ide>
<add> $original = clone $notification;
<add>
<ide> foreach ($notifiables as $notifiable) {
<add> $notificationId = (string) Uuid::uuid4();
<add>
<ide> foreach ($notification->via($notifiable) as $channel) {
<add> $notification = clone $original;
<add>
<add> $notification->id = $notificationId;
<add>
<ide> $bus->dispatch(
<ide> (new SendQueuedNotifications($this->formatNotifiables($notifiable), $notification, [$channel]))
<ide> ->onConnection($notification->connection) | 1 |
Ruby | Ruby | update resolve_link_as to include svg | d9fda555942bfb6bcb1f75477b1425e2ab3162f5 | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def resolve_link_as(extname, mime_type)
<ide> "style"
<ide> elsif extname == "vtt"
<ide> "track"
<add> elsif extname == "svg"
<add> "image"
<ide> elsif (type = mime_type.to_s.split("/")[0]) && type.in?(%w(audio video font))
<ide> type
<ide> end
<ide><path>actionview/test/template/asset_tag_helper_test.rb
<ide> def content_security_policy_nonce
<ide> %(preload_link_tag '//example.com/font.woff2', crossorigin: 'use-credentials') => %(<link rel="preload" href="//example.com/font.woff2" as="font" type="font/woff2" crossorigin="use-credentials" />),
<ide> %(preload_link_tag '/media/audio.ogg', nopush: true) => %(<link rel="preload" href="/media/audio.ogg" as="audio" type="audio/ogg" />),
<ide> %(preload_link_tag '/style.css', integrity: 'sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs') => %(<link rel="preload" href="/style.css" as="style" type="text/css" integrity="sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs">),
<add> %(preload_link_tag '/sprite.svg') => %(<link rel="preload" href="/sprite.svg" as="image" type="image/svg+xml">)
<ide> }
<ide>
<ide> VideoPathToTag = { | 2 |
Python | Python | rebuild model if necessary, fixes | 9904bdf23344c3bafac00c1a71cac65a1f1d8d48 | <ide><path>keras/models.py
<ide> def get_layer(self, name=None, index=None):
<ide> # Returns
<ide> A layer instance.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.get_layer(name, index)
<ide>
<ide> def call(self, inputs, mask=None):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.call(inputs, mask)
<ide>
<ide> def build(self, input_shape=None):
<ide>
<ide> @property
<ide> def uses_learning_phase(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.uses_learning_phase
<ide>
<ide> def non_trainable_weights(self):
<ide>
<ide> @property
<ide> def updates(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.updates
<ide>
<ide> @property
<ide> def state_updates(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.state_updates
<ide>
<ide> def get_updates_for(self, inputs):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.get_updates_for(inputs)
<ide>
<ide> @property
<ide> def losses(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.losses
<ide>
<ide> def get_losses_for(self, inputs):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.get_losses_for(inputs)
<ide>
<ide> @property
<ide> def regularizers(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.regularizers
<ide>
<ide> @property
<ide> def constraints(self):
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.constraints
<ide>
<ide> def get_weights(self):
<ide> weights.append(layer.get_weights())
<ide> return weights
<ide>
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.get_weights()
<ide>
<ide> def set_weights(self, weights):
<ide> layer.set_weights(weights[:nb_param])
<ide> weights = weights[nb_param:]
<ide>
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> self.model.set_weights(weights)
<ide>
<ide> def fit(self, x, y, batch_size=32, epochs=10, verbose=1, callbacks=None,
<ide> if kwargs:
<ide> raise TypeError('Unrecognized keyword arguments: ' + str(kwargs))
<ide>
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.fit(x, y,
<ide> def evaluate(self, x, y, batch_size=32, verbose=1,
<ide> # Raises
<ide> RuntimeError: if the model was never compiled.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.evaluate(x, y,
<ide> def predict(self, x, batch_size=32, verbose=0):
<ide> # Returns
<ide> A Numpy array of predictions.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.predict(x, batch_size=batch_size, verbose=verbose)
<ide>
<ide> def predict_on_batch(self, x):
<ide> # Returns
<ide> A Numpy array of predictions.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.predict_on_batch(x)
<ide>
<ide> def train_on_batch(self, x, y, class_weight=None,
<ide> # Raises
<ide> RuntimeError: if the model was never compiled.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.train_on_batch(x, y,
<ide> def test_on_batch(self, x, y,
<ide> # Raises
<ide> RuntimeError: if the model was never compiled.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.test_on_batch(x, y,
<ide> def generate_arrays_from_file(path):
<ide> steps_per_epoch=1000, epochs=10)
<ide> ```
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.fit_generator(generator,
<ide> def evaluate_generator(self, generator, steps,
<ide> # Raises
<ide> RuntimeError: if the model was never compiled.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> raise RuntimeError('The model needs to be compiled '
<ide> 'before being used.')
<ide> return self.model.evaluate_generator(generator,
<ide> def predict_generator(self, generator, steps,
<ide> # Returns
<ide> A Numpy array of predictions.
<ide> """
<del> if self.model is None:
<add> if not self.built:
<ide> self.build()
<ide> return self.model.predict_generator(generator, steps,
<ide> max_queue_size=max_queue_size,
<ide><path>tests/keras/test_sequential_model.py
<ide> def test_sequential_count_params():
<ide> assert(n == model.count_params())
<ide>
<ide>
<add>@keras_test
<add>def test_rebuild_model():
<add> model = Sequential()
<add> model.add(Dense(128, input_shape=(784,)))
<add> model.add(Dense(64))
<add> assert(model.get_layer(index=-1).output_shape == (None, 64))
<add>
<add> model.add(Dense(32))
<add> assert(model.get_layer(index=-1).output_shape == (None, 32))
<add>
<add>
<ide> if __name__ == '__main__':
<ide> pytest.main([__file__]) | 2 |
Text | Text | fix use of "it's" in docs | d262285827d244a058319e9607f63c9e74e9fbb0 | <ide><path>docs/_posts/2013-07-17-react-v0-4-0.md
<ide> When you're ready, [go download it](/react/downloads.html)!
<ide> * Removed `React.autoBind`. [Read our blog post for details...](http://facebook.github.io/react/blog/2013/07/02/react-v0-4-autobind-by-default.html)
<ide> * Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](http://facebook.github.io/react/docs/forms.html)
<ide> * We've implemented an improved synthetic event system that conforms to the W3C spec.
<del>* Updates to your component are batched now, which may result in a significantly faster re-render of components. `this.setState` now takes an optional callback as it's second parameter. If you were using `onClick={this.setState.bind(this, state)}` previously, you'll want to make sure you add a third parameter so that the event is not treated as the callback.
<add>* Updates to your component are batched now, which may result in a significantly faster re-render of components. `this.setState` now takes an optional callback as its second parameter. If you were using `onClick={this.setState.bind(this, state)}` previously, you'll want to make sure you add a third parameter so that the event is not treated as the callback.
<ide>
<ide> ### JSX
<ide>
<ide><path>docs/docs/07.1-more-about-refs.md
<ide> Consider the case when you wish to tell an `<input />` element (that exists with
<ide> ```
<ide>
<ide>
<del>Notice how, in this example, we want to "tell" the input something - something that it cannot infer from it's props over time. In this case we want to "tell" it that it should now become focused. However, there are some challenges. What is returned from `render()`` is not your actual composition of "child" components, it is merely a *description* of the children at a particular instance in time - a snapshot, if you will.
<add>Notice how, in this example, we want to "tell" the input something - something that it cannot infer from its props over time. In this case we want to "tell" it that it should now become focused. However, there are some challenges. What is returned from `render()`` is not your actual composition of "child" components, it is merely a *description* of the children at a particular instance in time - a snapshot, if you will.
<ide>
<ide> > Note:
<ide> > | 2 |
Go | Go | hide version when not available | e3b58d302795fbbfa6c117774906a4c9efd536f4 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> cmd.Usage()
<ide> return nil
<ide> }
<del>
<del> fmt.Fprintf(cli.out, "Client version: %s\n", VERSION)
<add> if VERSION != "" {
<add> fmt.Fprintf(cli.out, "Client version: %s\n", VERSION)
<add> }
<ide> fmt.Fprintf(cli.out, "Go version (client): %s\n", runtime.Version())
<ide> if GITCOMMIT != "" {
<ide> fmt.Fprintf(cli.out, "Git commit (client): %s\n", GITCOMMIT)
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> utils.Debugf("Error unmarshal: body: %s, err: %s\n", body, err)
<ide> return err
<ide> }
<del> fmt.Fprintf(cli.out, "Server version: %s\n", out.Version)
<add> if out.Version != "" {
<add> fmt.Fprintf(cli.out, "Server version: %s\n", out.Version)
<add> }
<ide> if out.GitCommit != "" {
<ide> fmt.Fprintf(cli.out, "Git commit (server): %s\n", out.GitCommit)
<ide> }
<ide> func (cli *DockerCli) CmdVersion(args ...string) error {
<ide> release := utils.GetReleaseVersion()
<ide> if release != "" {
<ide> fmt.Fprintf(cli.out, "Last stable version: %s", release)
<del> if strings.Trim(VERSION, "-dev") != release || strings.Trim(out.Version, "-dev") != release {
<add> if (VERSION != "" || out.Version != "") && (strings.Trim(VERSION, "-dev") != release || strings.Trim(out.Version, "-dev") != release) {
<ide> fmt.Fprintf(cli.out, ", please update docker")
<ide> }
<ide> fmt.Fprintf(cli.out, "\n") | 1 |
Python | Python | fix mypy error in trie.py | b373c991f69e20d7e1dc92d1613e60a5605bf1a8 | <ide><path>data_structures/trie/trie.py
<ide> def __init__(self):
<ide> self.nodes = dict() # Mapping from char to TrieNode
<ide> self.is_leaf = False
<ide>
<del> def insert_many(self, words: [str]):
<add> def insert_many(self, words: list[str]):
<ide> """
<ide> Inserts a list of words into the Trie
<ide> :param words: list of string words | 1 |
Ruby | Ruby | add mini-validator on creating migration | d965bbfe9f45be8d203a85482923253c751a20bd | <ide><path>activerecord/lib/rails/generators/active_record/migration/migration_generator.rb
<ide> class MigrationGenerator < Base
<ide>
<ide> def create_migration_file
<ide> set_local_assigns!
<add> validate_file_name!
<ide> migration_template "migration.rb", "db/migrate/#{file_name}.rb"
<ide> end
<ide>
<ide> def index_name_for(attribute)
<ide> attribute.name.singularize.foreign_key
<ide> end.to_sym
<ide> end
<add>
<add> private
<add>
<add> def validate_file_name!
<add> unless file_name =~ /^[_a-z0-9]+$/
<add> raise IllegalMigrationNameError.new(file_name)
<add> end
<add> end
<ide> end
<ide> end
<ide> end
<ide><path>railties/test/generators/migration_generator_test.rb
<ide> def test_migration_with_class_name
<ide> run_generator [migration]
<ide> assert_migration "db/migrate/change_title_body_from_posts.rb", /class #{migration} < ActiveRecord::Migration/
<ide> end
<add>
<add> def test_migration_with_invalid_file_name
<add> migration = "add_something:datetime"
<add> assert_raise ActiveRecord::IllegalMigrationNameError do
<add> run_generator [migration]
<add> end
<add> end
<ide>
<ide> def test_add_migration_with_attributes
<ide> migration = "add_title_body_to_posts" | 2 |
Go | Go | reduce cli time, move some to unit tests | faab71701f710a8862e71d4ecd6a86cef49f67b9 | <ide><path>builder/dockerfile/dispatchers.go
<ide> package dockerfile
<ide>
<ide> import (
<ide> "fmt"
<del> "os"
<del> "path/filepath"
<ide> "regexp"
<ide> "runtime"
<ide> "sort"
<ide> import (
<ide> "github.com/docker/docker/api"
<ide> "github.com/docker/docker/builder"
<ide> "github.com/docker/docker/pkg/signal"
<del> "github.com/docker/docker/pkg/system"
<ide> runconfigopts "github.com/docker/docker/runconfig/opts"
<ide> "github.com/docker/engine-api/types/container"
<ide> "github.com/docker/engine-api/types/strslice"
<ide> func workdir(b *Builder, args []string, attributes map[string]bool, original str
<ide> return errExactlyOneArgument("WORKDIR")
<ide> }
<ide>
<del> if err := b.flags.Parse(); err != nil {
<add> err := b.flags.Parse()
<add> if err != nil {
<ide> return err
<ide> }
<ide>
<ide> // This is from the Dockerfile and will not necessarily be in platform
<ide> // specific semantics, hence ensure it is converted.
<del> workdir := filepath.FromSlash(args[0])
<del> current := filepath.FromSlash(b.runConfig.WorkingDir)
<del> if runtime.GOOS == "windows" {
<del> // Windows is a little more complicated than Linux. This code ensures
<del> // we end up with a workdir which is consistent in terms of platform
<del> // semantics. This means C:\somefolder, specifically in the format:
<del> // UPPERCASEDriveLetter-Colon-Backslash-FolderName. We are already
<del> // guaranteed that `current`, if set, is consistent. This allows us to
<del> // cope correctly with any of the following in a Dockerfile:
<del> // WORKDIR a --> C:\a
<del> // WORKDIR c:\\foo --> C:\foo
<del> // WORKDIR \\foo --> C:\foo
<del> // WORKDIR /foo --> C:\foo
<del> // WORKDIR c:\\foo \ WORKDIR bar --> C:\foo --> C:\foo\bar
<del> // WORKDIR C:/foo \ WORKDIR bar --> C:\foo --> C:\foo\bar
<del> // WORKDIR C:/foo \ WORKDIR \\bar --> C:\foo --> C:\bar
<del> // WORKDIR /foo \ WORKDIR c:/bar --> C:\foo --> C:\bar
<del> if len(current) == 0 || system.IsAbs(workdir) {
<del> if (workdir[0] == os.PathSeparator) ||
<del> (len(workdir) > 1 && string(workdir[1]) != ":") ||
<del> (len(workdir) == 1) {
<del> workdir = filepath.Join(`C:\`, workdir)
<del> }
<del> } else {
<del> workdir = filepath.Join(current, workdir)
<del> }
<del> workdir = strings.ToUpper(string(workdir[0])) + workdir[1:] // Upper-case drive letter
<del> } else {
<del> if !filepath.IsAbs(workdir) {
<del> workdir = filepath.Join(string(os.PathSeparator), current, workdir)
<del> }
<add> b.runConfig.WorkingDir, err = normaliseWorkdir(b.runConfig.WorkingDir, args[0])
<add> if err != nil {
<add> return err
<ide> }
<del> b.runConfig.WorkingDir = workdir
<ide>
<ide> return b.commit("", b.runConfig.Cmd, fmt.Sprintf("WORKDIR %v", workdir))
<ide> }
<ide><path>builder/dockerfile/dispatchers_unix.go
<add>// +build !windows
<add>
<add>package dockerfile
<add>
<add>import (
<add> "fmt"
<add> "os"
<add> "path/filepath"
<add>)
<add>
<add>// normaliseWorkdir normalises a user requested working directory in a
<add>// platform sematically consistent way.
<add>func normaliseWorkdir(current string, requested string) (string, error) {
<add> if requested == "" {
<add> return "", fmt.Errorf("cannot normalise nothing")
<add> }
<add> current = filepath.FromSlash(current)
<add> requested = filepath.FromSlash(requested)
<add> if !filepath.IsAbs(requested) {
<add> return filepath.Join(string(os.PathSeparator), current, requested), nil
<add> }
<add> return requested, nil
<add>}
<ide><path>builder/dockerfile/dispatchers_windows.go
<add>package dockerfile
<add>
<add>import (
<add> "fmt"
<add> "os"
<add> "path/filepath"
<add> "strings"
<add>
<add> "github.com/docker/docker/pkg/system"
<add>)
<add>
<add>// normaliseWorkdir normalises a user requested working directory in a
<add>// platform sematically consistent way.
<add>func normaliseWorkdir(current string, requested string) (string, error) {
<add> if requested == "" {
<add> return "", fmt.Errorf("cannot normalise nothing")
<add> }
<add>
<add> current = filepath.FromSlash(current)
<add> requested = filepath.FromSlash(requested)
<add>
<add> // Target semantics is C:\somefolder, specifically in the format:
<add> // UPPERCASEDriveLetter-Colon-Backslash-FolderName. We are already
<add> // guaranteed that `current`, if set, is consistent. This allows us to
<add> // cope correctly with any of the following in a Dockerfile:
<add> // WORKDIR a --> C:\a
<add> // WORKDIR c:\\foo --> C:\foo
<add> // WORKDIR \\foo --> C:\foo
<add> // WORKDIR /foo --> C:\foo
<add> // WORKDIR c:\\foo \ WORKDIR bar --> C:\foo --> C:\foo\bar
<add> // WORKDIR C:/foo \ WORKDIR bar --> C:\foo --> C:\foo\bar
<add> // WORKDIR C:/foo \ WORKDIR \\bar --> C:\foo --> C:\bar
<add> // WORKDIR /foo \ WORKDIR c:/bar --> C:\foo --> C:\bar
<add> if len(current) == 0 || system.IsAbs(requested) {
<add> if (requested[0] == os.PathSeparator) ||
<add> (len(requested) > 1 && string(requested[1]) != ":") ||
<add> (len(requested) == 1) {
<add> requested = filepath.Join(`C:\`, requested)
<add> }
<add> } else {
<add> requested = filepath.Join(current, requested)
<add> }
<add> // Upper-case drive letter
<add> return (strings.ToUpper(string(requested[0])) + requested[1:]), nil
<add>}
<ide><path>builder/dockerfile/dispatchers_windows_test.go
<add>// +build windows
<add>
<add>package dockerfile
<add>
<add>import "testing"
<add>
<add>func TestNormaliseWorkdir(t *testing.T) {
<add> tests := []struct{ current, requested, expected, etext string }{
<add> {``, ``, ``, `cannot normalise nothing`},
<add> {``, `a`, `C:\a`, ``},
<add> {``, `c:\foo`, `C:\foo`, ``},
<add> {``, `\foo`, `C:\foo`, ``},
<add> {``, `/foo`, `C:\foo`, ``},
<add> {``, `C:/foo`, `C:\foo`, ``},
<add> {`C:\foo`, `bar`, `C:\foo\bar`, ``},
<add> {`C:\foo`, `/bar`, `C:\bar`, ``},
<add> {`C:\foo`, `\bar`, `C:\bar`, ``},
<add> }
<add> for _, i := range tests {
<add> r, e := normaliseWorkdir(i.current, i.requested)
<add>
<add> if i.etext != "" && e == nil {
<add> t.Fatalf("TestNormaliseWorkingDir Expected error %s", i.etext)
<add> }
<add>
<add> if i.etext != "" && e.Error() != i.etext {
<add> t.Fatalf("TestNormaliseWorkingDir Expected error %s, got %s", i.etext, e.Error())
<add> }
<add>
<add> if r != i.expected {
<add> t.Fatalf("TestNormaliseWorkingDir Expected %s for %s %s", i.expected, i.current, i.requested)
<add> }
<add> }
<add>}
<ide><path>builder/dockerfile/internals.go
<ide> func (b *Builder) runContextCommand(args []string, allowRemote bool, allowLocalD
<ide>
<ide> // Twiddle the destination when its a relative path - meaning, make it
<ide> // relative to the WORKINGDIR
<del>
<del> endsInSlash := strings.HasSuffix(dest, string(os.PathSeparator))
<del>
<del> if runtime.GOOS == "windows" {
<del> // On Windows, this is more complicated. We are guaranteed that the
<del> // WorkingDir is already platform consistent meaning in the format
<del> // UPPERCASEDriveLetter-Colon-Backslash-Foldername. However, Windows
<del> // for now also has the limitation that ADD/COPY can only be done to
<del> // the C: (system) drive, not any drives that might be present as a
<del> // result of bind mounts.
<del> //
<del> // So... if the path specified is Linux-style absolute (/foo or \\foo),
<del> // we assume it is the system drive. If it is a Windows-style absolute
<del> // (DRIVE:\\foo), error if DRIVE is not C. And finally, ensure we
<del> // strip any configured working directories drive letter so that it
<del> // can be subsequently legitimately converted to a Windows volume-style
<del> // pathname.
<del>
<del> // Not a typo - filepath.IsAbs, not system.IsAbs on this next check as
<del> // we only want to validate where the DriveColon part has been supplied.
<del> if filepath.IsAbs(dest) {
<del> if strings.ToUpper(string(dest[0])) != "C" {
<del> return fmt.Errorf("Windows does not support %s with a destinations not on the system drive (C:)", cmdName)
<del> }
<del> dest = dest[2:] // Strip the drive letter
<del> }
<del>
<del> // Cannot handle relative where WorkingDir is not the system drive.
<del> if len(b.runConfig.WorkingDir) > 0 {
<del> if !system.IsAbs(b.runConfig.WorkingDir[2:]) {
<del> return fmt.Errorf("Current WorkingDir %s is not platform consistent", b.runConfig.WorkingDir)
<del> }
<del> if !system.IsAbs(dest) {
<del> if string(b.runConfig.WorkingDir[0]) != "C" {
<del> return fmt.Errorf("Windows does not support %s with relative paths when WORKDIR is not the system drive", cmdName)
<del> }
<del>
<del> dest = filepath.Join(string(os.PathSeparator), b.runConfig.WorkingDir[2:], dest)
<del>
<del> // Make sure we preserve any trailing slash
<del> if endsInSlash {
<del> dest += string(os.PathSeparator)
<del> }
<del> }
<del> }
<del> } else {
<del> if !system.IsAbs(dest) {
<del> dest = filepath.Join(string(os.PathSeparator), filepath.FromSlash(b.runConfig.WorkingDir), dest)
<del>
<del> // Make sure we preserve any trailing slash
<del> if endsInSlash {
<del> dest += string(os.PathSeparator)
<del> }
<del> }
<add> if dest, err = normaliseDest(cmdName, b.runConfig.WorkingDir, dest); err != nil {
<add> return err
<ide> }
<ide>
<ide> for _, info := range infos {
<ide><path>builder/dockerfile/internals_unix.go
<add>// +build !windows
<add>
<add>package dockerfile
<add>
<add>import (
<add> "os"
<add> "path/filepath"
<add> "strings"
<add>
<add> "github.com/docker/docker/pkg/system"
<add>)
<add>
<add>// normaliseDest normalises the destination of a COPY/ADD command in a
<add>// platform semantically consistent way.
<add>func normaliseDest(cmdName, workingDir, requested string) (string, error) {
<add> dest := filepath.FromSlash(requested)
<add> endsInSlash := strings.HasSuffix(requested, string(os.PathSeparator))
<add> if !system.IsAbs(requested) {
<add> dest = filepath.Join(string(os.PathSeparator), filepath.FromSlash(workingDir), dest)
<add> // Make sure we preserve any trailing slash
<add> if endsInSlash {
<add> dest += string(os.PathSeparator)
<add> }
<add> }
<add> return dest, nil
<add>}
<ide><path>builder/dockerfile/internals_windows.go
<add>package dockerfile
<add>
<add>import (
<add> "fmt"
<add> "os"
<add> "path/filepath"
<add> "strings"
<add>
<add> "github.com/docker/docker/pkg/system"
<add>)
<add>
<add>// normaliseDest normalises the destination of a COPY/ADD command in a
<add>// platform semantically consistent way.
<add>func normaliseDest(cmdName, workingDir, requested string) (string, error) {
<add> dest := filepath.FromSlash(requested)
<add> endsInSlash := strings.HasSuffix(dest, string(os.PathSeparator))
<add>
<add> // We are guaranteed that the working directory is already consistent,
<add> // However, Windows also has, for now, the limitation that ADD/COPY can
<add> // only be done to the system drive, not any drives that might be present
<add> // as a result of a bind mount.
<add> //
<add> // So... if the path requested is Linux-style absolute (/foo or \\foo),
<add> // we assume it is the system drive. If it is a Windows-style absolute
<add> // (DRIVE:\\foo), error if DRIVE is not C. And finally, ensure we
<add> // strip any configured working directories drive letter so that it
<add> // can be subsequently legitimately converted to a Windows volume-style
<add> // pathname.
<add>
<add> // Not a typo - filepath.IsAbs, not system.IsAbs on this next check as
<add> // we only want to validate where the DriveColon part has been supplied.
<add> if filepath.IsAbs(dest) {
<add> if strings.ToUpper(string(dest[0])) != "C" {
<add> return "", fmt.Errorf("Windows does not support %s with a destinations not on the system drive (C:)", cmdName)
<add> }
<add> dest = dest[2:] // Strip the drive letter
<add> }
<add>
<add> // Cannot handle relative where WorkingDir is not the system drive.
<add> if len(workingDir) > 0 {
<add> if ((len(workingDir) > 1) && !system.IsAbs(workingDir[2:])) || (len(workingDir) == 1) {
<add> return "", fmt.Errorf("Current WorkingDir %s is not platform consistent", workingDir)
<add> }
<add> if !system.IsAbs(dest) {
<add> if string(workingDir[0]) != "C" {
<add> return "", fmt.Errorf("Windows does not support %s with relative paths when WORKDIR is not the system drive", cmdName)
<add> }
<add> dest = filepath.Join(string(os.PathSeparator), workingDir[2:], dest)
<add> // Make sure we preserve any trailing slash
<add> if endsInSlash {
<add> dest += string(os.PathSeparator)
<add> }
<add> }
<add> }
<add> return dest, nil
<add>}
<ide><path>builder/dockerfile/internals_windows_test.go
<add>// +build windows
<add>
<add>package dockerfile
<add>
<add>import "testing"
<add>
<add>func TestNormaliseDest(t *testing.T) {
<add> tests := []struct{ current, requested, expected, etext string }{
<add> {``, `D:\`, ``, `Windows does not support TEST with a destinations not on the system drive (C:)`},
<add> {``, `e:/`, ``, `Windows does not support TEST with a destinations not on the system drive (C:)`},
<add> {`invalid`, `./c1`, ``, `Current WorkingDir invalid is not platform consistent`},
<add> {`C:`, ``, ``, `Current WorkingDir C: is not platform consistent`},
<add> {`C`, ``, ``, `Current WorkingDir C is not platform consistent`},
<add> {`D:\`, `.`, ``, "Windows does not support TEST with relative paths when WORKDIR is not the system drive"},
<add> {``, `D`, `D`, ``},
<add> {``, `./a1`, `.\a1`, ``},
<add> {``, `.\b1`, `.\b1`, ``},
<add> {``, `/`, `\`, ``},
<add> {``, `\`, `\`, ``},
<add> {``, `c:/`, `\`, ``},
<add> {``, `c:\`, `\`, ``},
<add> {``, `.`, `.`, ``},
<add> {`C:\wdd`, `./a1`, `\wdd\a1`, ``},
<add> {`C:\wde`, `.\b1`, `\wde\b1`, ``},
<add> {`C:\wdf`, `/`, `\`, ``},
<add> {`C:\wdg`, `\`, `\`, ``},
<add> {`C:\wdh`, `c:/`, `\`, ``},
<add> {`C:\wdi`, `c:\`, `\`, ``},
<add> {`C:\wdj`, `.`, `\wdj`, ``},
<add> {`C:\wdk`, `foo/bar`, `\wdk\foo\bar`, ``},
<add> {`C:\wdl`, `foo\bar`, `\wdl\foo\bar`, ``},
<add> {`C:\wdm`, `foo/bar/`, `\wdm\foo\bar\`, ``},
<add> {`C:\wdn`, `foo\bar/`, `\wdn\foo\bar\`, ``},
<add> }
<add> for _, i := range tests {
<add> got, err := normaliseDest("TEST", i.current, i.requested)
<add> if err != nil && i.etext == "" {
<add> t.Fatalf("TestNormaliseDest Got unexpected error %q for %s %s. ", err.Error(), i.current, i.requested)
<add> }
<add> if i.etext != "" && ((err == nil) || (err != nil && err.Error() != i.etext)) {
<add> if err == nil {
<add> t.Fatalf("TestNormaliseDest Expected an error for %s %s but didn't get one", i.current, i.requested)
<add> } else {
<add> t.Fatalf("TestNormaliseDest Wrong error text for %s %s - %s", i.current, i.requested, err.Error())
<add> }
<add> }
<add> if i.etext == "" && got != i.expected {
<add> t.Fatalf("TestNormaliseDest Expected %q for %q and %q. Got %q", i.expected, i.current, i.requested, got)
<add> }
<add> }
<add>}
<ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildRelativeWorkdir(c *check.C) {
<ide> }
<ide> }
<ide>
<del>// #22181 Regression test. Validates combinations of supported
<del>// WORKDIR dockerfile directives in Windows and non-Windows semantics.
<add>// #22181 Regression test. Single end-to-end test of using
<add>// Windows semantics. Most path handling verifications are in unit tests
<ide> func (s *DockerSuite) TestBuildWindowsWorkdirProcessing(c *check.C) {
<ide> testRequires(c, DaemonIsWindows)
<ide> name := "testbuildwindowsworkdirprocessing"
<ide> _, err := buildImage(name,
<ide> `FROM busybox
<del> WORKDIR a
<del> RUN sh -c "[ "$PWD" = "C:/a" ]"
<del> WORKDIR c:\\foo
<del> RUN sh -c "[ "$PWD" = "C:/foo" ]"
<del> WORKDIR \\foo
<del> RUN sh -c "[ "$PWD" = "C:/foo" ]"
<del> WORKDIR /foo
<del> RUN sh -c "[ "$PWD" = "C:/foo" ]"
<del> WORKDIR C:/foo
<add> WORKDIR C:\\foo
<ide> WORKDIR bar
<ide> RUN sh -c "[ "$PWD" = "C:/foo/bar" ]"
<del> WORKDIR c:/foo
<del> WORKDIR bar
<del> RUN sh -c "[ "$PWD" = "C:/foo/bar" ]"
<del> WORKDIR c:/foo
<del> WORKDIR \\bar
<del> RUN sh -c "[ "$PWD" = "C:/bar" ]"
<del> WORKDIR /foo
<del> WORKDIR c:\\bar
<del> RUN sh -c "[ "$PWD" = "C:/bar" ]"
<ide> `,
<ide> true)
<ide> if err != nil {
<ide> c.Fatal(err)
<ide> }
<ide> }
<ide>
<del>// #22181 Regression test. Validates combinations of supported
<del>// COPY dockerfile directives in Windows and non-Windows semantics.
<add>// #22181 Regression test. Most paths handling verifications are in unit test.
<add>// One functional test for end-to-end
<ide> func (s *DockerSuite) TestBuildWindowsAddCopyPathProcessing(c *check.C) {
<ide> testRequires(c, DaemonIsWindows)
<ide> name := "testbuildwindowsaddcopypathprocessing"
<ide> func (s *DockerSuite) TestBuildWindowsAddCopyPathProcessing(c *check.C) {
<ide> // by docker on the Windows platform.
<ide> dockerfile := `
<ide> FROM busybox
<del> # First cases with no workdir, all end up in the root directory of the system drive
<del> COPY a1 ./
<del> ADD a2 ./
<del> RUN sh -c "[ $(cat c:/a1) = 'helloa1' ]"
<del> RUN sh -c "[ $(cat c:/a2) = 'worlda2' ]"
<del>
<del> COPY b1 /
<del> ADD b2 /
<del> RUN sh -c "[ $(cat c:/b1) = 'hellob1' ]"
<del> RUN sh -c "[ $(cat c:/b2) = 'worldb2' ]"
<del>
<del> COPY c1 c:/
<del> ADD c2 c:/
<del> RUN sh -c "[ $(cat c:/c1) = 'helloc1' ]"
<del> RUN sh -c "[ $(cat c:/c2) = 'worldc2' ]"
<del>
<del> COPY d1 c:/
<del> ADD d2 c:/
<del> RUN sh -c "[ $(cat c:/d1) = 'hellod1' ]"
<del> RUN sh -c "[ $(cat c:/d2) = 'worldd2' ]"
<del>
<del> COPY e1 .
<del> ADD e2 .
<del> RUN sh -c "[ $(cat c:/e1) = 'helloe1' ]"
<del> RUN sh -c "[ $(cat c:/e2) = 'worlde2' ]"
<del>
<del> # Now with a workdir
<del> WORKDIR c:\\wa12
<del> COPY wa1 ./
<del> ADD wa2 ./
<del> RUN sh -c "[ $(cat c:/wa12/wa1) = 'hellowa1' ]"
<del> RUN sh -c "[ $(cat c:/wa12/wa2) = 'worldwa2' ]"
<del>
<del> # No trailing slash on COPY/ADD, Linux-style path.
<del> # Results in dir being changed to a file
<del> WORKDIR /wb1
<del> COPY wb1 .
<del> WORKDIR /wb2
<del> ADD wb2 .
<del> WORKDIR c:/
<del> RUN sh -c "[ $(cat c:/wb1) = 'hellowb1' ]"
<del> RUN sh -c "[ $(cat c:/wb2) = 'worldwb2' ]"
<del>
<del> # No trailing slash on COPY/ADD, Windows-style path.
<add> # No trailing slash on COPY/ADD
<ide> # Results in dir being changed to a file
<ide> WORKDIR /wc1
<ide> COPY wc1 c:/wc1
<ide> func (s *DockerSuite) TestBuildWindowsAddCopyPathProcessing(c *check.C) {
<ide> RUN sh -c "[ $(cat c:/wd2/wd2) = 'worldwd2' ]"
<ide> `
<ide> ctx, err := fakeContext(dockerfile, map[string]string{
<del> "a1": "helloa1",
<del> "a2": "worlda2",
<del> "b1": "hellob1",
<del> "b2": "worldb2",
<del> "c1": "helloc1",
<del> "c2": "worldc2",
<del> "d1": "hellod1",
<del> "d2": "worldd2",
<del> "e1": "helloe1",
<del> "e2": "worlde2",
<del> "wa1": "hellowa1",
<del> "wa2": "worldwa2",
<del> "wb1": "hellowb1",
<del> "wb2": "worldwb2",
<ide> "wc1": "hellowc1",
<ide> "wc2": "worldwc2",
<ide> "wd1": "hellowd1",
<ide> func (s *DockerSuite) TestBuildWindowsAddCopyPathProcessing(c *check.C) {
<ide> }
<ide> }
<ide>
<del>// #22181 Regression test.
<del>func (s *DockerSuite) TestBuildWindowsCopyFailsNonSystemDrive(c *check.C) {
<del> testRequires(c, DaemonIsWindows)
<del> name := "testbuildwindowscopyfailsnonsystemdrive"
<del> dockerfile := `
<del> FROM busybox
<del> cOpY foo d:/
<del> `
<del> ctx, err := fakeContext(dockerfile, map[string]string{"foo": "hello"})
<del> if err != nil {
<del> c.Fatal(err)
<del> }
<del> defer ctx.Close()
<del> _, err = buildImageFromContext(name, ctx, false)
<del> if err == nil {
<del> c.Fatal(err)
<del> }
<del> if !strings.Contains(err.Error(), "Windows does not support COPY with a destinations not on the system drive (C:)") {
<del> c.Fatal(err)
<del> }
<del>}
<del>
<del>// #22181 Regression test.
<del>func (s *DockerSuite) TestBuildWindowsCopyFailsWorkdirNonSystemDrive(c *check.C) {
<del> testRequires(c, DaemonIsWindows)
<del> name := "testbuildwindowscopyfailsworkdirsystemdrive"
<del> dockerfile := `
<del> FROM busybox
<del> WORKDIR d:/
<del> cOpY foo .
<del> `
<del> ctx, err := fakeContext(dockerfile, map[string]string{"foo": "hello"})
<del> if err != nil {
<del> c.Fatal(err)
<del> }
<del> defer ctx.Close()
<del> _, err = buildImageFromContext(name, ctx, false)
<del> if err == nil {
<del> c.Fatal(err)
<del> }
<del> if !strings.Contains(err.Error(), "Windows does not support COPY with relative paths when WORKDIR is not the system drive") {
<del> c.Fatal(err)
<del> }
<del>}
<del>
<del>// #22181 Regression test.
<del>func (s *DockerSuite) TestBuildWindowsAddFailsNonSystemDrive(c *check.C) {
<del> testRequires(c, DaemonIsWindows)
<del> name := "testbuildwindowsaddfailsnonsystemdrive"
<del> dockerfile := `
<del> FROM busybox
<del> AdD foo d:/
<del> `
<del> ctx, err := fakeContext(dockerfile, map[string]string{"foo": "hello"})
<del> if err != nil {
<del> c.Fatal(err)
<del> }
<del> defer ctx.Close()
<del> _, err = buildImageFromContext(name, ctx, false)
<del> if err == nil {
<del> c.Fatal(err)
<del> }
<del> if !strings.Contains(err.Error(), "Windows does not support ADD with a destinations not on the system drive (C:)") {
<del> c.Fatal(err)
<del> }
<del>}
<del>
<del>// #22181 Regression test.
<del>func (s *DockerSuite) TestBuildWindowsAddFailsWorkdirNonSystemDrive(c *check.C) {
<del> testRequires(c, DaemonIsWindows)
<del> name := "testbuildwindowsaddfailsworkdirsystemdrive"
<del> dockerfile := `
<del> FROM busybox
<del> WORKDIR d:/
<del> AdD foo .
<del> `
<del> ctx, err := fakeContext(dockerfile, map[string]string{"foo": "hello"})
<del> if err != nil {
<del> c.Fatal(err)
<del> }
<del> defer ctx.Close()
<del> _, err = buildImageFromContext(name, ctx, false)
<del> if err == nil {
<del> c.Fatal(err)
<del> }
<del> if !strings.Contains(err.Error(), "Windows does not support ADD with relative paths when WORKDIR is not the system drive") {
<del> c.Fatal(err)
<del> }
<del>}
<del>
<ide> func (s *DockerSuite) TestBuildWorkdirWithEnvVariables(c *check.C) {
<ide> name := "testbuildworkdirwithenvvariables"
<ide> | 9 |
PHP | PHP | update 1.x @link in docblocks | b8488b8dfe47658d06f643f0534b0a36f6f97981 | <ide><path>app/webroot/test.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @package app.webroot
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Configure/PhpReader.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/Console/Command/TestShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide><path>lib/Cake/Console/Command/TestsuiteShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide><path>lib/Cake/Console/Templates/skel/webroot/test.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @package app.webroot
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Controller/Component.php
<ide> * - `beforeRedirect()` - Fired before a redirect() is done.
<ide> *
<ide> * @package Cake.Controller
<del> * @link http://book.cakephp.org/view/993/Components
<add> * @link http://book.cakephp.org/2.0/en/controllers/components.html
<ide> * @see Controller::$components
<ide> */
<ide> class Component extends Object {
<ide><path>lib/Cake/Controller/Component/AuthComponent.php
<ide> class AuthComponent extends Component {
<ide> * You can also use AuthComponent::ALL instead of the string 'all'
<ide> *
<ide> * @var mixed
<del> * @link http://book.cakephp.org/view/1275/authorize
<add> * @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#authorization
<ide> */
<ide> public $authorize = false;
<ide>
<ide><path>lib/Cake/Controller/Controller.php
<ide> class Controller extends Object implements CakeEventListener {
<ide> * additional information about the request.
<ide> *
<ide> * @var CakeRequest
<add> * @link http://book.cakephp.org/2.0/en/controllers/request-response.html#cakerequest
<ide> */
<ide> public $request;
<ide>
<ide> /**
<ide> * An instance of a CakeResponse object that contains information about the impending response
<ide> *
<ide> * @var CakeResponse
<add> * @link http://book.cakephp.org/2.0/en/controllers/request-response.html#cakeresponse
<ide> */
<ide> public $response;
<ide>
<ide> class Controller extends Object implements CakeEventListener {
<ide> * Example: `public $components = array('Session', 'RequestHandler', 'Acl');`
<ide> *
<ide> * @var array
<del> * @link http://book.cakephp.org/view/961/components-helpers-and-uses
<add> * @link http://book.cakephp.org/2.0/en/controllers/components.html
<ide> */
<ide> public $components = array('Session');
<ide>
<ide> class Controller extends Object implements CakeEventListener {
<ide> public $viewClass = 'View';
<ide>
<ide> /**
<del> * Instance of the View created during rendering. Won't be set until after Controller::render() is called.
<add> * Instance of the View created during rendering. Won't be set until after
<add> * Controller::render() is called.
<ide> *
<ide> * @var View
<ide> */
<ide> class Controller extends Object implements CakeEventListener {
<ide> * marks all the actions in the controller for view caching.
<ide> *
<ide> * @var mixed
<del> * @link http://book.cakephp.org/view/1380/Caching-in-the-Controller
<add> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html#additional-configuration-options
<ide> */
<ide> public $cacheAction = false;
<ide>
<ide> class Controller extends Object implements CakeEventListener {
<ide> * Triggers Scaffolding
<ide> *
<ide> * @var mixed
<del> * @link http://book.cakephp.org/view/1103/Scaffolding
<add> * @link http://book.cakephp.org/2.0/en/controllers/scaffolding.html
<ide> */
<ide> public $scaffold = false;
<ide>
<ide> /**
<del> * Holds current methods of the controller. This is a list of all the methods reachable
<del> * via url. Modifying this array, will allow you to change which methods can be reached.
<add> * Holds current methods of the controller. This is a list of all the methods reachable
<add> * via url. Modifying this array, will allow you to change which methods can be reached.
<ide> *
<ide> * @var array
<ide> */
<ide><path>lib/Cake/Error/exceptions.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @package Cake.Error
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Model/Model.php
<ide> public function joinModel($assoc, $keys = array()) {
<ide> * @param array $queryData Data used to execute this query, i.e. conditions, order, etc.
<ide> * @return mixed true if the operation should continue, false if it should abort; or, modified
<ide> * $queryData to continue with new $queryData
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeFind-1049
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforefind
<ide> */
<ide> public function beforeFind($queryData) {
<ide> return true;
<ide> public function beforeFind($queryData) {
<ide> * @param mixed $results The results of the find operation
<ide> * @param boolean $primary Whether this model is being queried directly (vs. being queried as an association)
<ide> * @return mixed Result of the find operation
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#afterFind-1050
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#afterfind
<ide> */
<ide> public function afterFind($results, $primary = false) {
<ide> return $results;
<ide> public function afterFind($results, $primary = false) {
<ide> *
<ide> * @param array $options
<ide> * @return boolean True if the operation should continue, false if it should abort
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeSave-1052
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforesave
<ide> */
<ide> public function beforeSave($options = array()) {
<ide> return true;
<ide> public function beforeSave($options = array()) {
<ide> *
<ide> * @param boolean $created True if this save created a new record
<ide> * @return void
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#afterSave-1053
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#aftersave
<ide> */
<ide> public function afterSave($created) {
<ide> }
<ide> public function afterSave($created) {
<ide> *
<ide> * @param boolean $cascade If true records that depend on this record will also be deleted
<ide> * @return boolean True if the operation should continue, false if it should abort
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeDelete-1054
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforedelete
<ide> */
<ide> public function beforeDelete($cascade = true) {
<ide> return true;
<ide> public function beforeDelete($cascade = true) {
<ide> * Called after every deletion operation.
<ide> *
<ide> * @return void
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#afterDelete-1055
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#afterdelete
<ide> */
<ide> public function afterDelete() {
<ide> }
<ide> public function afterDelete() {
<ide> *
<ide> * @param array $options Options passed from model::save(), see $options of model::save().
<ide> * @return boolean True if validate operation should continue, false to abort
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeValidate-1051
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforevalidate
<ide> */
<ide> public function beforeValidate($options = array()) {
<ide> return true;
<ide> public function beforeValidate($options = array()) {
<ide> * Called when a DataSource-level error occurs.
<ide> *
<ide> * @return void
<del> * @link http://book.cakephp.org/view/1048/Callback-Methods#onError-1056
<add> * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#onerror
<ide> */
<ide> public function onError() {
<ide> }
<ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/CacheTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache.Engine
<ide> * @since CakePHP(tm) v 1.2.0.5434
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache.Engine
<ide> * @since CakePHP(tm) v 1.2.0.5434
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache.Engine
<ide> * @since CakePHP(tm) v 1.2.0.5434
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache.Engine
<ide> * @since CakePHP(tm) v 1.2.0.5434
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Cache.Engine
<ide> * @since CakePHP(tm) v 1.2.0.5434
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Configure/IniReaderTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Configure
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Configure/PhpReaderTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Configure
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Console
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Console/ConsoleOutputTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Console
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Console/HelpFormatterTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Console
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Console/ShellDispatcherTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Console
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Console/TaskCollectionTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Console
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5435
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5347
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5435
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5347
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5435
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5435
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.5436
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/ComponentCollectionTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/ComponentTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 1.2.0.5436
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 1.2.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/PagesControllerTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 1.2.0.5436
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Controller/ScaffoldTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 1.2.0.5436
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Core/ConfigureTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Core
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Core/ObjectTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Core
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Error/ErrorHandlerTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Error
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Error/ExceptionRendererTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Error
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/I18n/I18nTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.I18n
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/I18n/L10nTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.I18n
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/I18n/MultibyteTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.I18n
<ide> * @since CakePHP(tm) v 1.2.0.6833
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Log/CakeLogTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Log
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Log/Engine/FileLogTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Log.Engine
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/AclNodeTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5330
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5330
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5330
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Behavior
<ide> * @since CakePHP(tm) v 1.2.0.5330
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/CakeSchemaTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.5550
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ConnectionManagerTest.php
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.5550
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Datasource
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Datasource/DataSourceTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Datasource
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model.Datasource
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/Test/Case/Model/ModelCrossSchemaHabtmTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelDeleteTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelIntegrationTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelReadTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelTestBase.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelValidationTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Model/models.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Model
<ide> * @since CakePHP(tm) v 1.2.0.6464
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/CakeSocketTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Email
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Email/DebugTransportTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Email
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Email
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Http
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Http
<ide> * @since CakePHP(tm) v 2.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Http
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Network.Http
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Routing/DispatcherTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Routing
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Routing/RouterTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Routing
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.TestSuite
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/CakeNumberTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/CakeTimeTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/ClassRegistryTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/FileTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/FolderTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/InflectorTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license Open Group Test Suite License (http://www.opensource.org/licenses/opengroup.php)
<ide><path>lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/SanitizeTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.5428
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/SecurityTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/SetTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/StringTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php
<ide> *
<ide> * PHP Version 5.x
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/Utility/XmlTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Utility
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc.
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/Test/Case/View/Helper/JsHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/NumberHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/RssHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/TextHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/HelperCollectionTest.php
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/HelperTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/JsonViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 2.1.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/MediaViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/ScaffoldViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.Controller
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/ThemeViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/ViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Case/View/XmlViewTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Case.View
<ide> * @since CakePHP(tm) v 2.1.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AccountFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AcoActionFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AcoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AcoTwoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AdvertisementFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AnotherArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AppleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArmorFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArmorsPlayerFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AroFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AroTwoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArosAcoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArosAcoTwoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArticleFeaturedFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ArticlesTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AttachmentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AuthUserCustomFieldFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.1.8013
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AuthUserFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/AuthorFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BakeArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BakeCommentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BakeTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BasketFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BidFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BiddingFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.3.14
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BiddingMessageFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.3.14
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BinaryTestFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6700
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/BookFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7198
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CacheTestModelFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CallbackFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CategoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CategoryThreadFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CdFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7198
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CommentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ContentAccountFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ContentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CounterCachePostFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CounterCachePostNonstandardPrimaryKeyFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CounterCacheUserFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DataTestFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6700
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DeviceFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DeviceTypeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DocumentDirectoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DocumentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/DomainFixture.php
<ide> *
<ide> * PHP versions 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package cake
<ide> * @subpackage cake.tests.fixtures
<ide> * @since CakePHP(tm) v 2.1
<ide><path>lib/Cake/Test/Fixture/DomainsSiteFixture.php
<ide> *
<ide> * PHP versions 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package cake
<ide> * @subpackage cake.tests.fixtures
<ide> * @since CakePHP(tm) v 2.1
<ide><path>lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FeatureSetFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FeaturedFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FilmFileFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FlagTreeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5331
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FruitFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7953
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/FruitsUuidTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7953
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/GroupUpdateAllFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/GuildFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/GuildsPlayerFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/HomeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ImageFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ItemFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ItemsPortfolioFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinABFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6317
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinACFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6317
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinAFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6317
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinBFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6317
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinCFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6317
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/JoinThingFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MessageFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MyCategoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MyProductFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/MyUserFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/NumberTreeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5331
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/NumberTreeTwoFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5331
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/NumericArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/OverallFavoriteFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7198
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PersonFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6700
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PlayerFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 2.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PortfolioFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PostFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PostsTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/PrefixTestFixture.php
<ide> *
<ide> * PHP versions 4 and 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @subpackage cake.tests.fixtures
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide><path>lib/Cake/Test/Fixture/PrimaryModelFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ProductFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ProductUpdateAllFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ProjectFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SampleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SecondaryModelFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SessionFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SiteFixture.php
<ide> *
<ide> * PHP versions 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The Open Group Test Suite License
<ide> * Redistributions of files must retain the above copyright notice.
<ide> *
<ide> * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package cake
<ide> * @subpackage cake.tests.fixtures
<ide> * @since CakePHP(tm) v 2.1
<ide><path>lib/Cake/Test/Fixture/SomethingElseFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SomethingFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/StoriesTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/StoryFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/SyfileFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TestPluginArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 7660
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TestPluginCommentFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 7660
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/ThreadFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TranslateArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TranslateFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TranslateTableFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @version $Revision$
<ide><path>lib/Cake/Test/Fixture/TranslatedArticleFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/TranslatedItemFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.5669
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UnconventionalTreeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7879
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UnderscoreFieldFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UserFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuidFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.6700
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuidTagFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7953
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuidTreeFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.7984
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuiditemFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/Fixture/UuidportfolioFixture.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Console/Command/SampleShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Console.Command
<ide> * @since CakePHP(tm) v 1.2.0.7871
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Controller/AppController.php
<ide> * will inherit them.
<ide> *
<ide> * @package Cake.Controller
<del> * @link http://book.cakephp.org/view/957/The-App-Controller
<add> * @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
<ide> */
<ide> class AppController extends Controller {
<ide> }
<ide><path>lib/Cake/Test/test_app/Controller/TestsAppsController.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Controller
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Controller
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Lib.Cache.Engine
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Lib/Library.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Lib
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Lib.Log.Engine
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Lib.Utility
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Config
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Config
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command
<ide> * @since CakePHP(tm) v 1.2.0.7871
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/OtherTaskTask.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command.Task
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/OtherComponent.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/PluginsComponent.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginComponent.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginOtherComponent.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Controller
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Cache.Engine
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Custom.Package
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Log.Engine
<ide> * @since CakePHP(tm) v 1.3
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginLibrary.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Lib
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginOtherLibrary.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Lib
<ide> * @since CakePHP(tm) v 2.0.1
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginAppModel.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Model
<ide> * @since CakePHP(tm) v 1.2.0.5432
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Vendor.sample
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.Vendor
<ide> * @since CakePHP(tm) v 1.2.0.7629
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command
<ide> * @since CakePHP(tm) v 1.2.0.7871
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command
<ide> * @since CakePHP(tm) v 1.2.0.7871
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Vendor/Test/MyTest.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Vendor.Test
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Vendor/Test/hello.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Vendor.Test
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Vendor/sample/configure_test_vendor_sample.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Vendor.sample
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Vendor/somename/some.name.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Vendor.somename
<ide> * @since CakePHP(tm) v 1.2.0.4206
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/Test/test_app/Vendor/welcome.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.Test.test_app.Vendor
<ide> * @since CakePHP(tm) v 1.2.0.7629
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/CakeTestCase.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/TestSuite/ControllerTestCase.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite
<ide> * @since CakePHP(tm) v 2.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/Fixture/CakeTestFixture.php
<ide> <?php
<ide> /**
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/Fixture/CakeTestModel.php
<ide> <?php
<ide> /**
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.Fixture
<ide> * @since CakePHP(tm) v 1.2.0.4667
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/Reporter/CakeBaseReporter.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/TestSuite/Reporter/CakeTextReporter.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide><path>lib/Cake/TestSuite/templates/footer.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/templates/header.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/templates/menu.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/templates/missing_connection.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/templates/phpunit.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide><path>lib/Cake/TestSuite/templates/xdebug.php
<ide> *
<ide> * PHP 5
<ide> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
<add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> * Licensed under The MIT License
<ide> * Redistributions of files must retain the above copyright notice
<ide> *
<ide> * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
<add> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<ide> * @package Cake.TestSuite.templates
<ide> * @since CakePHP(tm) v 1.2.0.4433
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) | 282 |
Go | Go | use strings.cut, and refactor | 3f935d0e2c8027fdecac14398e378e79d57f49dd | <ide><path>daemon/graphdriver/zfs/zfs_freebsd.go
<ide> package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs"
<ide>
<ide> import (
<del> "fmt"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<ide> import (
<ide> func checkRootdirFs(rootdir string) error {
<ide> var buf unix.Statfs_t
<ide> if err := unix.Statfs(rootdir, &buf); err != nil {
<del> return fmt.Errorf("Failed to access '%s': %s", rootdir, err)
<add> return err
<ide> }
<ide>
<ide> // on FreeBSD buf.Fstypename contains ['z', 'f', 's', 0 ... ]
<ide> func checkRootdirFs(rootdir string) error {
<ide> return nil
<ide> }
<ide>
<del>func getMountpoint(id string) string {
<del> maxlen := 12
<del>
<del> // we need to preserve filesystem suffix
<del> suffix := strings.SplitN(id, "-", 2)
<add>const maxlen = 12
<ide>
<del> if len(suffix) > 1 {
<del> return id[:maxlen] + "-" + suffix[1]
<add>func getMountpoint(id string) string {
<add> id, suffix, _ := strings.Cut(id, "-")
<add> id = id[:maxlen]
<add> if suffix != "" {
<add> // preserve filesystem suffix.
<add> id += "-" + suffix
<ide> }
<del>
<del> return id[:maxlen]
<add> return id
<ide> } | 1 |
Python | Python | add compatibility with pip >= 1.4 / issue #270 | 3fd75525207eb13105e7bd1f4daed913ae76131d | <ide><path>setup.py
<ide>
<ide> setup(
<ide> name='Glances',
<del> version='1.7a',
<add> version='1.7',
<ide> description="A cross-platform curses-based monitoring tool",
<ide> long_description=open('README.rst').read(),
<ide> author='Nicolas Hennion',
<ide> author_email='nicolas@nicolargo.com',
<ide> url='https://github.com/nicolargo/glances',
<del> download_url='https://s3.amazonaws.com/glances/glances-1.7a.tar.gz',
<add> # download_url='https://s3.amazonaws.com/glances/glances-1.7a.tar.gz',
<ide> license="LGPL",
<ide> keywords="cli curses monitoring system",
<ide> install_requires=['psutil>=0.4.1'], | 1 |
Python | Python | replace use of dict.has_key with `key in dict` | ac17525039b127e8712c402d0b09ffa864c37ef5 | <ide><path>docs/_ext/djangodocs.py
<ide> def visit_snippet(self, node):
<ide> linenos = node.rawsource.count('\n') >= self.highlightlinenothreshold - 1
<ide> fname = node['filename']
<ide> highlight_args = node.get('highlight_args', {})
<del> if node.has_key('language'):
<add> if 'language' in node:
<ide> # code-block directives
<ide> lang = node['language']
<ide> highlight_args['force'] = True
<del> if node.has_key('linenos'):
<add> if 'linenos' in node:
<ide> linenos = node['linenos']
<ide>
<ide> def warner(msg): | 1 |
Java | Java | fix error in html syntax in javadoc | 80622803b245c63be5a9cfc21fa53171f8372edf | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
<ide> public static <A extends Annotation> A getAnnotation(Method method, Class<A> ann
<ide> * resolvable (e.g. because nested Class values in annotation attributes
<ide> * failed to resolve at runtime)
<ide> * @since 4.0.8
<add> * @see AnnotatedElement#getAnnotations()
<ide> */
<ide> public static Annotation[] getAnnotations(AnnotatedElement annotatedElement) {
<ide> try {
<ide> public static Annotation[] getAnnotations(AnnotatedElement annotatedElement) {
<ide> }
<ide>
<ide> /**
<del> * Get all {@link Annotation Annotations} that are <em>present</em on the
<add> * Get all {@link Annotation Annotations} that are <em>present</em> on the
<ide> * supplied {@link Method}.
<ide> * <p>Correctly handles bridge {@link Method Methods} generated by the compiler.
<ide> * <p>Meta-annotations will <em>not</em> be searched. | 1 |
Javascript | Javascript | remove require.paths from process object | 1395cba6cec0fb9179b39c12274e13e66e935130 | <ide><path>src/node.js
<ide> function existsSync (path) {
<ide>
<ide>
<ide>
<del>process.paths = [];
<add>var modulePaths = [];
<ide>
<ide> if (process.env["HOME"]) {
<del> process.paths.unshift(path.join(process.env["HOME"], ".node_libraries"));
<add> modulePaths.unshift(path.join(process.env["HOME"], ".node_libraries"));
<ide> }
<ide>
<ide> if (process.env["NODE_PATH"]) {
<del> process.paths = process.env["NODE_PATH"].split(":").concat(process.paths);
<add> modulePaths = process.env["NODE_PATH"].split(":").concat(modulePaths);
<ide> }
<ide>
<ide>
<ide> function resolveModulePath(request, parent) {
<ide> } else {
<ide> id = request;
<ide> // debug("ABSOLUTE: id="+id);
<del> paths = process.paths;
<add> paths = modulePaths;
<ide> }
<ide>
<ide> return [id, paths];
<ide> Module.prototype._compile = function (content, filename) {
<ide> return loadModule(path, self);
<ide> }
<ide>
<del> require.paths = process.paths;
<add> require.paths = modulePaths;
<ide> require.async = requireAsync;
<ide> require.main = process.mainModule;
<ide> require.registerExtension = registerExtension; | 1 |
Ruby | Ruby | fix ruby warnings | 46db463d068d9b24c99f11a1c78dac1c1bfb45c2 | <ide><path>activestorage/lib/active_storage/attached/macros.rb
<ide> module ActiveStorage::Attached::Macros
<ide> # (i.e. destroyed) whenever the record is destroyed.
<ide> def has_one_attached(name, dependent: :purge_later)
<ide> define_method(name) do
<del> instance_variable_get("@active_storage_attached_#{name}") ||
<add> if instance_variable_defined?("@active_storage_attached_#{name}")
<add> instance_variable_get("@active_storage_attached_#{name}")
<add> else
<ide> instance_variable_set("@active_storage_attached_#{name}", ActiveStorage::Attached::One.new(name, self))
<add> end
<ide> end
<ide>
<ide> has_one :"#{name}_attachment", -> { where(name: name) }, class_name: "ActiveStorage::Attachment", as: :record
<ide> def has_one_attached(name, dependent: :purge_later)
<ide> # (i.e. destroyed) whenever the record is destroyed.
<ide> def has_many_attached(name, dependent: :purge_later)
<ide> define_method(name) do
<del> instance_variable_get("@active_storage_attached_#{name}") ||
<add> if instance_variable_defined?("@active_storage_attached_#{name}")
<add> instance_variable_get("@active_storage_attached_#{name}")
<add> else
<ide> instance_variable_set("@active_storage_attached_#{name}", ActiveStorage::Attached::Many.new(name, self))
<add> end
<ide> end
<ide>
<ide> has_many :"#{name}_attachments", -> { where(name: name) }, as: :record, class_name: "ActiveStorage::Attachment"
<ide><path>activestorage/test/controllers/direct_uploads_controller_test.rb
<ide> class ActiveStorage::S3DirectUploadsControllerTest < ActionDispatch::Integration
<ide> assert_equal checksum, details["checksum"]
<ide> assert_equal "text/plain", details["content_type"]
<ide> assert_match SERVICE_CONFIGURATIONS[:s3][:bucket], details["direct_upload"]["url"]
<del> assert_match /s3\.(\S+)?amazonaws\.com/, details["direct_upload"]["url"]
<add> assert_match(/s3\.(\S+)?amazonaws\.com/, details["direct_upload"]["url"])
<ide> assert_equal({ "Content-Type" => "text/plain", "Content-MD5" => checksum }, details["direct_upload"]["headers"])
<ide> end
<ide> end
<ide> class ActiveStorage::DiskDirectUploadsControllerTest < ActionDispatch::Integrati
<ide> assert_equal 6, details["byte_size"]
<ide> assert_equal checksum, details["checksum"]
<ide> assert_equal "text/plain", details["content_type"]
<del> assert_match /rails\/active_storage\/disk/, details["direct_upload"]["url"]
<add> assert_match(/rails\/active_storage\/disk/, details["direct_upload"]["url"])
<ide> assert_equal({ "Content-Type" => "text/plain" }, details["direct_upload"]["headers"])
<ide> end
<ide> end
<ide><path>activestorage/test/controllers/variants_controller_test.rb
<ide> class ActiveStorage::VariantsControllerTest < ActionDispatch::IntegrationTest
<ide> signed_blob_id: @blob.signed_id,
<ide> variation_key: ActiveStorage::Variation.encode(resize: "100x100"))
<ide>
<del> assert_redirected_to /racecar.jpg\?.*disposition=inline/
<add> assert_redirected_to(/racecar.jpg\?.*disposition=inline/)
<ide>
<ide> image = read_image_variant(@blob.variant(resize: "100x100"))
<ide> assert_equal 100, image.width
<ide><path>activestorage/test/models/variant_test.rb
<ide> class ActiveStorage::VariantTest < ActiveSupport::TestCase
<ide>
<ide> test "resized variation" do
<ide> variant = @blob.variant(resize: "100x100").processed
<del> assert_match /racecar.jpg/, variant.service_url
<add> assert_match(/racecar.jpg/, variant.service_url)
<ide>
<ide> image = read_image_variant(variant)
<ide> assert_equal 100, image.width
<ide> class ActiveStorage::VariantTest < ActiveSupport::TestCase
<ide>
<ide> test "resized and monochrome variation" do
<ide> variant = @blob.variant(resize: "100x100", monochrome: true).processed
<del> assert_match /racecar.jpg/, variant.service_url
<add> assert_match(/racecar.jpg/, variant.service_url)
<ide>
<ide> image = read_image_variant(variant)
<ide> assert_equal 100, image.width
<ide> assert_equal 67, image.height
<del> assert_match /Gray/, image.colorspace
<add> assert_match(/Gray/, image.colorspace)
<ide> end
<ide> end
<ide><path>activestorage/test/service/disk_service_test.rb
<ide> class ActiveStorage::Service::DiskServiceTest < ActiveSupport::TestCase
<ide> include ActiveStorage::Service::SharedServiceTests
<ide>
<ide> test "url generation" do
<del> assert_match /rails\/active_storage\/disk\/.*\/avatar\.png\?.+disposition=inline/,
<del> @service.url(FIXTURE_KEY, expires_in: 5.minutes, disposition: :inline, filename: "avatar.png", content_type: "image/png")
<add> assert_match(/rails\/active_storage\/disk\/.*\/avatar\.png\?.+disposition=inline/,
<add> @service.url(FIXTURE_KEY, expires_in: 5.minutes, disposition: :inline, filename: "avatar.png", content_type: "image/png"))
<ide> end
<ide> end
<ide><path>activestorage/test/service/s3_service_test.rb
<ide> class ActiveStorage::Service::S3ServiceTest < ActiveSupport::TestCase
<ide> url = @service.url(FIXTURE_KEY, expires_in: 5.minutes,
<ide> disposition: :inline, filename: "avatar.png", content_type: "image/png")
<ide>
<del> assert_match /s3\.(\S+)?amazonaws.com.*response-content-disposition=inline.*avatar\.png.*response-content-type=image%2Fpng/, url
<add> assert_match(/s3\.(\S+)?amazonaws.com.*response-content-disposition=inline.*avatar\.png.*response-content-type=image%2Fpng/, url)
<ide> assert_match SERVICE_CONFIGURATIONS[:s3][:bucket], url
<ide> end
<ide> | 6 |
PHP | PHP | add sort conditions to normalize result ordering | be1c45d148fb2c3e49a689917bd1516c211d928b | <ide><path>lib/Cake/Test/TestCase/ORM/QueryTest.php
<ide> public function testHasManyEagerLoading($strategy) {
<ide> $query = new Query($this->connection);
<ide> $table = Table::build('author', ['connection' => $this->connection]);
<ide> Table::build('article', ['connection' => $this->connection]);
<del> $table->hasMany('article', ['property' => 'articles', 'strategy' => $strategy]);
<add> $table->hasMany('article', [
<add> 'property' => 'articles',
<add> 'strategy' => $strategy,
<add> 'sort' => ['article.id' => 'asc']
<add> ]);
<ide>
<ide> $results = $query->repository($table)->select()->contain('article')->toArray();
<ide> $expected = [
<ide> public function testHasManyEagerLoadingDeep($strategy) {
<ide> $query = new Query($this->connection);
<ide> $table = Table::build('author', ['connection' => $this->connection]);
<ide> $article = Table::build('article', ['connection' => $this->connection]);
<del> $table->hasMany('article', ['property' => 'articles'] + compact('strategy'));
<add> $table->hasMany('article', [
<add> 'property' => 'articles',
<add> 'stratgey' => $strategy,
<add> 'sort' => ['article.id' => 'asc']
<add> ]);
<ide> $article->belongsTo('author');
<ide>
<ide> $results = $query->repository($table) | 1 |
Javascript | Javascript | implement a clone method for durations | 77b2a3b6ada4c782df2947117ac92e54b2aad0ba | <ide><path>src/lib/duration/clone.js
<add>import { createDuration } from './create';
<add>
<add>export function clone () {
<add> return createDuration(this);
<add>}
<add>
<ide><path>src/lib/duration/prototype.js
<ide> import { abs } from './abs';
<ide> import { add, subtract } from './add-subtract';
<ide> import { as, asMilliseconds, asSeconds, asMinutes, asHours, asDays, asWeeks, asMonths, asYears, valueOf } from './as';
<ide> import { bubble } from './bubble';
<add>import { clone } from './clone';
<ide> import { get, milliseconds, seconds, minutes, hours, days, months, years, weeks } from './get';
<ide> import { humanize } from './humanize';
<ide> import { toISOString } from './iso-string';
<ide> proto.asMonths = asMonths;
<ide> proto.asYears = asYears;
<ide> proto.valueOf = valueOf;
<ide> proto._bubble = bubble;
<add>proto.clone = clone;
<ide> proto.get = get;
<ide> proto.milliseconds = milliseconds;
<ide> proto.seconds = seconds;
<ide><path>src/test/moment/duration.js
<ide> test('instantiation from another duration', function (assert) {
<ide> assert.deepEqual(moment.duration(modified), modified, 'cloning modified duration works');
<ide> });
<ide>
<add>test('explicit cloning', function (assert) {
<add> var durationA = moment.duration(5, 'milliseconds');
<add> var durationB = durationA.clone();
<add> durationA.add(5, 'milliseconds');
<add> assert.equal(durationB.milliseconds(), 5, 'Calling duration.clone() on a duration will create a clone');
<add> assert.equal(durationA.milliseconds(), 10, 'Calling duration.clone() on a duration will create a clone');
<add>});
<add>
<ide> test('instantiation from 24-hour time zero', function (assert) {
<ide> assert.equal(moment.duration('00:00').years(), 0, '0 years');
<ide> assert.equal(moment.duration('00:00').days(), 0, '0 days'); | 3 |
Go | Go | normalize labels before validation | b81948089904c8b6002b645a7c3f1d7062f70ed6 | <ide><path>daemon/config/config.go
<ide> func Reload(configFile string, flags *pflag.FlagSet, reload func(*Config)) error
<ide> newConfig = New()
<ide> }
<ide>
<del> if err := Validate(newConfig); err != nil {
<del> return errors.Wrap(err, "file configuration validation failed")
<del> }
<del>
<ide> // Check if duplicate label-keys with different values are found
<ide> newLabels, err := GetConflictFreeLabels(newConfig.Labels)
<ide> if err != nil {
<ide> return err
<ide> }
<ide> newConfig.Labels = newLabels
<ide>
<add> if err := Validate(newConfig); err != nil {
<add> return errors.Wrap(err, "file configuration validation failed")
<add> }
<add>
<ide> reload(newConfig)
<ide> return nil
<ide> } | 1 |
Javascript | Javascript | add geolocation polyfill | 4681da54205b3c2e682850c4b5b5fcb655a296c4 | <ide><path>website/server/extractDocs.js
<ide> function componentsToMarkdown(type, json, filepath, i, styles) {
<ide> return res;
<ide> }
<ide>
<add>var n;
<add>
<add>function renderComponent(filepath) {
<add> var json = docgen.parse(
<add> fs.readFileSync(filepath),
<add> docgenHelpers.findExportedOrFirst,
<add> docgen.defaultHandlers.concat(docgenHelpers.stylePropTypeHandler)
<add> );
<add> return componentsToMarkdown('component', json, filepath, n++, styleDocs);
<add>}
<add>
<add>function renderAPI(type) {
<add> return function(filepath) {
<add> var json;
<add> try {
<add> json = jsDocs(fs.readFileSync(filepath).toString());
<add> } catch(e) {
<add> console.error('Cannot parse file', filepath);
<add> json = {};
<add> }
<add> return componentsToMarkdown(type, json, filepath, n++);
<add> };
<add>}
<add>
<add>function renderStyle(filepath) {
<add> var json = docgen.parse(
<add> fs.readFileSync(filepath),
<add> docgenHelpers.findExportedObject,
<add> [docgen.handlers.propTypeHandler]
<add> );
<add> return componentsToMarkdown('style', json, filepath, n++);
<add>}
<add>
<ide> var components = [
<ide> '../Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js',
<ide> '../Libraries/Components/DatePicker/DatePickerIOS.ios.js',
<ide> var styles = [
<ide> '../Libraries/Image/ImageStylePropTypes.js',
<ide> ];
<ide>
<del>var all = components.concat(apis).concat(styles.slice(0, 1));
<add>var polyfills = [
<add> '../Libraries/Geolocation/GeoLocation.ios.js',
<add>];
<add>
<add>var all = components
<add> .concat(apis)
<add> .concat(styles.slice(0, 1))
<add> .concat(polyfills);
<add>
<ide> var styleDocs = styles.slice(1).reduce(function(docs, filepath) {
<ide> docs[path.basename(filepath).replace(path.extname(filepath), '')] =
<ide> docgen.parse(
<ide> var styleDocs = styles.slice(1).reduce(function(docs, filepath) {
<ide> }, {});
<ide>
<ide> module.exports = function() {
<del> var i = 0;
<add> n = 0;
<ide> return [].concat(
<del> components.map(function(filepath) {
<del> var json = docgen.parse(
<del> fs.readFileSync(filepath),
<del> docgenHelpers.findExportedOrFirst,
<del> docgen.defaultHandlers.concat(docgenHelpers.stylePropTypeHandler)
<del> );
<del> return componentsToMarkdown('component', json, filepath, i++, styleDocs);
<del> }),
<del> apis.map(function(filepath) {
<del> try {
<del> var json = jsDocs(fs.readFileSync(filepath).toString());
<del> } catch(e) {
<del> console.error('Cannot parse file', filepath);
<del> var json = {};
<del> }
<del> return componentsToMarkdown('api', json, filepath, i++);
<del> }),
<del> styles.slice(0, 1).map(function(filepath) {
<del> var json = docgen.parse(
<del> fs.readFileSync(filepath),
<del> docgenHelpers.findExportedObject,
<del> [docgen.handlers.propTypeHandler]
<del> );
<del> return componentsToMarkdown('style', json, filepath, i++);
<del> })
<add> components.map(renderComponent),
<add> apis.map(renderAPI('api')),
<add> styles.slice(0, 1).map(renderStyle),
<add> polyfills.map(renderAPI('Polyfill'))
<ide> );
<ide> };
<ide><path>website/server/server.js
<ide> var app = connect()
<ide> .use(function(req, res, next) {
<ide> // convert all the md files on every request. This is not optimal
<ide> // but fast enough that we don't really need to care right now.
<del> if (!server.noconvert) {
<add> if (!server.noconvert && req.url.match(/\.html$/)) {
<ide> convert();
<ide> }
<ide> next(); | 2 |
Text | Text | add v3.2.1 to changelog | 372aca378c51e19daa3bd82be07b759b0b0003ce | <ide><path>CHANGELOG.md
<ide> - [#16692](https://github.com/emberjs/ember.js/pull/16692) [DEPRECATION] [emberjs/rfcs#322](https://github.com/emberjs/rfcs/pull/322) Implement `Ember.copy`/`Ember.Copyable` deprecation.
<ide>
<ide>
<add>### v3.2.1 (June 19, 2018)
<add>
<add>- [#16750](https://github.com/emberjs/ember.js/pull/16750) [BUGFIX] Bring back isObject guard for ember-utils/is_proxy
<add>
<ide> ### v3.2.0 (May 31, 2018)
<ide>
<ide> - [#16613](https://github.com/emberjs/ember.js/pull/16613) [BUGFIX] Prevent errors in ember-engines + 3.1 + proxies. | 1 |
Text | Text | move changelog entry to active record | 53954aa4762f5c4d1b28af3d382a40fd3ec04229 | <ide><path>activemodel/CHANGELOG.md
<del>* Take into account UTC offset when assigning string representation of
<del> timestamp with offset specified to attribute of time type.
<del>
<del> *Andrey Novikov*
<del>
<ide> ## Rails 5.0.0.beta1 (December 18, 2015) ##
<ide>
<ide> * Validate multiple contexts on `valid?` and `invalid?` at once.
<ide><path>activerecord/CHANGELOG.md
<add>* Take into account UTC offset when assigning string representation of
<add> timestamp with offset specified to attribute of time type.
<add>
<add> *Andrey Novikov*
<add>
<ide> * When calling `first` with a `limit` argument, return directly from the
<ide> `loaded?` records if available.
<ide> | 2 |
Ruby | Ruby | remove obsolete nil guard | fef8b0871de845dd7e9f5f6a40dbcda7620a4960 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def diff
<ide>
<ide> def `(cmd)
<ide> out = super
<del> if $? && !$?.success?
<del> $stderr.puts out
<add> unless $?.success?
<add> $stderr.puts(out) unless out.empty?
<ide> raise ErrorDuringExecution.new(cmd)
<ide> end
<ide> ohai(cmd, out) if ARGV.verbose? | 1 |
PHP | PHP | add typehint to helpers | 5f851f3c35f5fda2600087b2c4b7477711df38eb | <ide><path>src/View/Helper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class Helper implements EventListenerInterface
<ide> /**
<ide> * The View instance this helper is attached to
<ide> *
<del> * @var \Cake\View\View
<add> * @var \Cake\View\View|null
<ide> */
<ide> protected $_View;
<ide>
<ide> public function __get($name)
<ide> *
<ide> * @return \Cake\View\View The bound view instance.
<ide> */
<del> public function getView()
<add> public function getView(): ?View
<ide> {
<ide> return $this->_View;
<ide> }
<ide> protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
<ide> /**
<ide> * Returns a string read to be used in confirm()
<ide> *
<del> * @param string $message The message to clean
<del> * @return mixed
<add> * @param string|null $message The message to clean
<add> * @return string
<ide> */
<ide> protected function _cleanConfirmMessage($message)
<ide> {
<add> if ($message === null) {
<add> return '';
<add> }
<add>
<ide> return str_replace('\\\n', '\n', json_encode($message));
<ide> }
<ide>
<ide> protected function _cleanConfirmMessage($message)
<ide> * @param string $key the key to use for class.
<ide> * @return array Array of options with $key set.
<ide> */
<del> public function addClass(array $options = [], $class = null, $key = 'class')
<add> public function addClass(array $options = [], ?string $class = null, string $key = 'class'): array
<ide> {
<ide> if (isset($options[$key]) && is_array($options[$key])) {
<ide> $options[$key][] = $class;
<ide> public function implementedEvents(): array
<ide> * @param array $config The configuration settings provided to this helper.
<ide> * @return void
<ide> */
<del> public function initialize(array $config)
<add> public function initialize(array $config): void
<ide> {
<ide> }
<ide>
<ide><path>src/View/Helper/BreadcrumbsHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> public function prepend($title, $url = null, array $options = [])
<ide> * @return $this
<ide> * @throws \LogicException In case the index is out of bound
<ide> */
<del> public function insertAt($index, $title, $url = null, array $options = [])
<add> public function insertAt(int $index, string $title, $url = null, array $options = [])
<ide> {
<ide> if (!isset($this->crumbs[$index])) {
<ide> throw new LogicException(sprintf("No crumb could be found at index '%s'", $index));
<ide> public function insertAt($index, $title, $url = null, array $options = [])
<ide> * @return $this
<ide> * @throws \LogicException In case the matching crumb can not be found
<ide> */
<del> public function insertBefore($matchingTitle, $title, $url = null, array $options = [])
<add> public function insertBefore(string $matchingTitle, string $title, $url = null, array $options = [])
<ide> {
<ide> $key = $this->findCrumb($matchingTitle);
<ide>
<ide> public function insertBefore($matchingTitle, $title, $url = null, array $options
<ide> * @return $this
<ide> * @throws \LogicException In case the matching crumb can not be found.
<ide> */
<del> public function insertAfter($matchingTitle, $title, $url = null, array $options = [])
<add> public function insertAfter(string $matchingTitle, string $title, $url = null, array $options = [])
<ide> {
<ide> $key = $this->findCrumb($matchingTitle);
<ide>
<ide> public function insertAfter($matchingTitle, $title, $url = null, array $options
<ide> *
<ide> * @return array
<ide> */
<del> public function getCrumbs()
<add> public function getCrumbs(): array
<ide> {
<ide> return $this->crumbs;
<ide> }
<ide> public function reset()
<ide> * If you use the default for this option (empty), it will not render a separator.
<ide> * @return string The breadcrumbs trail
<ide> */
<del> public function render(array $attributes = [], array $separator = [])
<add> public function render(array $attributes = [], array $separator = []): string
<ide> {
<ide> if (!$this->crumbs) {
<ide> return '';
<ide><path>src/View/Helper/FlashHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class FlashHelper extends Helper
<ide> * in session.
<ide> * @throws \UnexpectedValueException If value for flash settings key is not an array.
<ide> */
<del> public function render($key = 'flash', array $options = [])
<add> public function render(string $key = 'flash', array $options = []): ?string
<ide> {
<ide> $session = $this->_View->getRequest()->getSession();
<ide>
<ide><path>src/View/Helper/FormHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class FormHelper extends Helper
<ide> /**
<ide> * Locator for input widgets.
<ide> *
<del> * @var \Cake\View\Widget\WidgetLocator
<add> * @var \Cake\View\Widget\WidgetLocator|null
<ide> */
<ide> protected $_locator;
<ide>
<ide> public function __construct(View $View, array $config = [])
<ide> * @return \Cake\View\Widget\WidgetLocator Current locator instance
<ide> * @since 3.6.0
<ide> */
<del> public function getWidgetLocator()
<add> public function getWidgetLocator(): ?WidgetLocator
<ide> {
<ide> return $this->_locator;
<ide> }
<ide> public function setWidgetLocator(WidgetLocator $instance)
<ide> * @param array $contexts An array of context providers.
<ide> * @return \Cake\View\Form\ContextFactory
<ide> */
<del> public function contextFactory(ContextFactory $instance = null, array $contexts = [])
<add> public function contextFactory(?ContextFactory $instance = null, array $contexts = []): ContextFactory
<ide> {
<ide> if ($instance === null) {
<ide> if ($this->_contextFactory === null) {
<ide> public function contextFactory(ContextFactory $instance = null, array $contexts
<ide> * @return string An formatted opening FORM tag.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#Cake\View\Helper\FormHelper::create
<ide> */
<del> public function create($context = null, array $options = [])
<add> public function create($context = null, array $options = []): string
<ide> {
<ide> $append = '';
<ide>
<ide> protected function _csrfField()
<ide> * @return string A closing FORM tag.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#closing-the-form
<ide> */
<del> public function end(array $secureAttributes = [])
<add> public function end(array $secureAttributes = []): string
<ide> {
<ide> $out = '';
<ide>
<ide> public function end(array $secureAttributes = [])
<ide> * @return string A hidden input field with a security hash, or empty string when
<ide> * secured forms are not in use.
<ide> */
<del> public function secure(array $fields = [], array $secureAttributes = [])
<add> public function secure(array $fields = [], array $secureAttributes = []): string
<ide> {
<ide> if (!$this->_View->getRequest()->getParam('_Token')) {
<ide> return '';
<ide> public function secure(array $fields = [], array $secureAttributes = [])
<ide> * @return array|null Either null, or the list of fields.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#working-with-securitycomponent
<ide> */
<del> public function unlockField($name = null)
<add> public function unlockField(?string $name = null): ?array
<ide> {
<ide> if ($name === null) {
<ide> return $this->_unlockedFields;
<ide> public function unlockField($name = null)
<ide> unset($this->fields[$index]);
<ide> }
<ide> unset($this->fields[$name]);
<add>
<add> return null;
<ide> }
<ide>
<ide> /**
<ide> protected function _secure($lock, $field, $value = null)
<ide> * @return bool If there are errors this method returns true, else false.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#displaying-and-checking-errors
<ide> */
<del> public function isFieldError($field)
<add> public function isFieldError(string $field): bool
<ide> {
<ide> return $this->_getContext()->hasError($field);
<ide> }
<ide> public function isFieldError($field)
<ide> * @return string Formatted errors or ''.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#displaying-and-checking-errors
<ide> */
<del> public function error($field, $text = null, array $options = [])
<add> public function error(string $field, $text = null, array $options = []): string
<ide> {
<ide> if (substr($field, -5) === '._ids') {
<ide> $field = substr($field, 0, -5);
<ide> public function error($field, $text = null, array $options = [])
<ide> * @return string The formatted LABEL element
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-labels
<ide> */
<del> public function label($fieldName, $text = null, array $options = [])
<add> public function label(string $fieldName, ?string $text = null, array $options = []): string
<ide> {
<ide> if ($text === null) {
<ide> $text = $fieldName;
<ide> public function label($fieldName, $text = null, array $options = [])
<ide> * @return string Completed form controls.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#generating-entire-forms
<ide> */
<del> public function allControls(array $fields = [], array $options = [])
<add> public function allControls(array $fields = [], array $options = []): string
<ide> {
<ide> $context = $this->_getContext();
<ide>
<ide> public function allControls(array $fields = [], array $options = [])
<ide> * @return string Completed form inputs.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#generating-entire-forms
<ide> */
<del> public function controls(array $fields, array $options = [])
<add> public function controls(array $fields, array $options = []): string
<ide> {
<ide> $fields = Hash::normalize($fields);
<ide>
<ide> public function controls(array $fields, array $options = [])
<ide> * to customize the legend text.
<ide> * @return string Completed form inputs.
<ide> */
<del> public function fieldset($fields = '', array $options = [])
<add> public function fieldset(string $fields = '', array $options = []): string
<ide> {
<ide> $fieldset = $legend = true;
<ide> $context = $this->_getContext();
<ide> public function fieldset($fields = '', array $options = [])
<ide> * @return string Completed form widget.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-form-inputs
<ide> */
<del> public function control($fieldName, array $options = [])
<add> public function control(string $fieldName, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'type' => null,
<ide> protected function _inputContainerTemplate($options)
<ide> *
<ide> * @param string $fieldName the field name
<ide> * @param array $options The options for the input element
<del> * @return string The generated input element
<add> * @return string|array The generated input element
<ide> */
<ide> protected function _getInput($fieldName, $options)
<ide> {
<ide> protected function _inputLabel($fieldName, $label, $options)
<ide> * @return string|array An HTML text input element.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-checkboxes
<ide> */
<del> public function checkbox($fieldName, array $options = [])
<add> public function checkbox(string $fieldName, array $options = [])
<ide> {
<ide> $options += ['hiddenField' => true, 'value' => 1];
<ide>
<ide> public function checkbox($fieldName, array $options = [])
<ide> * @return string Completed radio widget set.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-radio-buttons
<ide> */
<del> public function radio($fieldName, $options = [], array $attributes = [])
<add> public function radio(string $fieldName, $options = [], array $attributes = []): string
<ide> {
<ide> $attributes['options'] = $options;
<ide> $attributes['idPrefix'] = $this->_idPrefix;
<ide> public function __call($method, $params)
<ide> * @return string A generated HTML text input element
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-textareas
<ide> */
<del> public function textarea($fieldName, array $options = [])
<add> public function textarea(string $fieldName, array $options = []): string
<ide> {
<ide> $options = $this->_initInputField($fieldName, $options);
<ide> unset($options['type']);
<ide> public function textarea($fieldName, array $options = [])
<ide> * @return string A generated hidden input
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-hidden-inputs
<ide> */
<del> public function hidden($fieldName, array $options = [])
<add> public function hidden(string $fieldName, array $options = []): string
<ide> {
<ide> $options += ['required' => false, 'secure' => true];
<ide>
<ide> public function hidden($fieldName, array $options = [])
<ide> * @return string A generated file input.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-file-inputs
<ide> */
<del> public function file($fieldName, array $options = [])
<add> public function file(string $fieldName, array $options = []): string
<ide> {
<ide> $options += ['secure' => true];
<ide> $options = $this->_initInputField($fieldName, $options);
<ide> public function file($fieldName, array $options = [])
<ide> * @return string A HTML button tag.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-button-elements
<ide> */
<del> public function button($title, array $options = [])
<add> public function button(string $title, array $options = []): string
<ide> {
<ide> $options += ['type' => 'submit', 'escape' => false, 'secure' => false, 'confirm' => null];
<ide> $options['text'] = $title;
<ide> public function button($title, array $options = [])
<ide> * @return string A HTML button tag.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-standalone-buttons-and-post-links
<ide> */
<del> public function postButton($title, $url, array $options = [])
<add> public function postButton(string $title, $url, array $options = []): string
<ide> {
<ide> $formOptions = ['url' => $url];
<ide> if (isset($options['method'])) {
<ide> public function postButton($title, $url, array $options = [])
<ide> * @return string An `<a />` element.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-standalone-buttons-and-post-links
<ide> */
<del> public function postLink($title, $url = null, array $options = [])
<add> public function postLink(string $title, $url = null, array $options = []): string
<ide> {
<ide> $options += ['block' => null, 'confirm' => null];
<ide>
<ide> public function postLink($title, $url = null, array $options = [])
<ide> * @return string A HTML submit button
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-buttons-and-submit-elements
<ide> */
<del> public function submit($caption = null, array $options = [])
<add> public function submit(?string $caption = null, array $options = []): string
<ide> {
<ide> if (!is_string($caption) && empty($caption)) {
<ide> $caption = __d('cake', 'Submit');
<ide> public function submit($caption = null, array $options = [])
<ide> * @see \Cake\View\Helper\FormHelper::multiCheckbox() for creating multiple checkboxes.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-select-pickers
<ide> */
<del> public function select($fieldName, $options = [], array $attributes = [])
<add> public function select(string $fieldName, $options = [], array $attributes = []): string
<ide> {
<ide> $attributes += [
<ide> 'disabled' => null,
<ide> public function select($fieldName, $options = [], array $attributes = [])
<ide> * @return string Formatted SELECT element
<ide> * @see \Cake\View\Helper\FormHelper::select() for supported option formats.
<ide> */
<del> public function multiCheckbox($fieldName, $options, array $attributes = [])
<add> public function multiCheckbox(string $fieldName, $options, array $attributes = []): string
<ide> {
<ide> $attributes += [
<ide> 'disabled' => null,
<ide> protected function _singleDatetime($options, $keep)
<ide> * @return string A generated day select box.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-day-inputs
<ide> */
<del> public function day($fieldName = null, array $options = [])
<add> public function day(?string $fieldName = null, array $options = []): string
<ide> {
<ide> $options = $this->_singleDatetime($options, 'day');
<ide>
<ide> public function day($fieldName = null, array $options = [])
<ide> * @return string Completed year select input
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-year-inputs
<ide> */
<del> public function year($fieldName, array $options = [])
<add> public function year(string $fieldName, array $options = []): string
<ide> {
<ide> $options = $this->_singleDatetime($options, 'year');
<ide>
<ide> public function year($fieldName, array $options = [])
<ide> * @return string A generated month select dropdown.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-month-inputs
<ide> */
<del> public function month($fieldName, array $options = [])
<add> public function month(string $fieldName, array $options = []): string
<ide> {
<ide> $options = $this->_singleDatetime($options, 'month');
<ide>
<ide> public function month($fieldName, array $options = [])
<ide> * @return string Completed hour select input
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-hour-inputs
<ide> */
<del> public function hour($fieldName, array $options = [])
<add> public function hour(string $fieldName, array $options = []): string
<ide> {
<ide> $options += ['format' => 24];
<ide> $options = $this->_singleDatetime($options, 'hour');
<ide> public function hour($fieldName, array $options = [])
<ide> * @return string Completed minute select input.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-minute-inputs
<ide> */
<del> public function minute($fieldName, array $options = [])
<add> public function minute(string $fieldName, array $options = []): string
<ide> {
<ide> $options = $this->_singleDatetime($options, 'minute');
<ide>
<ide> public function minute($fieldName, array $options = [])
<ide> * @return string Completed meridian select input
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-meridian-inputs
<ide> */
<del> public function meridian($fieldName, array $options = [])
<add> public function meridian(string $fieldName, array $options = []): string
<ide> {
<ide> $options = $this->_singleDatetime($options, 'meridian');
<ide>
<ide> public function meridian($fieldName, array $options = [])
<ide> * @return string Generated set of select boxes for the date and time formats chosen.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-date-and-time-inputs
<ide> */
<del> public function dateTime($fieldName, array $options = [])
<add> public function dateTime(string $fieldName, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'empty' => true,
<ide> protected function _datetimeOptions($options)
<ide> $val = new DateTime();
<ide> $currentYear = $val->format('Y');
<ide> if (isset($options['year']['end']) && $options['year']['end'] < $currentYear) {
<del> $val->setDate($options['year']['end'], $val->format('n'), $val->format('j'));
<add> $val->setDate((int)$options['year']['end'], (int)$val->format('n'), (int)$val->format('j'));
<ide> }
<ide> $options['val'] = $val;
<ide> }
<ide> protected function _datetimeOptions($options)
<ide> * @return string Generated set of select boxes for time formats chosen.
<ide> * @see \Cake\View\Helper\FormHelper::dateTime() for templating options.
<ide> */
<del> public function time($fieldName, array $options = [])
<add> public function time(string $fieldName, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'empty' => true,
<ide> public function time($fieldName, array $options = [])
<ide> * @return string Generated set of select boxes for time formats chosen.
<ide> * @see \Cake\View\Helper\FormHelper::dateTime() for templating options.
<ide> */
<del> public function date($fieldName, array $options = [])
<add> public function date(string $fieldName, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'empty' => true,
<ide> protected function _initInputField($field, $options = [])
<ide> * @param array $options The option set.
<ide> * @return bool Whether or not the field is disabled.
<ide> */
<del> protected function _isDisabled(array $options)
<add> protected function _isDisabled($options)
<ide> {
<ide> if (!isset($options['disabled'])) {
<ide> return false;
<ide> protected function _secureFieldName($name)
<ide> * when the form context is the correct type.
<ide> * @return void
<ide> */
<del> public function addContextProvider($type, callable $check)
<add> public function addContextProvider(string $type, callable $check): void
<ide> {
<ide> $this->contextFactory()->addProvider($type, $check);
<ide> }
<ide> public function addContextProvider($type, callable $check)
<ide> * @param \Cake\View\Form\ContextInterface|null $context Either the new context when setting, or null to get.
<ide> * @return \Cake\View\Form\ContextInterface The context for the form.
<ide> */
<del> public function context($context = null)
<add> public function context(?ContextInterface $context = null): ContextInterface
<ide> {
<ide> if ($context instanceof ContextInterface) {
<ide> $this->_context = $context;
<ide> protected function _getContext($data = [])
<ide> * name or an object implementing the WidgetInterface.
<ide> * @return void
<ide> */
<del> public function addWidget($name, $spec)
<add> public function addWidget(string $name, $spec): void
<ide> {
<ide> $this->_locator->add([$name => $spec]);
<ide> }
<ide> public function addWidget($name, $spec)
<ide> * @param array $data The data to render.
<ide> * @return string
<ide> */
<del> public function widget($name, array $data = [])
<add> public function widget(string $name, array $data = []): string
<ide> {
<ide> $secure = null;
<ide> if (isset($data['secure'])) {
<ide> public function widget($name, array $data = [])
<ide> *
<ide> * @return void
<ide> */
<del> public function resetTemplates()
<add> public function resetTemplates(): void
<ide> {
<ide> $this->setTemplates($this->_defaultConfig['templates']);
<ide> }
<ide> public function implementedEvents(): array
<ide> *
<ide> * @return array List of value sources.
<ide> */
<del> public function getValueSources()
<add> public function getValueSources(): array
<ide> {
<ide> return $this->_valueSources;
<ide> }
<ide> public function setValueSources($sources)
<ide> *
<ide> * @param string $fieldname The fieldname to fetch the value for.
<ide> * @param array|null $options The options containing default values.
<del> * @return string|null Field value derived from sources or defaults.
<add> * @return mixed Field value derived from sources or defaults.
<ide> */
<del> public function getSourceValue($fieldname, $options = [])
<add> public function getSourceValue(string $fieldname, ?array $options = [])
<ide> {
<ide> $valueMap = [
<ide> 'data' => 'getData',
<ide><path>src/View/Helper/HtmlHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> public function __construct(View $View, array $config = [])
<ide> * @return string|null Doctype string
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-doctype-tags
<ide> */
<del> public function docType($type = 'html5')
<add> public function docType(string $type = 'html5'): ?string
<ide> {
<ide> if (isset($this->_docTypes[$type])) {
<ide> return $this->_docTypes[$type];
<ide> public function docType($type = 'html5')
<ide> * @return string|null A completed `<link />` element, or null if the element was sent to a block.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-meta-tags
<ide> */
<del> public function meta($type, $content = null, array $options = [])
<add> public function meta($type, $content = null, array $options = []): ?string
<ide> {
<ide> if (!is_array($type)) {
<ide> $types = [
<ide> public function meta($type, $content = null, array $options = [])
<ide> $options['block'] = __FUNCTION__;
<ide> }
<ide> $this->_View->append($options['block'], $out);
<add>
<add> return null;
<ide> }
<ide>
<ide> /**
<ide> public function meta($type, $content = null, array $options = [])
<ide> * @return string A meta tag containing the specified character set.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-charset-tags
<ide> */
<del> public function charset($charset = null)
<add> public function charset(?string $charset = null): string
<ide> {
<ide> if (empty($charset)) {
<del> $charset = strtolower(Configure::read('App.encoding'));
<add> $charset = strtolower((string)Configure::read('App.encoding'));
<ide> }
<ide>
<ide> return $this->formatTemplate('charset', [
<ide> public function charset($charset = null)
<ide> * @return string An `<a />` element.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-links
<ide> */
<del> public function link($title, $url = null, array $options = [])
<add> public function link($title, $url = null, array $options = []): string
<ide> {
<ide> $escapeTitle = true;
<ide> if ($url !== null) {
<ide> public function link($title, $url = null, array $options = [])
<ide> * @return string|null CSS `<link />` or `<style />` tag, depending on the type of link.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-css-files
<ide> */
<del> public function css($path, array $options = [])
<add> public function css($path, array $options = []): ?string
<ide> {
<ide> $options += ['once' => true, 'block' => null, 'rel' => 'stylesheet'];
<ide>
<ide> public function css($path, array $options = [])
<ide> $options['block'] = __FUNCTION__;
<ide> }
<ide> $this->_View->append($options['block'], $out);
<add>
<add> return null;
<ide> }
<ide>
<ide> /**
<ide> public function css($path, array $options = [])
<ide> * or if $once is true and the file has been included before.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-javascript-files
<ide> */
<del> public function script($url, array $options = [])
<add> public function script($url, array $options = []): ?string
<ide> {
<ide> $defaults = ['block' => null, 'once' => true];
<ide> $options += $defaults;
<ide> public function script($url, array $options = [])
<ide> $options['block'] = __FUNCTION__;
<ide> }
<ide> $this->_View->append($options['block'], $out);
<add>
<add> return null;
<ide> }
<ide>
<ide> /**
<ide> public function script($url, array $options = [])
<ide> * @return string|null String or null depending on the value of `$options['block']`
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks
<ide> */
<del> public function scriptBlock($script, array $options = [])
<add> public function scriptBlock(string $script, array $options = []): ?string
<ide> {
<ide> $options += ['safe' => false, 'block' => null];
<ide> if ($options['safe']) {
<ide> public function scriptBlock($script, array $options = [])
<ide> $options['block'] = 'script';
<ide> }
<ide> $this->_View->append($options['block'], $out);
<add>
<add> return null;
<ide> }
<ide>
<ide> /**
<ide> public function scriptBlock($script, array $options = [])
<ide> * @return void
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks
<ide> */
<del> public function scriptStart(array $options = [])
<add> public function scriptStart(array $options = []): void
<ide> {
<ide> $this->_scriptBlockOptions = $options;
<ide> ob_start();
<ide> public function scriptStart(array $options = [])
<ide> * @return string|null Depending on the settings of scriptStart() either a script tag or null
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks
<ide> */
<del> public function scriptEnd()
<add> public function scriptEnd(): ?string
<ide> {
<ide> $buffer = ob_get_clean();
<ide> $options = $this->_scriptBlockOptions;
<ide> public function scriptEnd()
<ide> * @return string CSS styling data
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-css-programatically
<ide> */
<del> public function style(array $data, $oneLine = true)
<add> public function style(array $data, bool $oneLine = true): string
<ide> {
<ide> $out = [];
<ide> foreach ($data as $key => $value) {
<ide> public function style(array $data, $oneLine = true)
<ide> * @return string completed img tag
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-images
<ide> */
<del> public function image($path, array $options = [])
<add> public function image($path, array $options = []): string
<ide> {
<ide> $path = $this->Url->image($path, $options);
<ide> $options = array_diff_key($options, ['fullBase' => null, 'pathPrefix' => null]);
<ide> public function image($path, array $options = [])
<ide> * @return string Completed table headers
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-table-headings
<ide> */
<del> public function tableHeaders(array $names, array $trOptions = null, array $thOptions = null)
<add> public function tableHeaders(array $names, array $trOptions = null, array $thOptions = null): string
<ide> {
<ide> $out = [];
<ide> foreach ($names as $arg) {
<ide> public function tableHeaders(array $names, array $trOptions = null, array $thOpt
<ide> * @return string Formatted HTML
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-table-cells
<ide> */
<del> public function tableCells($data, $oddTrOptions = null, $evenTrOptions = null, $useCount = false, $continueOddEven = true)
<add> public function tableCells($data, $oddTrOptions = null, $evenTrOptions = null, bool $useCount = false, bool $continueOddEven = true): string
<ide> {
<ide> if (empty($data[0]) || !is_array($data[0])) {
<ide> $data = [$data];
<ide> public function tableCells($data, $oddTrOptions = null, $evenTrOptions = null, $
<ide> *
<ide> * @param array $line Line data to render.
<ide> * @param bool $useCount Renders the count into the row. Default is false.
<del> * @return string[]
<add> * @return array
<ide> */
<ide> protected function _renderCells($line, $useCount = false)
<ide> {
<ide> protected function _renderCells($line, $useCount = false)
<ide> * @param array $options HTML attributes.
<ide> * @return string
<ide> */
<del> public function tableRow($content, array $options = [])
<add> public function tableRow(string $content, array $options = []): string
<ide> {
<ide> return $this->formatTemplate('tablerow', [
<ide> 'attrs' => $this->templater()->formatAttributes($options),
<ide> public function tableRow($content, array $options = [])
<ide> * @param array $options HTML attributes.
<ide> * @return string
<ide> */
<del> public function tableCell($content, array $options = [])
<add> public function tableCell(string $content, array $options = []): string
<ide> {
<ide> return $this->formatTemplate('tablecell', [
<ide> 'attrs' => $this->templater()->formatAttributes($options),
<ide> public function tableCell($content, array $options = [])
<ide> * @param array $options Additional HTML attributes of the DIV tag, see above.
<ide> * @return string The formatted tag element
<ide> */
<del> public function tag($name, $text = null, array $options = [])
<add> public function tag($name, ?string $text = null, array $options = []): string
<ide> {
<ide> if (empty($name)) {
<ide> return $text;
<ide> public function tag($name, $text = null, array $options = [])
<ide> * @param array $options Additional HTML attributes of the DIV tag
<ide> * @return string The formatted DIV element
<ide> */
<del> public function div($class = null, $text = null, array $options = [])
<add> public function div(?string $class = null, ?string $text = null, array $options = []): string
<ide> {
<ide> if (!empty($class)) {
<ide> $options['class'] = $class;
<ide> public function div($class = null, $text = null, array $options = [])
<ide> * @param array $options Additional HTML attributes of the P tag
<ide> * @return string The formatted P element
<ide> */
<del> public function para($class, $text, array $options = [])
<add> public function para(string $class, ?string $text, array $options = []): string
<ide> {
<ide> if (!empty($options['escape'])) {
<ide> $text = h($text);
<ide> public function para($class, $text, array $options = [])
<ide> * @param array $options Array of HTML attributes, and special options above.
<ide> * @return string Generated media element
<ide> */
<del> public function media($path, array $options = [])
<add> public function media($path, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'tag' => null,
<ide> public function media($path, array $options = [])
<ide> * @return string The nested list
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/html.html#creating-nested-lists
<ide> */
<del> public function nestedList(array $list, array $options = [], array $itemOptions = [])
<add> public function nestedList(array $list, array $options = [], array $itemOptions = []): string
<ide> {
<ide> $options += ['tag' => 'ul'];
<ide> $items = $this->_nestedListItem($list, $options, $itemOptions);
<ide><path>src/View/Helper/IdGeneratorTrait.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/View/Helper/PaginatorHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> public function __construct(View $View, array $config = [])
<ide> * @param string|null $model Optional model name. Uses the default if none is specified.
<ide> * @return array The array of paging parameters for the paginated resultset.
<ide> */
<del> public function params($model = null)
<add> public function params(?string $model = null): array
<ide> {
<ide> $request = $this->_View->getRequest();
<ide>
<ide> public function params($model = null)
<ide> * @param string|null $model Optional model name. Uses the default if none is specified.
<ide> * @return mixed Content of the requested param.
<ide> */
<del> public function param($key, $model = null)
<add> public function param(string $key, ?string $model = null)
<ide> {
<ide> $params = $this->params($model);
<ide> if (!isset($params[$key])) {
<ide> public function param($key, $model = null)
<ide> * See PaginatorHelper::$options for list of keys.
<ide> * @return void
<ide> */
<del> public function options(array $options = [])
<add> public function options(array $options = []): void
<ide> {
<ide> $request = $this->_View->getRequest();
<ide>
<ide> public function options(array $options = [])
<ide> * @return int The current page number of the recordset.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#checking-the-pagination-state
<ide> */
<del> public function current($model = null)
<add> public function current(?string $model = null): int
<ide> {
<ide> $params = $this->params($model);
<ide>
<ide> public function current($model = null)
<ide> * @param string|null $model Optional model name. Uses the default if none is specified.
<ide> * @return int The total pages for the recordset.
<ide> */
<del> public function total($model = null)
<add> public function total(?string $model = null): int
<ide> {
<ide> $params = $this->params($model);
<ide>
<ide> public function total($model = null)
<ide> * null if the results are not currently sorted.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-sort-links
<ide> */
<del> public function sortKey($model = null, array $options = [])
<add> public function sortKey(?string $model = null, array $options = []): ?string
<ide> {
<ide> if (empty($options)) {
<ide> $options = $this->params($model);
<ide> public function sortKey($model = null, array $options = [])
<ide> * null if the results are not currently sorted.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-sort-links
<ide> */
<del> public function sortDir($model = null, array $options = [])
<add> public function sortDir(?string $model = null, array $options = []): string
<ide> {
<ide> $dir = null;
<ide>
<ide> protected function _toggledLink($text, $enabled, $options, $templates)
<ide> * @return string A "previous" link or a disabled link.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-jump-links
<ide> */
<del> public function prev($title = '<< Previous', array $options = [])
<add> public function prev(string $title = '<< Previous', array $options = []): string
<ide> {
<ide> $defaults = [
<ide> 'url' => [],
<ide> public function prev($title = '<< Previous', array $options = [])
<ide> * @return string A "next" link or $disabledTitle text if the link is disabled.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-jump-links
<ide> */
<del> public function next($title = 'Next >>', array $options = [])
<add> public function next(string $title = 'Next >>', array $options = []): string
<ide> {
<ide> $defaults = [
<ide> 'url' => [],
<ide> public function next($title = 'Next >>', array $options = [])
<ide> * key the returned link will sort by 'desc'.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-sort-links
<ide> */
<del> public function sort($key, $title = null, array $options = [])
<add> public function sort(string $key, $title = null, array $options = []): string
<ide> {
<ide> $options += ['url' => [], 'model' => null, 'escape' => true];
<ide> $url = $options['url'];
<ide> public function sort($key, $title = null, array $options = [])
<ide> * @return string By default, returns a full pagination URL string for use in non-standard contexts (i.e. JavaScript)
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#generating-pagination-urls
<ide> */
<del> public function generateUrl(array $options = [], $model = null, array $urlOptions = [])
<add> public function generateUrl(array $options = [], ?string $model = null, array $urlOptions = []): string
<ide> {
<ide> $urlOptions += [
<ide> 'escape' => true,
<ide> public function generateUrl(array $options = [], $model = null, array $urlOption
<ide> * @param string|null $model Which model to paginate on
<ide> * @return array An array of URL parameters
<ide> */
<del> public function generateUrlParams(array $options = [], $model = null)
<add> public function generateUrlParams(array $options = [], ?string $model = null): array
<ide> {
<ide> $paging = $this->params($model);
<ide> $paging += ['page' => null, 'sort' => null, 'direction' => null, 'limit' => null];
<ide> public function generateUrlParams(array $options = [], $model = null)
<ide> * @return bool True if the result set is not at the first page.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#checking-the-pagination-state
<ide> */
<del> public function hasPrev($model = null)
<add> public function hasPrev(?string $model = null): bool
<ide> {
<ide> return $this->_hasPage($model, 'prev');
<ide> }
<ide> public function hasPrev($model = null)
<ide> * @return bool True if the result set is not at the last page.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#checking-the-pagination-state
<ide> */
<del> public function hasNext($model = null)
<add> public function hasNext(?string $model = null): bool
<ide> {
<ide> return $this->_hasPage($model, 'next');
<ide> }
<ide> public function hasNext($model = null)
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#checking-the-pagination-state
<ide> * @throws \InvalidArgumentException
<ide> */
<del> public function hasPage($page = 1, $model = null)
<add> public function hasPage(int $page = 1, ?string $model = null): bool
<ide> {
<ide> if (!is_numeric($page)) {
<ide> throw new InvalidArgumentException('First argument "page" has to be int. Note that argument order switched from 3.x to 4.x.');
<ide> protected function _hasPage($model, $dir)
<ide> * @param string|null $model Model name to set
<ide> * @return string|null Model name or null if the pagination isn't initialized.
<ide> */
<del> public function defaultModel($model = null)
<add> public function defaultModel(?string $model = null): ?string
<ide> {
<ide> if ($model !== null) {
<ide> $this->_defaultModel = $model;
<ide> public function defaultModel($model = null)
<ide> * @return string Counter string.
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#creating-a-page-counter
<ide> */
<del> public function counter($format, array $options = [])
<add> public function counter(string $format, array $options = []): string
<ide> {
<ide> $options += [
<ide> 'model' => $this->defaultModel(),
<ide> public function last($last = 'last >>', array $options = [])
<ide> * @param array $options Array of options
<ide> * @return string|null Meta links
<ide> */
<del> public function meta(array $options = [])
<add> public function meta(array $options = []): ?string
<ide> {
<ide> $options += [
<ide> 'model' => null,
<ide> public function implementedEvents(): array
<ide> * @param array $options Options for Select tag attributes like class, id or event
<ide> * @return string html output.
<ide> */
<del> public function limitControl(array $limits = [], $default = null, array $options = [])
<add> public function limitControl(array $limits = [], $default = null, array $options = []): ?string
<ide> {
<ide> $out = $this->Form->create(null, ['type' => 'get']);
<ide>
<ide><path>src/View/Helper/SecureFieldTokenTrait.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/View/Helper/TimeHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> protected function _getTimezone($timezone)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return \Cake\I18n\Time
<ide> */
<del> public function fromString($dateString, $timezone = null)
<add> public function fromString($dateString, $timezone = null): Time
<ide> {
<ide> return (new Time($dateString))->timezone($timezone);
<ide> }
<ide> public function fromString($dateString, $timezone = null)
<ide> * @param string|null $locale Locale string.
<ide> * @return string Formatted date string
<ide> */
<del> public function nice($dateString = null, $timezone = null, $locale = null)
<add> public function nice($dateString = null, $timezone = null, ?string $locale = null): string
<ide> {
<ide> $timezone = $this->_getTimezone($timezone);
<ide>
<ide> public function nice($dateString = null, $timezone = null, $locale = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if the given datetime string is today.
<ide> */
<del> public function isToday($dateString, $timezone = null)
<add> public function isToday($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isToday();
<ide> }
<ide> public function isToday($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if the given datetime string lies in the future.
<ide> */
<del> public function isFuture($dateString, $timezone = null)
<add> public function isFuture($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isFuture();
<ide> }
<ide> public function isFuture($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if the given datetime string lies in the past.
<ide> */
<del> public function isPast($dateString, $timezone = null)
<add> public function isPast($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isPast();
<ide> }
<ide> public function isPast($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if datetime string is within current week
<ide> */
<del> public function isThisWeek($dateString, $timezone = null)
<add> public function isThisWeek($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isThisWeek();
<ide> }
<ide> public function isThisWeek($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if datetime string is within the current month
<ide> */
<del> public function isThisMonth($dateString, $timezone = null)
<add> public function isThisMonth($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isThisMonth();
<ide> }
<ide> public function isThisMonth($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if datetime string is within current year
<ide> */
<del> public function isThisYear($dateString, $timezone = null)
<add> public function isThisYear($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isThisYear();
<ide> }
<ide> public function isThisYear($dateString, $timezone = null)
<ide> * @return bool True if datetime string was yesterday
<ide> *
<ide> */
<del> public function wasYesterday($dateString, $timezone = null)
<add> public function wasYesterday($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isYesterday();
<ide> }
<ide> public function wasYesterday($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return bool True if datetime string was yesterday
<ide> */
<del> public function isTomorrow($dateString, $timezone = null)
<add> public function isTomorrow($dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isTomorrow();
<ide> }
<ide> public function toQuarter($dateString, $range = false)
<ide> * @return string UNIX timestamp
<ide> * @see \Cake\I18n\Time::toUnix()
<ide> */
<del> public function toUnix($dateString, $timezone = null)
<add> public function toUnix($dateString, $timezone = null): string
<ide> {
<ide> return (new Time($dateString, $timezone))->toUnixString();
<ide> }
<ide> public function toUnix($dateString, $timezone = null)
<ide> * @return string Formatted date string
<ide> * @see \Cake\I18n\Time::toAtom()
<ide> */
<del> public function toAtom($dateString, $timezone = null)
<add> public function toAtom($dateString, $timezone = null): string
<ide> {
<ide> $timezone = $this->_getTimezone($timezone) ?: date_default_timezone_get();
<ide>
<ide> public function toAtom($dateString, $timezone = null)
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
<ide> * @return string Formatted date string
<ide> */
<del> public function toRss($dateString, $timezone = null)
<add> public function toRss($dateString, $timezone = null): string
<ide> {
<ide> $timezone = $this->_getTimezone($timezone) ?: date_default_timezone_get();
<ide>
<ide> public function toRss($dateString, $timezone = null)
<ide> * @return string Relative time string.
<ide> * @see \Cake\I18n\Time::timeAgoInWords()
<ide> */
<del> public function timeAgoInWords($dateTime, array $options = [])
<add> public function timeAgoInWords($dateTime, array $options = []): string
<ide> {
<ide> $element = null;
<ide> $options += [
<ide> public function timeAgoInWords($dateTime, array $options = [])
<ide> * @return bool
<ide> * @see \Cake\I18n\Time::wasWithinLast()
<ide> */
<del> public function wasWithinLast($timeInterval, $dateString, $timezone = null)
<add> public function wasWithinLast(string $timeInterval, $dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->wasWithinLast($timeInterval);
<ide> }
<ide> public function wasWithinLast($timeInterval, $dateString, $timezone = null)
<ide> * @return bool
<ide> * @see \Cake\I18n\Time::wasWithinLast()
<ide> */
<del> public function isWithinNext($timeInterval, $dateString, $timezone = null)
<add> public function isWithinNext(string $timeInterval, $dateString, $timezone = null): bool
<ide> {
<ide> return (new Time($dateString, $timezone))->isWithinNext($timeInterval);
<ide> }
<ide> public function isWithinNext($timeInterval, $dateString, $timezone = null)
<ide> * @return string UNIX timestamp
<ide> * @see \Cake\I18n\Time::gmt()
<ide> */
<del> public function gmt($string = null)
<add> public function gmt($string = null): string
<ide> {
<ide> return (new Time($string))->toUnixString();
<ide> }
<ide><path>src/View/Helper/UrlHelper.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class UrlHelper extends Helper
<ide> * @param array $options Array of options.
<ide> * @return string Full translated URL with base path.
<ide> */
<del> public function build($url = null, array $options = [])
<add> public function build($url = null, array $options = []): string
<ide> {
<ide> $defaults = [
<ide> 'fullBase' => false,
<ide> public function build($url = null, array $options = [])
<ide> * enable timestamping regardless of debug value.
<ide> * @return string Generated URL
<ide> */
<del> public function image($path, array $options = [])
<add> public function image($path, array $options = []): string
<ide> {
<ide> $pathPrefix = Configure::read('App.imageBaseUrl');
<ide>
<ide> public function image($path, array $options = [])
<ide> * enable timestamping regardless of debug value.
<ide> * @return string Generated URL
<ide> */
<del> public function css($path, array $options = [])
<add> public function css($path, array $options = []): string
<ide> {
<ide> $pathPrefix = Configure::read('App.cssBaseUrl');
<ide> $ext = '.css';
<ide> public function css($path, array $options = [])
<ide> * enable timestamping regardless of debug value.
<ide> * @return string Generated URL
<ide> */
<del> public function script($path, array $options = [])
<add> public function script($path, array $options = []): string
<ide> {
<ide> $pathPrefix = Configure::read('App.jsBaseUrl');
<ide> $ext = '.js';
<ide> public function script($path, array $options = [])
<ide> * enable timestamping regardless of debug value.
<ide> * @return string Generated URL
<ide> */
<del> public function assetUrl($path, array $options = [])
<add> public function assetUrl($path, array $options = []): string
<ide> {
<ide> if (is_array($path)) {
<ide> return $this->build($path, $options);
<ide> protected function _encodeUrl($url)
<ide> * @param bool|string $timestamp If set will overrule the value of `Asset.timestamp` in Configure.
<ide> * @return string Path with a timestamp added, or not.
<ide> */
<del> public function assetTimestamp($path, $timestamp = null)
<add> public function assetTimestamp($path, $timestamp = null): string
<ide> {
<ide> if ($timestamp === null) {
<ide> $timestamp = Configure::read('Asset.timestamp');
<ide> public function assetTimestamp($path, $timestamp = null)
<ide> * @param string $file The file to create a webroot path to.
<ide> * @return string Web accessible path to file.
<ide> */
<del> public function webroot($file)
<add> public function webroot($file): string
<ide> {
<ide> $request = $this->_View->getRequest();
<ide>
<ide><path>tests/TestCase/View/Helper/TextHelperTest.php
<ide> public function tearDown()
<ide> public function testTextHelperProxyMethodCalls()
<ide> {
<ide> $methods = [
<del> 'stripLinks', 'excerpt', 'toList'
<add> 'stripLinks', 'toList'
<ide> ];
<ide> $String = $this->getMockBuilder(__NAMESPACE__ . '\StringMock')
<ide> ->setMethods($methods)
<ide> public function testTextHelperProxyMethodCalls()
<ide> $Text->{$method}('who', 'what', 'when', 'where', 'how');
<ide> }
<ide>
<add> $methods = [
<add> 'excerpt'
<add> ];
<add> $String = $this->getMockBuilder(__NAMESPACE__ . '\StringMock')
<add> ->setMethods($methods)
<add> ->getMock();
<add> $Text = new TextHelperTestObject($this->View, ['engine' => __NAMESPACE__ . '\StringMock']);
<add> $Text->attach($String);
<add> foreach ($methods as $method) {
<add> $String->expects($this->at(0))->method($method);
<add> $Text->{$method}('who', 'what');
<add> }
<add>
<ide> $methods = [
<ide> 'highlight', 'truncate'
<ide> ]; | 11 |
Go | Go | say something useful during docker load | 6986a3220fe59146eeddeaa865561472abc7baeb | <ide><path>image/tarexport/load.go
<ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
<ide> }
<ide>
<ide> var parentLinks []parentLink
<add> var imageIDsStr string
<add> var imageRefCount int
<ide>
<ide> for _, m := range manifest {
<ide> configPath, err := safePath(tmpDir, m.Config)
<ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
<ide> if err != nil {
<ide> return err
<ide> }
<add> imageIDsStr += fmt.Sprintf("Loaded image ID: %s\n", imgID)
<ide>
<add> imageRefCount = 0
<ide> for _, repoTag := range m.RepoTags {
<ide> named, err := reference.ParseNamed(repoTag)
<ide> if err != nil {
<ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
<ide> return fmt.Errorf("invalid tag %q", repoTag)
<ide> }
<ide> l.setLoadedTag(ref, imgID, outStream)
<add> outStream.Write([]byte(fmt.Sprintf("Loaded image: %s\n", ref)))
<add> imageRefCount++
<ide> }
<ide>
<ide> parentLinks = append(parentLinks, parentLink{imgID, m.Parent})
<ide> func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
<ide> }
<ide> }
<ide>
<add> if imageRefCount == 0 {
<add> outStream.Write([]byte(imageIDsStr))
<add> }
<add>
<ide> return nil
<ide> }
<ide>
<ide><path>integration-cli/docker_cli_save_load_test.go
<ide> func (s *DockerSuite) TestSaveLoadParents(c *check.C) {
<ide> inspectOut = inspectField(c, idFoo, "Parent")
<ide> c.Assert(inspectOut, checker.Equals, "")
<ide> }
<add>
<add>func (s *DockerSuite) TestSaveLoadNoTag(c *check.C) {
<add> testRequires(c, DaemonIsLinux)
<add>
<add> name := "saveloadnotag"
<add>
<add> _, err := buildImage(name, "FROM busybox\nENV foo=bar", true)
<add> c.Assert(err, checker.IsNil, check.Commentf("%v", err))
<add>
<add> id := inspectField(c, name, "Id")
<add>
<add> // Test to make sure that save w/o name just shows imageID during load
<add> out, _, err := runCommandPipelineWithOutput(
<add> exec.Command(dockerBinary, "save", id),
<add> exec.Command(dockerBinary, "load"))
<add> c.Assert(err, checker.IsNil, check.Commentf("failed to save and load repo: %s, %v", out, err))
<add>
<add> // Should not show 'name' but should show the image ID during the load
<add> c.Assert(out, checker.Not(checker.Contains), "Loaded image: ")
<add> c.Assert(out, checker.Contains, "Loaded image ID:")
<add> c.Assert(out, checker.Contains, id)
<add>
<add> // Test to make sure that save by name shows that name during load
<add> out, _, err = runCommandPipelineWithOutput(
<add> exec.Command(dockerBinary, "save", name),
<add> exec.Command(dockerBinary, "load"))
<add> c.Assert(err, checker.IsNil, check.Commentf("failed to save and load repo: %s, %v", out, err))
<add> c.Assert(out, checker.Contains, "Loaded image: "+name+":latest")
<add> c.Assert(out, checker.Not(checker.Contains), "Loaded image ID:")
<add>} | 2 |
PHP | PHP | fix the parent permissions | 1c92ee586af684ee82f6560d582475fa6bd430ae | <ide><path>src/Illuminate/Cache/FileStore.php
<ide> protected function ensureCacheDirectoryExists($path)
<ide>
<ide> if (! $this->files->exists($directory)) {
<ide> $this->files->makeDirectory($directory, 0777, true, true);
<add>
<add> // We are creating two levels of prefix directories, e.g. 7e/24.
<add> // So have to check them both.
<ide> $this->ensurePermissionsAreCorrect($directory);
<add> $this->ensurePermissionsAreCorrect(dirname($directory));
<ide> }
<ide> }
<ide>
<ide><path>tests/Cache/CacheFileStoreTest.php
<ide> public function testStoreItemDirectoryProperlySetsPermissions()
<ide> $files->shouldIgnoreMissing();
<ide> $store = $this->getMockBuilder(FileStore::class)->onlyMethods(['expiration'])->setConstructorArgs([$files, __DIR__, 0606])->getMock();
<ide> $hash = sha1('foo');
<del> $cache_dir = substr($hash, 0, 2).'/'.substr($hash, 2, 2);
<add> $cache_parent_dir = substr($hash, 0, 2);
<add> $cache_dir = $cache_parent_dir.'/'.substr($hash, 2, 2);
<ide>
<ide> $files->shouldReceive('put')->withArgs([__DIR__.'/'.$cache_dir.'/'.$hash, m::any(), m::any()])->andReturnUsing(function ($name, $value) {
<ide> return strlen($value);
<ide> });
<ide>
<ide> $files->shouldReceive('exists')->withArgs([__DIR__.'/'.$cache_dir])->andReturn(false)->once();
<ide> $files->shouldReceive('makeDirectory')->withArgs([__DIR__.'/'.$cache_dir, 0777, true, true])->once();
<add> $files->shouldReceive('chmod')->withArgs([__DIR__.'/'.$cache_parent_dir])->andReturn(['0600'])->once();
<add> $files->shouldReceive('chmod')->withArgs([__DIR__.'/'.$cache_parent_dir, 0606])->andReturn([true])->once();
<ide> $files->shouldReceive('chmod')->withArgs([__DIR__.'/'.$cache_dir])->andReturn(['0600'])->once();
<ide> $files->shouldReceive('chmod')->withArgs([__DIR__.'/'.$cache_dir, 0606])->andReturn([true])->once();
<ide> | 2 |
Javascript | Javascript | improve robustness of retrieving webgl version | 1e6894562b43bcc81dac6d3c91121f07260d41e4 | <ide><path>src/renderers/webgl/WebGLState.js
<ide> function WebGLState( gl, extensions, paramThreeToGL ) {
<ide>
<ide> var maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS );
<ide>
<del> var lineWidthAvailable = parseFloat(gl.getParameter(gl.VERSION).split(' ')[1]) >= 1.0;
<add> var glVersion = gl.getParameter(gl.VERSION).split(' ')[1];
<add> var glMajorVersion = glVersion.split('.').slice(0, 2).join('.');
<add> var lineWidthAvailable = parseFloat(glMajorVersion) >= 1.0;
<ide>
<ide> var currentTextureSlot = null;
<ide> var currentBoundTextures = {}; | 1 |
Go | Go | remove trailing whitespace in user-agent | 42734394b0ec238c88bc3ef09454df411b8f3776 | <ide><path>utils/http.go
<ide> package utils
<ide>
<ide> import (
<del> "bytes"
<ide> "io"
<ide> "net/http"
<ide> "strings"
<ide> type VersionInfo interface {
<ide> }
<ide>
<ide> func validVersion(version VersionInfo) bool {
<del> stopChars := " \t\r\n/"
<del> if strings.ContainsAny(version.Name(), stopChars) {
<add> const stopChars = " \t\r\n/"
<add> name := version.Name()
<add> vers := version.Version()
<add> if len(name) == 0 || strings.ContainsAny(name, stopChars) {
<ide> return false
<ide> }
<del> if strings.ContainsAny(version.Version(), stopChars) {
<add> if len(vers) == 0 || strings.ContainsAny(vers, stopChars) {
<ide> return false
<ide> }
<ide> return true
<ide> func appendVersions(base string, versions ...VersionInfo) string {
<ide> return base
<ide> }
<ide>
<del> var buf bytes.Buffer
<add> verstrs := make([]string, 0, 1+len(versions))
<ide> if len(base) > 0 {
<del> buf.Write([]byte(base))
<add> verstrs = append(verstrs, base)
<ide> }
<ide>
<ide> for _, v := range versions {
<del> name := []byte(v.Name())
<del> version := []byte(v.Version())
<del>
<del> if len(name) == 0 || len(version) == 0 {
<del> continue
<del> }
<ide> if !validVersion(v) {
<ide> continue
<ide> }
<del> buf.Write([]byte(v.Name()))
<del> buf.Write([]byte("/"))
<del> buf.Write([]byte(v.Version()))
<del> buf.Write([]byte(" "))
<add> verstrs = append(verstrs, v.Name()+"/"+v.Version())
<ide> }
<del> return buf.String()
<add> return strings.Join(verstrs, " ")
<ide> }
<ide>
<ide> // HTTPRequestDecorator is used to change an instance of | 1 |
Mixed | Javascript | link documentation to webpack.js.org | ea4be07d451e42c6ee02854dd8bffa3a3d3e37c8 | <ide><path>CONTRIBUTING.md
<ide> that include your webpack.config.js and relevant files are more likely to receiv
<ide> If you have created your own loader/plugin please include it on the relevant
<ide> documentation pages:
<ide>
<del>[List of loaders](https://webpack.github.io/docs/list-of-loaders.html)
<del>[List of plugins](https://webpack.github.io/docs/list-of-plugins.html)
<add>[List of loaders](https://webpack.js.org/loaders/) or [awesome-webpack](https://github.com/webpack-contrib/awesome-webpack#loaders)
<add>[List of plugins](https://webpack.js.org/plugins) or [awesome-webpack](https://github.com/webpack-contrib/awesome-webpack#webpack-plugins)
<ide>
<ide> ## Setup
<ide>
<ide><path>README.md
<ide> webpack supports ES2015+, CommonJS and AMD modules **out of the box**. It perfor
<ide> analysis on the AST of your code. It even has an evaluation engine to evaluate
<ide> simple expressions. This allows you to **support most existing libraries** out of the box.
<ide>
<del>### [Code Splitting](https://webpack.github.io/docs/code-splitting.html)
<add>### [Code Splitting](https://webpack.js.org/guides/code-splitting/)
<ide>
<ide> webpack allows you to split your codebase into multiple chunks. Chunks are
<ide> loaded asynchronously at runtime. This reduces the initial loading time.
<ide>
<del>### [Optimizations](https://webpack.github.io/docs/optimization.html)
<add>### [Optimizations](https://webpack.js.org/guides/production-build/)
<ide>
<ide> webpack can do many optimizations to **reduce the output size of your
<ide> JavaScript** by deduplicating frequently used modules, minifying, and giving
<ide><path>bin/webpack.js
<ide> try {
<ide> } catch(e) {}
<ide> var yargs = require("yargs")
<ide> .usage("webpack " + require("../package.json").version + "\n" +
<del> "Usage: https://webpack.github.io/docs/cli.html\n" +
<add> "Usage: https://webpack.js.org/api/cli/\n" +
<ide> "Usage without config file: webpack <entry> [<entry>] <output>\n" +
<ide> "Usage with config file: webpack");
<ide>
<ide><path>lib/MovedToPluginWarningPlugin.js
<ide> module.exports = class MovedToPluginWarningPlugin {
<ide> compilation.warnings.push(new Error `webpack options:
<ide> DEPRECATED option ${optionName} will be moved to the ${pluginName}.
<ide> Use this instead.
<del> For more info about the usage of the ${pluginName} see https://webpack.github.io/docs/list-of-plugins.html`);
<add> For more info about the usage of the ${pluginName} see https://webpack.js.org/plugins/`);
<ide> });
<ide> }
<ide> };
<ide><path>lib/optimize/AggressiveMergingPlugin.js
<ide> class AggressiveMergingPlugin {
<ide> constructor(options) {
<ide> if(options !== undefined && typeof options !== "object" || Array.isArray(options)) {
<del> throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html");
<add> throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.js.org/plugins/");
<ide> }
<ide> this.options = options || {};
<ide> }
<ide><path>lib/optimize/LimitChunkCountPlugin.js
<ide> class LimitChunkCountPlugin {
<ide> constructor(options) {
<ide> if(options !== undefined && typeof options !== "object" || Array.isArray(options)) {
<del> throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html");
<add> throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.js.org/plugins/");
<ide> }
<ide> this.options = options || {};
<ide> }
<ide><path>lib/optimize/MinChunkSizePlugin.js
<ide> class MinChunkSizePlugin {
<ide> constructor(options) {
<ide> if(typeof options !== "object" || Array.isArray(options)) {
<del> throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html");
<add> throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.js.org/plugins/");
<ide> }
<ide> this.options = options;
<ide> }
<ide><path>lib/optimize/OccurrenceOrderPlugin.js
<ide> class OccurrenceOrderPlugin {
<ide> constructor(preferEntry) {
<ide> if(preferEntry !== undefined && typeof preferEntry !== "boolean") {
<del> throw new Error("Argument should be a boolean.\nFor more info on this plugin, see https://webpack.github.io/docs/list-of-plugins.html");
<add> throw new Error("Argument should be a boolean.\nFor more info on this plugin, see https://webpack.js.org/plugins/");
<ide> }
<ide> this.preferEntry = preferEntry;
<ide> } | 8 |
Text | Text | update debugging guide to use byebug | eb2d555f5c2e504f9de73dd083f148336f5ffa19 | <ide><path>guides/source/debugging_rails_applications.md
<ide> The contents of the block, and therefore the string interpolation, is only
<ide> evaluated if debug is enabled. This performance savings is only really
<ide> noticeable with large amounts of logging, but it's a good practice to employ.
<ide>
<del>Debugging with the `debugger` gem
<add>Debugging with the `byebug` gem
<ide> ---------------------------------
<ide>
<del>When your code is behaving in unexpected ways, you can try printing to logs or the console to diagnose the problem. Unfortunately, there are times when this sort of error tracking is not effective in finding the root cause of a problem. When you actually need to journey into your running source code, the debugger is your best companion.
<add>When your code is behaving in unexpected ways, you can try printing to logs or
<add>the console to diagnose the problem. Unfortunately, there are times when this
<add>sort of error tracking is not effective in finding the root cause of a problem.
<add>When you actually need to journey into your running source code, the debugger
<add>is your best companion.
<ide>
<del>The debugger can also help you if you want to learn about the Rails source code but don't know where to start. Just debug any request to your application and use this guide to learn how to move from the code you have written deeper into Rails code.
<add>The debugger can also help you if you want to learn about the Rails source code
<add>but don't know where to start. Just debug any request to your application and
<add>use this guide to learn how to move from the code you have written deeper into
<add>Rails code.
<ide>
<ide> ### Setup
<ide>
<del>You can use the `debugger` gem to set breakpoints and step through live code in Rails. To install it, just run:
<add>You can use the `byebug` gem to set breakpoints and step through live code in
<add>Rails. To install it, just run:
<ide>
<ide> ```bash
<del>$ gem install debugger
<add>$ gem install byebug
<ide> ```
<ide>
<del>Rails has had built-in support for debugging since Rails 2.0. Inside any Rails application you can invoke the debugger by calling the `debugger` method.
<add>Inside any Rails application you can then invoke the debugger by calling the
<add>`byebug` method.
<ide>
<ide> Here's an example:
<ide>
<ide> ```ruby
<ide> class PeopleController < ApplicationController
<ide> def new
<del> debugger
<add> byebug
<ide> @person = Person.new
<ide> end
<ide> end
<ide> ```
<ide>
<del>If you see this message in the console or logs:
<del>
<del>```
<del>***** Debugger requested, but was not available: Start server with --debugger to enable *****
<del>```
<del>
<del>Make sure you have started your web server with the option `--debugger`:
<del>
<del>```bash
<del>$ rails server --debugger
<del>=> Booting WEBrick
<del>=> Rails 4.0.0 application starting on http://0.0.0.0:3000
<del>=> Debugger enabled
<del>...
<del>```
<del>
<del>TIP: In development mode, you can dynamically `require \'debugger\'` instead of restarting the server, even if it was started without `--debugger`.
<del>
<ide> ### The Shell
<ide>
<del>As soon as your application calls the `debugger` method, the debugger will be started in a debugger shell inside the terminal window where you launched your application server, and you will be placed at the debugger's prompt `(rdb:n)`. The _n_ is the thread number. The prompt will also show you the next line of code that is waiting to run.
<del>
<del>If you got there by a browser request, the browser tab containing the request will be hung until the debugger has finished and the trace has finished processing the entire request.
<del>
<del>For example:
<del>
<del>```bash
<del>@posts = Post.all
<del>(rdb:7)
<del>```
<del>
<del>Now it's time to explore and dig into your application. A good place to start is by asking the debugger for help. Type: `help`
<del>
<del>```
<del>(rdb:7) help
<del>ruby-debug help v0.10.2
<del>Type 'help <command-name>' for help on a specific command
<del>
<del>Available commands:
<del>backtrace delete enable help next quit show trace
<del>break disable eval info p reload source undisplay
<del>catch display exit irb pp restart step up
<del>condition down finish list ps save thread var
<del>continue edit frame method putl set tmate where
<del>```
<del>
<del>TIP: To view the help menu for any command use `help <command-name>` at the debugger prompt. For example: _`help var`_
<del>
<del>The next command to learn is one of the most useful: `list`. You can abbreviate any debugging command by supplying just enough letters to distinguish them from other commands, so you can also use `l` for the `list` command.
<del>
<del>This command shows you where you are in the code by printing 10 lines centered around the current line; the current line in this particular case is line 6 and is marked by `=>`.
<add>As soon as your application calls the `byebug` method, the debugger will be
<add>started in a debugger shell inside the terminal window where you launched your
<add>application server, and you will be placed at the debugger's prompt `(byebug)`.
<add>Before the prompt, the code around the line that is about to be run will be
<add>shown and the current line is marked by '=>'. Like this:
<ide>
<ide> ```
<del>(rdb:7) list
<ide> [1, 10] in /PathTo/project/app/controllers/posts_controller.rb
<ide> 1 class PostsController < ApplicationController
<ide> 2 # GET /posts
<ide> 3 # GET /posts.json
<ide> 4 def index
<del> 5 debugger
<add> 5 byebug
<ide> => 6 @posts = Post.all
<ide> 7
<ide> 8 respond_to do |format|
<ide> 9 format.html # index.html.erb
<ide> 10 format.json { render json: @posts }
<add>(byebug)
<ide> ```
<ide>
<del>If you repeat the `list` command, this time using just `l`, the next ten lines of the file will be printed out.
<add>If you got there by a browser request, the browser tab containing the request
<add>will be hung until the debugger has finished and the trace has finished
<add>processing the entire request.
<ide>
<add>For example:
<add>
<add>```bash
<add>@posts = Post.all
<add>(rdb:7)
<ide> ```
<del>(rdb:7) l
<del>[11, 20] in /PathTo/project/app/controllers/posts_controller.rb
<del> 11 end
<del> 12 end
<del> 13
<del> 14 # GET /posts/1
<del> 15 # GET /posts/1.json
<del> 16 def show
<del> 17 @post = Post.find(params[:id])
<del> 18
<del> 19 respond_to do |format|
<del> 20 format.html # show.html.erb
<add>
<add>Now it's time to explore and dig into your application. A good place to start is
<add>by asking the debugger for help. Type: `help`
<add>
<ide> ```
<add>(byebug) help
<add>byebug 2.6.0
<ide>
<del>And so on until the end of the current file. When the end of file is reached, the `list` command will start again from the beginning of the file and continue again up to the end, treating the file as a circular buffer.
<add>Type 'help <command-name>' for help on a specific command
<ide>
<del>On the other hand, to see the previous ten lines you should type `list-` (or `l-`)
<add>Available commands:
<add>backtrace delete enable help list pry next restart source up
<add>break disable eval info method ps save step var
<add>catch display exit interrupt next putl set thread
<add>condition down finish irb p quit show trace
<add>continue edit frame kill pp reload skip undisplay
<add>```
<add>
<add>TIP: To view the help menu for any command use `help <command-name>` at the
<add>debugger prompt. For example: _`help list`_. You can abbreviate any debugging
<add>command by supplying just enough letters to distinguish them from other
<add>commands, so you can also use `l` for the `list` command, for example.
<add>
<add>To see the previous ten lines you should type `list-` (or `l-`)
<ide>
<ide> ```
<del>(rdb:7) l-
<add>(byebug) l-
<ide> [1, 10] in /PathTo/project/app/controllers/posts_controller.rb
<ide> 1 class PostsController < ApplicationController
<ide> 2 # GET /posts
<ide> 3 # GET /posts.json
<ide> 4 def index
<del> 5 debugger
<add> 5 byebug
<ide> 6 @posts = Post.all
<ide> 7
<ide> 8 respond_to do |format|
<ide> 9 format.html # index.html.erb
<ide> 10 format.json { render json: @posts }
<ide> ```
<ide>
<del>This way you can move inside the file, being able to see the code above and over the line you added the `debugger`.
<del>Finally, to see where you are in the code again you can type `list=`
<add>This way you can move inside the file, being able to see the code above and over
<add>the line you added the `byebug` call. Finally, to see where you are in the code
<add>again you can type `list=`
<ide>
<ide> ```
<del>(rdb:7) list=
<add>(byebug) list=
<ide> [1, 10] in /PathTo/project/app/controllers/posts_controller.rb
<ide> 1 class PostsController < ApplicationController
<ide> 2 # GET /posts
<ide> 3 # GET /posts.json
<ide> 4 def index
<del> 5 debugger
<add> 5 byebug
<ide> => 6 @posts = Post.all
<ide> 7
<ide> 8 respond_to do |format|
<ide> Finally, to see where you are in the code again you can type `list=`
<ide>
<ide> ### The Context
<ide>
<del>When you start debugging your application, you will be placed in different contexts as you go through the different parts of the stack.
<add>When you start debugging your application, you will be placed in different
<add>contexts as you go through the different parts of the stack.
<ide>
<del>The debugger creates a context when a stopping point or an event is reached. The context has information about the suspended program which enables a debugger to inspect the frame stack, evaluate variables from the perspective of the debugged program, and contains information about the place where the debugged program is stopped.
<add>The debugger creates a context when a stopping point or an event is reached. The
<add>context has information about the suspended program which enables the debugger
<add>to inspect the frame stack, evaluate variables from the perspective of the
<add>debugged program, and contains information about the place where the debugged
<add>program is stopped.
<ide>
<del>At any time you can call the `backtrace` command (or its alias `where`) to print the backtrace of the application. This can be very helpful to know how you got where you are. If you ever wondered about how you got somewhere in your code, then `backtrace` will supply the answer.
<add>At any time you can call the `backtrace` command (or its alias `where`) to print
<add>the backtrace of the application. This can be very helpful to know how you got
<add>where you are. If you ever wondered about how you got somewhere in your code,
<add>then `backtrace` will supply the answer.
<ide>
<ide> ```
<del>(rdb:5) where
<add>(byebug) where
<ide> #0 PostsController.index
<ide> at line /PathTo/project/app/controllers/posts_controller.rb:6
<ide> #1 Kernel.send
<ide> At any time you can call the `backtrace` command (or its alias `where`) to print
<ide> ...
<ide> ```
<ide>
<del>You move anywhere you want in this trace (thus changing the context) by using the `frame _n_` command, where _n_ is the specified frame number.
<add>You move anywhere you want in this trace (thus changing the context) by using
<add>the `frame _n_` command, where _n_ is the specified frame number.
<ide>
<ide> ```
<del>(rdb:5) frame 2
<add>(byebug) frame 2
<ide> #2 ActionController::Base.perform_action_without_filters
<ide> at line /PathTo/project/vendor/rails/actionpack/lib/action_controller/base.rb:1175
<ide> ```
<ide>
<del>The available variables are the same as if you were running the code line by line. After all, that's what debugging is.
<add>The available variables are the same as if you were running the code line by
<add>line. After all, that's what debugging is.
<ide>
<del>Moving up and down the stack frame: You can use `up [n]` (`u` for abbreviated) and `down [n]` commands in order to change the context _n_ frames up or down the stack respectively. _n_ defaults to one. Up in this case is towards higher-numbered stack frames, and down is towards lower-numbered stack frames.
<add>Moving up and down the stack frame: You can use `up [n]` (`u` for abbreviated)
<add>and `down [n]` commands in order to change the context _n_ frames up or down the
<add>stack respectively. _n_ defaults to one. Up in this case is towards
<add>higher-numbered stack frames, and down is towards lower-numbered stack frames.
<ide>
<ide> ### Threads
<ide>
<del>The debugger can list, stop, resume and switch between running threads by using the command `thread` (or the abbreviated `th`). This command has a handful of options:
<add>The debugger can list, stop, resume and switch between running threads by using
<add>the command `thread` (or the abbreviated `th`). This command has a handful of
<add>options:
<ide>
<ide> * `thread` shows the current thread.
<del>* `thread list` is used to list all threads and their statuses. The plus + character and the number indicates the current thread of execution.
<add>* `thread list` is used to list all threads and their statuses. The plus +
<add>character and the number indicates the current thread of execution.
<ide> * `thread stop _n_` stop thread _n_.
<ide> * `thread resume _n_` resumes thread _n_.
<ide> * `thread switch _n_` switches the current thread context to _n_.
<ide>
<del>This command is very helpful, among other occasions, when you are debugging concurrent threads and need to verify that there are no race conditions in your code.
<add>This command is very helpful, among other occasions, when you are debugging
<add>concurrent threads and need to verify that there are no race conditions in your
<add>code.
<ide>
<ide> ### Inspecting Variables
<ide>
<del>Any expression can be evaluated in the current context. To evaluate an expression, just type it!
<add>Any expression can be evaluated in the current context. To evaluate an
<add>expression, just type it!
<ide>
<del>This example shows how you can print the instance_variables defined within the current context:
<add>This example shows how you can print the instance_variables defined within the
<add>current context:
<ide>
<ide> ```
<ide> @posts = Post.all
<del>(rdb:11) instance_variables
<del>["@_response", "@action_name", "@url", "@_session", "@_cookies", "@performed_render", "@_flash", "@template", "@_params", "@before_filter_chain_aborted", "@request_origin", "@_headers", "@performed_redirect", "@_request"]
<add>(byebug) instance_variables
<add>["@_response", "@action_name", "@url", "@_session", "@_cookies",
<add> "@performed_render", "@_flash", "@template", "@_params",
<add> "@before_filter_chain_aborted", "@request_origin", "@_headers",
<add> "@performed_redirect", "@_request"]
<ide> ```
<ide>
<del>As you may have figured out, all of the variables that you can access from a controller are displayed. This list is dynamically updated as you execute code. For example, run the next line using `next` (you'll learn more about this command later in this guide).
<add>As you may have figured out, all of the variables that you can access from a
<add>controller are displayed. This list is dynamically updated as you execute code.
<add>For example, run the next line using `next` (you'll learn more about this
<add>command later in this guide).
<ide>
<ide> ```
<del>(rdb:11) next
<add>(byebug) next
<ide> Processing PostsController#index (for 127.0.0.1 at 2008-09-04 19:51:34) [GET]
<ide> Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--b16e91b992453a8cc201694d660147bba8b0fd0e
<ide> Parameters: {"action"=>"index", "controller"=>"posts"}
<ide> respond_to do |format|
<ide> And then ask again for the instance_variables:
<ide>
<ide> ```
<del>(rdb:11) instance_variables.include? "@posts"
<add>(byebug) instance_variables.include? "@posts"
<ide> true
<ide> ```
<ide>
<del>Now `@posts` is included in the instance variables, because the line defining it was executed.
<add>Now `@posts` is included in the instance variables, because the line defining it
<add>was executed.
<ide>
<del>TIP: You can also step into **irb** mode with the command `irb` (of course!). This way an irb session will be started within the context you invoked it. But be warned: this is an experimental feature.
<add>TIP: You can also step into **irb** mode with the command `irb` (of course!).
<add>This way an irb session will be started within the context you invoked it. But
<add>be warned: this is an experimental feature.
<ide>
<ide> The `var` method is the most convenient way to show variables and their values:
<ide>
<ide> ```
<ide> var
<del>(rdb:1) v[ar] const <object> show constants of object
<del>(rdb:1) v[ar] g[lobal] show global variables
<del>(rdb:1) v[ar] i[nstance] <object> show instance variables of object
<del>(rdb:1) v[ar] l[ocal] show local variables
<add>(byebug) v[ar] const <object> show constants of object
<add>(byebug) v[ar] g[lobal] show global variables
<add>(byebug) v[ar] i[nstance] <object> show instance variables of object
<add>(byebug) v[ar] l[ocal] show local variables
<ide> ```
<ide>
<del>This is a great way to inspect the values of the current context variables. For example:
<add>This is a great way to inspect the values of the current context variables. For
<add>example:
<ide>
<ide> ```
<del>(rdb:9) var local
<add>(byebug) var local
<ide> __dbg_verbose_save => false
<ide> ```
<ide>
<ide> You can also inspect for an object method this way:
<ide>
<ide> ```
<del>(rdb:9) var instance Post.new
<add>(byebug) var instance Post.new
<ide> @attributes = {"updated_at"=>nil, "body"=>nil, "title"=>nil, "published"=>nil, "created_at"...
<ide> @attributes_cache = {}
<ide> @new_record = true
<ide> ```
<ide>
<del>TIP: The commands `p` (print) and `pp` (pretty print) can be used to evaluate Ruby expressions and display the value of variables to the console.
<add>TIP: The commands `p` (print) and `pp` (pretty print) can be used to evaluate
<add>Ruby expressions and display the value of variables to the console.
<ide>
<del>You can use also `display` to start watching variables. This is a good way of tracking the values of a variable while the execution goes on.
<add>You can use also `display` to start watching variables. This is a good way of
<add>tracking the values of a variable while the execution goes on.
<ide>
<ide> ```
<del>(rdb:1) display @recent_comments
<add>(byebug) display @recent_comments
<ide> 1: @recent_comments =
<ide> ```
<ide>
<del>The variables inside the displaying list will be printed with their values after you move in the stack. To stop displaying a variable use `undisplay _n_` where _n_ is the variable number (1 in the last example).
<add>The variables inside the displaying list will be printed with their values after
<add>you move in the stack. To stop displaying a variable use `undisplay _n_` where
<add>_n_ is the variable number (1 in the last example).
<ide>
<ide> ### Step by Step
<ide>
<del>Now you should know where you are in the running trace and be able to print the available variables. But lets continue and move on with the application execution.
<add>Now you should know where you are in the running trace and be able to print the
<add>available variables. But lets continue and move on with the application
<add>execution.
<ide>
<del>Use `step` (abbreviated `s`) to continue running your program until the next logical stopping point and return control to the debugger.
<add>Use `step` (abbreviated `s`) to continue running your program until the next
<add>logical stopping point and return control to the debugger.
<ide>
<del>TIP: You can also use `step+ n` and `step- n` to move forward or backward `n` steps respectively.
<add>TIP: You can also use `step+ n` and `step- n` to move forward or backward `n`
<add>steps respectively.
<ide>
<del>You may also use `next` which is similar to step, but function or method calls that appear within the line of code are executed without stopping. As with step, you may use plus sign to move _n_ steps.
<add>You may also use `next` which is similar to step, but function or method calls
<add>that appear within the line of code are executed without stopping. As with
<add>`step`, you may use plus sign to move _n_ steps.
<ide>
<del>The difference between `next` and `step` is that `step` stops at the next line of code executed, doing just a single step, while `next` moves to the next line without descending inside methods.
<add>The difference between `next` and `step` is that `step` stops at the next line
<add>of code executed, doing just a single step, while `next` moves to the next line
<add>without descending inside methods.
<ide>
<del>For example, consider this block of code with an included `debugger` statement:
<add>For example, consider this block of code with an included `byebug` statement:
<ide>
<ide> ```ruby
<ide> class Author < ActiveRecord::Base
<ide> has_one :editorial
<ide> has_many :comments
<ide>
<ide> def find_recent_comments(limit = 10)
<del> debugger
<add> byebug
<ide> @recent_comments ||= comments.where("created_at > ?", 1.week.ago).limit(limit)
<ide> end
<ide> end
<ide> ```
<ide>
<del>TIP: You can use the debugger while using `rails console`. Just remember to `require "debugger"` before calling the `debugger` method.
<del>
<ide> ```
<ide> $ rails console
<ide> Loading development environment (Rails 4.0.0)
<del>>> require "debugger"
<del>=> []
<ide> >> author = Author.first
<ide> => #<Author id: 1, first_name: "Bob", last_name: "Smith", created_at: "2008-07-31 12:46:10", updated_at: "2008-07-31 12:46:10">
<ide> >> author.find_recent_comments
<ide> /PathTo/project/app/models/author.rb:11
<ide> )
<del>```
<del>
<del>With the code stopped, take a look around:
<del>
<del>```
<del>(rdb:1) list
<ide> [2, 9] in /PathTo/project/app/models/author.rb
<ide> 2 has_one :editorial
<ide> 3 has_many :comments
<ide> 4
<ide> 5 def find_recent_comments(limit = 10)
<del> 6 debugger
<add> 6 byebug
<ide> => 7 @recent_comments ||= comments.where("created_at > ?", 1.week.ago).limit(limit)
<ide> 8 end
<ide> 9 end
<add>(byebug)
<ide> ```
<ide>
<del>You are at the end of the line, but... was this line executed? You can inspect the instance variables.
<add>You are at the end of the line, but... was this line executed? You can inspect
<add>the instance variables.
<ide>
<ide> ```
<del>(rdb:1) var instance
<add>(byebug) var instance
<ide> @attributes = {"updated_at"=>"2008-07-31 12:46:10", "id"=>"1", "first_name"=>"Bob", "las...
<ide> @attributes_cache = {}
<ide> ```
<ide>
<del>`@recent_comments` hasn't been defined yet, so it's clear that this line hasn't been executed yet. Use the `next` command to move on in the code:
<add>`@recent_comments` hasn't been defined yet, so it's clear that this line hasn't
<add>been executed yet. Use the `next` command to move on in the code:
<ide>
<ide> ```
<del>(rdb:1) next
<add>(byebug) next
<ide> /PathTo/project/app/models/author.rb:12
<ide> @recent_comments
<ide> (rdb:1) var instance
<ide> You are at the end of the line, but... was this line executed? You can inspect t
<ide> @recent_comments = []
<ide> ```
<ide>
<del>Now you can see that the `@comments` relationship was loaded and @recent_comments defined because the line was executed.
<add>Now you can see that the `@comments` relationship was loaded and
<add>`@recent_comments` defined because the line was executed.
<ide>
<del>If you want to go deeper into the stack trace you can move single `steps`, through your calling methods and into Rails code. This is one of the best ways to find bugs in your code, or perhaps in Ruby or Rails.
<add>If you want to go deeper into the stack trace you can move single steps
<add>through your calling methods and into Rails code. This is one of the best ways
<add>to find bugs in your code, or perhaps in Ruby or Rails.
<ide>
<ide> ### Breakpoints
<ide>
<del>A breakpoint makes your application stop whenever a certain point in the program is reached. The debugger shell is invoked in that line.
<add>A breakpoint makes your application stop whenever a certain point in the program
<add>is reached. The debugger shell is invoked in that line.
<ide>
<del>You can add breakpoints dynamically with the command `break` (or just `b`). There are 3 possible ways of adding breakpoints manually:
<add>You can add breakpoints dynamically with the command `break` (or just `b`).
<add>There are 3 possible ways of adding breakpoints manually:
<ide>
<ide> * `break line`: set breakpoint in the _line_ in the current source file.
<del>* `break file:line [if expression]`: set breakpoint in the _line_ number inside the _file_. If an _expression_ is given it must evaluated to _true_ to fire up the debugger.
<del>* `break class(.|\#)method [if expression]`: set breakpoint in _method_ (. and \# for class and instance method respectively) defined in _class_. The _expression_ works the same way as with file:line.
<add>* `break file:line [if expression]`: set breakpoint in the _line_ number inside
<add>the _file_. If an _expression_ is given it must evaluated to _true_ to fire up
<add>the debugger.
<add>* `break class(.|\#)method [if expression]`: set breakpoint in _method_ (. and
<add>\# for class and instance method respectively) defined in _class_. The
<add>_expression_ works the same way as with file:line.
<add>
<ide>
<ide> ```
<del>(rdb:5) break 10
<add>(byebug:5) break 10
<ide> Breakpoint 1 file /PathTo/project/vendor/rails/actionpack/lib/action_controller/filters.rb, line 10
<ide> ```
<ide>
<del>Use `info breakpoints _n_` or `info break _n_` to list breakpoints. If you supply a number, it lists that breakpoint. Otherwise it lists all breakpoints.
<add>Use `info breakpoints _n_` or `info break _n_` to list breakpoints. If you
<add>supply a number, it lists that breakpoint. Otherwise it lists all breakpoints.
<ide>
<ide> ```
<del>(rdb:5) info breakpoints
<add>(byebug:5) info breakpoints
<ide> Num Enb What
<ide> 1 y at filters.rb:10
<ide> ```
<ide>
<del>To delete breakpoints: use the command `delete _n_` to remove the breakpoint number _n_. If no number is specified, it deletes all breakpoints that are currently active..
<add>To delete breakpoints: use the command `delete _n_` to remove the breakpoint
<add>number _n_. If no number is specified, it deletes all breakpoints that are
<add>currently active.
<ide>
<ide> ```
<del>(rdb:5) delete 1
<del>(rdb:5) info breakpoints
<add>(byebug:5) delete 1
<add>(byebug:5) info breakpoints
<ide> No breakpoints.
<ide> ```
<ide>
<ide> You can also enable or disable breakpoints:
<ide>
<del>* `enable breakpoints`: allow a list _breakpoints_ or all of them if no list is specified, to stop your program. This is the default state when you create a breakpoint.
<add>* `enable breakpoints`: allow a list _breakpoints_ or all of them if no list is
<add>specified, to stop your program. This is the default state when you create a
<add>breakpoint.
<ide> * `disable breakpoints`: the _breakpoints_ will have no effect on your program.
<ide>
<ide> ### Catching Exceptions
<ide>
<del>The command `catch exception-name` (or just `cat exception-name`) can be used to intercept an exception of type _exception-name_ when there would otherwise be is no handler for it.
<add>The command `catch exception-name` (or just `cat exception-name`) can be used to
<add>intercept an exception of type _exception-name_ when there would otherwise be no
<add>handler for it.
<ide>
<ide> To list all active catchpoints use `catch`.
<ide>
<ide> ### Resuming Execution
<ide>
<del>There are two ways to resume execution of an application that is stopped in the debugger:
<del>
<del>* `continue` [line-specification] \(or `c`): resume program execution, at the address where your script last stopped; any breakpoints set at that address are bypassed. The optional argument line-specification allows you to specify a line number to set a one-time breakpoint which is deleted when that breakpoint is reached.
<del>* `finish` [frame-number] \(or `fin`): execute until the selected stack frame returns. If no frame number is given, the application will run until the currently selected frame returns. The currently selected frame starts out the most-recent frame or 0 if no frame positioning (e.g up, down or frame) has been performed. If a frame number is given it will run until the specified frame returns.
<add>There are two ways to resume execution of an application that is stopped in the
<add>debugger:
<add>
<add>* `continue` [line-specification] \(or `c`): resume program execution, at the
<add>address where your script last stopped; any breakpoints set at that address are
<add>bypassed. The optional argument line-specification allows you to specify a line
<add>number to set a one-time breakpoint which is deleted when that breakpoint is
<add>reached.
<add>* `finish` [frame-number] \(or `fin`): execute until the selected stack frame
<add>returns. If no frame number is given, the application will run until the
<add>currently selected frame returns. The currently selected frame starts out the
<add>most-recent frame or 0 if no frame positioning (e.g up, down or frame) has been
<add>performed. If a frame number is given it will run until the specified frame
<add>returns.
<ide>
<ide> ### Editing
<ide>
<ide> Two commands allow you to open code from the debugger into an editor:
<ide>
<del>* `edit [file:line]`: edit _file_ using the editor specified by the EDITOR environment variable. A specific _line_ can also be given.
<del>* `tmate _n_` (abbreviated `tm`): open the current file in TextMate. It uses n-th frame if _n_ is specified.
<add>* `edit [file:line]`: edit _file_ using the editor specified by the EDITOR
<add>environment variable. A specific _line_ can also be given.
<ide>
<ide> ### Quitting
<ide>
<del>To exit the debugger, use the `quit` command (abbreviated `q`), or its alias `exit`.
<add>To exit the debugger, use the `quit` command (abbreviated `q`), or its alias
<add>`exit`.
<ide>
<del>A simple quit tries to terminate all threads in effect. Therefore your server will be stopped and you will have to start it again.
<add>A simple quit tries to terminate all threads in effect. Therefore your server
<add>will be stopped and you will have to start it again.
<ide>
<ide> ### Settings
<ide>
<del>The `debugger` gem can automatically show the code you're stepping through and reload it when you change it in an editor. Here are a few of the available options:
<del>
<del>* `set reload`: Reload source code when changed.
<del>* `set autolist`: Execute `list` command on every breakpoint.
<del>* `set listsize _n_`: Set number of source lines to list by default to _n_.
<del>* `set forcestep`: Make sure the `next` and `step` commands always move to a new line
<add>`byebug` has a few available options to tweak its behaviour:
<ide>
<del>You can see the full list by using `help set`. Use `help set _subcommand_` to learn about a particular `set` command.
<add>* `set autoreload`: Reload source code when changed (default: true).
<add>* `set autolist`: Execute `list` command on every breakpoint (default: true).
<add>* `set listsize _n_`: Set number of source lines to list by default to _n_
<add>(default: 10)
<add>* `set forcestep`: Make sure the `next` and `step` commands always move to a new
<add>line.
<ide>
<del>TIP: You can save these settings in an `.rdebugrc` file in your home directory. The debugger reads these global settings when it starts.
<add>You can see the full list by using `help set`. Use `help set _subcommand_` to
<add>learn about a particular `set` command.
<ide>
<del>Here's a good start for an `.rdebugrc`:
<add>TIP: You can save these settings in an `.byebugrc` file in your home directory.
<add>The debugger reads these global settings when it starts. For example:
<ide>
<ide> ```bash
<del>set autolist
<ide> set forcestep
<ide> set listsize 25
<ide> ```
<ide>
<ide> Debugging Memory Leaks
<ide> ----------------------
<ide>
<del>A Ruby application (on Rails or not), can leak memory - either in the Ruby code or at the C code level.
<add>A Ruby application (on Rails or not), can leak memory - either in the Ruby code
<add>or at the C code level.
<ide>
<del>In this section, you will learn how to find and fix such leaks by using tool such as Valgrind.
<add>In this section, you will learn how to find and fix such leaks by using tool
<add>such as Valgrind.
<ide>
<ide> ### Valgrind
<ide>
<del>[Valgrind](http://valgrind.org/) is a Linux-only application for detecting C-based memory leaks and race conditions.
<add>[Valgrind](http://valgrind.org/) is a Linux-only application for detecting
<add>C-based memory leaks and race conditions.
<ide>
<del>There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. For example, if a C extension in the interpreter calls `malloc()` but doesn't properly call `free()`, this memory won't be available until the app terminates.
<add>There are Valgrind tools that can automatically detect many memory management
<add>and threading bugs, and profile your programs in detail. For example, if a C
<add>extension in the interpreter calls `malloc()` but doesn't properly call
<add>`free()`, this memory won't be available until the app terminates.
<ide>
<del>For further information on how to install Valgrind and use with Ruby, refer to [Valgrind and Ruby](http://blog.evanweaver.com/articles/2008/02/05/valgrind-and-ruby/) by Evan Weaver.
<add>For further information on how to install Valgrind and use with Ruby, refer to
<add>[Valgrind and Ruby](http://blog.evanweaver.com/articles/2008/02/05/valgrind-and-ruby/)
<add>by Evan Weaver.
<ide>
<ide> Plugins for Debugging
<ide> ---------------------
<ide>
<del>There are some Rails plugins to help you to find errors and debug your application. Here is a list of useful plugins for debugging:
<del>
<del>* [Footnotes](https://github.com/josevalim/rails-footnotes) Every Rails page has footnotes that give request information and link back to your source via TextMate.
<del>* [Query Trace](https://github.com/ntalbott/query_trace/tree/master) Adds query origin tracing to your logs.
<del>* [Query Reviewer](https://github.com/nesquena/query_reviewer) This rails plugin not only runs "EXPLAIN" before each of your select queries in development, but provides a small DIV in the rendered output of each page with the summary of warnings for each query that it analyzed.
<del>* [Exception Notifier](https://github.com/smartinez87/exception_notification/tree/master) Provides a mailer object and a default set of templates for sending email notifications when errors occur in a Rails application.
<del>* [Better Errors](https://github.com/charliesome/better_errors) Replaces the standard Rails error page with a new one containing more contextual information, like source code and variable inspection.
<del>* [RailsPanel](https://github.com/dejan/rails_panel) Chrome extension for Rails development that will end your tailing of development.log. Have all information about your Rails app requests in the browser - in the Developer Tools panel. Provides insight to db/rendering/total times, parameter list, rendered views and more.
<add>There are some Rails plugins to help you to find errors and debug your
<add>application. Here is a list of useful plugins for debugging:
<add>
<add>* [Footnotes](https://github.com/josevalim/rails-footnotes) Every Rails page has
<add>footnotes that give request information and link back to your source via
<add>TextMate.
<add>* [Query Trace](https://github.com/ntalbott/query_trace/tree/master) Adds query
<add>origin tracing to your logs.
<add>* [Query Reviewer](https://github.com/nesquena/query_reviewer) This rails plugin
<add>not only runs "EXPLAIN" before each of your select queries in development, but
<add>provides a small DIV in the rendered output of each page with the summary of
<add>warnings for each query that it analyzed.
<add>* [Exception Notifier](https://github.com/smartinez87/exception_notification/tree/master)
<add>Provides a mailer object and a default set of templates for sending email
<add>notifications when errors occur in a Rails application.
<add>* [Better Errors](https://github.com/charliesome/better_errors) Replaces the
<add>standard Rails error page with a new one containing more contextual information,
<add>like source code and variable inspection.
<add>* [RailsPanel](https://github.com/dejan/rails_panel) Chrome extension for Rails
<add>development that will end your tailing of development.log. Have all information
<add>about your Rails app requests in the browser - in the Developer Tools panel.
<add>Provides insight to db/rendering/total times, parameter list, rendered views and
<add>more.
<ide>
<ide> References
<ide> ----------
<ide>
<ide> * [ruby-debug Homepage](http://bashdb.sourceforge.net/ruby-debug/home-page.html)
<ide> * [debugger Homepage](https://github.com/cldwalker/debugger)
<add>* [byebug Homepage](https://github.com/deivid-rodriguez/byebug)
<ide> * [Article: Debugging a Rails application with ruby-debug](http://www.sitepoint.com/debug-rails-app-ruby-debug/)
<ide> * [Ryan Bates' debugging ruby (revised) screencast](http://railscasts.com/episodes/54-debugging-ruby-revised)
<ide> * [Ryan Bates' stack trace screencast](http://railscasts.com/episodes/24-the-stack-trace) | 1 |
Ruby | Ruby | remove array.wrap calls in activerecord | 2958a1e14e1636ae84d3580f4c7a5a7baeab2b8b | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> def initialize(association)
<ide>
<ide> def scope
<ide> scope = klass.unscoped
<del> scope = scope.extending(*Array.wrap(options[:extend]))
<add> scope = scope.extending(*Array(options[:extend]))
<ide>
<ide> # It's okay to just apply all these like this. The options will only be present if the
<ide> # association supports that option; this is enforced by the association builder.
<ide><path>activerecord/lib/active_record/associations/builder/collection_association.rb
<ide> def writable?
<ide> private
<ide>
<ide> def wrap_block_extension
<del> options[:extend] = Array.wrap(options[:extend])
<add> options[:extend] = Array(options[:extend])
<ide>
<ide> if block_extension
<ide> silence_warnings do
<ide> def define_callback(callback_name)
<ide>
<ide> # TODO : why do i need method_defined? I think its because of the inheritance chain
<ide> model.class_attribute full_callback_name.to_sym unless model.method_defined?(full_callback_name)
<del> model.send("#{full_callback_name}=", Array.wrap(options[callback_name.to_sym]))
<add> model.send("#{full_callback_name}=", Array(options[callback_name.to_sym]))
<ide> end
<ide>
<ide> def define_readers
<ide><path>activerecord/lib/active_record/associations/collection_association.rb
<del>require 'active_support/core_ext/array/wrap'
<del>
<ide> module ActiveRecord
<ide> module Associations
<ide> # = Active Record Association Collection
<ide> def ids_reader
<ide> # Implements the ids writer method, e.g. foo.item_ids= for Foo.has_many :items
<ide> def ids_writer(ids)
<ide> pk_column = reflection.primary_key_column
<del> ids = Array.wrap(ids).reject { |id| id.blank? }
<add> ids = Array(ids).reject { |id| id.blank? }
<ide> ids.map! { |i| pk_column.type_cast(i) }
<ide> replace(klass.find(ids).index_by { |r| r.id }.values_at(*ids))
<ide> end
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy # :nodoc:
<ide>
<ide> def initialize(association)
<ide> @association = association
<del> Array.wrap(association.options[:extend]).each { |ext| proxy_extend(ext) }
<add> Array(association.options[:extend]).each { |ext| proxy_extend(ext) }
<ide> end
<ide>
<ide> alias_method :new, :build
<ide><path>activerecord/lib/active_record/autosave_association.rb
<del>require 'active_support/core_ext/array/wrap'
<del>
<ide> module ActiveRecord
<ide> # = Active Record Autosave Association
<ide> #
<ide><path>activerecord/lib/active_record/callbacks.rb
<del>require 'active_support/core_ext/array/wrap'
<del>
<ide> module ActiveRecord
<ide> # = Active Record Callbacks
<ide> #
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<del>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/deprecation/reporting'
<ide>
<ide> module ActiveRecord
<ide> def table_exists?(table_name)
<ide> # # Check an index with a custom name exists
<ide> # index_exists?(:suppliers, :company_id, :name => "idx_company_id"
<ide> def index_exists?(table_name, column_name, options = {})
<del> column_names = Array.wrap(column_name)
<add> column_names = Array(column_name)
<ide> index_name = options.key?(:name) ? options[:name].to_s : index_name(table_name, :column => column_names)
<ide> if options[:unique]
<ide> indexes(table_name).any?{ |i| i.unique && i.name == index_name }
<ide> def rename_index(table_name, old_name, new_name)
<ide> def index_name(table_name, options) #:nodoc:
<ide> if Hash === options # legacy support
<ide> if options[:column]
<del> "index_#{table_name}_on_#{Array.wrap(options[:column]) * '_and_'}"
<add> "index_#{table_name}_on_#{Array(options[:column]) * '_and_'}"
<ide> elsif options[:name]
<ide> options[:name]
<ide> else
<ide> def initialize_schema_migrations_table
<ide> end
<ide>
<ide> def assume_migrated_upto_version(version, migrations_paths = ActiveRecord::Migrator.migrations_paths)
<del> migrations_paths = Array.wrap(migrations_paths)
<add> migrations_paths = Array(migrations_paths)
<ide> version = version.to_i
<ide> sm_table = quote_table_name(ActiveRecord::Migrator.schema_migrations_table_name)
<ide>
<ide> def options_include_default?(options)
<ide> end
<ide>
<ide> def add_index_options(table_name, column_name, options = {})
<del> column_names = Array.wrap(column_name)
<add> column_names = Array(column_name)
<ide> index_name = index_name(table_name, :column => column_names)
<ide>
<ide> if Hash === options # legacy support, since this param was a string
<ide><path>activerecord/lib/active_record/fixtures.rb
<ide> require 'yaml'
<ide> require 'zlib'
<ide> require 'active_support/dependencies'
<del>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/core_ext/object/blank'
<ide> require 'active_support/ordered_hash'
<ide> require 'active_record/fixtures/file'
<ide> def require_fixture_classes(fixture_names = nil)
<ide> end
<ide>
<ide> def setup_fixture_accessors(fixture_names = nil)
<del> fixture_names = Array.wrap(fixture_names || fixture_table_names)
<add> fixture_names = Array(fixture_names || fixture_table_names)
<ide> methods = Module.new do
<ide> fixture_names.each do |fixture_name|
<ide> fixture_name = fixture_name.to_s
<ide><path>activerecord/lib/active_record/migration.rb
<ide> require "active_support/core_ext/module/delegation"
<ide> require "active_support/core_ext/class/attribute_accessors"
<del>require "active_support/core_ext/array/wrap"
<ide>
<ide> module ActiveRecord
<ide> # Exception that can be raised to stop migrations from going backwards.
<ide> def proper_table_name(name)
<ide> def migrations_paths
<ide> @migrations_paths ||= ['db/migrate']
<ide> # just to not break things if someone uses: migration_path = some_string
<del> Array.wrap(@migrations_paths)
<add> Array(@migrations_paths)
<ide> end
<ide>
<ide> def migrations_path
<ide> migrations_paths.first
<ide> end
<ide>
<ide> def migrations(paths, subdirectories = true)
<del> paths = Array.wrap(paths)
<add> paths = Array(paths)
<ide>
<ide> glob = subdirectories ? "**/" : ""
<ide> files = Dir[*paths.map { |p| "#{p}/#{glob}[0-9]*_*.rb" }]
<ide><path>activerecord/lib/active_record/serialization.rb
<ide> module Serialization
<ide> def serializable_hash(options = nil)
<ide> options = options.try(:clone) || {}
<ide>
<del> options[:except] = Array.wrap(options[:except]).map { |n| n.to_s }
<del> options[:except] |= Array.wrap(self.class.inheritance_column)
<add> options[:except] = Array(options[:except]).map { |n| n.to_s }
<add> options[:except] |= Array(self.class.inheritance_column)
<ide>
<ide> super(options)
<ide> end
<ide><path>activerecord/lib/active_record/serializers/xml_serializer.rb
<del>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/core_ext/hash/conversions'
<ide>
<ide> module ActiveRecord #:nodoc:
<ide> def to_xml(options = {}, &block)
<ide> class XmlSerializer < ActiveModel::Serializers::Xml::Serializer #:nodoc:
<ide> def initialize(*args)
<ide> super
<del> options[:except] = Array.wrap(options[:except]) | Array.wrap(@serializable.class.inheritance_column)
<add> options[:except] = Array(options[:except]) | Array(@serializable.class.inheritance_column)
<ide> end
<ide>
<ide> class Attribute < ActiveModel::Serializers::Xml::Serializer::Attribute #:nodoc:
<ide><path>activerecord/lib/active_record/transactions.rb
<ide> def transaction(options = {}, &block)
<ide> def after_commit(*args, &block)
<ide> options = args.last
<ide> if options.is_a?(Hash) && options[:on]
<del> options[:if] = Array.wrap(options[:if])
<add> options[:if] = Array(options[:if])
<ide> options[:if] << "transaction_include_action?(:#{options[:on]})"
<ide> end
<ide> set_callback(:commit, :after, *args, &block)
<ide> def after_commit(*args, &block)
<ide> def after_rollback(*args, &block)
<ide> options = args.last
<ide> if options.is_a?(Hash) && options[:on]
<del> options[:if] = Array.wrap(options[:if])
<add> options[:if] = Array(options[:if])
<ide> options[:if] << "transaction_include_action?(:#{options[:on]})"
<ide> end
<ide> set_callback(:rollback, :after, *args, &block)
<ide><path>activerecord/lib/active_record/validations/uniqueness.rb
<del>require 'active_support/core_ext/array/wrap'
<del>
<ide> module ActiveRecord
<ide> module Validations
<ide> class UniquenessValidator < ActiveModel::EachValidator
<ide> def validate_each(record, attribute, value)
<ide> relation = build_relation(finder_class, table, attribute, value)
<ide> relation = relation.and(table[finder_class.primary_key.to_sym].not_eq(record.send(:id))) if record.persisted?
<ide>
<del> Array.wrap(options[:scope]).each do |scope_item|
<add> Array(options[:scope]).each do |scope_item|
<ide> scope_value = record.send(scope_item)
<ide> relation = relation.and(table[scope_item].eq(scope_value))
<ide> end | 13 |
Javascript | Javascript | increase coverage for trace_events.js | 07ba2eb675a4b58f9c43dc2d209d96b0bec2baf3 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> // Tracing class respects inspect depth.
<ide> try {
<ide> const trace = require('trace_events').createTracing({ categories: ['fo'] });
<del> const actual = util.inspect({ trace }, { depth: 0 });
<del> assert.strictEqual(actual, '{ trace: [Tracing] }');
<add> const actualDepth0 = util.inspect({ trace }, { depth: 0 });
<add> assert.strictEqual(actualDepth0, '{ trace: [Tracing] }');
<add> const actualDepth1 = util.inspect({ trace }, { depth: 1 });
<add> assert.strictEqual(
<add> actualDepth1,
<add> "{ trace: Tracing { enabled: false, categories: 'fo' } }"
<add> );
<ide> } catch (err) {
<ide> if (err.code !== 'ERR_TRACE_EVENTS_UNAVAILABLE')
<ide> throw err; | 1 |
Java | Java | fix scrolling events for rn | ca834f96afcb99a7f1f4eec0a864f4f5b33a632b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java
<ide>
<ide> package com.facebook.react.uimanager;
<ide>
<del>import java.util.HashMap;
<del>import java.util.Map;
<del>
<del>import android.util.DisplayMetrics;
<ide> import android.view.accessibility.AccessibilityEvent;
<ide> import android.widget.ImageView;
<del>
<del>import com.facebook.react.bridge.Arguments;
<del>import com.facebook.react.bridge.WritableMap;
<ide> import com.facebook.react.common.MapBuilder;
<ide> import com.facebook.react.uimanager.events.TouchEventType;
<add>import java.util.Map;
<add>
<ide>
<ide> /**
<ide> * Constants exposed to JS from {@link UIManagerModule}.
<ide> }
<ide>
<ide> /* package */ static Map getDirectEventTypeConstants() {
<add> final String rn = "registrationName";
<ide> return MapBuilder.builder()
<del> .put("topContentSizeChange", MapBuilder.of("registrationName", "onContentSizeChange"))
<del> .put("topLayout", MapBuilder.of("registrationName", "onLayout"))
<del> .put("topLoadingError", MapBuilder.of("registrationName", "onLoadingError"))
<del> .put("topLoadingFinish", MapBuilder.of("registrationName", "onLoadingFinish"))
<del> .put("topLoadingStart", MapBuilder.of("registrationName", "onLoadingStart"))
<del> .put("topSelectionChange", MapBuilder.of("registrationName", "onSelectionChange"))
<del> .put("topMessage", MapBuilder.of("registrationName", "onMessage"))
<add> .put("topContentSizeChange", MapBuilder.of(rn, "onContentSizeChange"))
<add> .put("topLayout", MapBuilder.of(rn, "onLayout"))
<add> .put("topLoadingError", MapBuilder.of(rn, "onLoadingError"))
<add> .put("topLoadingFinish", MapBuilder.of(rn, "onLoadingFinish"))
<add> .put("topLoadingStart", MapBuilder.of(rn, "onLoadingStart"))
<add> .put("topSelectionChange", MapBuilder.of(rn, "onSelectionChange"))
<add> .put("topMessage", MapBuilder.of(rn, "onMessage"))
<add> // Scroll events are added as per task T22348735.
<add> // Subject for further improvement.
<add> .put("topScrollBeginDrag", MapBuilder.of(rn, "onScrollBeginDrag"))
<add> .put("topScrollEndDrag", MapBuilder.of(rn, "onScrollEndDrag"))
<add> .put("topScroll", MapBuilder.of(rn, "onScroll"))
<add> .put("topMomentumScrollBegin", MapBuilder.of(rn, "onMomentumScrollBegin"))
<add> .put("topMomentumScrollEnd", MapBuilder.of(rn, "onMomentumScrollEnd"))
<ide> .build();
<ide> }
<ide>
<ide> public static Map<String, Object> getConstants() {
<del> HashMap<String, Object> constants = new HashMap<String, Object>();
<add> Map<String, Object> constants = MapBuilder.newHashMap();
<ide> constants.put(
<ide> "UIView",
<ide> MapBuilder.of( | 1 |
PHP | PHP | remove renderable from component | 9cba528a36893789f88f7aff71cbf75ba6a56841 | <ide><path>src/Illuminate/View/Component.php
<ide>
<ide> use Closure;
<ide> use Illuminate\Container\Container;
<del>use Illuminate\Contracts\Support\Renderable;
<ide> use Illuminate\Support\Facades\View;
<ide> use Illuminate\Support\Str;
<ide> use ReflectionClass;
<ide> use ReflectionMethod;
<ide> use ReflectionProperty;
<ide>
<del>abstract class Component implements Renderable
<add>abstract class Component
<ide> {
<ide> /**
<ide> * That properties / methods that should not be exposed to the component. | 1 |
Python | Python | fix tatoeba skip | eb6313e823c7979f1f174d1e59a3dca32064a84a | <ide><path>examples/seq2seq/test_tatoeba_conversion.py
<ide> from transformers.testing_utils import slow
<ide>
<ide>
<del>@unittest.skipUnless(os.path.exists(DEFAULT_REPO))
<add>@unittest.skipUnless(os.path.exists(DEFAULT_REPO), "Tatoeba directory does not exist.")
<ide> class TatoebaConversionTester(unittest.TestCase):
<ide> @cached_property
<ide> def resolver(self): | 1 |
Ruby | Ruby | kick different instrumentation method | 804f5b3c2af90b69a51209c56739a077f3fb632b | <ide><path>actionview/lib/action_view/template.rb
<ide> def supports_streaming?
<ide> # we use a bang in this instrumentation because you don't want to
<ide> # consume this in production. This is only slow if it's being listened to.
<ide> def render(view, locals, buffer=nil, &block)
<del> instrument("!render_template".freeze) do
<add> instrument_render_template do
<ide> compile!(view)
<ide> view.send(method_name, locals, buffer, &block)
<ide> end
<ide> def identifier_method_name #:nodoc:
<ide> end
<ide>
<ide> def instrument(action, &block)
<del> payload = { virtual_path: @virtual_path, identifier: @identifier }
<del> case action
<del> when "!render_template"
<del> ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, payload, &block)
<del> else
<del> ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, payload, &block)
<del> end
<add> ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, instrument_payload, &block)
<add> end
<add>
<add> private
<add>
<add> def instrument_render_template(&block)
<add> ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, instrument_payload, &block)
<add> end
<add>
<add> def instrument_payload
<add> { virtual_path: @virtual_path, identifier: @identifier }
<ide> end
<ide> end
<ide> end | 1 |
Javascript | Javascript | remove unused attrnode | 7d342b6682b95692d2d93e7a8a787dc3d6a1d655 | <ide><path>packages/ember-views/lib/attr_nodes/attr_node.js
<del>/**
<del>@module ember
<del>@submodule ember-htmlbars
<del>*/
<del>
<del>import Ember from 'ember-metal/core';
<del>import {
<del> read,
<del> subscribe,
<del> unsubscribe
<del>} from "ember-metal/streams/utils";
<del>import run from "ember-metal/run_loop";
<del>
<del>export default function AttrNode(attrName, attrValue) {
<del> this.init(attrName, attrValue);
<del>}
<del>
<del>export var styleWarning = 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' +
<del> 'please ensure that values being bound are properly escaped. For more information, ' +
<del> 'including how to disable this warning, see ' +
<del> 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes.';
<del>
<del>AttrNode.prototype.init = function init(attrName, simpleAttrValue) {
<del> this.isAttrNode = true;
<del> this.isView = true;
<del>
<del> this.tagName = '';
<del> this.isVirtual = true;
<del>
<del> this.attrName = attrName;
<del> this.attrValue = simpleAttrValue;
<del> this.isDirty = true;
<del> this.isDestroying = false;
<del> this.lastValue = null;
<del> this.hasRenderedInitially = false;
<del>
<del> subscribe(this.attrValue, this.rerender, this);
<del>};
<del>
<del>AttrNode.prototype.renderIfDirty = function renderIfDirty() {
<del> if (this.isDirty && !this.isDestroying) {
<del> var value = read(this.attrValue);
<del> if (value !== this.lastValue) {
<del> this._renderer.renderTree(this, this._parentView);
<del> } else {
<del> this.isDirty = false;
<del> }
<del> }
<del>};
<del>
<del>AttrNode.prototype.render = function render(buffer) {
<del> this.isDirty = false;
<del> if (this.isDestroying) {
<del> return;
<del> }
<del>
<del> var value = read(this.attrValue);
<del>
<del> if (this.attrName === 'value' && (value === null || value === undefined)) {
<del> value = '';
<del> }
<del>
<del> if (value === undefined) {
<del> value = null;
<del> }
<del>
<del>
<del> // If user is typing in a value we don't want to rerender and loose cursor position.
<del> if (this.hasRenderedInitially && this.attrName === 'value' && this._morph.element.value === value) {
<del> this.lastValue = value;
<del> return;
<del> }
<del>
<del> if (this.lastValue !== null || value !== null) {
<del> this._deprecateEscapedStyle(value);
<del> this._morph.setContent(value);
<del> this.lastValue = value;
<del> this.hasRenderedInitially = true;
<del> }
<del>};
<del>
<del>AttrNode.prototype._deprecateEscapedStyle = function AttrNode_deprecateEscapedStyle(value) {
<del> Ember.warn(
<del> styleWarning,
<del> (function(name, value, escaped) {
<del> // SafeString
<del> if (value && value.toHTML) {
<del> return true;
<del> }
<del>
<del> if (name !== 'style') {
<del> return true;
<del> }
<del>
<del> return !escaped;
<del> }(this.attrName, value, this._morph.escaped))
<del> );
<del>};
<del>
<del>AttrNode.prototype.rerender = function AttrNode_render() {
<del> this.isDirty = true;
<del> run.schedule('render', this, this.renderIfDirty);
<del>};
<del>
<del>AttrNode.prototype.destroy = function AttrNode_destroy() {
<del> this.isDestroying = true;
<del> this.isDirty = false;
<del>
<del> unsubscribe(this.attrValue, this.rerender, this);
<del>
<del> if (!this.removedFromDOM && this._renderer) {
<del> this._renderer.remove(this, true);
<del> }
<del>};
<del>
<del>AttrNode.prototype.propertyDidChange = function render() {
<del>};
<del>
<del>AttrNode.prototype._notifyBecameHidden = function render() {
<del>};
<del>
<del>AttrNode.prototype._notifyBecameVisible = function render() {
<del>}; | 1 |
Text | Text | move use of named routes to beggining of the guide | 33ce495884eaeedc9445f8a08eb606af6de972a9 | <ide><path>guides/source/getting_started.md
<ide> Now that you've seen how to create a controller, an action and a view, let's cre
<ide>
<ide> In the Blog application, you will now create a new _resource_. A resource is the term used for a collection of similar objects, such as posts, people or animals. You can create, read, update and destroy items for a resource and these operations are referred to as _CRUD_ operations.
<ide>
<del>In the next section, you will add the ability to create new posts in your application and be able to view them. This is the "C" and the "R" from CRUD: creation and reading. The form for doing this will look like this:
<add>Rails provides a `resources` method which can be used to declare a
<add>standard REST resource. Here's how `config/routes.rb` will look like.
<ide>
<del>
<add>```ruby
<add>Blog::Application.routes.draw do
<ide>
<del>It will look a little basic for now, but that's ok. We'll look at improving the styling for it afterwards.
<add> resources :posts
<ide>
<del>### Laying down the ground work
<add> root to: "welcome#index"
<add>end
<add>```
<ide>
<del>The first thing that you are going to need to create a new post within the application is a place to do that. A great place for that would be at `/posts/new`. If you attempt to navigate to that now — by visiting <http://localhost:3000/posts/new> — Rails will give you a routing error:
<add>If you run `rake routes`, you'll see that all the routes for the
<add>standard RESTful actions.
<ide>
<del>
<add>```bash
<add>$ rake routes
<add> posts GET /posts(.:format) posts#index
<add> POST /posts(.:format) posts#create
<add> new_post GET /posts/new(.:format) posts#new
<add>edit_post GET /posts/:id/edit(.:format) posts#edit
<add> post GET /posts/:id(.:format) posts#show
<add> PATCH /posts/:id(.:format) posts#update
<add> PUT /posts/:id(.:format) posts#update
<add> DELETE /posts/:id(.:format) posts#destroy
<add> root / welcome#index
<add>```
<ide>
<del>This is because there is nowhere inside the routes for the application — defined inside `config/routes.rb` — that defines this route. By default, Rails has no routes configured at all, besides the root route you defined earlier, and so you must define your routes as you need them.
<add>In the next section, you will add the ability to create new posts in your application and be able to view them. This is the "C" and the "R" from CRUD: creation and reading. The form for doing this will look like this:
<ide>
<del> To do this, you're going to need to create a route inside `config/routes.rb` file, on a new line between the `do` and the `end` for the `draw` method:
<add>
<ide>
<del>```ruby
<del>get "posts/new"
<del>```
<add>It will look a little basic for now, but that's ok. We'll look at improving the styling for it afterwards.
<ide>
<del>This route is a super-simple route: it defines a new route that only responds to `GET` requests, and that the route is at `posts/new`. But how does it know where to go without the use of the `:to` option? Well, Rails uses a sensible default here: Rails will assume that you want this route to go to the new action inside the posts controller.
<add>### Laying down the ground work
<ide>
<del>With the route defined, requests can now be made to `/posts/new` in the application. Navigate to <http://localhost:3000/posts/new> and you'll see another routing error:
<add>The first thing that you are going to need to create a new post within the application is a place to do that. A great place for that would be at `/posts/new`. With the route already defined, requests can now be made to `/posts/new` in the application. Navigate to <http://localhost:3000/posts/new> and you'll see a routing error:
<ide>
<ide> 
<ide>
<ide> generated the application. Without this file, the confirmation dialog box wouldn
<ide> 
<ide>
<ide> Congratulations, you can now create, show, list, update and destroy
<del>posts. In the next section will see how Rails can aid us when creating
<del>REST applications, and how we can refactor our Blog app to take
<del>advantage of it.
<del>
<del>### Going Deeper into REST
<del>
<del>We've now covered all the CRUD actions of a REST app. We did so by
<del>declaring separate routes with the appropriate verbs into
<del>`config/routes.rb`. Here's how that file looks so far:
<del>
<del>```ruby
<del>get "posts" => "posts#index"
<del>get "posts/new"
<del>post "posts" => "posts#create"
<del>get "posts/:id" => "posts#show", as: :post
<del>get "posts/:id/edit" => "posts#edit"
<del>patch "posts/:id" => "posts#update"
<del>delete "posts/:id" => "posts#destroy"
<del>```
<del>
<del>That's a lot to type for covering a single **resource**. Fortunately,
<del>Rails provides a `resources` method which can be used to declare a
<del>standard REST resource. Here's how `config/routes.rb` looks after the
<del>cleanup:
<del>
<del>```ruby
<del>Blog::Application.routes.draw do
<del>
<del> resources :posts
<del>
<del> root to: "welcome#index"
<del>end
<del>```
<del>
<del>If you run `rake routes`, you'll see that all the routes that we
<del>declared before are still available:
<del>
<del>```bash
<del>$ rake routes
<del> posts GET /posts(.:format) posts#index
<del> POST /posts(.:format) posts#create
<del> new_post GET /posts/new(.:format) posts#new
<del>edit_post GET /posts/:id/edit(.:format) posts#edit
<del> post GET /posts/:id(.:format) posts#show
<del> PATCH /posts/:id(.:format) posts#update
<del> PUT /posts/:id(.:format) posts#update
<del> DELETE /posts/:id(.:format) posts#destroy
<del> root / welcome#index
<del>```
<del>
<del>Also, if you go through the motions of creating, updating and deleting
<del>posts the app still works as before.
<add>posts.
<ide>
<ide> TIP: In general, Rails encourages the use of resources objects in place
<del>of declaring routes manually. It was only done in this guide as a learning
<del>exercise. For more information about routing, see
<add>of declaring routes manually.
<add>For more information about routing, see
<ide> [Rails Routing from the Outside In](routing.html).
<ide>
<ide> Adding a Second Model | 1 |
Javascript | Javascript | fix warnings in reactcomponentlifecycle test | 9e9d8dbe76db93db6176d041d186c10480f4d63c | <ide><path>src/core/__tests__/ReactComponentLifeCycle-test.js
<ide> describe('ReactComponentLifeCycle', function() {
<ide> var PropsUpdaterInOnDOMReady = React.createClass({
<ide> componentDidMount: function() {
<ide> this.refs.theSimpleComponent.setProps({
<del> value: this.props.valueToUseInOnDOMReady
<add> valueToUseInitially: this.props.valueToUseInOnDOMReady
<ide> });
<ide> },
<ide> render: function() {
<ide> return (
<del> <input
<del> value={this.props.valueToUseInitially}
<del> ref="theSimpleComponent">
<del> </input>
<add> <div
<add> className={this.props.valueToUseInitially}
<add> ref="theSimpleComponent"
<add> />
<ide> );
<ide> }
<ide> });
<ide> describe('ReactComponentLifeCycle', function() {
<ide> function() {
<ide> var PropsToUpdate = React.createClass({
<ide> render: function() {
<del> return (
<del> <input
<del> value={this.props.value}
<del> ref="theSimpleComponent">
<del> </input>
<del> );
<add> return <div className={this.props.value} ref="theSimpleComponent" />;
<ide> }
<ide> });
<ide> var instance = <PropsToUpdate value="hello" />; | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.