From 5b2959bda481db183ffae36574753ece9ca275ae Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 22 Apr 2013 16:29:30 +1000 Subject: [PATCH] Moved KH and lnApp to GIT Submodules --- .gitmodules | 6 + includes/kohana | 1 + includes/kohana/.travis.yml | 24 - includes/kohana/LICENSE.md | 14 - includes/kohana/README.md | 19 - includes/kohana/composer.json | 5 - includes/kohana/composer.lock | 413 -- includes/kohana/composer.phar | Bin 628852 -> 0 bytes includes/kohana/install.php | 233 - includes/kohana/modules/auth/README.md | 13 - includes/kohana/modules/auth/classes/Auth.php | 3 - .../kohana/modules/auth/classes/Auth/File.php | 3 - .../modules/auth/classes/Kohana/Auth.php | 171 - .../modules/auth/classes/Kohana/Auth/File.php | 94 - includes/kohana/modules/auth/config/auth.php | 17 - .../kohana/modules/auth/config/userguide.php | 23 - .../kohana/modules/auth/guide/auth/config.md | 13 - .../modules/auth/guide/auth/driver/develop.md | 79 - .../modules/auth/guide/auth/driver/file.md | 19 - .../kohana/modules/auth/guide/auth/index.md | 19 - .../kohana/modules/auth/guide/auth/login.md | 62 - .../kohana/modules/auth/guide/auth/menu.md | 6 - includes/kohana/modules/cache/README.md | 59 - .../kohana/modules/cache/classes/Cache.php | 3 - .../modules/cache/classes/Cache/Apc.php | 3 - .../cache/classes/Cache/Arithmetic.php | 3 - .../modules/cache/classes/Cache/Exception.php | 3 - .../modules/cache/classes/Cache/File.php | 3 - .../cache/classes/Cache/GarbageCollect.php | 3 - .../modules/cache/classes/Cache/Memcache.php | 3 - .../cache/classes/Cache/MemcacheTag.php | 3 - .../modules/cache/classes/Cache/Sqlite.php | 3 - .../modules/cache/classes/Cache/Tagging.php | 3 - .../modules/cache/classes/Cache/Wincache.php | 3 - .../modules/cache/classes/HTTP/Cache.php | 3 - .../modules/cache/classes/Kohana/Cache.php | 300 -- .../cache/classes/Kohana/Cache/Apc.php | 166 - .../cache/classes/Kohana/Cache/Arithmetic.php | 39 - .../cache/classes/Kohana/Cache/Exception.php | 11 - .../cache/classes/Kohana/Cache/File.php | 466 -- .../classes/Kohana/Cache/GarbageCollect.php | 23 - .../cache/classes/Kohana/Cache/Memcache.php | 354 -- .../classes/Kohana/Cache/MemcacheTag.php | 78 - .../cache/classes/Kohana/Cache/Sqlite.php | 334 -- .../cache/classes/Kohana/Cache/Tagging.php | 41 - .../cache/classes/Kohana/Cache/Wincache.php | 140 - .../cache/classes/Kohana/HTTP/Cache.php | 503 -- .../kohana/modules/cache/config/cache.php | 70 - .../kohana/modules/cache/config/userguide.php | 23 - .../kohana/modules/cache/guide/cache.usage.md | 219 - .../modules/cache/guide/cache/config.md | 162 - .../modules/cache/guide/cache/examples.md | 0 .../kohana/modules/cache/guide/cache/index.md | 57 - .../kohana/modules/cache/guide/cache/menu.md | 3 - .../kohana/modules/cache/guide/cache/usage.md | 219 - .../tests/cache/CacheBasicMethodsTest.php | 299 -- .../modules/cache/tests/cache/CacheTest.php | 242 - .../modules/cache/tests/cache/FileTest.php | 98 - .../modules/cache/tests/cache/SqliteTest.php | 44 - .../cache/tests/cache/WincacheTest.php | 39 - .../cache/tests/cache/arithmetic/ApcTest.php | 75 - .../arithmetic/CacheArithmeticMethods.php | 173 - .../tests/cache/arithmetic/MemcacheTest.php | 103 - .../tests/cache/request/client/CacheTest.php | 265 -- .../kohana/modules/cache/tests/phpunit.xml | 19 - .../codebench/classes/Bench/ArrCallback.php | 57 - .../classes/Bench/AutoLinkEmails.php | 70 - .../codebench/classes/Bench/DateSpan.php | 186 - .../codebench/classes/Bench/ExplodeLimit.php | 34 - .../codebench/classes/Bench/GruberURL.php | 61 - .../codebench/classes/Bench/LtrimDigits.php | 28 - .../codebench/classes/Bench/MDDoBaseURL.php | 66 - .../codebench/classes/Bench/MDDoImageURL.php | 66 - .../classes/Bench/MDDoIncludeViews.php | 50 - .../classes/Bench/StripNullBytes.php | 37 - .../codebench/classes/Bench/Transliterate.php | 65 - .../codebench/classes/Bench/URLSite.php | 123 - .../codebench/classes/Bench/UserFuncArray.php | 58 - .../codebench/classes/Bench/ValidColor.php | 116 - .../codebench/classes/Bench/ValidURL.php | 105 - .../modules/codebench/classes/Codebench.php | 3 - .../classes/Controller/Codebench.php | 36 - .../codebench/classes/Kohana/Codebench.php | 217 - .../modules/codebench/config/codebench.php | 16 - .../modules/codebench/config/userguide.php | 23 - .../codebench/guide/codebench/index.md | 76 - .../modules/codebench/guide/codebench/menu.md | 1 - includes/kohana/modules/codebench/init.php | 8 - .../guide/codebench/codebench_screenshot1.png | Bin 15827 -> 0 bytes .../guide/codebench/codebench_screenshot2.png | Bin 13575 -> 0 bytes .../modules/codebench/views/codebench.php | 260 -- includes/kohana/modules/cron/README.markdown | 86 - includes/kohana/modules/cron/classes/Cron.php | 10 - .../modules/cron/classes/Kohana/Cron.php | 621 --- includes/kohana/modules/cron/config/cron.php | 28 - includes/kohana/modules/cron/run.php | 22 - .../kohana/modules/cron/tests/kohana/cron.php | 85 - .../database/classes/Config/Database.php | 12 - .../classes/Config/Database/Reader.php | 15 - .../classes/Config/Database/Writer.php | 15 - .../kohana/modules/database/classes/DB.php | 3 - .../modules/database/classes/Database.php | 3 - .../database/classes/Database/Exception.php | 3 - .../database/classes/Database/Expression.php | 3 - .../database/classes/Database/MySQL.php | 3 - .../classes/Database/MySQL/Result.php | 3 - .../modules/database/classes/Database/PDO.php | 3 - .../database/classes/Database/Query.php | 3 - .../classes/Database/Query/Builder.php | 3 - .../classes/Database/Query/Builder/Delete.php | 3 - .../classes/Database/Query/Builder/Insert.php | 3 - .../classes/Database/Query/Builder/Join.php | 3 - .../classes/Database/Query/Builder/Select.php | 3 - .../classes/Database/Query/Builder/Update.php | 3 - .../classes/Database/Query/Builder/Where.php | 3 - .../database/classes/Database/Result.php | 3 - .../classes/Database/Result/Cached.php | 3 - .../classes/Kohana/Config/Database.php | 15 - .../classes/Kohana/Config/Database/Reader.php | 66 - .../classes/Kohana/Config/Database/Writer.php | 110 - .../modules/database/classes/Kohana/DB.php | 139 - .../database/classes/Kohana/Database.php | 726 --- .../classes/Kohana/Database/Exception.php | 11 - .../classes/Kohana/Database/Expression.php | 138 - .../classes/Kohana/Database/MySQL.php | 443 -- .../classes/Kohana/Database/MySQL/Result.php | 71 - .../database/classes/Kohana/Database/PDO.php | 247 - .../classes/Kohana/Database/Query.php | 262 -- .../classes/Kohana/Database/Query/Builder.php | 248 - .../Kohana/Database/Query/Builder/Delete.php | 99 - .../Kohana/Database/Query/Builder/Insert.php | 181 - .../Kohana/Database/Query/Builder/Join.php | 149 - .../Kohana/Database/Query/Builder/Select.php | 446 -- .../Kohana/Database/Query/Builder/Update.php | 140 - .../Kohana/Database/Query/Builder/Where.php | 180 - .../classes/Kohana/Database/Result.php | 338 -- .../classes/Kohana/Database/Result/Cached.php | 51 - .../classes/Kohana/Model/Database.php | 63 - .../classes/Kohana/Session/Database.php | 239 - .../database/classes/Model/Database.php | 3 - .../database/classes/Session/Database.php | 3 - .../modules/database/config/database.php | 56 - .../modules/database/config/session.php | 27 - .../modules/database/config/userguide.php | 23 - .../modules/database/guide/database/config.md | 116 - .../database/guide/database/examples.md | 52 - .../modules/database/guide/database/index.md | 17 - .../modules/database/guide/database/menu.md | 7 - .../modules/database/guide/database/query.md | 5 - .../database/guide/database/query/builder.md | 251 - .../guide/database/query/parameterized.md | 67 - .../database/guide/database/results.md | 105 - includes/kohana/modules/image/README.markdown | 0 .../kohana/modules/image/classes/Image.php | 3 - .../kohana/modules/image/classes/Image/GD.php | 3 - .../modules/image/classes/Image/Imagick.php | 3 - .../modules/image/classes/Kohana/Image.php | 761 --- .../modules/image/classes/Kohana/Image/GD.php | 665 --- .../image/classes/Kohana/Image/Imagick.php | 334 -- .../kohana/modules/image/config/userguide.php | 23 - .../modules/image/guide/image/examples.md | 7 - .../image/guide/image/examples/crop.md | 141 - .../image/guide/image/examples/dynamic.md | 108 - .../image/guide/image/examples/upload.md | 139 - .../kohana/modules/image/guide/image/index.md | 21 - .../kohana/modules/image/guide/image/menu.md | 6 - .../kohana/modules/image/guide/image/using.md | 112 - .../modules/image/media/guide/image/Thumbs.db | Bin 19968 -> 0 bytes .../image/media/guide/image/crop_form.jpg | Bin 15262 -> 0 bytes .../image/media/guide/image/crop_orig.jpg | Bin 31360 -> 0 bytes .../image/media/guide/image/crop_result.jpg | Bin 15771 -> 0 bytes .../image/media/guide/image/dynamic-400.jpg | Bin 27609 -> 0 bytes .../image/media/guide/image/dynamic-600.jpg | Bin 45517 -> 0 bytes .../image/media/guide/image/upload_form.jpg | Bin 12478 -> 0 bytes .../image/media/guide/image/upload_result.jpg | Bin 18469 -> 0 bytes .../modules/image/tests/kohana/ImageTest.php | 36 - .../modules/image/tests/test_data/test_image | Bin 3455 -> 0 bytes .../kohana/modules/khemail/README.markdown | 39 - .../kohana/modules/khemail/classes/Email.php | 145 - .../kohana/modules/khemail/config/email.php | 29 - .../modules/khemail/vendor/swift/CHANGES | 61 - .../modules/khemail/vendor/swift/LICENSE | 165 - .../modules/khemail/vendor/swift/README | 30 - .../modules/khemail/vendor/swift/VERSION | 1 - .../khemail/vendor/swift/classes/Swift.php | 57 - .../vendor/swift/classes/Swift/Attachment.php | 75 - .../AbstractFilterableInputStream.php | 178 - .../Swift/ByteStream/ArrayByteStream.php | 190 - .../Swift/ByteStream/FileByteStream.php | 177 - .../swift/classes/Swift/CharacterReader.php | 60 - .../GenericFixedWidthReader.php | 96 - .../Swift/CharacterReader/UsAsciiReader.php | 83 - .../Swift/CharacterReader/Utf8Reader.php | 183 - .../classes/Swift/CharacterReaderFactory.php | 29 - .../SimpleCharacterReaderFactory.php | 119 - .../swift/classes/Swift/CharacterStream.php | 86 - .../CharacterStream/ArrayCharacterStream.php | 319 -- .../CharacterStream/NgCharacterStream.php | 300 -- .../classes/Swift/DependencyContainer.php | 349 -- .../classes/Swift/DependencyException.php | 30 - .../swift/classes/Swift/EmbeddedFile.php | 73 - .../vendor/swift/classes/Swift/Encoder.php | 32 - .../classes/Swift/Encoder/Base64Encoder.php | 63 - .../swift/classes/Swift/Encoder/QpEncoder.php | 263 -- .../classes/Swift/Encoder/Rfc2231Encoder.php | 89 - .../vendor/swift/classes/Swift/Encoding.php | 70 - .../classes/Swift/Events/CommandEvent.php | 67 - .../classes/Swift/Events/CommandListener.php | 29 - .../swift/classes/Swift/Events/Event.php | 39 - .../classes/Swift/Events/EventDispatcher.php | 81 - .../classes/Swift/Events/EventListener.php | 19 - .../classes/Swift/Events/EventObject.php | 65 - .../classes/Swift/Events/ResponseEvent.php | 65 - .../classes/Swift/Events/ResponseListener.php | 29 - .../swift/classes/Swift/Events/SendEvent.php | 127 - .../classes/Swift/Events/SendListener.php | 35 - .../Swift/Events/SimpleEventDispatcher.php | 175 - .../Swift/Events/TransportChangeEvent.php | 31 - .../Swift/Events/TransportChangeListener.php | 53 - .../Swift/Events/TransportExceptionEvent.php | 50 - .../Events/TransportExceptionListener.php | 30 - .../swift/classes/Swift/FailoverTransport.php | 48 - .../vendor/swift/classes/Swift/FileStream.php | 28 - .../vendor/swift/classes/Swift/Filterable.php | 34 - .../vendor/swift/classes/Swift/Image.php | 62 - .../swift/classes/Swift/InputByteStream.php | 72 - .../swift/classes/Swift/IoException.php | 30 - .../vendor/swift/classes/Swift/KeyCache.php | 99 - .../classes/Swift/KeyCache/ArrayKeyCache.php | 209 - .../classes/Swift/KeyCache/DiskKeyCache.php | 316 -- .../Swift/KeyCache/KeyCacheInputStream.php | 53 - .../classes/Swift/KeyCache/NullKeyCache.php | 110 - .../KeyCache/SimpleKeyCacheInputStream.php | 131 - .../classes/Swift/LoadBalancedTransport.php | 48 - .../swift/classes/Swift/MailTransport.php | 48 - .../vendor/swift/classes/Swift/Mailer.php | 173 - .../Swift/Mailer/ArrayRecipientIterator.php | 59 - .../Swift/Mailer/RecipientIterator.php | 34 - .../vendor/swift/classes/Swift/Message.php | 82 - .../swift/classes/Swift/Mime/Attachment.php | 143 - .../classes/Swift/Mime/CharsetObserver.php | 26 - .../classes/Swift/Mime/ContentEncoder.php | 41 - .../ContentEncoder/Base64ContentEncoder.php | 81 - .../ContentEncoder/PlainContentEncoder.php | 175 - .../Mime/ContentEncoder/QpContentEncoder.php | 117 - .../swift/classes/Swift/Mime/EmbeddedFile.php | 51 - .../classes/Swift/Mime/EncodingObserver.php | 28 - .../swift/classes/Swift/Mime/Header.php | 85 - .../classes/Swift/Mime/HeaderEncoder.php | 28 - .../HeaderEncoder/Base64HeaderEncoder.php | 36 - .../Mime/HeaderEncoder/QpHeaderEncoder.php | 99 - .../classes/Swift/Mime/HeaderFactory.php | 72 - .../swift/classes/Swift/Mime/HeaderSet.php | 170 - .../Swift/Mime/Headers/AbstractHeader.php | 596 --- .../classes/Swift/Mime/Headers/DateHeader.php | 118 - .../Mime/Headers/IdentificationHeader.php | 161 - .../Swift/Mime/Headers/MailboxHeader.php | 316 -- .../Mime/Headers/ParameterizedHeader.php | 274 -- .../classes/Swift/Mime/Headers/PathHeader.php | 126 - .../Swift/Mime/Headers/UnstructuredHeader.php | 108 - .../swift/classes/Swift/Mime/Message.php | 230 - .../swift/classes/Swift/Mime/MimeEntity.php | 108 - .../swift/classes/Swift/Mime/MimePart.php | 196 - .../Swift/Mime/ParameterizedHeader.php | 35 - .../Swift/Mime/SimpleHeaderFactory.php | 187 - .../classes/Swift/Mime/SimpleHeaderSet.php | 396 -- .../classes/Swift/Mime/SimpleMessage.php | 609 --- .../classes/Swift/Mime/SimpleMimeEntity.php | 803 ---- .../vendor/swift/classes/Swift/MimePart.php | 65 - .../swift/classes/Swift/OutputByteStream.php | 41 - .../classes/Swift/Plugins/AntiFloodPlugin.php | 147 - .../Swift/Plugins/BandwidthMonitorPlugin.php | 173 - .../Swift/Plugins/Decorator/Replacements.php | 36 - .../classes/Swift/Plugins/DecoratorPlugin.php | 201 - .../swift/classes/Swift/Plugins/Logger.php | 37 - .../classes/Swift/Plugins/LoggerPlugin.php | 160 - .../Swift/Plugins/Loggers/ArrayLogger.php | 73 - .../Swift/Plugins/Loggers/EchoLogger.php | 64 - .../Swift/Plugins/Pop/Pop3Connection.php | 36 - .../Swift/Plugins/Pop/Pop3Exception.php | 34 - .../Swift/Plugins/PopBeforeSmtpPlugin.php | 288 -- .../swift/classes/Swift/Plugins/Reporter.php | 36 - .../classes/Swift/Plugins/ReporterPlugin.php | 82 - .../Swift/Plugins/Reporters/HitReporter.php | 63 - .../Swift/Plugins/Reporters/HtmlReporter.php | 47 - .../swift/classes/Swift/Plugins/Sleeper.php | 26 - .../classes/Swift/Plugins/ThrottlerPlugin.php | 188 - .../swift/classes/Swift/Plugins/Timer.php | 26 - .../swift/classes/Swift/Preferences.php | 76 - .../Swift/ReplacementFilterFactory.php | 27 - .../classes/Swift/RfcComplianceException.php | 30 - .../swift/classes/Swift/SendmailTransport.php | 48 - .../swift/classes/Swift/SmtpTransport.php | 56 - .../swift/classes/Swift/StreamFilter.php | 33 - .../ByteArrayReplacementFilter.php | 188 - .../StreamFilters/StringReplacementFilter.php | 66 - .../StringReplacementFilterFactory.php | 53 - .../swift/classes/Swift/SwiftException.php | 28 - .../vendor/swift/classes/Swift/Transport.php | 60 - .../Swift/Transport/AbstractSmtpTransport.php | 543 --- .../Esmtp/Auth/CramMd5Authenticator.php | 88 - .../Esmtp/Auth/LoginAuthenticator.php | 58 - .../Esmtp/Auth/PlainAuthenticator.php | 57 - .../Swift/Transport/Esmtp/AuthHandler.php | 262 -- .../Swift/Transport/Esmtp/Authenticator.php | 38 - .../classes/Swift/Transport/EsmtpHandler.php | 82 - .../Swift/Transport/EsmtpTransport.php | 340 -- .../Swift/Transport/FailoverTransport.php | 97 - .../classes/Swift/Transport/IoBuffer.php | 65 - .../Swift/Transport/LoadBalancedTransport.php | 188 - .../classes/Swift/Transport/MailInvoker.php | 36 - .../classes/Swift/Transport/MailTransport.php | 242 - .../Swift/Transport/SendmailTransport.php | 173 - .../Swift/Transport/SimpleMailInvoker.php | 58 - .../classes/Swift/Transport/SmtpAgent.php | 36 - .../classes/Swift/Transport/StreamBuffer.php | 276 -- .../classes/Swift/TransportException.php | 31 - .../swift/dependency_maps/cache_deps.php | 25 - .../swift/dependency_maps/mime_deps.php | 97 - .../swift/dependency_maps/transport_deps.php | 62 - .../khemail/vendor/swift/mime_types.php | 76 - .../khemail/vendor/swift/preferences.php | 20 - .../khemail/vendor/swift/swift_init.php | 21 - .../khemail/vendor/swift/swift_required.php | 22 - .../vendor/swift/swift_required_pear.php | 22 - includes/kohana/modules/minion/README.md | 62 - .../minion/classes/Kohana/Minion/CLI.php | 315 -- .../classes/Kohana/Minion/Exception.php | 64 - .../Kohana/Minion/Exception/InvalidTask.php | 18 - .../minion/classes/Kohana/Minion/Task.php | 364 -- .../modules/minion/classes/Minion/CLI.php | 3 - .../minion/classes/Minion/Exception.php | 3 - .../classes/Minion/Exception/InvalidTask.php | 3 - .../modules/minion/classes/Minion/Task.php | 8 - .../modules/minion/classes/Task/Help.php | 28 - .../modules/minion/config/userguide.php | 13 - .../modules/minion/guide/minion/index.md | 3 - .../modules/minion/guide/minion/menu.md | 3 - .../modules/minion/guide/minion/setup.md | 32 - .../modules/minion/guide/minion/tasks.md | 71 - .../modules/minion/messages/validation.php | 5 - includes/kohana/modules/minion/minion | 4 - includes/kohana/modules/minion/miniond | 68 - .../modules/minion/tests/minion/task.php | 70 - .../minion/views/minion/error/validation.php | 10 - .../minion/views/minion/help/error.php | 7 - .../modules/minion/views/minion/help/list.php | 17 - .../modules/minion/views/minion/help/task.php | 17 - .../kohana/modules/orm/auth-schema-mysql.sql | 49 - .../modules/orm/auth-schema-postgresql.sql | 53 - .../kohana/modules/orm/classes/Auth/ORM.php | 3 - .../modules/orm/classes/Kohana/Auth/ORM.php | 291 -- .../kohana/modules/orm/classes/Kohana/ORM.php | 2404 ---------- .../Kohana/ORM/Validation/Exception.php | 198 - .../modules/orm/classes/Model/Auth/Role.php | 31 - .../modules/orm/classes/Model/Auth/User.php | 204 - .../orm/classes/Model/Auth/User/Token.php | 77 - .../kohana/modules/orm/classes/Model/Role.php | 7 - .../kohana/modules/orm/classes/Model/User.php | 7 - .../modules/orm/classes/Model/User/Token.php | 7 - includes/kohana/modules/orm/classes/ORM.php | 3 - .../orm/classes/ORM/Validation/Exception.php | 10 - .../kohana/modules/orm/config/userguide.php | 23 - .../kohana/modules/orm/guide/orm/examples.md | 13 - .../modules/orm/guide/orm/examples/simple.md | 119 - .../orm/guide/orm/examples/validation.md | 137 - .../kohana/modules/orm/guide/orm/filters.md | 41 - .../kohana/modules/orm/guide/orm/index.md | 22 - includes/kohana/modules/orm/guide/orm/menu.md | 10 - .../kohana/modules/orm/guide/orm/models.md | 28 - .../modules/orm/guide/orm/relationships.md | 123 - .../kohana/modules/orm/guide/orm/tutorials.md | 0 .../kohana/modules/orm/guide/orm/upgrading.md | 16 - .../kohana/modules/orm/guide/orm/using.md | 94 - .../modules/orm/guide/orm/validation.md | 111 - includes/kohana/modules/pagination/.gitignore | 1 - .../pagination/classes/Kohana/Pagination.php | 335 -- .../modules/pagination/classes/Pagination.php | 3 - .../modules/pagination/config/pagination.php | 15 - .../modules/pagination/config/userguide.php | 23 - .../pagination/guide/pagination/config.md | 94 - .../pagination/guide/pagination/examples.md | 0 .../pagination/guide/pagination/index.md | 0 .../pagination/guide/pagination/menu.md | 4 - .../pagination/guide/pagination/usage.md | 0 .../pagination/views/pagination/basic.php | 37 - .../pagination/views/pagination/floating.php | 94 - .../simplehtmldom/classes/simple_html_dom.php | 975 ---- .../kohana/modules/unittest/README.markdown | 24 - .../kohana/modules/unittest/bootstrap.php | 136 - .../unittest/bootstrap_all_modules.php | 20 - .../Kohana/Unittest/Database/TestCase.php | 311 -- .../classes/Kohana/Unittest/Helpers.php | 169 - .../classes/Kohana/Unittest/TestCase.php | 261 -- .../classes/Kohana/Unittest/TestSuite.php | 80 - .../classes/Kohana/Unittest/Tests.php | 267 -- .../classes/Unittest/Database/TestCase.php | 17 - .../unittest/classes/Unittest/Helpers.php | 3 - .../unittest/classes/Unittest/TestCase.php | 3 - .../unittest/classes/Unittest/TestSuite.php | 3 - .../unittest/classes/Unittest/Tests.php | 3 - .../modules/unittest/config/unittest.php | 34 - .../modules/unittest/config/userguide.php | 13 - .../modules/unittest/example.phpunit.xml | 16 - .../modules/unittest/guide/unittest/index.md | 3 - .../modules/unittest/guide/unittest/menu.md | 5 - .../unittest/guide/unittest/mockobjects.md | 265 -- .../unittest/guide/unittest/testing.md | 117 - .../guide/unittest/testing_workflows.md | 41 - .../guide/unittest/troubleshooting.md | 21 - includes/kohana/modules/unittest/tests.php | 20 - includes/kohana/modules/userguide/README.md | 69 - .../classes/Controller/Userguide.php | 3 - .../modules/userguide/classes/Kodoc.php | 3 - .../modules/userguide/classes/Kodoc/Class.php | 3 - .../userguide/classes/Kodoc/Markdown.php | 3 - .../userguide/classes/Kodoc/Method.php | 3 - .../userguide/classes/Kodoc/Method/Param.php | 3 - .../userguide/classes/Kodoc/Missing.php | 3 - .../userguide/classes/Kodoc/Property.php | 3 - .../classes/Kohana/Controller/Userguide.php | 398 -- .../userguide/classes/Kohana/Kodoc.php | 466 -- .../userguide/classes/Kohana/Kodoc/Class.php | 279 -- .../classes/Kohana/Kodoc/Markdown.php | 289 -- .../userguide/classes/Kohana/Kodoc/Method.php | 141 - .../classes/Kohana/Kodoc/Method/Param.php | 101 - .../classes/Kohana/Kodoc/Missing.php | 36 - .../classes/Kohana/Kodoc/Property.php | 90 - .../modules/userguide/config/userguide.php | 39 - .../guide/de-de/about.conventions.md | 300 -- .../userguide/guide/de-de/about.kohana.md | 15 - .../modules/userguide/guide/developers.md | 150 - .../userguide/guide/userguide/adding.md | 55 - .../userguide/guide/userguide/config.md | 35 - .../userguide/guide/userguide/contributing.md | 75 - .../userguide/guide/userguide/index.md | 3 - .../userguide/guide/userguide/markdown.md | 237 - .../modules/userguide/guide/userguide/menu.md | 7 - .../userguide/guide/userguide/modules.md | 0 .../userguide/guide/userguide/using.md | 1 - .../userguide/guide/userguide/works.md | 25 - includes/kohana/modules/userguide/init.php | 44 - .../modules/userguide/media/guide/css/api.css | 34 - .../userguide/media/guide/css/kodoc.css | 142 - .../userguide/media/guide/css/print.css | 50 - .../userguide/media/guide/css/screen.css | 267 -- .../userguide/media/guide/css/shCore.css | 226 - .../media/guide/css/shThemeDefault.css | 117 - .../media/guide/css/shThemeKodoc.css | 183 - .../userguide/media/guide/img/arrows.png | Bin 357 -> 0 bytes .../userguide/media/guide/img/breadcrumbs.png | Bin 195 -> 0 bytes .../userguide/media/guide/img/content.png | Bin 2983 -> 0 bytes .../userguide/media/guide/img/ext_link.png | Bin 144 -> 0 bytes .../userguide/media/guide/img/h2_line.png | Bin 184 -> 0 bytes .../userguide/media/guide/img/h3_line.png | Bin 184 -> 0 bytes .../userguide/media/guide/img/header.png | Bin 2998 -> 0 bytes .../userguide/media/guide/img/kohana.png | Bin 8678 -> 0 bytes .../media/guide/img/lightbulb_48.png | Bin 4843 -> 0 bytes .../userguide/media/guide/img/lines.png | Bin 181 -> 0 bytes .../userguide/media/guide/img/orange-tab.png | Bin 215 -> 0 bytes .../userguide/media/guide/img/wrapper.png | Bin 12347 -> 0 bytes .../userguide/media/guide/js/jquery.cookie.js | 96 - .../userguide/media/guide/js/jquery.min.js | 167 - .../modules/userguide/media/guide/js/kodoc.js | 97 - .../userguide/media/guide/js/shBrushPhp.js | 88 - .../userguide/media/guide/js/shCore.js | 17 - .../userguide/media/guide/js/sizzle.js | 1068 ----- .../guide/userguide/contrib-github-edit.png | Bin 9681 -> 0 bytes .../guide/userguide/contrib-github-fork.png | Bin 8278 -> 0 bytes .../guide/userguide/contrib-github-pull.png | Bin 8839 -> 0 bytes .../modules/userguide/messages/userguide.php | 14 - .../modules/userguide/tests/KodocTest.php | 368 -- .../tests/userguide/ControllerTest.php | 45 - .../userguide/vendor/markdown/License.text | 36 - .../userguide/vendor/markdown/markdown.php | 2909 ------------ .../userguide/views/userguide/api/class.php | 124 - .../userguide/views/userguide/api/menu.php | 18 - .../userguide/views/userguide/api/method.php | 45 - .../userguide/views/userguide/api/tags.php | 6 - .../userguide/views/userguide/api/toc.php | 69 - .../userguide/views/userguide/error.php | 3 - .../views/userguide/examples/error.php | 6 - .../userguide/examples/hello_world_error.php | 696 --- .../userguide/views/userguide/index.php | 20 - .../userguide/views/userguide/menu.php | 17 - .../userguide/views/userguide/page-toc.php | 10 - .../userguide/views/userguide/template.php | 110 - includes/kohana/modules/xml/LICENSE | 22 - includes/kohana/modules/xml/README.md | 31 - includes/kohana/modules/xml/classes/xml.php | 13 - .../kohana/modules/xml/classes/xml/core.php | 732 --- .../modules/xml/classes/xml/driver/atom.php | 101 - .../modules/xml/classes/xml/driver/rss2.php | 57 - .../modules/xml/classes/xml/driver/xrds.php | 55 - .../kohana/modules/xml/classes/xml/meta.php | 12 - .../modules/xml/classes/xml/meta/core.php | 187 - includes/kohana/system/classes/Arr.php | 3 - includes/kohana/system/classes/Config.php | 3 - .../kohana/system/classes/Config/File.php | 3 - .../kohana/system/classes/Config/Group.php | 4 - includes/kohana/system/classes/Controller.php | 3 - .../system/classes/Controller/Template.php | 3 - includes/kohana/system/classes/Cookie.php | 3 - includes/kohana/system/classes/Date.php | 3 - includes/kohana/system/classes/Debug.php | 3 - includes/kohana/system/classes/Encrypt.php | 3 - includes/kohana/system/classes/Feed.php | 3 - includes/kohana/system/classes/File.php | 3 - includes/kohana/system/classes/Form.php | 3 - includes/kohana/system/classes/Fragment.php | 3 - includes/kohana/system/classes/HTML.php | 3 - includes/kohana/system/classes/HTTP.php | 3 - .../kohana/system/classes/HTTP/Exception.php | 3 - .../system/classes/HTTP/Exception/300.php | 3 - .../system/classes/HTTP/Exception/301.php | 3 - .../system/classes/HTTP/Exception/302.php | 3 - .../system/classes/HTTP/Exception/303.php | 3 - .../system/classes/HTTP/Exception/304.php | 3 - .../system/classes/HTTP/Exception/305.php | 3 - .../system/classes/HTTP/Exception/307.php | 3 - .../system/classes/HTTP/Exception/400.php | 3 - .../system/classes/HTTP/Exception/401.php | 3 - .../system/classes/HTTP/Exception/402.php | 3 - .../system/classes/HTTP/Exception/403.php | 3 - .../system/classes/HTTP/Exception/404.php | 3 - .../system/classes/HTTP/Exception/405.php | 3 - .../system/classes/HTTP/Exception/406.php | 3 - .../system/classes/HTTP/Exception/407.php | 3 - .../system/classes/HTTP/Exception/408.php | 3 - .../system/classes/HTTP/Exception/409.php | 3 - .../system/classes/HTTP/Exception/410.php | 3 - .../system/classes/HTTP/Exception/411.php | 3 - .../system/classes/HTTP/Exception/412.php | 3 - .../system/classes/HTTP/Exception/413.php | 3 - .../system/classes/HTTP/Exception/414.php | 3 - .../system/classes/HTTP/Exception/415.php | 3 - .../system/classes/HTTP/Exception/416.php | 3 - .../system/classes/HTTP/Exception/417.php | 3 - .../system/classes/HTTP/Exception/500.php | 3 - .../system/classes/HTTP/Exception/501.php | 3 - .../system/classes/HTTP/Exception/502.php | 3 - .../system/classes/HTTP/Exception/503.php | 3 - .../system/classes/HTTP/Exception/504.php | 3 - .../system/classes/HTTP/Exception/505.php | 3 - .../classes/HTTP/Exception/Expected.php | 3 - .../classes/HTTP/Exception/Redirect.php | 3 - .../kohana/system/classes/HTTP/Header.php | 3 - .../kohana/system/classes/HTTP/Message.php | 3 - .../kohana/system/classes/HTTP/Request.php | 3 - .../kohana/system/classes/HTTP/Response.php | 3 - includes/kohana/system/classes/I18n.php | 3 - includes/kohana/system/classes/Inflector.php | 3 - includes/kohana/system/classes/Kohana.php | 3 - includes/kohana/system/classes/Kohana/Arr.php | 620 --- .../kohana/system/classes/Kohana/Config.php | 192 - .../system/classes/Kohana/Config/File.php | 15 - .../classes/Kohana/Config/File/Reader.php | 56 - .../system/classes/Kohana/Config/Group.php | 130 - .../system/classes/Kohana/Config/Reader.php | 25 - .../system/classes/Kohana/Config/Source.php | 14 - .../system/classes/Kohana/Config/Writer.php | 27 - .../system/classes/Kohana/Controller.php | 145 - .../classes/Kohana/Controller/Template.php | 50 - .../kohana/system/classes/Kohana/Cookie.php | 161 - .../kohana/system/classes/Kohana/Core.php | 1048 ----- .../kohana/system/classes/Kohana/Date.php | 603 --- .../kohana/system/classes/Kohana/Debug.php | 469 -- .../kohana/system/classes/Kohana/Encrypt.php | 213 - .../system/classes/Kohana/Exception.php | 3 - .../kohana/system/classes/Kohana/Feed.php | 185 - .../kohana/system/classes/Kohana/File.php | 241 - .../kohana/system/classes/Kohana/Form.php | 434 -- .../kohana/system/classes/Kohana/Fragment.php | 147 - .../kohana/system/classes/Kohana/HTML.php | 345 -- .../kohana/system/classes/Kohana/HTTP.php | 217 - .../system/classes/Kohana/HTTP/Exception.php | 72 - .../classes/Kohana/HTTP/Exception/300.php | 10 - .../classes/Kohana/HTTP/Exception/301.php | 10 - .../classes/Kohana/HTTP/Exception/302.php | 10 - .../classes/Kohana/HTTP/Exception/303.php | 10 - .../classes/Kohana/HTTP/Exception/304.php | 10 - .../classes/Kohana/HTTP/Exception/305.php | 41 - .../classes/Kohana/HTTP/Exception/307.php | 10 - .../classes/Kohana/HTTP/Exception/400.php | 10 - .../classes/Kohana/HTTP/Exception/401.php | 38 - .../classes/Kohana/HTTP/Exception/402.php | 10 - .../classes/Kohana/HTTP/Exception/403.php | 10 - .../classes/Kohana/HTTP/Exception/404.php | 10 - .../classes/Kohana/HTTP/Exception/405.php | 41 - .../classes/Kohana/HTTP/Exception/406.php | 10 - .../classes/Kohana/HTTP/Exception/407.php | 10 - .../classes/Kohana/HTTP/Exception/408.php | 10 - .../classes/Kohana/HTTP/Exception/409.php | 10 - .../classes/Kohana/HTTP/Exception/410.php | 10 - .../classes/Kohana/HTTP/Exception/411.php | 10 - .../classes/Kohana/HTTP/Exception/412.php | 10 - .../classes/Kohana/HTTP/Exception/413.php | 10 - .../classes/Kohana/HTTP/Exception/414.php | 10 - .../classes/Kohana/HTTP/Exception/415.php | 10 - .../classes/Kohana/HTTP/Exception/416.php | 10 - .../classes/Kohana/HTTP/Exception/417.php | 10 - .../classes/Kohana/HTTP/Exception/500.php | 10 - .../classes/Kohana/HTTP/Exception/501.php | 10 - .../classes/Kohana/HTTP/Exception/502.php | 10 - .../classes/Kohana/HTTP/Exception/503.php | 10 - .../classes/Kohana/HTTP/Exception/504.php | 10 - .../classes/Kohana/HTTP/Exception/505.php | 10 - .../Kohana/HTTP/Exception/Expected.php | 82 - .../Kohana/HTTP/Exception/Redirect.php | 51 - .../system/classes/Kohana/HTTP/Header.php | 949 ---- .../system/classes/Kohana/HTTP/Message.php | 56 - .../system/classes/Kohana/HTTP/Request.php | 64 - .../system/classes/Kohana/HTTP/Response.php | 31 - .../kohana/system/classes/Kohana/I18n.php | 166 - .../system/classes/Kohana/Inflector.php | 269 -- .../classes/Kohana/Kohana/Exception.php | 282 -- includes/kohana/system/classes/Kohana/Log.php | 228 - .../kohana/system/classes/Kohana/Log/File.php | 94 - .../system/classes/Kohana/Log/StdErr.php | 29 - .../system/classes/Kohana/Log/StdOut.php | 30 - .../system/classes/Kohana/Log/Syslog.php | 65 - .../system/classes/Kohana/Log/Writer.php | 95 - .../kohana/system/classes/Kohana/Model.php | 29 - includes/kohana/system/classes/Kohana/Num.php | 234 - .../kohana/system/classes/Kohana/Profiler.php | 385 -- .../kohana/system/classes/Kohana/Request.php | 1331 ------ .../system/classes/Kohana/Request/Client.php | 424 -- .../classes/Kohana/Request/Client/Curl.php | 135 - .../Kohana/Request/Client/External.php | 207 - .../classes/Kohana/Request/Client/HTTP.php | 121 - .../Kohana/Request/Client/Internal.php | 128 - .../Request/Client/Recursion/Exception.php | 10 - .../classes/Kohana/Request/Client/Stream.php | 109 - .../classes/Kohana/Request/Exception.php | 9 - .../kohana/system/classes/Kohana/Response.php | 713 --- .../kohana/system/classes/Kohana/Route.php | 629 --- .../kohana/system/classes/Kohana/Security.php | 103 - .../kohana/system/classes/Kohana/Session.php | 505 -- .../system/classes/Kohana/Session/Cookie.php | 55 - .../classes/Kohana/Session/Exception.php | 11 - .../system/classes/Kohana/Session/Native.php | 107 - .../kohana/system/classes/Kohana/Text.php | 686 --- includes/kohana/system/classes/Kohana/URL.php | 213 - .../kohana/system/classes/Kohana/UTF8.php | 767 --- .../system/classes/Kohana/UTF8/Exception.php | 9 - .../kohana/system/classes/Kohana/Upload.php | 256 - .../kohana/system/classes/Kohana/Valid.php | 551 --- .../system/classes/Kohana/Validation.php | 612 --- .../classes/Kohana/Validation/Exception.php | 29 - .../kohana/system/classes/Kohana/View.php | 351 -- .../system/classes/Kohana/View/Exception.php | 9 - includes/kohana/system/classes/Log.php | 3 - includes/kohana/system/classes/Log/File.php | 3 - includes/kohana/system/classes/Log/StdErr.php | 3 - includes/kohana/system/classes/Log/StdOut.php | 3 - includes/kohana/system/classes/Log/Syslog.php | 3 - includes/kohana/system/classes/Log/Writer.php | 3 - includes/kohana/system/classes/Model.php | 3 - includes/kohana/system/classes/Num.php | 3 - includes/kohana/system/classes/Profiler.php | 3 - includes/kohana/system/classes/Request.php | 3 - .../kohana/system/classes/Request/Client.php | 3 - .../system/classes/Request/Client/Curl.php | 3 - .../classes/Request/Client/External.php | 3 - .../system/classes/Request/Client/HTTP.php | 3 - .../classes/Request/Client/Internal.php | 3 - .../Request/Client/Recursion/Exception.php | 10 - .../system/classes/Request/Client/Stream.php | 3 - .../system/classes/Request/Exception.php | 9 - includes/kohana/system/classes/Response.php | 3 - includes/kohana/system/classes/Route.php | 3 - includes/kohana/system/classes/Security.php | 3 - includes/kohana/system/classes/Session.php | 3 - .../kohana/system/classes/Session/Cookie.php | 3 - .../system/classes/Session/Exception.php | 9 - .../kohana/system/classes/Session/Native.php | 3 - includes/kohana/system/classes/Text.php | 3 - includes/kohana/system/classes/URL.php | 3 - includes/kohana/system/classes/UTF8.php | 3 - .../kohana/system/classes/UTF8/Exception.php | 9 - includes/kohana/system/classes/Upload.php | 3 - includes/kohana/system/classes/Valid.php | 3 - includes/kohana/system/classes/Validation.php | 3 - .../system/classes/Validation/Exception.php | 3 - includes/kohana/system/classes/View.php | 3 - .../kohana/system/classes/View/Exception.php | 9 - .../kohana/system/config/credit_cards.php | 60 - includes/kohana/system/config/curl.php | 8 - includes/kohana/system/config/encrypt.php | 17 - includes/kohana/system/config/inflector.php | 98 - includes/kohana/system/config/mimes.php | 227 - includes/kohana/system/config/session.php | 7 - includes/kohana/system/config/user_agents.php | 108 - includes/kohana/system/config/userguide.php | 23 - .../kohana/system/guide/kohana/autoloading.md | 72 - .../kohana/system/guide/kohana/bootstrap.md | 111 - includes/kohana/system/guide/kohana/config.md | 193 - .../kohana/system/guide/kohana/controllers.md | 1 - .../kohana/system/guide/kohana/conventions.md | 418 -- .../kohana/system/guide/kohana/cookies.md | 100 - .../kohana/system/guide/kohana/debugging.md | 20 - includes/kohana/system/guide/kohana/errors.md | 64 - .../kohana/system/guide/kohana/extension.md | 101 - includes/kohana/system/guide/kohana/files.md | 83 - .../system/guide/kohana/files/classes.md | 41 - .../system/guide/kohana/files/config.md | 84 - .../kohana/system/guide/kohana/files/i18n.md | 67 - .../system/guide/kohana/files/messages.md | 36 - includes/kohana/system/guide/kohana/flow.md | 27 - .../kohana/system/guide/kohana/fragments.md | 135 - .../kohana/system/guide/kohana/helpers.md | 53 - includes/kohana/system/guide/kohana/index.md | 19 - .../kohana/system/guide/kohana/install.md | 45 - includes/kohana/system/guide/kohana/menu.md | 49 - .../kohana/system/guide/kohana/modules.md | 40 - includes/kohana/system/guide/kohana/mvc.md | 3 - .../system/guide/kohana/mvc/controllers.md | 181 - .../kohana/system/guide/kohana/mvc/models.md | 35 - .../kohana/system/guide/kohana/mvc/views.md | 153 - .../kohana/system/guide/kohana/profiling.md | 54 - .../kohana/system/guide/kohana/requests.md | 150 - .../kohana/system/guide/kohana/routing.md | 257 - .../kohana/system/guide/kohana/security.md | 1 - .../system/guide/kohana/security/cookies.md | 3 - .../system/guide/kohana/security/database.md | 5 - .../system/guide/kohana/security/deploying.md | 31 - .../guide/kohana/security/encryption.md | 107 - .../guide/kohana/security/validation.md | 266 -- .../system/guide/kohana/security/xss.md | 17 - .../kohana/system/guide/kohana/sessions.md | 167 - includes/kohana/system/guide/kohana/tips.md | 41 - .../kohana/system/guide/kohana/tutorials.md | 17 - .../guide/kohana/tutorials/clean-urls.md | 93 - .../guide/kohana/tutorials/error-pages.md | 99 - .../system/guide/kohana/tutorials/git.md | 143 - .../guide/kohana/tutorials/hello-world.md | 106 - .../guide/kohana/tutorials/library-kohana.md | 219 - .../guide/kohana/tutorials/sharing-kohana.md | 54 - .../guide/kohana/tutorials/simple-mvc.md | 1 - .../guide/kohana/tutorials/templates.md | 7 - .../guide/kohana/tutorials/translation.md | 5 - .../kohana/system/guide/kohana/upgrading.md | 100 - includes/kohana/system/i18n/en.php | 3 - includes/kohana/system/i18n/es.php | 7 - includes/kohana/system/i18n/fr.php | 7 - .../guide/kohana/cascading_filesystem.png | Bin 61164 -> 0 bytes .../media/guide/kohana/hello_world_1.png | Bin 1423 -> 0 bytes .../media/guide/kohana/hello_world_2.png | Bin 6681 -> 0 bytes .../guide/kohana/hello_world_2_error.png | Bin 84148 -> 0 bytes .../system/media/guide/kohana/install.png | Bin 71146 -> 0 bytes .../system/media/guide/kohana/welcome.png | Bin 754 -> 0 bytes .../tests/validation/error_type_check.php | 7 - .../kohana/system/messages/validation.php | 27 - .../kohana/system/tests/kohana/ArrTest.php | 696 --- .../tests/kohana/Config/File/ReaderTest.php | 94 - .../system/tests/kohana/Config/GroupTest.php | 192 - .../kohana/system/tests/kohana/ConfigTest.php | 406 -- .../kohana/system/tests/kohana/CookieTest.php | 177 - .../kohana/system/tests/kohana/CoreTest.php | 369 -- .../kohana/system/tests/kohana/DateTest.php | 790 ---- .../kohana/system/tests/kohana/DebugTest.php | 126 - .../system/tests/kohana/ExceptionTest.php | 99 - .../kohana/system/tests/kohana/FeedTest.php | 123 - .../kohana/system/tests/kohana/FileTest.php | 81 - .../kohana/system/tests/kohana/FormTest.php | 408 -- .../kohana/system/tests/kohana/HTMLTest.php | 367 -- .../kohana/system/tests/kohana/HTTPTest.php | 87 - .../system/tests/kohana/Http/HeaderTest.php | 1491 ------ .../kohana/system/tests/kohana/I18nTest.php | 90 - .../system/tests/kohana/InflectorTest.php | 186 - .../kohana/system/tests/kohana/LogTest.php | 111 - .../kohana/system/tests/kohana/ModelTest.php | 36 - .../kohana/system/tests/kohana/NumTest.php | 205 - .../system/tests/kohana/RequestTest.php | 720 --- .../system/tests/kohana/ResponseTest.php | 208 - .../kohana/system/tests/kohana/RouteTest.php | 840 ---- .../system/tests/kohana/SecurityTest.php | 108 - .../system/tests/kohana/SessionTest.php | 502 -- .../kohana/system/tests/kohana/TextTest.php | 642 --- .../kohana/system/tests/kohana/URLTest.php | 279 -- .../kohana/system/tests/kohana/UTF8Test.php | 631 --- .../kohana/system/tests/kohana/UploadTest.php | 225 - .../kohana/system/tests/kohana/ValidTest.php | 985 ---- .../system/tests/kohana/ValidationTest.php | 676 --- .../kohana/system/tests/kohana/ViewTest.php | 83 - .../tests/kohana/request/ClientTest.php | 488 -- .../kohana/request/client/ExternalTest.php | 191 - .../kohana/request/client/InternalTest.php | 68 - .../tests/test_data/callback_routes.php | 100 - .../kohana/system/tests/test_data/github.png | Bin 5101 -> 0 bytes .../system/tests/test_data/views/test.css.php | 1 - includes/kohana/system/utf8/from_unicode.php | 72 - includes/kohana/system/utf8/ltrim.php | 22 - includes/kohana/system/utf8/ord.php | 72 - includes/kohana/system/utf8/rtrim.php | 22 - includes/kohana/system/utf8/str_ireplace.php | 70 - includes/kohana/system/utf8/str_pad.php | 52 - includes/kohana/system/utf8/str_split.php | 27 - includes/kohana/system/utf8/strcasecmp.php | 19 - includes/kohana/system/utf8/strcspn.php | 30 - includes/kohana/system/utf8/stristr.php | 28 - includes/kohana/system/utf8/strlen.php | 17 - includes/kohana/system/utf8/strpos.php | 27 - includes/kohana/system/utf8/strrev.php | 18 - includes/kohana/system/utf8/strrpos.php | 27 - includes/kohana/system/utf8/strspn.php | 30 - includes/kohana/system/utf8/strtolower.php | 81 - includes/kohana/system/utf8/strtoupper.php | 81 - includes/kohana/system/utf8/substr.php | 72 - .../kohana/system/utf8/substr_replace.php | 22 - includes/kohana/system/utf8/to_unicode.php | 145 - .../system/utf8/transliterate_to_ascii.php | 77 - includes/kohana/system/utf8/trim.php | 17 - includes/kohana/system/utf8/ucfirst.php | 18 - includes/kohana/system/utf8/ucwords.php | 23 - includes/kohana/system/views/kohana/error.php | 128 - .../system/views/kohana/generate_logo.php | 14 - includes/kohana/system/views/kohana/logo.php | 8 - .../kohana/system/views/profiler/stats.php | 74 - .../kohana/system/views/profiler/style.css | 27 - includes/kohana/vendor/autoload.php | 7 - includes/kohana/vendor/bin/phpunit | 7 - .../kohana/vendor/composer/ClassLoader.php | 207 - .../vendor/composer/autoload_classmap.php | 351 -- .../vendor/composer/autoload_namespaces.php | 10 - .../kohana/vendor/composer/autoload_real.php | 39 - .../kohana/vendor/composer/include_paths.php | 17 - .../kohana/vendor/composer/installed.json | 410 -- .../phpunit/php-code-coverage/CONTRIBUTING.md | 5 - .../php-code-coverage/ChangeLog.markdown | 46 - .../vendor/phpunit/php-code-coverage/LICENSE | 33 - .../php-code-coverage/PHP/CodeCoverage.php | 796 ---- .../PHP/CodeCoverage/Autoload.php | 90 - .../PHP/CodeCoverage/Autoload.php.in | 70 - .../PHP/CodeCoverage/Driver.php | 70 - .../PHP/CodeCoverage/Driver/Xdebug.php | 97 - .../PHP/CodeCoverage/Exception.php | 59 - .../PHP/CodeCoverage/Filter.php | 343 -- .../PHP/CodeCoverage/Report/Clover.php | 346 -- .../PHP/CodeCoverage/Report/Factory.php | 280 -- .../PHP/CodeCoverage/Report/HTML.php | 221 - .../PHP/CodeCoverage/Report/HTML/Renderer.php | 269 -- .../Report/HTML/Renderer/Dashboard.php | 256 - .../Report/HTML/Renderer/Directory.php | 132 - .../Report/HTML/Renderer/File.php | 583 --- .../Renderer/Template/coverage_bar.html.dist | 3 - .../Template/css/bootstrap-responsive.min.css | 9 - .../Renderer/Template/css/bootstrap.min.css | 9 - .../HTML/Renderer/Template/css/style.css | 76 - .../Renderer/Template/dashboard.html.dist | 117 - .../Renderer/Template/directory.html.dist | 58 - .../Template/directory_item.html.dist | 13 - .../HTML/Renderer/Template/file.html.dist | 65 - .../Renderer/Template/file_item.html.dist | 14 - .../img/glyphicons-halflings-white.png | Bin 8777 -> 0 bytes .../Template/img/glyphicons-halflings.png | Bin 12799 -> 0 bytes .../Renderer/Template/js/bootstrap.min.js | 6 - .../HTML/Renderer/Template/js/highcharts.js | 245 - .../HTML/Renderer/Template/js/jquery.min.js | 2 - .../Renderer/Template/method_item.html.dist | 11 - .../PHP/CodeCoverage/Report/Node.php | 380 -- .../CodeCoverage/Report/Node/Directory.php | 512 -- .../PHP/CodeCoverage/Report/Node/File.php | 721 --- .../PHP/CodeCoverage/Report/Node/Iterator.php | 148 - .../PHP/CodeCoverage/Report/PHP.php | 74 - .../PHP/CodeCoverage/Report/Text.php | 278 -- .../PHP/CodeCoverage/Util.php | 268 -- .../Util/InvalidArgumentHelper.php | 80 - .../PHP/CodeCoverage/Version.php | 92 - .../phpunit/php-code-coverage/README.markdown | 43 - .../Tests/PHP/CodeCoverage/FilterTest.php | 298 -- .../PHP/CodeCoverage/Report/CloverTest.php | 96 - .../PHP/CodeCoverage/Report/FactoryTest.php | 263 -- .../Tests/PHP/CodeCoverage/UtilTest.php | 194 - .../Tests/PHP/CodeCoverageTest.php | 499 -- .../php-code-coverage/Tests/TestCase.php | 266 -- .../Tests/_files/BankAccount-clover.xml | 26 - .../Tests/_files/BankAccount.php | 33 - .../Tests/_files/BankAccountTest.php | 70 - .../_files/CoverageClassExtendedTest.php | 12 - .../Tests/_files/CoverageClassTest.php | 12 - .../Tests/_files/CoverageFunctionTest.php | 11 - .../CoverageMethodOneLineAnnotationTest.php | 12 - .../Tests/_files/CoverageMethodTest.php | 12 - .../Tests/_files/CoverageNoneTest.php | 9 - .../Tests/_files/CoverageNotPrivateTest.php | 12 - .../Tests/_files/CoverageNotProtectedTest.php | 12 - .../Tests/_files/CoverageNotPublicTest.php | 12 - .../Tests/_files/CoverageNothingTest.php | 13 - .../Tests/_files/CoveragePrivateTest.php | 12 - .../Tests/_files/CoverageProtectedTest.php | 12 - .../Tests/_files/CoveragePublicTest.php | 12 - .../CoverageTwoDefaultClassAnnotations.php | 19 - .../Tests/_files/CoveredClass.php | 36 - .../Tests/_files/CoveredFunction.php | 4 - .../NamespaceCoverageClassExtendedTest.php | 12 - .../_files/NamespaceCoverageClassTest.php | 12 - ...NamespaceCoverageCoversClassPublicTest.php | 16 - .../NamespaceCoverageCoversClassTest.php | 21 - .../_files/NamespaceCoverageMethodTest.php | 12 - .../NamespaceCoverageNotPrivateTest.php | 12 - .../NamespaceCoverageNotProtectedTest.php | 12 - .../_files/NamespaceCoverageNotPublicTest.php | 12 - .../_files/NamespaceCoveragePrivateTest.php | 12 - .../_files/NamespaceCoverageProtectedTest.php | 12 - .../_files/NamespaceCoveragePublicTest.php | 12 - .../Tests/_files/NamespaceCoveredClass.php | 38 - .../_files/NotExistingCoveredElementTest.php | 24 - .../Tests/_files/ignored-lines-clover.xml | 17 - .../Tests/_files/source_with_ignore.php | 38 - .../Tests/_files/source_with_namespace.php | 20 - .../source_with_oneline_annotations.php | 13 - .../Tests/_files/source_without_ignore.php | 4 - .../Tests/_files/source_without_namespace.php | 18 - .../phpunit/php-code-coverage/build.xml | 162 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../php-code-coverage/build/PHPCS/ruleset.xml | 35 - .../phpunit/php-code-coverage/build/phpmd.xml | 27 - .../phpunit/php-code-coverage/composer.json | 41 - .../phpunit/php-code-coverage/package.xml | 133 - .../php-code-coverage/phpunit.xml.dist | 29 - .../php-code-coverage/scripts/auto_append.php | 5 - .../scripts/auto_prepend.php | 10 - .../php-file-iterator/ChangeLog.markdown | 26 - .../php-file-iterator/File/Iterator.php | 196 - .../File/Iterator/Autoload.php | 66 - .../File/Iterator/Autoload.php.in | 64 - .../File/Iterator/Facade.php | 161 - .../File/Iterator/Factory.php | 120 - .../vendor/phpunit/php-file-iterator/LICENSE | 33 - .../phpunit/php-file-iterator/README.markdown | 23 - .../phpunit/php-file-iterator/build.xml | 161 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../php-file-iterator/build/PHPCS/ruleset.xml | 35 - .../phpunit/php-file-iterator/build/phpmd.xml | 27 - .../phpunit/php-file-iterator/composer.json | 33 - .../php-file-iterator/package-composer.json | 19 - .../phpunit/php-file-iterator/package.xml | 65 - .../php-text-template/ChangeLog.markdown | 19 - .../vendor/phpunit/php-text-template/LICENSE | 33 - .../phpunit/php-text-template/README.markdown | 23 - .../php-text-template/Text/Template.php | 153 - .../Text/Template/Autoload.php | 65 - .../Text/Template/Autoload.php.in | 65 - .../phpunit/php-text-template/build.xml | 161 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../php-text-template/build/PHPCS/ruleset.xml | 35 - .../phpunit/php-text-template/build/phpmd.xml | 27 - .../phpunit/php-text-template/composer.json | 32 - .../php-text-template/package-composer.json | 19 - .../phpunit/php-text-template/package.xml | 59 - .../phpunit/php-timer/ChangeLog.markdown | 29 - .../kohana/vendor/phpunit/php-timer/LICENSE | 33 - .../vendor/phpunit/php-timer/PHP/Timer.php | 159 - .../phpunit/php-timer/PHP/Timer/Autoload.php | 66 - .../php-timer/PHP/Timer/Autoload.php.in | 66 - .../vendor/phpunit/php-timer/README.markdown | 23 - .../phpunit/php-timer/Tests/TimerTest.php | 108 - .../kohana/vendor/phpunit/php-timer/build.xml | 160 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../phpunit/php-timer/build/PHPCS/ruleset.xml | 35 - .../vendor/phpunit/php-timer/build/phpmd.xml | 27 - .../vendor/phpunit/php-timer/composer.json | 32 - .../phpunit/php-timer/package-composer.json | 19 - .../vendor/phpunit/php-timer/package.xml | 59 - .../vendor/phpunit/php-timer/phpunit.xml.dist | 26 - .../php-token-stream/ChangeLog.markdown | 35 - .../vendor/phpunit/php-token-stream/LICENSE | 33 - .../phpunit/php-token-stream/PHP/Token.php | 717 --- .../php-token-stream/PHP/Token/Stream.php | 568 --- .../PHP/Token/Stream/Autoload.php | 226 - .../PHP/Token/Stream/Autoload.php.in | 65 - .../PHP/Token/Stream/CachingFactory.php | 85 - .../phpunit/php-token-stream/README.markdown | 23 - .../Tests/Token/ClassTest.php | 122 - .../Tests/Token/FunctionTest.php | 160 - .../Tests/Token/IncludeTest.php | 117 - .../Tests/Token/InterfaceTest.php | 236 - .../Tests/Token/NamespaceTest.php | 124 - .../php-token-stream/Tests/TokenTest.php | 85 - .../_files/classExtendsNamespacedClass.php | 10 - .../Tests/_files/classInNamespace.php | 6 - .../Tests/_files/classInScopedNamespace.php | 9 - .../php-token-stream/Tests/_files/issue19.php | 3 - ...tipleNamespacesWithOneClassUsingBraces.php | 12 - ...espacesWithOneClassUsingNonBraceSyntax.php | 14 - .../php-token-stream/Tests/_files/source.php | 32 - .../php-token-stream/Tests/_files/source2.php | 6 - .../php-token-stream/Tests/_files/source3.php | 14 - .../php-token-stream/Tests/_files/source4.php | 30 - .../vendor/phpunit/php-token-stream/build.xml | 162 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../php-token-stream/build/PHPCS/ruleset.xml | 35 - .../phpunit/php-token-stream/build/phpmd.xml | 27 - .../phpunit/php-token-stream/composer.json | 33 - .../php-token-stream/package-composer.json | 19 - .../phpunit/php-token-stream/package.xml | 70 - .../phpunit/php-token-stream/phpunit.xml.dist | 27 - .../phpunit-mock-objects/CONTRIBUTING.md | 5 - .../phpunit-mock-objects/ChangeLog.markdown | 17 - .../phpunit/phpunit-mock-objects/LICENSE | 33 - .../PHPUnit/Framework/MockObject/Autoload.php | 100 - .../Framework/MockObject/Autoload.php.in | 65 - .../Framework/MockObject/Builder/Identity.php | 70 - .../MockObject/Builder/InvocationMocker.php | 193 - .../Framework/MockObject/Builder/Match.php | 66 - .../MockObject/Builder/MethodNameMatch.php | 68 - .../MockObject/Builder/Namespace.php | 79 - .../MockObject/Builder/ParametersMatch.php | 89 - .../Framework/MockObject/Builder/Stub.php | 66 - .../Framework/MockObject/Generator.php | 811 ---- .../Generator/mocked_class.tpl.dist | 60 - .../Generator/mocked_clone.tpl.dist | 5 - .../Generator/mocked_object_method.tpl.dist | 22 - .../Generator/mocked_static_method.tpl.dist | 22 - .../MockObject/Generator/trait_class.tpl.dist | 4 - .../Generator/unmocked_clone.tpl.dist | 6 - .../MockObject/Generator/wsdl_class.tpl.dist | 9 - .../MockObject/Generator/wsdl_method.tpl.dist | 4 - .../Framework/MockObject/Invocation.php | 58 - .../MockObject/Invocation/Object.php | 75 - .../MockObject/Invocation/Static.php | 191 - .../Framework/MockObject/InvocationMocker.php | 201 - .../Framework/MockObject/Invokable.php | 79 - .../PHPUnit/Framework/MockObject/Matcher.php | 308 -- .../MockObject/Matcher/AnyInvokedCount.php | 72 - .../MockObject/Matcher/AnyParameters.php | 74 - .../MockObject/Matcher/Invocation.php | 88 - .../MockObject/Matcher/InvokedAtIndex.php | 127 - .../MockObject/Matcher/InvokedAtLeastOnce.php | 85 - .../MockObject/Matcher/InvokedCount.php | 143 - .../MockObject/Matcher/InvokedRecorder.php | 107 - .../MockObject/Matcher/MethodName.php | 102 - .../MockObject/Matcher/Parameters.php | 160 - .../Matcher/StatelessInvocation.php | 96 - .../Framework/MockObject/MockBuilder.php | 291 -- .../Framework/MockObject/MockObject.php | 94 - .../PHPUnit/Framework/MockObject/Stub.php | 71 - .../MockObject/Stub/ConsecutiveCalls.php | 87 - .../Framework/MockObject/Stub/Exception.php | 80 - .../MockObject/Stub/MatcherCollection.php | 66 - .../Framework/MockObject/Stub/Return.php | 78 - .../MockObject/Stub/ReturnArgument.php | 78 - .../MockObject/Stub/ReturnCallback.php | 94 - .../Framework/MockObject/Stub/ReturnSelf.php | 76 - .../MockObject/Stub/ReturnValueMap.php | 87 - .../Framework/MockObject/Verifiable.php | 65 - .../Tests/GeneratorTest.php | 89 - .../Tests/MockBuilderTest.php | 152 - .../MockObject/Invocation/ObjectTest.php | 82 - .../MockObject/Invocation/StaticTest.php | 52 - .../Tests/MockObject/class.phpt | 137 - .../MockObject/class_call_parent_clone.phpt | 91 - .../class_call_parent_constructor.phpt | 90 - .../class_dont_call_parent_clone.phpt | 90 - .../class_dont_call_parent_constructor.phpt | 90 - ...ing_interface_call_parent_constructor.phpt | 95 - ...nterface_dont_call_parent_constructor.phpt | 95 - .../Tests/MockObject/class_partial.phpt | 116 - .../Tests/MockObject/interface.phpt | 110 - .../invocation_object_clone_object.phpt | 139 - .../invocation_static_clone_object.phpt | 139 - .../Tests/MockObject/namespaced_class.phpt | 140 - .../namespaced_class_call_parent_clone.phpt | 93 - ...espaced_class_call_parent_constructor.phpt | 92 - ...mespaced_class_dont_call_parent_clone.phpt | 92 - ...ed_class_dont_call_parent_constructor.phpt | 92 - ...ing_interface_call_parent_constructor.phpt | 97 - ...nterface_dont_call_parent_constructor.phpt | 97 - .../MockObject/namespaced_class_partial.phpt | 118 - .../MockObject/namespaced_interface.phpt | 112 - .../Tests/MockObject/nonexistent_class.phpt | 87 - .../nonexistent_class_with_namespace.phpt | 95 - ...ith_namespace_starting_with_separator.phpt | 95 - .../Tests/MockObject/wsdl_class.phpt | 36 - .../MockObject/wsdl_class_namespace.phpt | 38 - .../Tests/MockObject/wsdl_class_partial.phpt | 29 - .../Tests/MockObjectTest.php | 552 --- .../Tests/_files/AbstractMockTestClass.php | 5 - .../Tests/_files/AnInterface.php | 5 - .../Tests/_files/FunctionCallback.php | 9 - .../Tests/_files/GoogleSearch.wsdl | 198 - .../Tests/_files/MethodCallback.php | 21 - .../Tests/_files/Mockable.php | 28 - .../Tests/_files/PartialMockTestClass.php | 18 - .../Tests/_files/SomeClass.php | 13 - .../Tests/_files/StaticMockTestClass.php | 12 - .../phpunit/phpunit-mock-objects/build.xml | 162 - .../ControlSignatureSniff.php | 22 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../build/PHPCS/ruleset.xml | 35 - .../phpunit-mock-objects/build/phpmd.xml | 27 - .../phpunit-mock-objects/composer.json | 41 - .../package-composer.json | 19 - .../phpunit/phpunit-mock-objects/package.xml | 199 - .../phpunit-mock-objects/phpunit.xml.dist | 31 - .../vendor/phpunit/phpunit/CONTRIBUTING.md | 55 - .../vendor/phpunit/phpunit/ChangeLog.md | 82 - .../kohana/vendor/phpunit/phpunit/LICENSE | 33 - .../phpunit/phpunit/PHPUnit/Autoload.php | 208 - .../phpunit/phpunit/PHPUnit/Autoload.php.in | 91 - .../PHPUnit/Extensions/GroupTestSuite.php | 99 - .../PHPUnit/Extensions/PhptTestCase.php | 269 -- .../Extensions/PhptTestCase/Logger.php | 62 - .../PHPUnit/Extensions/PhptTestSuite.php | 82 - .../PHPUnit/Extensions/RepeatedTest.php | 155 - .../PHPUnit/Extensions/TestDecorator.php | 149 - .../PHPUnit/Extensions/TicketListener.php | 224 - .../phpunit/PHPUnit/Framework/Assert.php | 2832 ----------- .../PHPUnit/Framework/Assert/Functions.php | 1972 -------- .../PHPUnit/Framework/Assert/Functions.php.in | 44 - .../Framework/AssertionFailedError.php | 68 - .../phpunit/PHPUnit/Framework/Comparator.php | 97 - .../PHPUnit/Framework/Comparator/Array.php | 177 - .../Framework/Comparator/DOMDocument.php | 114 - .../PHPUnit/Framework/Comparator/Double.php | 101 - .../Framework/Comparator/Exception.php | 92 - .../Framework/Comparator/MockObject.php | 86 - .../PHPUnit/Framework/Comparator/Numeric.php | 116 - .../PHPUnit/Framework/Comparator/Object.php | 145 - .../PHPUnit/Framework/Comparator/Resource.php | 97 - .../PHPUnit/Framework/Comparator/Scalar.php | 136 - .../Framework/Comparator/SplObjectStorage.php | 114 - .../PHPUnit/Framework/Comparator/Type.php | 105 - .../PHPUnit/Framework/ComparatorFactory.php | 156 - .../PHPUnit/Framework/ComparisonFailure.php | 166 - .../phpunit/PHPUnit/Framework/Constraint.php | 180 - .../PHPUnit/Framework/Constraint/And.php | 164 - .../Framework/Constraint/ArrayHasKey.php | 114 - .../Framework/Constraint/Attribute.php | 129 - .../PHPUnit/Framework/Constraint/Callback.php | 116 - .../Constraint/ClassHasAttribute.php | 124 - .../Constraint/ClassHasStaticAttribute.php | 98 - .../Framework/Constraint/Composite.php | 114 - .../PHPUnit/Framework/Constraint/Count.php | 128 - .../Framework/Constraint/Exception.php | 129 - .../Framework/Constraint/ExceptionCode.php | 109 - .../Framework/Constraint/ExceptionMessage.php | 109 - .../Framework/Constraint/FileExists.php | 102 - .../Framework/Constraint/GreaterThan.php | 96 - .../Framework/Constraint/IsAnything.php | 102 - .../PHPUnit/Framework/Constraint/IsEmpty.php | 104 - .../PHPUnit/Framework/Constraint/IsEqual.php | 215 - .../PHPUnit/Framework/Constraint/IsFalse.php | 82 - .../Framework/Constraint/IsIdentical.php | 172 - .../Framework/Constraint/IsInstanceOf.php | 121 - .../PHPUnit/Framework/Constraint/IsNull.php | 82 - .../PHPUnit/Framework/Constraint/IsTrue.php | 82 - .../PHPUnit/Framework/Constraint/IsType.php | 190 - .../Framework/Constraint/JsonMatches.php | 126 - .../JsonMatches/ErrorMessageProvider.php | 106 - .../PHPUnit/Framework/Constraint/LessThan.php | 96 - .../PHPUnit/Framework/Constraint/Not.php | 203 - .../Constraint/ObjectHasAttribute.php | 77 - .../PHPUnit/Framework/Constraint/Or.php | 157 - .../Framework/Constraint/PCREMatch.php | 105 - .../PHPUnit/Framework/Constraint/SameSize.php | 73 - .../Framework/Constraint/StringContains.php | 122 - .../Framework/Constraint/StringEndsWith.php | 96 - .../Framework/Constraint/StringMatches.php | 134 - .../Framework/Constraint/StringStartsWith.php | 96 - .../Constraint/TraversableContains.php | 152 - .../Constraint/TraversableContainsOnly.php | 135 - .../PHPUnit/Framework/Constraint/Xor.php | 162 - .../phpunit/PHPUnit/Framework/Error.php | 75 - .../PHPUnit/Framework/Error/Deprecated.php | 65 - .../PHPUnit/Framework/Error/Notice.php | 65 - .../PHPUnit/Framework/Error/Warning.php | 65 - .../phpunit/PHPUnit/Framework/Exception.php | 59 - .../Framework/ExpectationFailedException.php | 82 - .../PHPUnit/Framework/IncompleteTest.php | 60 - .../PHPUnit/Framework/IncompleteTestError.php | 60 - .../phpunit/PHPUnit/Framework/OutputError.php | 60 - .../Framework/Process/TestCaseMethod.tpl.dist | 51 - .../PHPUnit/Framework/SelfDescribing.php | 65 - .../phpunit/PHPUnit/Framework/SkippedTest.php | 59 - .../PHPUnit/Framework/SkippedTestError.php | 60 - .../Framework/SkippedTestSuiteError.php | 60 - .../PHPUnit/Framework/SyntheticError.php | 121 - .../phpunit/PHPUnit/Framework/Test.php | 66 - .../phpunit/PHPUnit/Framework/TestCase.php | 1880 -------- .../phpunit/PHPUnit/Framework/TestFailure.php | 179 - .../PHPUnit/Framework/TestListener.php | 126 - .../phpunit/PHPUnit/Framework/TestResult.php | 956 ---- .../phpunit/PHPUnit/Framework/TestSuite.php | 950 ---- .../Framework/TestSuite/DataProvider.php | 70 - .../phpunit/PHPUnit/Framework/Warning.php | 125 - .../phpunit/PHPUnit/Runner/BaseTestRunner.php | 189 - .../Runner/StandardTestSuiteLoader.php | 153 - .../PHPUnit/Runner/TestSuiteLoader.php | 71 - .../phpunit/PHPUnit/Runner/Version.php | 100 - .../phpunit/PHPUnit/TextUI/Command.php | 897 ---- .../phpunit/PHPUnit/TextUI/ResultPrinter.php | 664 --- .../phpunit/PHPUnit/TextUI/TestRunner.php | 814 ---- .../phpunit/phpunit/PHPUnit/Util/Class.php | 363 -- .../phpunit/PHPUnit/Util/Configuration.php | 1026 ---- .../PHPUnit/Util/DeprecatedFeature.php | 102 - .../PHPUnit/Util/DeprecatedFeature/Logger.php | 201 - .../phpunit/phpunit/PHPUnit/Util/Diff.php | 292 -- .../phpunit/PHPUnit/Util/ErrorHandler.php | 132 - .../phpunit/PHPUnit/Util/Fileloader.php | 107 - .../phpunit/PHPUnit/Util/Filesystem.php | 81 - .../phpunit/phpunit/PHPUnit/Util/Filter.php | 146 - .../phpunit/phpunit/PHPUnit/Util/Getopt.php | 207 - .../phpunit/PHPUnit/Util/GlobalState.php | 427 -- .../PHPUnit/Util/InvalidArgumentHelper.php | 80 - .../phpunit/phpunit/PHPUnit/Util/Log/JSON.php | 254 - .../phpunit/PHPUnit/Util/Log/JUnit.php | 482 -- .../phpunit/phpunit/PHPUnit/Util/Log/TAP.php | 255 - .../phpunit/phpunit/PHPUnit/Util/PHP.php | 332 -- .../phpunit/PHPUnit/Util/PHP/Default.php | 67 - .../phpunit/PHPUnit/Util/PHP/Windows.php | 90 - .../phpunit/phpunit/PHPUnit/Util/Printer.php | 208 - .../phpunit/phpunit/PHPUnit/Util/String.php | 118 - .../phpunit/phpunit/PHPUnit/Util/Test.php | 601 --- .../PHPUnit/Util/TestDox/NamePrettifier.php | 177 - .../PHPUnit/Util/TestDox/ResultPrinter.php | 347 -- .../Util/TestDox/ResultPrinter/HTML.php | 123 - .../Util/TestDox/ResultPrinter/Text.php | 95 - .../PHPUnit/Util/TestSuiteIterator.php | 148 - .../phpunit/phpunit/PHPUnit/Util/Type.php | 303 -- .../phpunit/phpunit/PHPUnit/Util/XML.php | 916 ---- .../kohana/vendor/phpunit/phpunit/README.md | 71 - .../Tests/Extensions/RepeatedTestTest.php | 108 - .../phpunit/Tests/Framework/AssertTest.php | 4158 ----------------- .../Tests/Framework/ComparatorTest.php | 159 - .../JsonMatches/ErrorMessageProviderTest.php | 122 - .../Framework/Constraint/JsonMatchesTest.php | 90 - .../Tests/Framework/ConstraintTest.php | 3554 -------------- .../phpunit/Tests/Framework/SuiteTest.php | 185 - .../phpunit/Tests/Framework/TestCaseTest.php | 439 -- .../Tests/Framework/TestImplementorTest.php | 79 - .../Tests/Framework/TestListenerTest.php | 145 - .../phpunit/Tests/Regression/1021.phpt | 19 - .../Tests/Regression/1021/Issue1021Test.php | 23 - .../phpunit/phpunit/Tests/Regression/523.phpt | 19 - .../Tests/Regression/523/Issue523Test.php | 13 - .../phpunit/phpunit/Tests/Regression/578.phpt | 37 - .../Tests/Regression/578/Issue578Test.php | 20 - .../phpunit/phpunit/Tests/Regression/684.phpt | 26 - .../Tests/Regression/684/Issue684Test.php | 4 - .../phpunit/phpunit/Tests/Regression/783.phpt | 21 - .../Tests/Regression/783/ChildSuite.php | 15 - .../phpunit/Tests/Regression/783/OneTest.php | 10 - .../Tests/Regression/783/ParentSuite.php | 13 - .../phpunit/Tests/Regression/783/TwoTest.php | 10 - .../phpunit/Tests/Regression/GitHub/244.phpt | 40 - .../Regression/GitHub/244/Issue244Test.php | 55 - .../phpunit/Tests/Regression/GitHub/322.phpt | 28 - .../Regression/GitHub/322/Issue322Test.php | 17 - .../Regression/GitHub/322/phpunit322.xml | 11 - .../phpunit/Tests/Regression/GitHub/433.phpt | 33 - .../Regression/GitHub/433/Issue433Test.php | 21 - .../phpunit/Tests/Regression/GitHub/445.phpt | 34 - .../Regression/GitHub/445/Issue445Test.php | 21 - .../phpunit/Tests/Regression/GitHub/503.phpt | 34 - .../Regression/GitHub/503/Issue503Test.php | 11 - .../phpunit/Tests/Regression/GitHub/581.phpt | 43 - .../Regression/GitHub/581/Issue581Test.php | 10 - .../phpunit/Tests/Regression/GitHub/74.phpt | 31 - .../Regression/GitHub/74/Issue74Test.php | 9 - .../Regression/GitHub/74/NewException.php | 4 - .../Tests/Runner/BaseTestRunnerTest.php | 65 - .../Tests/TextUI/abstract-test-class.phpt | 29 - .../Tests/TextUI/concrete-test-class.phpt | 22 - .../dataprovider-log-xml-isolation.phpt | 49 - .../Tests/TextUI/dataprovider-log-xml.phpt | 50 - .../Tests/TextUI/dataprovider-testdox.phpt | 19 - .../phpunit/phpunit/Tests/TextUI/debug.phpt | 28 - .../Tests/TextUI/default-isolation.phpt | 22 - .../phpunit/phpunit/Tests/TextUI/default.phpt | 21 - .../Tests/TextUI/dependencies-isolation.phpt | 42 - .../phpunit/Tests/TextUI/dependencies.phpt | 42 - .../Tests/TextUI/dependencies2-isolation.phpt | 23 - .../phpunit/Tests/TextUI/dependencies2.phpt | 22 - .../Tests/TextUI/dependencies3-isolation.phpt | 23 - .../phpunit/Tests/TextUI/dependencies3.phpt | 21 - .../phpunit/Tests/TextUI/empty-testcase.phpt | 29 - .../phpunit/Tests/TextUI/exception-stack.phpt | 55 - .../Tests/TextUI/exclude-group-isolation.phpt | 24 - .../phpunit/Tests/TextUI/exclude-group.phpt | 23 - .../Tests/TextUI/failure-isolation.phpt | 144 - .../phpunit/phpunit/Tests/TextUI/failure.phpt | 144 - .../phpunit/Tests/TextUI/fatal-isolation.phpt | 35 - .../phpunit/phpunit/Tests/TextUI/fatal.phpt | 17 - .../Tests/TextUI/filter-class-isolation.phpt | 24 - .../phpunit/Tests/TextUI/filter-class.phpt | 23 - .../Tests/TextUI/filter-method-isolation.phpt | 24 - .../phpunit/Tests/TextUI/filter-method.phpt | 23 - .../Tests/TextUI/filter-no-results.phpt | 23 - .../phpunit/Tests/TextUI/group-isolation.phpt | 24 - .../phpunit/phpunit/Tests/TextUI/group.phpt | 23 - .../phpunit/phpunit/Tests/TextUI/help.phpt | 67 - .../phpunit/phpunit/Tests/TextUI/help2.phpt | 68 - .../phpunit/Tests/TextUI/list-groups.phpt | 22 - .../phpunit/Tests/TextUI/log-json.phpt | 77 - .../phpunit/phpunit/Tests/TextUI/log-tap.phpt | 28 - .../phpunit/phpunit/Tests/TextUI/log-xml.phpt | 31 - .../Tests/TextUI/strict-incomplete.phpt | 23 - .../Tests/TextUI/strict-isolation.phpt | 24 - .../phpunit/phpunit/Tests/TextUI/strict.phpt | 23 - .../phpunit/phpunit/Tests/TextUI/tap.phpt | 20 - .../Tests/TextUI/test-suffix-multiple.phpt | 22 - .../Tests/TextUI/test-suffix-single.phpt | 22 - .../phpunit/Tests/TextUI/testdox-html.phpt | 23 - .../phpunit/Tests/TextUI/testdox-text.phpt | 27 - .../phpunit/phpunit/Tests/TextUI/testdox.phpt | 21 - .../phpunit/phpunit/Tests/Util/ClassTest.php | 84 - .../phpunit/Tests/Util/ConfigurationTest.php | 390 -- .../phpunit/phpunit/Tests/Util/DiffTest.php | 268 -- .../Tests/Util/TestDox/NamePrettifierTest.php | 108 - .../phpunit/phpunit/Tests/Util/TestTest.php | 236 - .../phpunit/phpunit/Tests/Util/TypeTest.php | 269 -- .../phpunit/phpunit/Tests/Util/XMLTest.php | 323 -- .../phpunit/Tests/_files/AbstractTest.php | 7 - .../phpunit/phpunit/Tests/_files/Author.php | 66 - .../phpunit/Tests/_files/BankAccount.php | 116 - .../phpunit/Tests/_files/BankAccountTest.php | 133 - .../Tests/_files/BankAccountTest.test.php | 133 - .../phpunit/phpunit/Tests/_files/Book.php | 59 - .../phpunit/Tests/_files/Calculator.php | 14 - .../ChangeCurrentWorkingDirectoryTest.php | 10 - .../_files/ClassWithNonPublicAttributes.php | 29 - .../Tests/_files/ClassWithToString.php | 61 - .../phpunit/Tests/_files/ConcreteTest.my.php | 9 - .../phpunit/Tests/_files/ConcreteTest.php | 9 - .../phpunit/Tests/_files/DataProviderTest.php | 21 - .../Tests/_files/DependencyFailureTest.php | 22 - .../Tests/_files/DependencySuccessTest.php | 21 - .../Tests/_files/DependencyTestSuite.php | 16 - .../phpunit/Tests/_files/DoubleTestCase.php | 25 - .../Tests/_files/EmptyTestCaseTest.php | 4 - .../phpunit/phpunit/Tests/_files/Error.php | 8 - .../ExceptionInAssertPostConditionsTest.php | 35 - .../ExceptionInAssertPreConditionsTest.php | 35 - .../Tests/_files/ExceptionInSetUpTest.php | 35 - .../Tests/_files/ExceptionInTearDownTest.php | 35 - .../phpunit/Tests/_files/ExceptionInTest.php | 35 - .../Tests/_files/ExceptionNamespaceTest.php | 38 - .../phpunit/Tests/_files/ExceptionStack.php | 23 - .../phpunit/Tests/_files/ExceptionTest.php | 97 - .../phpunit/phpunit/Tests/_files/Failure.php | 8 - .../phpunit/Tests/_files/FailureTest.php | 76 - .../phpunit/Tests/_files/FatalTest.php | 10 - .../phpunit/Tests/_files/IncompleteTest.php | 8 - .../Tests/_files/InheritedTestCase.php | 9 - .../Tests/_files/JsonData/arrayObject.js | 1 - .../Tests/_files/JsonData/simpleObject.js | 1 - .../Tests/_files/JsonData/simpleObject2.js | 1 - .../phpunit/Tests/_files/MockRunner.php | 7 - .../Tests/_files/MultiDependencyTest.php | 23 - .../Tests/_files/NoArgTestCaseTest.php | 7 - .../phpunit/Tests/_files/NoTestCaseClass.php | 4 - .../phpunit/Tests/_files/NoTestCases.php | 7 - .../phpunit/Tests/_files/NonStatic.php | 8 - .../Tests/_files/NotPublicTestCase.php | 11 - .../phpunit/Tests/_files/NotVoidTestCase.php | 4 - .../phpunit/Tests/_files/NothingTest.php | 7 - .../phpunit/Tests/_files/OneTestCase.php | 11 - .../phpunit/Tests/_files/OutputTestCase.php | 27 - .../phpunit/Tests/_files/OverrideTestCase.php | 9 - .../_files/RequirementsClassDocBlockTest.php | 23 - .../phpunit/Tests/_files/RequirementsTest.php | 112 - .../phpunit/Tests/_files/SampleClass.php | 14 - .../_files/SelectorAssertionsFixture.html | 44 - .../phpunit/Tests/_files/Singleton.php | 22 - .../phpunit/Tests/_files/StackTest.php | 24 - .../phpunit/phpunit/Tests/_files/Struct.php | 10 - .../phpunit/phpunit/Tests/_files/Success.php | 7 - .../Tests/_files/TemplateMethodsTest.php | 52 - .../phpunit/Tests/_files/TestIterator.php | 36 - .../Tests/_files/ThrowExceptionTestCase.php | 8 - .../Tests/_files/ThrowNoExceptionTestCase.php | 7 - .../phpunit/phpunit/Tests/_files/WasRun.php | 10 - .../phpunit/phpunit/Tests/_files/bar.xml | 1 - .../phpunit/Tests/_files/configuration.xml | 115 - .../Tests/_files/configuration_xinclude.xml | 68 - .../Tests/_files/expectedFileFormat.txt | 1 - .../phpunit/phpunit/Tests/_files/foo.xml | 1 - ...uctureAttributesAreSameButValuesAreNot.xml | 10 - .../Tests/_files/structureExpected.xml | 10 - .../Tests/_files/structureIgnoreTextNodes.xml | 13 - .../_files/structureIsSameButDataIsNot.xml | 10 - .../structureWrongNumberOfAttributes.xml | 10 - .../_files/structureWrongNumberOfNodes.xml | 9 - .../kohana/vendor/phpunit/phpunit/build.xml | 220 - .../ControlSignatureSniff.php | 23 - .../Whitespace/ConcatenationSpacingSniff.php | 22 - .../phpunit/phpunit/build/PHPCS/ruleset.xml | 35 - .../phpunit/phpunit/build/assertions.php | 65 - .../build/dependencies/DbUnit-1.2.1.tgz | Bin 41892 -> 0 bytes .../dependencies/File_Iterator-1.3.3.tgz | Bin 5152 -> 0 bytes .../dependencies/PHPUnit_MockObject-1.2.1.tgz | Bin 20417 -> 0 bytes .../dependencies/PHPUnit_Selenium-1.2.9.tgz | Bin 36429 -> 0 bytes .../dependencies/PHP_CodeCoverage-1.2.6.tgz | Bin 155960 -> 0 bytes .../build/dependencies/PHP_Invoker-1.1.2.tgz | Bin 3705 -> 0 bytes .../build/dependencies/PHP_Timer-1.0.4.tgz | Bin 3694 -> 0 bytes .../dependencies/PHP_TokenStream-1.1.5.tgz | Bin 9859 -> 0 bytes .../dependencies/Text_Template-1.1.3.tgz | Bin 3594 -> 0 bytes .../phpunit/build/dependencies/Yaml-2.1.2.tgz | Bin 38429 -> 0 bytes .../phpunit/build/phar-autoload.php.in | 24 - .../vendor/phpunit/phpunit/build/phpmd.xml | 27 - .../vendor/phpunit/phpunit/composer.json | 62 - .../phpunit/phpunit/composer/bin/phpunit | 65 - .../kohana/vendor/phpunit/phpunit/package.xml | 292 -- .../vendor/phpunit/phpunit/phpdox.xml.dist | 14 - .../kohana/vendor/phpunit/phpunit/phpunit.bat | 43 - .../kohana/vendor/phpunit/phpunit/phpunit.php | 46 - .../vendor/phpunit/phpunit/phpunit.xml.dist | 42 - .../kohana/vendor/phpunit/phpunit/phpunit.xsd | 251 - .../yaml/Symfony/Component/Yaml/CHANGELOG.md | 8 - .../yaml/Symfony/Component/Yaml/Dumper.php | 71 - .../yaml/Symfony/Component/Yaml/Escaper.php | 88 - .../Yaml/Exception/DumpException.php | 23 - .../Yaml/Exception/ExceptionInterface.php | 23 - .../Yaml/Exception/ParseException.php | 143 - .../yaml/Symfony/Component/Yaml/Inline.php | 424 -- .../yaml/Symfony/Component/Yaml/LICENSE | 19 - .../yaml/Symfony/Component/Yaml/Parser.php | 620 --- .../yaml/Symfony/Component/Yaml/README.md | 17 - .../Component/Yaml/Tests/DumperTest.php | 166 - .../Yaml/Tests/Fixtures/YtsAnchorAlias.yml | 31 - .../Yaml/Tests/Fixtures/YtsBasicTests.yml | 178 - .../Yaml/Tests/Fixtures/YtsBlockMapping.yml | 51 - .../Tests/Fixtures/YtsDocumentSeparator.yml | 85 - .../Yaml/Tests/Fixtures/YtsErrorTests.yml | 25 - .../Tests/Fixtures/YtsFlowCollections.yml | 60 - .../Yaml/Tests/Fixtures/YtsFoldedScalars.yml | 176 - .../Tests/Fixtures/YtsNullsAndEmpties.yml | 45 - .../Fixtures/YtsSpecificationExamples.yml | 1695 ------- .../Yaml/Tests/Fixtures/YtsTypeTransfers.yml | 244 - .../Yaml/Tests/Fixtures/embededPhp.yml | 1 - .../Yaml/Tests/Fixtures/escapedCharacters.yml | 139 - .../Component/Yaml/Tests/Fixtures/index.yml | 18 - .../Yaml/Tests/Fixtures/sfComments.yml | 51 - .../Yaml/Tests/Fixtures/sfCompact.yml | 159 - .../Yaml/Tests/Fixtures/sfMergeKey.yml | 27 - .../Yaml/Tests/Fixtures/sfObjects.yml | 11 - .../Yaml/Tests/Fixtures/sfQuotes.yml | 33 - .../Component/Yaml/Tests/Fixtures/sfTests.yml | 135 - .../Tests/Fixtures/unindentedCollections.yml | 62 - .../Component/Yaml/Tests/InlineTest.php | 211 - .../Component/Yaml/Tests/ParserTest.php | 193 - .../Symfony/Component/Yaml/Tests/YamlTest.php | 41 - .../Component/Yaml/Tests/bootstrap.php | 18 - .../yaml/Symfony/Component/Yaml/Unescaper.php | 145 - .../yaml/Symfony/Component/Yaml/Yaml.php | 113 - .../yaml/Symfony/Component/Yaml/composer.json | 31 - .../Symfony/Component/Yaml/phpunit.xml.dist | 29 - modules/lnApp | 1 + modules/lnApp/classes/Block.php | 4 - modules/lnApp/classes/Block/Sub.php | 4 - modules/lnApp/classes/BreadCrumb.php | 4 - modules/lnApp/classes/Controller/Default.php | 4 - modules/lnApp/classes/Controller/Login.php | 4 - modules/lnApp/classes/Controller/Logout.php | 4 - modules/lnApp/classes/Controller/Media.php | 4 - modules/lnApp/classes/Controller/Task.php | 4 - modules/lnApp/classes/HTML.php | 4 - modules/lnApp/classes/HTMLRender.php | 4 - modules/lnApp/classes/HeadImages.php | 4 - modules/lnApp/classes/Meta.php | 4 - modules/lnApp/classes/PWGen.php | 4 - modules/lnApp/classes/Random.php | 4 - modules/lnApp/classes/Script.php | 4 - modules/lnApp/classes/Sort.php | 4 - modules/lnApp/classes/Style.php | 4 - modules/lnApp/classes/SystemMessage.php | 4 - modules/lnApp/classes/Table.php | 4 - modules/lnApp/classes/lnApp/Block.php | 84 - modules/lnApp/classes/lnApp/Block/Sub.php | 94 - modules/lnApp/classes/lnApp/BreadCrumb.php | 96 - .../classes/lnApp/Controller/Default.php | 89 - .../lnApp/classes/lnApp/Controller/Login.php | 63 - .../lnApp/classes/lnApp/Controller/Logout.php | 30 - .../lnApp/classes/lnApp/Controller/Media.php | 63 - .../lnApp/classes/lnApp/Controller/Task.php | 20 - .../lnApp/Controller/TemplateDefault.php | 265 -- .../lnApp/classes/lnApp/Controller/Tree.php | 116 - modules/lnApp/classes/lnApp/HTML.php | 20 - modules/lnApp/classes/lnApp/HTMLRender.php | 91 - modules/lnApp/classes/lnApp/HeadImages.php | 47 - modules/lnApp/classes/lnApp/Meta.php | 33 - modules/lnApp/classes/lnApp/PWgen.php | 35 - modules/lnApp/classes/lnApp/Random.php | 17 - modules/lnApp/classes/lnApp/Script.php | 64 - modules/lnApp/classes/lnApp/Sort.php | 89 - modules/lnApp/classes/lnApp/Style.php | 53 - modules/lnApp/classes/lnApp/SystemMessage.php | 128 - modules/lnApp/classes/lnApp/Table.php | 275 -- modules/lnApp/views/lnapp/default.php | 93 - 1496 files changed, 8 insertions(+), 167242 deletions(-) create mode 100644 .gitmodules create mode 160000 includes/kohana delete mode 100644 includes/kohana/.travis.yml delete mode 100644 includes/kohana/LICENSE.md delete mode 100644 includes/kohana/README.md delete mode 100644 includes/kohana/composer.json delete mode 100644 includes/kohana/composer.lock delete mode 100644 includes/kohana/composer.phar delete mode 100644 includes/kohana/install.php delete mode 100644 includes/kohana/modules/auth/README.md delete mode 100644 includes/kohana/modules/auth/classes/Auth.php delete mode 100644 includes/kohana/modules/auth/classes/Auth/File.php delete mode 100644 includes/kohana/modules/auth/classes/Kohana/Auth.php delete mode 100644 includes/kohana/modules/auth/classes/Kohana/Auth/File.php delete mode 100644 includes/kohana/modules/auth/config/auth.php delete mode 100644 includes/kohana/modules/auth/config/userguide.php delete mode 100644 includes/kohana/modules/auth/guide/auth/config.md delete mode 100644 includes/kohana/modules/auth/guide/auth/driver/develop.md delete mode 100644 includes/kohana/modules/auth/guide/auth/driver/file.md delete mode 100644 includes/kohana/modules/auth/guide/auth/index.md delete mode 100644 includes/kohana/modules/auth/guide/auth/login.md delete mode 100644 includes/kohana/modules/auth/guide/auth/menu.md delete mode 100644 includes/kohana/modules/cache/README.md delete mode 100644 includes/kohana/modules/cache/classes/Cache.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Apc.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Arithmetic.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Exception.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/File.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/GarbageCollect.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Memcache.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/MemcacheTag.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Sqlite.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Tagging.php delete mode 100644 includes/kohana/modules/cache/classes/Cache/Wincache.php delete mode 100644 includes/kohana/modules/cache/classes/HTTP/Cache.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Apc.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Arithmetic.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Exception.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/File.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/GarbageCollect.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Memcache.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/MemcacheTag.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Sqlite.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Tagging.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/Cache/Wincache.php delete mode 100644 includes/kohana/modules/cache/classes/Kohana/HTTP/Cache.php delete mode 100644 includes/kohana/modules/cache/config/cache.php delete mode 100644 includes/kohana/modules/cache/config/userguide.php delete mode 100644 includes/kohana/modules/cache/guide/cache.usage.md delete mode 100644 includes/kohana/modules/cache/guide/cache/config.md delete mode 100644 includes/kohana/modules/cache/guide/cache/examples.md delete mode 100644 includes/kohana/modules/cache/guide/cache/index.md delete mode 100644 includes/kohana/modules/cache/guide/cache/menu.md delete mode 100644 includes/kohana/modules/cache/guide/cache/usage.md delete mode 100644 includes/kohana/modules/cache/tests/cache/CacheBasicMethodsTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/CacheTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/FileTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/SqliteTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/WincacheTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/arithmetic/ApcTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/arithmetic/CacheArithmeticMethods.php delete mode 100644 includes/kohana/modules/cache/tests/cache/arithmetic/MemcacheTest.php delete mode 100644 includes/kohana/modules/cache/tests/cache/request/client/CacheTest.php delete mode 100644 includes/kohana/modules/cache/tests/phpunit.xml delete mode 100644 includes/kohana/modules/codebench/classes/Bench/ArrCallback.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/AutoLinkEmails.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/DateSpan.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/ExplodeLimit.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/GruberURL.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/LtrimDigits.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/MDDoBaseURL.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/MDDoImageURL.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/MDDoIncludeViews.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/StripNullBytes.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/Transliterate.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/URLSite.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/UserFuncArray.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/ValidColor.php delete mode 100644 includes/kohana/modules/codebench/classes/Bench/ValidURL.php delete mode 100644 includes/kohana/modules/codebench/classes/Codebench.php delete mode 100644 includes/kohana/modules/codebench/classes/Controller/Codebench.php delete mode 100644 includes/kohana/modules/codebench/classes/Kohana/Codebench.php delete mode 100644 includes/kohana/modules/codebench/config/codebench.php delete mode 100644 includes/kohana/modules/codebench/config/userguide.php delete mode 100644 includes/kohana/modules/codebench/guide/codebench/index.md delete mode 100644 includes/kohana/modules/codebench/guide/codebench/menu.md delete mode 100644 includes/kohana/modules/codebench/init.php delete mode 100644 includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot1.png delete mode 100644 includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot2.png delete mode 100644 includes/kohana/modules/codebench/views/codebench.php delete mode 100644 includes/kohana/modules/cron/README.markdown delete mode 100644 includes/kohana/modules/cron/classes/Cron.php delete mode 100644 includes/kohana/modules/cron/classes/Kohana/Cron.php delete mode 100644 includes/kohana/modules/cron/config/cron.php delete mode 100644 includes/kohana/modules/cron/run.php delete mode 100644 includes/kohana/modules/cron/tests/kohana/cron.php delete mode 100644 includes/kohana/modules/database/classes/Config/Database.php delete mode 100644 includes/kohana/modules/database/classes/Config/Database/Reader.php delete mode 100644 includes/kohana/modules/database/classes/Config/Database/Writer.php delete mode 100644 includes/kohana/modules/database/classes/DB.php delete mode 100644 includes/kohana/modules/database/classes/Database.php delete mode 100644 includes/kohana/modules/database/classes/Database/Exception.php delete mode 100644 includes/kohana/modules/database/classes/Database/Expression.php delete mode 100644 includes/kohana/modules/database/classes/Database/MySQL.php delete mode 100644 includes/kohana/modules/database/classes/Database/MySQL/Result.php delete mode 100644 includes/kohana/modules/database/classes/Database/PDO.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Delete.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Insert.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Join.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Select.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Update.php delete mode 100644 includes/kohana/modules/database/classes/Database/Query/Builder/Where.php delete mode 100644 includes/kohana/modules/database/classes/Database/Result.php delete mode 100644 includes/kohana/modules/database/classes/Database/Result/Cached.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Config/Database.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Config/Database/Reader.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Config/Database/Writer.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/DB.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Exception.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Expression.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/MySQL.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/MySQL/Result.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/PDO.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Delete.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Insert.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Join.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Select.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Update.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Where.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Result.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Database/Result/Cached.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Model/Database.php delete mode 100644 includes/kohana/modules/database/classes/Kohana/Session/Database.php delete mode 100644 includes/kohana/modules/database/classes/Model/Database.php delete mode 100644 includes/kohana/modules/database/classes/Session/Database.php delete mode 100644 includes/kohana/modules/database/config/database.php delete mode 100644 includes/kohana/modules/database/config/session.php delete mode 100644 includes/kohana/modules/database/config/userguide.php delete mode 100644 includes/kohana/modules/database/guide/database/config.md delete mode 100644 includes/kohana/modules/database/guide/database/examples.md delete mode 100644 includes/kohana/modules/database/guide/database/index.md delete mode 100644 includes/kohana/modules/database/guide/database/menu.md delete mode 100644 includes/kohana/modules/database/guide/database/query.md delete mode 100644 includes/kohana/modules/database/guide/database/query/builder.md delete mode 100644 includes/kohana/modules/database/guide/database/query/parameterized.md delete mode 100644 includes/kohana/modules/database/guide/database/results.md delete mode 100644 includes/kohana/modules/image/README.markdown delete mode 100644 includes/kohana/modules/image/classes/Image.php delete mode 100644 includes/kohana/modules/image/classes/Image/GD.php delete mode 100644 includes/kohana/modules/image/classes/Image/Imagick.php delete mode 100644 includes/kohana/modules/image/classes/Kohana/Image.php delete mode 100644 includes/kohana/modules/image/classes/Kohana/Image/GD.php delete mode 100644 includes/kohana/modules/image/classes/Kohana/Image/Imagick.php delete mode 100644 includes/kohana/modules/image/config/userguide.php delete mode 100644 includes/kohana/modules/image/guide/image/examples.md delete mode 100644 includes/kohana/modules/image/guide/image/examples/crop.md delete mode 100644 includes/kohana/modules/image/guide/image/examples/dynamic.md delete mode 100644 includes/kohana/modules/image/guide/image/examples/upload.md delete mode 100644 includes/kohana/modules/image/guide/image/index.md delete mode 100644 includes/kohana/modules/image/guide/image/menu.md delete mode 100644 includes/kohana/modules/image/guide/image/using.md delete mode 100644 includes/kohana/modules/image/media/guide/image/Thumbs.db delete mode 100644 includes/kohana/modules/image/media/guide/image/crop_form.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/crop_orig.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/crop_result.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/dynamic-400.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/dynamic-600.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/upload_form.jpg delete mode 100644 includes/kohana/modules/image/media/guide/image/upload_result.jpg delete mode 100644 includes/kohana/modules/image/tests/kohana/ImageTest.php delete mode 100644 includes/kohana/modules/image/tests/test_data/test_image delete mode 100644 includes/kohana/modules/khemail/README.markdown delete mode 100644 includes/kohana/modules/khemail/classes/Email.php delete mode 100644 includes/kohana/modules/khemail/config/email.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/CHANGES delete mode 100644 includes/kohana/modules/khemail/vendor/swift/LICENSE delete mode 100644 includes/kohana/modules/khemail/vendor/swift/README delete mode 100644 includes/kohana/modules/khemail/vendor/swift/VERSION delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Attachment.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/AbstractFilterableInputStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/ArrayByteStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/FileByteStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/GenericFixedWidthReader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/UsAsciiReader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/Utf8Reader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReaderFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReaderFactory/SimpleCharacterReaderFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream/ArrayCharacterStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream/NgCharacterStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyContainer.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyException.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/EmbeddedFile.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/Base64Encoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/QpEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/Rfc2231Encoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoding.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandEvent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/Event.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/EventDispatcher.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/EventListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/EventObject.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseEvent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SendEvent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SendListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SimpleEventDispatcher.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeEvent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportExceptionEvent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportExceptionListener.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/FailoverTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/FileStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Filterable.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Image.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/InputByteStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/IoException.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/ArrayKeyCache.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/DiskKeyCache.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/KeyCacheInputStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/NullKeyCache.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/SimpleKeyCacheInputStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/LoadBalancedTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/MailTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/ArrayRecipientIterator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/RecipientIterator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Message.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Attachment.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/CharsetObserver.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EmbeddedFile.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EncodingObserver.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Header.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/HeaderEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/HeaderEncoder/QpHeaderEncoder.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/HeaderFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/HeaderSet.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/AbstractHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/DateHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/IdentificationHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/MailboxHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/ParameterizedHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/PathHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/UnstructuredHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Message.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/MimeEntity.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/MimePart.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ParameterizedHeader.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleHeaderFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleHeaderSet.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMessage.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMimeEntity.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/MimePart.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/OutputByteStream.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/AntiFloodPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/BandwidthMonitorPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Decorator/Replacements.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/DecoratorPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Logger.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/LoggerPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/ArrayLogger.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/EchoLogger.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Pop/Pop3Connection.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Pop/Pop3Exception.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/PopBeforeSmtpPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/ReporterPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HitReporter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HtmlReporter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Sleeper.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/ThrottlerPlugin.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Timer.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Preferences.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/ReplacementFilterFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/RfcComplianceException.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/SendmailTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/SmtpTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilter.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilterFactory.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/SwiftException.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/AbstractSmtpTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/AuthHandler.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Authenticator.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/EsmtpHandler.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/EsmtpTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/FailoverTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/IoBuffer.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/LoadBalancedTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/MailInvoker.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/MailTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SendmailTransport.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SimpleMailInvoker.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SmtpAgent.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/StreamBuffer.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/classes/Swift/TransportException.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/dependency_maps/cache_deps.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/dependency_maps/mime_deps.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/dependency_maps/transport_deps.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/mime_types.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/preferences.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/swift_init.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/swift_required.php delete mode 100644 includes/kohana/modules/khemail/vendor/swift/swift_required_pear.php delete mode 100644 includes/kohana/modules/minion/README.md delete mode 100644 includes/kohana/modules/minion/classes/Kohana/Minion/CLI.php delete mode 100644 includes/kohana/modules/minion/classes/Kohana/Minion/Exception.php delete mode 100644 includes/kohana/modules/minion/classes/Kohana/Minion/Exception/InvalidTask.php delete mode 100644 includes/kohana/modules/minion/classes/Kohana/Minion/Task.php delete mode 100644 includes/kohana/modules/minion/classes/Minion/CLI.php delete mode 100644 includes/kohana/modules/minion/classes/Minion/Exception.php delete mode 100644 includes/kohana/modules/minion/classes/Minion/Exception/InvalidTask.php delete mode 100644 includes/kohana/modules/minion/classes/Minion/Task.php delete mode 100644 includes/kohana/modules/minion/classes/Task/Help.php delete mode 100644 includes/kohana/modules/minion/config/userguide.php delete mode 100644 includes/kohana/modules/minion/guide/minion/index.md delete mode 100644 includes/kohana/modules/minion/guide/minion/menu.md delete mode 100644 includes/kohana/modules/minion/guide/minion/setup.md delete mode 100644 includes/kohana/modules/minion/guide/minion/tasks.md delete mode 100644 includes/kohana/modules/minion/messages/validation.php delete mode 100644 includes/kohana/modules/minion/minion delete mode 100644 includes/kohana/modules/minion/miniond delete mode 100644 includes/kohana/modules/minion/tests/minion/task.php delete mode 100644 includes/kohana/modules/minion/views/minion/error/validation.php delete mode 100644 includes/kohana/modules/minion/views/minion/help/error.php delete mode 100644 includes/kohana/modules/minion/views/minion/help/list.php delete mode 100644 includes/kohana/modules/minion/views/minion/help/task.php delete mode 100644 includes/kohana/modules/orm/auth-schema-mysql.sql delete mode 100644 includes/kohana/modules/orm/auth-schema-postgresql.sql delete mode 100644 includes/kohana/modules/orm/classes/Auth/ORM.php delete mode 100644 includes/kohana/modules/orm/classes/Kohana/Auth/ORM.php delete mode 100644 includes/kohana/modules/orm/classes/Kohana/ORM.php delete mode 100644 includes/kohana/modules/orm/classes/Kohana/ORM/Validation/Exception.php delete mode 100644 includes/kohana/modules/orm/classes/Model/Auth/Role.php delete mode 100644 includes/kohana/modules/orm/classes/Model/Auth/User.php delete mode 100644 includes/kohana/modules/orm/classes/Model/Auth/User/Token.php delete mode 100644 includes/kohana/modules/orm/classes/Model/Role.php delete mode 100644 includes/kohana/modules/orm/classes/Model/User.php delete mode 100644 includes/kohana/modules/orm/classes/Model/User/Token.php delete mode 100644 includes/kohana/modules/orm/classes/ORM.php delete mode 100644 includes/kohana/modules/orm/classes/ORM/Validation/Exception.php delete mode 100644 includes/kohana/modules/orm/config/userguide.php delete mode 100644 includes/kohana/modules/orm/guide/orm/examples.md delete mode 100644 includes/kohana/modules/orm/guide/orm/examples/simple.md delete mode 100644 includes/kohana/modules/orm/guide/orm/examples/validation.md delete mode 100644 includes/kohana/modules/orm/guide/orm/filters.md delete mode 100644 includes/kohana/modules/orm/guide/orm/index.md delete mode 100644 includes/kohana/modules/orm/guide/orm/menu.md delete mode 100644 includes/kohana/modules/orm/guide/orm/models.md delete mode 100644 includes/kohana/modules/orm/guide/orm/relationships.md delete mode 100644 includes/kohana/modules/orm/guide/orm/tutorials.md delete mode 100644 includes/kohana/modules/orm/guide/orm/upgrading.md delete mode 100644 includes/kohana/modules/orm/guide/orm/using.md delete mode 100644 includes/kohana/modules/orm/guide/orm/validation.md delete mode 100644 includes/kohana/modules/pagination/.gitignore delete mode 100644 includes/kohana/modules/pagination/classes/Kohana/Pagination.php delete mode 100644 includes/kohana/modules/pagination/classes/Pagination.php delete mode 100644 includes/kohana/modules/pagination/config/pagination.php delete mode 100644 includes/kohana/modules/pagination/config/userguide.php delete mode 100644 includes/kohana/modules/pagination/guide/pagination/config.md delete mode 100644 includes/kohana/modules/pagination/guide/pagination/examples.md delete mode 100644 includes/kohana/modules/pagination/guide/pagination/index.md delete mode 100644 includes/kohana/modules/pagination/guide/pagination/menu.md delete mode 100644 includes/kohana/modules/pagination/guide/pagination/usage.md delete mode 100644 includes/kohana/modules/pagination/views/pagination/basic.php delete mode 100644 includes/kohana/modules/pagination/views/pagination/floating.php delete mode 100644 includes/kohana/modules/simplehtmldom/classes/simple_html_dom.php delete mode 100644 includes/kohana/modules/unittest/README.markdown delete mode 100644 includes/kohana/modules/unittest/bootstrap.php delete mode 100644 includes/kohana/modules/unittest/bootstrap_all_modules.php delete mode 100644 includes/kohana/modules/unittest/classes/Kohana/Unittest/Database/TestCase.php delete mode 100644 includes/kohana/modules/unittest/classes/Kohana/Unittest/Helpers.php delete mode 100644 includes/kohana/modules/unittest/classes/Kohana/Unittest/TestCase.php delete mode 100644 includes/kohana/modules/unittest/classes/Kohana/Unittest/TestSuite.php delete mode 100644 includes/kohana/modules/unittest/classes/Kohana/Unittest/Tests.php delete mode 100644 includes/kohana/modules/unittest/classes/Unittest/Database/TestCase.php delete mode 100644 includes/kohana/modules/unittest/classes/Unittest/Helpers.php delete mode 100644 includes/kohana/modules/unittest/classes/Unittest/TestCase.php delete mode 100644 includes/kohana/modules/unittest/classes/Unittest/TestSuite.php delete mode 100644 includes/kohana/modules/unittest/classes/Unittest/Tests.php delete mode 100644 includes/kohana/modules/unittest/config/unittest.php delete mode 100644 includes/kohana/modules/unittest/config/userguide.php delete mode 100644 includes/kohana/modules/unittest/example.phpunit.xml delete mode 100644 includes/kohana/modules/unittest/guide/unittest/index.md delete mode 100644 includes/kohana/modules/unittest/guide/unittest/menu.md delete mode 100644 includes/kohana/modules/unittest/guide/unittest/mockobjects.md delete mode 100644 includes/kohana/modules/unittest/guide/unittest/testing.md delete mode 100644 includes/kohana/modules/unittest/guide/unittest/testing_workflows.md delete mode 100644 includes/kohana/modules/unittest/guide/unittest/troubleshooting.md delete mode 100644 includes/kohana/modules/unittest/tests.php delete mode 100644 includes/kohana/modules/userguide/README.md delete mode 100644 includes/kohana/modules/userguide/classes/Controller/Userguide.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Class.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Markdown.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Method.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Method/Param.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Missing.php delete mode 100644 includes/kohana/modules/userguide/classes/Kodoc/Property.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Controller/Userguide.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Class.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Markdown.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Method.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Method/Param.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Missing.php delete mode 100644 includes/kohana/modules/userguide/classes/Kohana/Kodoc/Property.php delete mode 100644 includes/kohana/modules/userguide/config/userguide.php delete mode 100644 includes/kohana/modules/userguide/guide/de-de/about.conventions.md delete mode 100644 includes/kohana/modules/userguide/guide/de-de/about.kohana.md delete mode 100644 includes/kohana/modules/userguide/guide/developers.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/adding.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/config.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/contributing.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/index.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/markdown.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/menu.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/modules.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/using.md delete mode 100644 includes/kohana/modules/userguide/guide/userguide/works.md delete mode 100644 includes/kohana/modules/userguide/init.php delete mode 100644 includes/kohana/modules/userguide/media/guide/css/api.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/kodoc.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/print.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/screen.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/shCore.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/shThemeDefault.css delete mode 100644 includes/kohana/modules/userguide/media/guide/css/shThemeKodoc.css delete mode 100644 includes/kohana/modules/userguide/media/guide/img/arrows.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/breadcrumbs.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/content.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/ext_link.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/h2_line.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/h3_line.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/header.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/kohana.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/lightbulb_48.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/lines.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/orange-tab.png delete mode 100644 includes/kohana/modules/userguide/media/guide/img/wrapper.png delete mode 100644 includes/kohana/modules/userguide/media/guide/js/jquery.cookie.js delete mode 100644 includes/kohana/modules/userguide/media/guide/js/jquery.min.js delete mode 100644 includes/kohana/modules/userguide/media/guide/js/kodoc.js delete mode 100644 includes/kohana/modules/userguide/media/guide/js/shBrushPhp.js delete mode 100644 includes/kohana/modules/userguide/media/guide/js/shCore.js delete mode 100644 includes/kohana/modules/userguide/media/guide/js/sizzle.js delete mode 100644 includes/kohana/modules/userguide/media/guide/userguide/contrib-github-edit.png delete mode 100644 includes/kohana/modules/userguide/media/guide/userguide/contrib-github-fork.png delete mode 100644 includes/kohana/modules/userguide/media/guide/userguide/contrib-github-pull.png delete mode 100644 includes/kohana/modules/userguide/messages/userguide.php delete mode 100644 includes/kohana/modules/userguide/tests/KodocTest.php delete mode 100644 includes/kohana/modules/userguide/tests/userguide/ControllerTest.php delete mode 100644 includes/kohana/modules/userguide/vendor/markdown/License.text delete mode 100644 includes/kohana/modules/userguide/vendor/markdown/markdown.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/api/class.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/api/menu.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/api/method.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/api/tags.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/api/toc.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/error.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/examples/error.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/examples/hello_world_error.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/index.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/menu.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/page-toc.php delete mode 100644 includes/kohana/modules/userguide/views/userguide/template.php delete mode 100644 includes/kohana/modules/xml/LICENSE delete mode 100644 includes/kohana/modules/xml/README.md delete mode 100644 includes/kohana/modules/xml/classes/xml.php delete mode 100644 includes/kohana/modules/xml/classes/xml/core.php delete mode 100644 includes/kohana/modules/xml/classes/xml/driver/atom.php delete mode 100644 includes/kohana/modules/xml/classes/xml/driver/rss2.php delete mode 100644 includes/kohana/modules/xml/classes/xml/driver/xrds.php delete mode 100644 includes/kohana/modules/xml/classes/xml/meta.php delete mode 100644 includes/kohana/modules/xml/classes/xml/meta/core.php delete mode 100644 includes/kohana/system/classes/Arr.php delete mode 100644 includes/kohana/system/classes/Config.php delete mode 100644 includes/kohana/system/classes/Config/File.php delete mode 100644 includes/kohana/system/classes/Config/Group.php delete mode 100644 includes/kohana/system/classes/Controller.php delete mode 100644 includes/kohana/system/classes/Controller/Template.php delete mode 100644 includes/kohana/system/classes/Cookie.php delete mode 100644 includes/kohana/system/classes/Date.php delete mode 100644 includes/kohana/system/classes/Debug.php delete mode 100644 includes/kohana/system/classes/Encrypt.php delete mode 100644 includes/kohana/system/classes/Feed.php delete mode 100644 includes/kohana/system/classes/File.php delete mode 100644 includes/kohana/system/classes/Form.php delete mode 100644 includes/kohana/system/classes/Fragment.php delete mode 100644 includes/kohana/system/classes/HTML.php delete mode 100644 includes/kohana/system/classes/HTTP.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/300.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/301.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/302.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/303.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/304.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/305.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/307.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/400.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/401.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/402.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/403.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/404.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/405.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/406.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/407.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/408.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/409.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/410.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/411.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/412.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/413.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/414.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/415.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/416.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/417.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/500.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/501.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/502.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/503.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/504.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/505.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/Expected.php delete mode 100644 includes/kohana/system/classes/HTTP/Exception/Redirect.php delete mode 100644 includes/kohana/system/classes/HTTP/Header.php delete mode 100644 includes/kohana/system/classes/HTTP/Message.php delete mode 100644 includes/kohana/system/classes/HTTP/Request.php delete mode 100644 includes/kohana/system/classes/HTTP/Response.php delete mode 100644 includes/kohana/system/classes/I18n.php delete mode 100644 includes/kohana/system/classes/Inflector.php delete mode 100644 includes/kohana/system/classes/Kohana.php delete mode 100644 includes/kohana/system/classes/Kohana/Arr.php delete mode 100644 includes/kohana/system/classes/Kohana/Config.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/File.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/File/Reader.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/Group.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/Reader.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/Source.php delete mode 100644 includes/kohana/system/classes/Kohana/Config/Writer.php delete mode 100644 includes/kohana/system/classes/Kohana/Controller.php delete mode 100644 includes/kohana/system/classes/Kohana/Controller/Template.php delete mode 100644 includes/kohana/system/classes/Kohana/Cookie.php delete mode 100644 includes/kohana/system/classes/Kohana/Core.php delete mode 100644 includes/kohana/system/classes/Kohana/Date.php delete mode 100644 includes/kohana/system/classes/Kohana/Debug.php delete mode 100644 includes/kohana/system/classes/Kohana/Encrypt.php delete mode 100644 includes/kohana/system/classes/Kohana/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Feed.php delete mode 100644 includes/kohana/system/classes/Kohana/File.php delete mode 100644 includes/kohana/system/classes/Kohana/Form.php delete mode 100644 includes/kohana/system/classes/Kohana/Fragment.php delete mode 100644 includes/kohana/system/classes/Kohana/HTML.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/300.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/301.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/302.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/303.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/304.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/305.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/307.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/400.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/401.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/402.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/403.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/404.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/405.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/406.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/407.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/408.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/409.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/410.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/411.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/412.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/413.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/414.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/415.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/416.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/417.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/500.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/501.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/502.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/503.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/504.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/505.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/Expected.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Exception/Redirect.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Header.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Message.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Request.php delete mode 100644 includes/kohana/system/classes/Kohana/HTTP/Response.php delete mode 100644 includes/kohana/system/classes/Kohana/I18n.php delete mode 100644 includes/kohana/system/classes/Kohana/Inflector.php delete mode 100644 includes/kohana/system/classes/Kohana/Kohana/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Log.php delete mode 100644 includes/kohana/system/classes/Kohana/Log/File.php delete mode 100644 includes/kohana/system/classes/Kohana/Log/StdErr.php delete mode 100644 includes/kohana/system/classes/Kohana/Log/StdOut.php delete mode 100644 includes/kohana/system/classes/Kohana/Log/Syslog.php delete mode 100644 includes/kohana/system/classes/Kohana/Log/Writer.php delete mode 100644 includes/kohana/system/classes/Kohana/Model.php delete mode 100644 includes/kohana/system/classes/Kohana/Num.php delete mode 100644 includes/kohana/system/classes/Kohana/Profiler.php delete mode 100644 includes/kohana/system/classes/Kohana/Request.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/Curl.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/External.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/HTTP.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/Internal.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/Recursion/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Client/Stream.php delete mode 100644 includes/kohana/system/classes/Kohana/Request/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Response.php delete mode 100644 includes/kohana/system/classes/Kohana/Route.php delete mode 100644 includes/kohana/system/classes/Kohana/Security.php delete mode 100644 includes/kohana/system/classes/Kohana/Session.php delete mode 100644 includes/kohana/system/classes/Kohana/Session/Cookie.php delete mode 100644 includes/kohana/system/classes/Kohana/Session/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Session/Native.php delete mode 100644 includes/kohana/system/classes/Kohana/Text.php delete mode 100644 includes/kohana/system/classes/Kohana/URL.php delete mode 100644 includes/kohana/system/classes/Kohana/UTF8.php delete mode 100644 includes/kohana/system/classes/Kohana/UTF8/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/Upload.php delete mode 100644 includes/kohana/system/classes/Kohana/Valid.php delete mode 100644 includes/kohana/system/classes/Kohana/Validation.php delete mode 100644 includes/kohana/system/classes/Kohana/Validation/Exception.php delete mode 100644 includes/kohana/system/classes/Kohana/View.php delete mode 100644 includes/kohana/system/classes/Kohana/View/Exception.php delete mode 100644 includes/kohana/system/classes/Log.php delete mode 100644 includes/kohana/system/classes/Log/File.php delete mode 100644 includes/kohana/system/classes/Log/StdErr.php delete mode 100644 includes/kohana/system/classes/Log/StdOut.php delete mode 100644 includes/kohana/system/classes/Log/Syslog.php delete mode 100644 includes/kohana/system/classes/Log/Writer.php delete mode 100644 includes/kohana/system/classes/Model.php delete mode 100644 includes/kohana/system/classes/Num.php delete mode 100644 includes/kohana/system/classes/Profiler.php delete mode 100644 includes/kohana/system/classes/Request.php delete mode 100644 includes/kohana/system/classes/Request/Client.php delete mode 100644 includes/kohana/system/classes/Request/Client/Curl.php delete mode 100644 includes/kohana/system/classes/Request/Client/External.php delete mode 100644 includes/kohana/system/classes/Request/Client/HTTP.php delete mode 100644 includes/kohana/system/classes/Request/Client/Internal.php delete mode 100644 includes/kohana/system/classes/Request/Client/Recursion/Exception.php delete mode 100644 includes/kohana/system/classes/Request/Client/Stream.php delete mode 100644 includes/kohana/system/classes/Request/Exception.php delete mode 100644 includes/kohana/system/classes/Response.php delete mode 100644 includes/kohana/system/classes/Route.php delete mode 100644 includes/kohana/system/classes/Security.php delete mode 100644 includes/kohana/system/classes/Session.php delete mode 100644 includes/kohana/system/classes/Session/Cookie.php delete mode 100644 includes/kohana/system/classes/Session/Exception.php delete mode 100644 includes/kohana/system/classes/Session/Native.php delete mode 100644 includes/kohana/system/classes/Text.php delete mode 100644 includes/kohana/system/classes/URL.php delete mode 100644 includes/kohana/system/classes/UTF8.php delete mode 100644 includes/kohana/system/classes/UTF8/Exception.php delete mode 100644 includes/kohana/system/classes/Upload.php delete mode 100644 includes/kohana/system/classes/Valid.php delete mode 100644 includes/kohana/system/classes/Validation.php delete mode 100644 includes/kohana/system/classes/Validation/Exception.php delete mode 100644 includes/kohana/system/classes/View.php delete mode 100644 includes/kohana/system/classes/View/Exception.php delete mode 100644 includes/kohana/system/config/credit_cards.php delete mode 100644 includes/kohana/system/config/curl.php delete mode 100644 includes/kohana/system/config/encrypt.php delete mode 100644 includes/kohana/system/config/inflector.php delete mode 100644 includes/kohana/system/config/mimes.php delete mode 100644 includes/kohana/system/config/session.php delete mode 100644 includes/kohana/system/config/user_agents.php delete mode 100644 includes/kohana/system/config/userguide.php delete mode 100644 includes/kohana/system/guide/kohana/autoloading.md delete mode 100644 includes/kohana/system/guide/kohana/bootstrap.md delete mode 100644 includes/kohana/system/guide/kohana/config.md delete mode 100644 includes/kohana/system/guide/kohana/controllers.md delete mode 100644 includes/kohana/system/guide/kohana/conventions.md delete mode 100644 includes/kohana/system/guide/kohana/cookies.md delete mode 100644 includes/kohana/system/guide/kohana/debugging.md delete mode 100644 includes/kohana/system/guide/kohana/errors.md delete mode 100644 includes/kohana/system/guide/kohana/extension.md delete mode 100644 includes/kohana/system/guide/kohana/files.md delete mode 100644 includes/kohana/system/guide/kohana/files/classes.md delete mode 100644 includes/kohana/system/guide/kohana/files/config.md delete mode 100644 includes/kohana/system/guide/kohana/files/i18n.md delete mode 100644 includes/kohana/system/guide/kohana/files/messages.md delete mode 100644 includes/kohana/system/guide/kohana/flow.md delete mode 100644 includes/kohana/system/guide/kohana/fragments.md delete mode 100644 includes/kohana/system/guide/kohana/helpers.md delete mode 100644 includes/kohana/system/guide/kohana/index.md delete mode 100644 includes/kohana/system/guide/kohana/install.md delete mode 100644 includes/kohana/system/guide/kohana/menu.md delete mode 100644 includes/kohana/system/guide/kohana/modules.md delete mode 100644 includes/kohana/system/guide/kohana/mvc.md delete mode 100644 includes/kohana/system/guide/kohana/mvc/controllers.md delete mode 100644 includes/kohana/system/guide/kohana/mvc/models.md delete mode 100644 includes/kohana/system/guide/kohana/mvc/views.md delete mode 100644 includes/kohana/system/guide/kohana/profiling.md delete mode 100644 includes/kohana/system/guide/kohana/requests.md delete mode 100644 includes/kohana/system/guide/kohana/routing.md delete mode 100644 includes/kohana/system/guide/kohana/security.md delete mode 100644 includes/kohana/system/guide/kohana/security/cookies.md delete mode 100644 includes/kohana/system/guide/kohana/security/database.md delete mode 100644 includes/kohana/system/guide/kohana/security/deploying.md delete mode 100644 includes/kohana/system/guide/kohana/security/encryption.md delete mode 100644 includes/kohana/system/guide/kohana/security/validation.md delete mode 100644 includes/kohana/system/guide/kohana/security/xss.md delete mode 100644 includes/kohana/system/guide/kohana/sessions.md delete mode 100644 includes/kohana/system/guide/kohana/tips.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/clean-urls.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/error-pages.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/git.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/hello-world.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/library-kohana.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/sharing-kohana.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/simple-mvc.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/templates.md delete mode 100644 includes/kohana/system/guide/kohana/tutorials/translation.md delete mode 100644 includes/kohana/system/guide/kohana/upgrading.md delete mode 100644 includes/kohana/system/i18n/en.php delete mode 100644 includes/kohana/system/i18n/es.php delete mode 100644 includes/kohana/system/i18n/fr.php delete mode 100644 includes/kohana/system/media/guide/kohana/cascading_filesystem.png delete mode 100644 includes/kohana/system/media/guide/kohana/hello_world_1.png delete mode 100644 includes/kohana/system/media/guide/kohana/hello_world_2.png delete mode 100644 includes/kohana/system/media/guide/kohana/hello_world_2_error.png delete mode 100644 includes/kohana/system/media/guide/kohana/install.png delete mode 100644 includes/kohana/system/media/guide/kohana/welcome.png delete mode 100644 includes/kohana/system/messages/tests/validation/error_type_check.php delete mode 100644 includes/kohana/system/messages/validation.php delete mode 100644 includes/kohana/system/tests/kohana/ArrTest.php delete mode 100644 includes/kohana/system/tests/kohana/Config/File/ReaderTest.php delete mode 100644 includes/kohana/system/tests/kohana/Config/GroupTest.php delete mode 100644 includes/kohana/system/tests/kohana/ConfigTest.php delete mode 100644 includes/kohana/system/tests/kohana/CookieTest.php delete mode 100644 includes/kohana/system/tests/kohana/CoreTest.php delete mode 100644 includes/kohana/system/tests/kohana/DateTest.php delete mode 100644 includes/kohana/system/tests/kohana/DebugTest.php delete mode 100644 includes/kohana/system/tests/kohana/ExceptionTest.php delete mode 100644 includes/kohana/system/tests/kohana/FeedTest.php delete mode 100644 includes/kohana/system/tests/kohana/FileTest.php delete mode 100644 includes/kohana/system/tests/kohana/FormTest.php delete mode 100644 includes/kohana/system/tests/kohana/HTMLTest.php delete mode 100644 includes/kohana/system/tests/kohana/HTTPTest.php delete mode 100644 includes/kohana/system/tests/kohana/Http/HeaderTest.php delete mode 100644 includes/kohana/system/tests/kohana/I18nTest.php delete mode 100644 includes/kohana/system/tests/kohana/InflectorTest.php delete mode 100644 includes/kohana/system/tests/kohana/LogTest.php delete mode 100644 includes/kohana/system/tests/kohana/ModelTest.php delete mode 100644 includes/kohana/system/tests/kohana/NumTest.php delete mode 100644 includes/kohana/system/tests/kohana/RequestTest.php delete mode 100644 includes/kohana/system/tests/kohana/ResponseTest.php delete mode 100644 includes/kohana/system/tests/kohana/RouteTest.php delete mode 100644 includes/kohana/system/tests/kohana/SecurityTest.php delete mode 100644 includes/kohana/system/tests/kohana/SessionTest.php delete mode 100644 includes/kohana/system/tests/kohana/TextTest.php delete mode 100644 includes/kohana/system/tests/kohana/URLTest.php delete mode 100644 includes/kohana/system/tests/kohana/UTF8Test.php delete mode 100644 includes/kohana/system/tests/kohana/UploadTest.php delete mode 100644 includes/kohana/system/tests/kohana/ValidTest.php delete mode 100644 includes/kohana/system/tests/kohana/ValidationTest.php delete mode 100644 includes/kohana/system/tests/kohana/ViewTest.php delete mode 100644 includes/kohana/system/tests/kohana/request/ClientTest.php delete mode 100644 includes/kohana/system/tests/kohana/request/client/ExternalTest.php delete mode 100644 includes/kohana/system/tests/kohana/request/client/InternalTest.php delete mode 100644 includes/kohana/system/tests/test_data/callback_routes.php delete mode 100644 includes/kohana/system/tests/test_data/github.png delete mode 100644 includes/kohana/system/tests/test_data/views/test.css.php delete mode 100644 includes/kohana/system/utf8/from_unicode.php delete mode 100644 includes/kohana/system/utf8/ltrim.php delete mode 100644 includes/kohana/system/utf8/ord.php delete mode 100644 includes/kohana/system/utf8/rtrim.php delete mode 100644 includes/kohana/system/utf8/str_ireplace.php delete mode 100644 includes/kohana/system/utf8/str_pad.php delete mode 100644 includes/kohana/system/utf8/str_split.php delete mode 100644 includes/kohana/system/utf8/strcasecmp.php delete mode 100644 includes/kohana/system/utf8/strcspn.php delete mode 100644 includes/kohana/system/utf8/stristr.php delete mode 100644 includes/kohana/system/utf8/strlen.php delete mode 100644 includes/kohana/system/utf8/strpos.php delete mode 100644 includes/kohana/system/utf8/strrev.php delete mode 100644 includes/kohana/system/utf8/strrpos.php delete mode 100644 includes/kohana/system/utf8/strspn.php delete mode 100644 includes/kohana/system/utf8/strtolower.php delete mode 100644 includes/kohana/system/utf8/strtoupper.php delete mode 100644 includes/kohana/system/utf8/substr.php delete mode 100644 includes/kohana/system/utf8/substr_replace.php delete mode 100644 includes/kohana/system/utf8/to_unicode.php delete mode 100644 includes/kohana/system/utf8/transliterate_to_ascii.php delete mode 100644 includes/kohana/system/utf8/trim.php delete mode 100644 includes/kohana/system/utf8/ucfirst.php delete mode 100644 includes/kohana/system/utf8/ucwords.php delete mode 100644 includes/kohana/system/views/kohana/error.php delete mode 100644 includes/kohana/system/views/kohana/generate_logo.php delete mode 100644 includes/kohana/system/views/kohana/logo.php delete mode 100644 includes/kohana/system/views/profiler/stats.php delete mode 100644 includes/kohana/system/views/profiler/style.css delete mode 100644 includes/kohana/vendor/autoload.php delete mode 100644 includes/kohana/vendor/bin/phpunit delete mode 100644 includes/kohana/vendor/composer/ClassLoader.php delete mode 100644 includes/kohana/vendor/composer/autoload_classmap.php delete mode 100644 includes/kohana/vendor/composer/autoload_namespaces.php delete mode 100644 includes/kohana/vendor/composer/autoload_real.php delete mode 100644 includes/kohana/vendor/composer/include_paths.php delete mode 100644 includes/kohana/vendor/composer/installed.json delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/CONTRIBUTING.md delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver/Xdebug.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Exception.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Filter.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Clover.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Dashboard.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/File.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap-responsive.min.css delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/style.css delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings-white.png delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings.png delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/highcharts.js delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Directory.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/File.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Iterator.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/PHP.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Text.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util/InvalidArgumentHelper.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Version.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/README.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/FilterTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/CloverTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/FactoryTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/UtilTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverageTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/TestCase.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount-clover.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageFunctionTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodOneLineAnnotationTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNoneTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPublicTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNothingTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePrivateTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageProtectedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePublicTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageTwoDefaultClassAnnotations.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredClass.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredFunction.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassExtendedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassPublicTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPrivateTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotProtectedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPublicTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePrivateTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageProtectedTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePublicTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveredClass.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/ignored-lines-clover.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_ignore.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_namespace.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_oneline_annotations.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_without_ignore.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_without_namespace.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/build.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/package.xml delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/phpunit.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_append.php delete mode 100644 includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Facade.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Factory.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/README.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/build.xml delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/package-composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-file-iterator/package.xml delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/README.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/Text/Template.php delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/build.xml delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/package-composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-text-template/package.xml delete mode 100644 includes/kohana/vendor/phpunit/php-timer/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-timer/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/php-timer/PHP/Timer.php delete mode 100644 includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/php-timer/README.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-timer/Tests/TimerTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-timer/build.xml delete mode 100644 includes/kohana/vendor/phpunit/php-timer/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-timer/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-timer/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/php-timer/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/php-timer/composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-timer/package-composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-timer/package.xml delete mode 100644 includes/kohana/vendor/phpunit/php-timer/phpunit.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/PHP/Token.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/CachingFactory.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/README.markdown delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/ClassTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/IncludeTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/InterfaceTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/NamespaceTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/TokenTest.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInNamespace.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classInScopedNamespace.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/issue19.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/multipleNamespacesWithOneClassUsingBraces.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/multipleNamespacesWithOneClassUsingNonBraceSyntax.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source2.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source3.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/source4.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/build.xml delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/package-composer.json delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/package.xml delete mode 100644 includes/kohana/vendor/phpunit/php-token-stream/phpunit.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/ChangeLog.markdown delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Match.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Namespace.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Stub.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Object.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Static.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/InvocationMocker.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/MethodName.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Parameters.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockBuilder.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Return.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnSelf.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnValueMap.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Verifiable.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/GeneratorTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/ObjectTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/StaticTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_clone.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_clone.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_partial.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/interface.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_object_clone_object.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_static_clone_object.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_clone.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_clone.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_partial.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_interface.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_namespace.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_partial.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/AbstractMockTestClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/AnInterface.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/FunctionCallback.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/GoogleSearch.wsdl delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/MethodCallback.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/Mockable.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/PartialMockTestClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/SomeClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/StaticMockTestClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/build.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/composer.json delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/package-composer.json delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/package.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit/CONTRIBUTING.md delete mode 100644 includes/kohana/vendor/phpunit/phpunit/ChangeLog.md delete mode 100644 includes/kohana/vendor/phpunit/phpunit/LICENSE delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/GroupTestSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase/Logger.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TicketListener.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php.in delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/DOMDocument.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Double.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Exception.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/MockObject.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Numeric.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Resource.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Scalar.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/SplObjectStorage.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Type.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparatorFactory.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/And.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Composite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionCode.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/FileExists.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/GreaterThan.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsAnything.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEmpty.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsFalse.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsInstanceOf.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsNull.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsTrue.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsType.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/LessThan.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ObjectHasAttribute.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Or.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/PCREMatch.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/SameSize.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringContains.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringEndsWith.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringStartsWith.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContains.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContainsOnly.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Xor.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Deprecated.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Notice.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Warning.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Exception.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ExpectationFailedException.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTestError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/OutputError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Process/TestCaseMethod.tpl.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SelfDescribing.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestSuiteError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SyntheticError.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestListener.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite/DataProvider.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/BaseTestRunner.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/StandardTestSuiteLoader.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/TestSuiteLoader.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/Version.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Class.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Diff.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/ErrorHandler.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Fileloader.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filesystem.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filter.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Getopt.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/InvalidArgumentHelper.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Default.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Printer.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/String.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/NamePrettifier.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/HTML.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestSuiteIterator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Type.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/XML.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/README.md delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Extensions/RepeatedTestTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ComparatorTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatchesTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/SuiteTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestImplementorTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestListenerTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021/Issue1021Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523/Issue523Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684/Issue684Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/ChildSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/OneTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/ParentSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/TwoTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/244.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/244/Issue244Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/Issue322Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/phpunit322.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433/Issue433Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445/Issue445Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581/Issue581Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/NewException.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Runner/BaseTestRunnerTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/abstract-test-class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/concrete-test-class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-testdox.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/debug.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/empty-testcase.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exception-stack.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-no-results.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help2.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/list-groups.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-json.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-tap.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-xml.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-incomplete.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-isolation.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/tap.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-multiple.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-single.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-html.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-text.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox.phpt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/ClassTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/ConfigurationTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/DiffTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestDox/NamePrettifierTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/TypeTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/Util/XMLTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/AbstractTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Author.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccount.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.test.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Book.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Calculator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ChangeCurrentWorkingDirectoryTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ClassWithNonPublicAttributes.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ClassWithToString.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ConcreteTest.my.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ConcreteTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/DataProviderTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencySuccessTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencyTestSuite.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/EmptyTestCaseTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Error.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPostConditionsTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInSetUpTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTearDownTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionNamespaceTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionStack.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Failure.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/FailureTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/FatalTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/IncompleteTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/InheritedTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/JsonData/arrayObject.js delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/JsonData/simpleObject.js delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/JsonData/simpleObject2.js delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/MockRunner.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/MultiDependencyTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoArgTestCaseTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoTestCaseClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoTestCases.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NonStatic.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NotPublicTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NotVoidTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/NothingTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/OneTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/OutputTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/OverrideTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/RequirementsClassDocBlockTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/RequirementsTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/SampleClass.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/SelectorAssertionsFixture.html delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Singleton.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/StackTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Struct.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/Success.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/TemplateMethodsTest.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/TestIterator.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ThrowExceptionTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/ThrowNoExceptionTestCase.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/WasRun.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/bar.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/configuration.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/configuration_xinclude.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/expectedFileFormat.txt delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/foo.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureAttributesAreSameButValuesAreNot.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureExpected.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureIgnoreTextNodes.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureIsSameButDataIsNot.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureWrongNumberOfAttributes.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/Tests/_files/structureWrongNumberOfNodes.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/PHPCS/ruleset.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/assertions.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/DbUnit-1.2.1.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/File_Iterator-1.3.3.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHPUnit_MockObject-1.2.1.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHPUnit_Selenium-1.2.9.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHP_CodeCoverage-1.2.6.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHP_Invoker-1.1.2.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHP_Timer-1.0.4.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/PHP_TokenStream-1.1.5.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/Text_Template-1.1.3.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/dependencies/Yaml-2.1.2.tgz delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/phar-autoload.php.in delete mode 100644 includes/kohana/vendor/phpunit/phpunit/build/phpmd.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/composer.json delete mode 100644 includes/kohana/vendor/phpunit/phpunit/composer/bin/phpunit delete mode 100644 includes/kohana/vendor/phpunit/phpunit/package.xml delete mode 100644 includes/kohana/vendor/phpunit/phpunit/phpdox.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit/phpunit.bat delete mode 100644 includes/kohana/vendor/phpunit/phpunit/phpunit.php delete mode 100644 includes/kohana/vendor/phpunit/phpunit/phpunit.xml.dist delete mode 100644 includes/kohana/vendor/phpunit/phpunit/phpunit.xsd delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/CHANGELOG.md delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Dumper.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/LICENSE delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/README.md delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsAnchorAlias.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBlockMapping.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsDocumentSeparator.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsErrorTests.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsFlowCollections.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsFoldedScalars.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsNullsAndEmpties.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/embededPhp.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/escapedCharacters.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/index.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfComments.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfCompact.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfMergeKey.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfObjects.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfQuotes.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/unindentedCollections.yml delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/InlineTest.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParserTest.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/YamlTest.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/bootstrap.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/composer.json delete mode 100644 includes/kohana/vendor/symfony/yaml/Symfony/Component/Yaml/phpunit.xml.dist create mode 160000 modules/lnApp delete mode 100644 modules/lnApp/classes/Block.php delete mode 100644 modules/lnApp/classes/Block/Sub.php delete mode 100644 modules/lnApp/classes/BreadCrumb.php delete mode 100644 modules/lnApp/classes/Controller/Default.php delete mode 100644 modules/lnApp/classes/Controller/Login.php delete mode 100644 modules/lnApp/classes/Controller/Logout.php delete mode 100644 modules/lnApp/classes/Controller/Media.php delete mode 100644 modules/lnApp/classes/Controller/Task.php delete mode 100644 modules/lnApp/classes/HTML.php delete mode 100644 modules/lnApp/classes/HTMLRender.php delete mode 100644 modules/lnApp/classes/HeadImages.php delete mode 100644 modules/lnApp/classes/Meta.php delete mode 100644 modules/lnApp/classes/PWGen.php delete mode 100644 modules/lnApp/classes/Random.php delete mode 100644 modules/lnApp/classes/Script.php delete mode 100644 modules/lnApp/classes/Sort.php delete mode 100644 modules/lnApp/classes/Style.php delete mode 100644 modules/lnApp/classes/SystemMessage.php delete mode 100644 modules/lnApp/classes/Table.php delete mode 100644 modules/lnApp/classes/lnApp/Block.php delete mode 100644 modules/lnApp/classes/lnApp/Block/Sub.php delete mode 100644 modules/lnApp/classes/lnApp/BreadCrumb.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Default.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Login.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Logout.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Media.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Task.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/TemplateDefault.php delete mode 100644 modules/lnApp/classes/lnApp/Controller/Tree.php delete mode 100644 modules/lnApp/classes/lnApp/HTML.php delete mode 100644 modules/lnApp/classes/lnApp/HTMLRender.php delete mode 100644 modules/lnApp/classes/lnApp/HeadImages.php delete mode 100644 modules/lnApp/classes/lnApp/Meta.php delete mode 100644 modules/lnApp/classes/lnApp/PWgen.php delete mode 100644 modules/lnApp/classes/lnApp/Random.php delete mode 100644 modules/lnApp/classes/lnApp/Script.php delete mode 100644 modules/lnApp/classes/lnApp/Sort.php delete mode 100644 modules/lnApp/classes/lnApp/Style.php delete mode 100644 modules/lnApp/classes/lnApp/SystemMessage.php delete mode 100644 modules/lnApp/classes/lnApp/Table.php delete mode 100644 modules/lnApp/views/lnapp/default.php diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..f69a7d4e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "includes/kohana"] + path = includes/kohana + url = ssh://10.1.3.20/afs/local/git/lnkohana +[submodule "modules/lnApp"] + path = modules/lnApp + url = ssh://10.1.3.20/afs/local/git/lnapp diff --git a/includes/kohana b/includes/kohana new file mode 160000 index 00000000..f5c623d8 --- /dev/null +++ b/includes/kohana @@ -0,0 +1 @@ +Subproject commit f5c623d89783fc9bf3c8dbea7699fcefa0015c3d diff --git a/includes/kohana/.travis.yml b/includes/kohana/.travis.yml deleted file mode 100644 index ba7adb47..00000000 --- a/includes/kohana/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: php - -php: - - 5.3 - -before_install: - - "git submodule update --init --recursive" - -before_script: - - "pear channel-discover pear.phing.info" - - "pear install phing/phing" - - "phpenv rehash" - - "composer install" - -script: "phing test" - -notifications: - irc: - channels: - - "irc.freenode.org#kohana" - template: - - "%{repository}/%{branch} (%{commit}) - %{author}: %{message}" - - "Build details: %{build_url}" - email: false diff --git a/includes/kohana/LICENSE.md b/includes/kohana/LICENSE.md deleted file mode 100644 index a36fb76f..00000000 --- a/includes/kohana/LICENSE.md +++ /dev/null @@ -1,14 +0,0 @@ -# Kohana License Agreement - -This license is a legal agreement between you and the Kohana Team for the use of Kohana Framework (the "Software"). By obtaining the Software you agree to comply with the terms and conditions of this license. - -Copyright (c) 2007-2011 Kohana Team -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -* Neither the name of the Kohana nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/README.md b/includes/kohana/README.md deleted file mode 100644 index 220a9345..00000000 --- a/includes/kohana/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Kohana PHP Framework - -[Kohana](http://kohanaframework.org/) is an elegant, open source, and object oriented HMVC framework built using PHP5, by a team of volunteers. It aims to be swift, secure, and small. - -Released under a [BSD license](http://kohanaframework.org/license), Kohana can be used legally for any open source, commercial, or personal project. - -## Documentation -Kohana's documentation can be found at which also contains an API browser. - -The `userguide` module included in all Kohana releases also allows you to view the documentation locally. Once the `userguide` module is enabled in the bootstrap, it is accessible from your site via `/index.php/guide` (or just `/guide` if you are rewriting your URLs). - -## Reporting bugs -If you've stumbled across a bug, please help us out by [reporting the bug](http://dev.kohanaframework.org/projects/kohana3/) you have found. Simply log in or register and submit a new issue, leaving as much information about the bug as possible, e.g. - -* Steps to reproduce -* Expected result -* Actual result - -This will help us to fix the bug as quickly as possible, and if you'd like to fix it yourself feel free to [fork us on GitHub](https://github.com/kohana) and submit a pull request! diff --git a/includes/kohana/composer.json b/includes/kohana/composer.json deleted file mode 100644 index a473df1d..00000000 --- a/includes/kohana/composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require": { - "phpunit/phpunit": "3.7.*" - } -} diff --git a/includes/kohana/composer.lock b/includes/kohana/composer.lock deleted file mode 100644 index 3fe1de8a..00000000 --- a/includes/kohana/composer.lock +++ /dev/null @@ -1,413 +0,0 @@ -{ - "hash": "11774bed2716724738d66bb56a8a1508", - "packages": [ - { - "name": "phpunit/php-code-coverage", - "version": "1.2.6", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "1.2.6" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-code-coverage/zipball/1.2.6", - "reference": "1.2.6", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.0@stable", - "phpunit/php-token-stream": ">=1.1.3@stable", - "phpunit/php-text-template": ">=1.1.1@stable" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.0.5" - }, - "time": "2012-10-16 22:34:13", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "testing", - "coverage", - "xunit" - ] - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.3.3", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "1.3.3" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-file-iterator/zipball/1.3.3", - "reference": "1.3.3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:44:38", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "File/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "filesystem", - "iterator" - ] - }, - { - "name": "phpunit/php-text-template", - "version": "1.1.3", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-text-template.git", - "reference": "1.1.3" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-text-template/zipball/1.1.3", - "reference": "1.1.3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:48:39", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "Text/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "template" - ] - }, - { - "name": "phpunit/php-timer", - "version": "1.0.4", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-timer.git", - "reference": "1.0.4" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-timer/zipball/1.0.4", - "reference": "1.0.4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:45:58", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "timer" - ] - }, - { - "name": "phpunit/php-token-stream", - "version": "1.1.5", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1.1.5" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-token-stream/zipball/1.1.5", - "reference": "1.1.5", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:47:14", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "tokenizer" - ] - }, - { - "name": "phpunit/phpunit", - "version": "3.7.8", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/phpunit.git", - "reference": "3.7.8" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/phpunit/zipball/3.7.8", - "reference": "3.7.8", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.1", - "phpunit/php-text-template": ">=1.1.1", - "phpunit/php-code-coverage": ">=1.2.1", - "phpunit/php-timer": ">=1.0.2", - "phpunit/phpunit-mock-objects": ">=1.2.0", - "symfony/yaml": ">=2.1.0", - "ext-dom": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*" - }, - "suggest": { - "phpunit/php-invoker": ">=1.1.0", - "ext-json": "*", - "ext-simplexml": "*", - "ext-tokenizer": "*" - }, - "time": "2012-10-16 22:37:08", - "bin": [ - "composer/bin/phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "include-path": [ - "", - "../../symfony/yaml/" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "testing", - "phpunit", - "xunit" - ] - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "1.2.1", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "1.2.1" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects/zipball/1.2.1", - "reference": "1.2.1", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-text-template": ">=1.1.1@stable", - "ext-reflection": "*", - "ext-spl": "*" - }, - "suggest": { - "ext-soap": "*" - }, - "time": "2012-10-05 00:00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "mock", - "xunit" - ] - }, - { - "name": "symfony/yaml", - "version": "v2.1.2", - "target-dir": "Symfony/Component/Yaml", - "source": { - "type": "git", - "url": "https://github.com/symfony/Yaml", - "reference": "v2.1.0-RC2" - }, - "dist": { - "type": "zip", - "url": "https://github.com/symfony/Yaml/zipball/v2.1.0-RC2", - "reference": "v2.1.0-RC2", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-08-22 06:48:41", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-0": { - "Symfony\\Component\\Yaml": "" - } - }, - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - } - ], - "description": "Symfony Yaml Component", - "homepage": "http://symfony.com" - } - ], - "packages-dev": null, - "aliases": [ - - ], - "minimum-stability": "stable", - "stability-flags": [ - - ] -} diff --git a/includes/kohana/composer.phar b/includes/kohana/composer.phar deleted file mode 100644 index 7c838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aHmuzhRJ=ZRB0+oe1IN##4?8X60!F zppo>r#~zs&HSNc}dlgJ!Ff2SgX#s99>Dgr=JY$mw)o1ey&!iohw6wUkg^kGBc@cta zfN=w@G%AI-GXn^?|CD63Kj|n$21+pj`*heaqqNz_-{ij+1M%QytwE=y&57nk|IRLS zgYy9QGcbyMKXUxURPq6Cq-!V<2w5p6C1xK2mV|&V4^J=8ddIKNtLcL~xEc))#;)Va zj%o>B3N$j9ss21XJM2}DhsVdg{lRcz;yItP!MSkwim~;;4Q?E3IX>G*gey)~9-Vb1 zMx6dmUg?1YR5+1W;l>zvAgbXjTnI9dBjwmfIK7;ZXmWrV4Uf*>a%WfiH5v^Mdf3`M zL}dN}T+;)t%Tb-$WrUZd;1HbLvKo`Lh_D?D7ZYp?**W*D>TU1*^$8KMr_kjs@s2%aC}t(xIU-V>1M=;Cb98@5Gmwwv2$P?F|9CAfcmb zStGpg(`UTC>3!K>M^fkxddKVfFz`Lx?<9&Aj;XSnb7=qjm1=9_>GofjHdm_Et?K#a z#t*AcR-ROoOI!HH-G6^w-Tr>##dd`fn@j84KUR2zZE5|->MyJ7PiCr>fAf5EWoxV2 z*qm5>_Iz!11!=46%WE&5;OX<~G3u>vY*%Zm&sMhqbbF&>g9d7K1@)d*&sH{K#7=IRy+@^o|K*~|pVi5h?oAgH$v%aTw?Y9UY<5fmZ8UZB&COZ8+0HwCSK zhv8Yzh7Y6pU;fvB|Cbm4;eRas+yDB1{_}tPkN@+{fBN6={_nr|r+@mV?;byU{Qm$x CDkT2^ diff --git a/includes/kohana/install.php b/includes/kohana/install.php deleted file mode 100644 index f6541778..00000000 --- a/includes/kohana/install.php +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - - Kohana Installation - - - - - - -

Environment Tests

- -

- The following tests have been run to determine if Kohana will work in your environment. - If any of the tests have failed, consult the documentation - for more information on how to correct the problem. -

- - - - - - - =')): ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PHP VersionKohana requires PHP 5.3.3 or newer, this version is .
System DirectoryThe configured system directory does not exist or does not contain required files.
Application DirectoryThe configured application directory does not exist or does not contain required files.
Cache DirectoryThe directory is not writable.
Logs DirectoryThe directory is not writable.
PCRE UTF-8PCRE has not been compiled with UTF-8 support.PCRE has not been compiled with Unicode property support.Pass
SPL EnabledPassPHP SPL is either not loaded or not compiled in.
Reflection EnabledPassPHP reflection is either not loaded or not compiled in.
Filters EnabledPassThe filter extension is either not loaded or not compiled in.
Iconv Extension LoadedPassThe iconv extension is not loaded.
Mbstring Not OverloadedThe mbstring extension is overloading PHP's native string functions.Pass
Character Type (CTYPE) ExtensionThe ctype extension is not enabled.Pass
URI DeterminationPassNeither $_SERVER['REQUEST_URI'], $_SERVER['PHP_SELF'], or $_SERVER['PATH_INFO'] is available.
- - -

✘ Kohana may not work correctly with your environment.

- -

✔ Your environment passed all requirements.
- Remove or rename the install file now.

- - -

Optional Tests

- -

- The following extensions are not required to run the Kohana core, but if enabled can provide access to additional classes. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PECL HTTP EnabledPassKohana can use the http extension for the Request_Client_External class.
cURL EnabledPassKohana can use the cURL extension for the Request_Client_External class.
mcrypt EnabledPassKohana requires mcrypt for the Encrypt class.
GD EnabledPassKohana requires GD v2 for the Image class.
MySQL EnabledPassKohana can use the MySQL extension to support MySQL databases.
PDO EnabledPassKohana can use PDO to support additional databases.
- - - diff --git a/includes/kohana/modules/auth/README.md b/includes/kohana/modules/auth/README.md deleted file mode 100644 index 27ac9cd7..00000000 --- a/includes/kohana/modules/auth/README.md +++ /dev/null @@ -1,13 +0,0 @@ -New Age Auth ---- - -I've forked the main Auth module because there were some fundamental flaws with it: - - 1. It's trivial to [bruteforce](http://dev.kohanaframework.org/issues/3163) publicly hidden salt hashes. - - I've fixed this by switching the password hashing algorithm to the more secure secret-key based hash_hmac method. - 2. ORM drivers were included. - - I've fixed this by simply removing them. They cause confusion with new users because they think that Auth requires ORM. The only driver currently provided by default is the file driver. - 3. Auth::get_user()'s api is inconsistent because it returns different data types. - - I've fixed this by returning an empty user model by default. You can override what gets returned (if you've changed your user model class name for instance) by overloading the get_user() method in your application. - -These changes should be merged into the mainline branch eventually, but they completely break the API, so likely won't be done until 3.1. \ No newline at end of file diff --git a/includes/kohana/modules/auth/classes/Auth.php b/includes/kohana/modules/auth/classes/Auth.php deleted file mode 100644 index 8d31fad6..00000000 --- a/includes/kohana/modules/auth/classes/Auth.php +++ /dev/null @@ -1,3 +0,0 @@ -load('auth'); - - if ( ! $type = $config->get('driver')) - { - $type = 'file'; - } - - // Set the session class name - $class = 'Auth_'.ucfirst($type); - - // Create a new session instance - Auth::$_instance = new $class($config); - } - - return Auth::$_instance; - } - - protected $_session; - - protected $_config; - - /** - * Loads Session and configuration options. - * - * @param array $config Config Options - * @return void - */ - public function __construct($config = array()) - { - // Save the config in the object - $this->_config = $config; - - $this->_session = Session::instance($this->_config['session_type']); - } - - abstract protected function _login($username, $password, $remember); - - abstract public function password($username); - - abstract public function check_password($password); - - /** - * Gets the currently logged in user from the session. - * Returns NULL if no user is currently logged in. - * - * @param mixed $default Default value to return if the user is currently not logged in. - * @return mixed - */ - public function get_user($default = NULL) - { - return $this->_session->get($this->_config['session_key'], $default); - } - - /** - * Attempt to log in a user by using an ORM object and plain-text password. - * - * @param string $username Username to log in - * @param string $password Password to check against - * @param boolean $remember Enable autologin - * @return boolean - */ - public function login($username, $password, $remember = FALSE) - { - if (empty($password)) - return FALSE; - - return $this->_login($username, $password, $remember); - } - - /** - * Log out a user by removing the related session variables. - * - * @param boolean $destroy Completely destroy the session - * @param boolean $logout_all Remove all tokens for user - * @return boolean - */ - public function logout($destroy = FALSE, $logout_all = FALSE) - { - if ($destroy === TRUE) - { - // Destroy the session completely - $this->_session->destroy(); - } - else - { - // Remove the user from the session - $this->_session->delete($this->_config['session_key']); - - // Regenerate session_id - $this->_session->regenerate(); - } - - // Double check - return ! $this->logged_in(); - } - - /** - * Check if there is an active session. Optionally allows checking for a - * specific role. - * - * @param string $role role name - * @return mixed - */ - public function logged_in($role = NULL) - { - return ($this->get_user() !== NULL); - } - - /** - * Creates a hashed hmac password from a plaintext password. This - * method is deprecated, [Auth::hash] should be used instead. - * - * @deprecated - * @param string $password Plaintext password - */ - public function hash_password($password) - { - return $this->hash($password); - } - - /** - * Perform a hmac hash, using the configured method. - * - * @param string $str string to hash - * @return string - */ - public function hash($str) - { - if ( ! $this->_config['hash_key']) - throw new Kohana_Exception('A valid hash key must be set in your auth config.'); - - return hash_hmac($this->_config['hash_method'], $str, $this->_config['hash_key']); - } - - protected function complete_login($user) - { - // Regenerate session_id - $this->_session->regenerate(); - - // Store username in session - $this->_session->set($this->_config['session_key'], $user); - - return TRUE; - } - -} // End Auth diff --git a/includes/kohana/modules/auth/classes/Kohana/Auth/File.php b/includes/kohana/modules/auth/classes/Kohana/Auth/File.php deleted file mode 100644 index 8640fdec..00000000 --- a/includes/kohana/modules/auth/classes/Kohana/Auth/File.php +++ /dev/null @@ -1,94 +0,0 @@ -_users = Arr::get($config, 'users', array()); - } - - /** - * Logs a user in. - * - * @param string $username Username - * @param string $password Password - * @param boolean $remember Enable autologin (not supported) - * @return boolean - */ - protected function _login($username, $password, $remember) - { - if (is_string($password)) - { - // Create a hashed password - $password = $this->hash($password); - } - - if (isset($this->_users[$username]) AND $this->_users[$username] === $password) - { - // Complete the login - return $this->complete_login($username); - } - - // Login failed - return FALSE; - } - - /** - * Forces a user to be logged in, without specifying a password. - * - * @param mixed $username Username - * @return boolean - */ - public function force_login($username) - { - // Complete the login - return $this->complete_login($username); - } - - /** - * Get the stored password for a username. - * - * @param mixed $username Username - * @return string - */ - public function password($username) - { - return Arr::get($this->_users, $username, FALSE); - } - - /** - * Compare password with original (plain text). Works for current (logged in) user - * - * @param string $password Password - * @return boolean - */ - public function check_password($password) - { - $username = $this->get_user(); - - if ($username === FALSE) - { - return FALSE; - } - - return ($password === $this->password($username)); - } - -} // End Auth File diff --git a/includes/kohana/modules/auth/config/auth.php b/includes/kohana/modules/auth/config/auth.php deleted file mode 100644 index 837930da..00000000 --- a/includes/kohana/modules/auth/config/auth.php +++ /dev/null @@ -1,17 +0,0 @@ - 'File', - 'hash_method' => 'sha256', - 'hash_key' => NULL, - 'lifetime' => 1209600, - 'session_type' => Session::$default, - 'session_key' => 'auth_user', - - // Username/password combinations for the Auth File driver - 'users' => array( - // 'admin' => 'b3154acf3a344170077d11bdb5fff31532f679a1919e716a02', - ), - -); diff --git a/includes/kohana/modules/auth/config/userguide.php b/includes/kohana/modules/auth/config/userguide.php deleted file mode 100644 index 425e27cd..00000000 --- a/includes/kohana/modules/auth/config/userguide.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'auth' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'Auth', - - // A short description of this module, shown on the index page - 'description' => 'User authentication and authorization.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/modules/auth/guide/auth/config.md b/includes/kohana/modules/auth/guide/auth/config.md deleted file mode 100644 index e411fa06..00000000 --- a/includes/kohana/modules/auth/guide/auth/config.md +++ /dev/null @@ -1,13 +0,0 @@ -# Configuration - -The default configuration file is located in `MODPATH/auth/config/auth.php`. You should copy this file to `APPPATH/config/auth.php` and make changes there, in keeping with the [cascading filesystem](../kohana/files). - -[Config merging](../kohana/config#config-merging) allows these default configuration settings to apply if you don't overwrite them in your application configuration file. - -Name | Type | Default | Description ------|------|---------|------------ -driver | `string` | file | The name of the auth driver to use. -hash_method | `string` | sha256 | The hashing function to use on the passwords. -hash_key | `string` | NULL | The key to use when hashing the password. -session_type | `string` | [Session::$default] | The type of session to use when storing the auth user. -session_key | `string` | auth_user | The name of the session variable used to save the user. diff --git a/includes/kohana/modules/auth/guide/auth/driver/develop.md b/includes/kohana/modules/auth/guide/auth/driver/develop.md deleted file mode 100644 index a69a08c5..00000000 --- a/includes/kohana/modules/auth/guide/auth/driver/develop.md +++ /dev/null @@ -1,79 +0,0 @@ -# Developing Drivers - -## Real World Example - -Sometimes the best way to learn is to jump right in and read the code from another module. The [ORM](https://github.com/kohana/orm/blob/3.2/develop/classes/kohana/auth/orm.php) module comes with an auth driver you can learn from. - -[!!] We will be developing an `example` driver. In your own driver you will substitute `example` with your driver name. - -This example file would be saved at `APPPATH/classes/auth/example.php` (or `MODPATH` if you are creating a module). - ---- - -## Quick Example - -First we will show you a quick example and then break down what is going on. - -~~~ -class Auth_Example extends Auth -{ - protected function _login($username, $password, $remember) - { - // Do username/password check here - } - - public function password($username) - { - // Return the password for the username - } - - public function check_password($password) - { - // Check to see if the logged in user has the given password - } - - public function logged_in($role = NULL) - { - // Check to see if the user is logged in, and if $role is set, has all roles - } - - public function get_user($default = NULL) - { - // Get the logged in user, or return the $default if a user is not found - } -} -~~~ - -## Extending Auth - -All drivers must extend the [Auth] class. - - class Auth_Example extends Auth - -## Abstract Methods - -The `Auth` class has 3 abstract methods that must be defined in your new driver. - -~~~ -abstract protected function _login($username, $password, $remember); - -abstract public function password($username); - -abstract public function check_password($user); -~~~ - -## Extending Functionality - -Given that every auth system is going to check if users exist and if they have roles or not you will more than likely have to change some default functionality. - -Here are a few functions that you should pay attention to. - -~~~ -public function logged_in($role = NULL) - -public function get_user($default = NULL) -~~~ - -## Activating the Driver - -After you create your driver you will want to use it. It is a easy as setting the `driver` [configuration](config) option to the name of your driver (in our case `example`). diff --git a/includes/kohana/modules/auth/guide/auth/driver/file.md b/includes/kohana/modules/auth/guide/auth/driver/file.md deleted file mode 100644 index 7a6fa09e..00000000 --- a/includes/kohana/modules/auth/guide/auth/driver/file.md +++ /dev/null @@ -1,19 +0,0 @@ -# File Driver - -The [Auth::File] driver is included with the auth module. - -Below are additional configuration options that can be set for this driver. - -Name | Type | Default | Description ------|------|---------|------------- -users | `array` | array() | A user => password (_hashed_) array of all the users in your application - -## Forcing Login - -[Auth_File::force_login] allows you to force a user login without a password. - -~~~ -// Force the user with a username of admin to be logged into your application -Auth::instance()->force_login('admin'); -$user = Auth::instance()->get_user(); -~~~ diff --git a/includes/kohana/modules/auth/guide/auth/index.md b/includes/kohana/modules/auth/guide/auth/index.md deleted file mode 100644 index 18127e6d..00000000 --- a/includes/kohana/modules/auth/guide/auth/index.md +++ /dev/null @@ -1,19 +0,0 @@ -# Auth - -User authentication and authorization is provided by the auth module. - -The auth module is included with Kohana, but needs to be enabled before you can use it. To enable, open your `application/bootstrap.php` file and modify the call to [Kohana::modules] by including the auth module like so: - -~~~ -Kohana::modules(array( - ... - 'auth' => MODPATH.'auth', - ... -)); -~~~ - -Next, you will then need to [configure](config) the auth module. - -The auth module provides the [Auth::File] driver for you. There is also an auth driver included with the ORM module. - -As your application needs change you may need to find another driver or [develop](driver/develop) your own. diff --git a/includes/kohana/modules/auth/guide/auth/login.md b/includes/kohana/modules/auth/guide/auth/login.md deleted file mode 100644 index 1207b5d8..00000000 --- a/includes/kohana/modules/auth/guide/auth/login.md +++ /dev/null @@ -1,62 +0,0 @@ -# Log in and out - -The auth module provides methods to help you log users in and out of your application. - -## Log in - -The [Auth::login] method handles the login. - -~~~ -// Handled from a form with inputs with names email / password -$post = $this->request->post(); -$success = Auth::instance()->login($post['email'], $post['password']); - -if ($success) -{ - // Login successful, send to app -} -else -{ - // Login failed, send back to form with error message -} -~~~ - -## Logged in User - -There are two ways to check if a user is logged in. If you just need to check if the user is logged in use [Auth::logged_in]. - -~~~ -if (Auth::instance()->logged_in()) -{ - // User is logged in, continue on -} -else -{ - // User isn't logged in, redirect to the login form. -} -~~~ - -You can also get the logged in user object by using [Auth::get_user]. If the user is null, then no user was found. - -~~~ -$user = Auth::instance()->get_user(); - -// Check for a user (NULL if not user is found) -if ($user !== null) -{ - // User is found, continue on -} -else -{ - // User was not found, redirect to the login form -} -~~~ - -## Log out - -The [Auth::logout] method will take care of logging out a user. - -~~~ -Auth::instance()->logout(); -// Redirect the user back to login page -~~~ diff --git a/includes/kohana/modules/auth/guide/auth/menu.md b/includes/kohana/modules/auth/guide/auth/menu.md deleted file mode 100644 index 23fc0eea..00000000 --- a/includes/kohana/modules/auth/guide/auth/menu.md +++ /dev/null @@ -1,6 +0,0 @@ -## [Auth]() -- [Configuration](config) -- [Log in and out](login) -- Drivers - - [File](driver/file) - - [Developing](driver/develop) diff --git a/includes/kohana/modules/cache/README.md b/includes/kohana/modules/cache/README.md deleted file mode 100644 index 7acff9cf..00000000 --- a/includes/kohana/modules/cache/README.md +++ /dev/null @@ -1,59 +0,0 @@ -Kohana Cache library -==================== - -The cache library for Kohana 3 provides a simple interface to the most common cache solutions. Developers are free to add their own caching solutions that follow the cache design pattern defined within this module. - -Supported cache solutions -------------------------- - -Currently this module supports the following cache methods. - -1. APC -2. Memcache -3. Memcached-tags (Supports tags) -4. SQLite (Supports tags) -5. File -6. Wincache - -Planned support ---------------- - -In the near future, additional support for the following methods will be included. - -1. Memcached - -Introduction to caching ------------------------ - -To use caching to the maximum potential, your application should be designed with caching in mind from the outset. In general, the most effective caches contain lots of small collections of data that are the result of expensive computational operations, such as searching through a large data set. - -There are many different caching methods available for PHP, from the very basic file based caching to opcode caching in eAccelerator and APC. Caching engines that use physical memory over disk based storage are always faster, however many do not support more advanced features such as tagging. - -Using Cache ------------ - -To use Kohana Cache, download and extract the latest stable release of Kohana Cache from [Github](http://github.com/samsoir/kohana-cache). Place the module into your Kohana instances modules folder. Finally enable the module within the application bootstrap within the section entitled _modules_. - -Quick example -------------- - -The following is a quick example of how to use Kohana Cache. The example is using the SQLite driver. - - 'bar', 'apples' => 'pear', 'BDFL' => 'Shadowhand'); - - // Save the data to cache, with an id of test_id and a lifetime of 10 minutes - $mycache->set('test_id', $data, 600); - - // Retrieve the data from cache - $retrieved_data = $mycache->get('test_id'); - - // Remove the cache item - $mycache->delete('test_id'); - - // Clear the cache of all stored items - $mycache->delete_all(); diff --git a/includes/kohana/modules/cache/classes/Cache.php b/includes/kohana/modules/cache/classes/Cache.php deleted file mode 100644 index 2b43c93b..00000000 --- a/includes/kohana/modules/cache/classes/Cache.php +++ /dev/null @@ -1,3 +0,0 @@ - array( // Default group - * 'driver' => 'memcache', // using Memcache driver - * 'servers' => array( // Available server definitions - * array( - * 'host' => 'localhost', - * 'port' => 11211, - * 'persistent' => FALSE - * ) - * ), - * 'compression' => FALSE, // Use compression? - * ), - * ) - * - * In cases where only one cache group is required, if the group is named `default` there is - * no need to pass the group name when instantiating a cache instance. - * - * #### General cache group configuration settings - * - * Below are the settings available to all types of cache driver. - * - * Name | Required | Description - * -------------- | -------- | --------------------------------------------------------------- - * driver | __YES__ | (_string_) The driver type to use - * - * Details of the settings specific to each driver are available within the drivers documentation. - * - * ### System requirements - * - * * Kohana 3.0.x - * * PHP 5.2.4 or greater - * - * @package Kohana/Cache - * @category Base - * @version 2.0 - * @author Kohana Team - * @copyright (c) 2009-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -abstract class Kohana_Cache { - - const DEFAULT_EXPIRE = 3600; - - /** - * @var string default driver to use - */ - public static $default = 'file'; - - /** - * @var Kohana_Cache instances - */ - public static $instances = array(); - - /** - * Creates a singleton of a Kohana Cache group. If no group is supplied - * the __default__ cache group is used. - * - * // Create an instance of the default group - * $default_group = Cache::instance(); - * - * // Create an instance of a group - * $foo_group = Cache::instance('foo'); - * - * // Access an instantiated group directly - * $foo_group = Cache::$instances['default']; - * - * @param string $group the name of the cache group to use [Optional] - * @return Cache - * @throws Cache_Exception - */ - public static function instance($group = NULL) - { - // If there is no group supplied - if ($group === NULL) - { - // Use the default setting - $group = Cache::$default; - } - - if (isset(Cache::$instances[$group])) - { - // Return the current group if initiated already - return Cache::$instances[$group]; - } - - $config = Kohana::$config->load('cache'); - - if ( ! $config->offsetExists($group)) - { - throw new Cache_Exception( - 'Failed to load Kohana Cache group: :group', - array(':group' => $group) - ); - } - - $config = $config->get($group); - - // Create a new cache type instance - $cache_class = 'Cache_'.ucfirst($config['driver']); - Cache::$instances[$group] = new $cache_class($config); - - // Return the instance - return Cache::$instances[$group]; - } - - /** - * @var Config - */ - protected $_config = array(); - - /** - * Ensures singleton pattern is observed, loads the default expiry - * - * @param array $config configuration - */ - protected function __construct(array $config) - { - $this->config($config); - } - - /** - * Getter and setter for the configuration. If no argument provided, the - * current configuration is returned. Otherwise the configuration is set - * to this class. - * - * // Overwrite all configuration - * $cache->config(array('driver' => 'memcache', '...')); - * - * // Set a new configuration setting - * $cache->config('servers', array( - * 'foo' => 'bar', - * '...' - * )); - * - * // Get a configuration setting - * $servers = $cache->config('servers); - * - * @param mixed key to set to array, either array or config path - * @param mixed value to associate with key - * @return mixed - */ - public function config($key = NULL, $value = NULL) - { - if ($key === NULL) - return $this->_config; - - if (is_array($key)) - { - $this->_config = $key; - } - else - { - if ($value === NULL) - return Arr::get($this->_config, $key); - - $this->_config[$key] = $value; - } - - return $this; - } - - /** - * Overload the __clone() method to prevent cloning - * - * @return void - * @throws Cache_Exception - */ - final public function __clone() - { - throw new Cache_Exception('Cloning of Kohana_Cache objects is forbidden'); - } - - /** - * Retrieve a cached value entry by id. - * - * // Retrieve cache entry from default group - * $data = Cache::instance()->get('foo'); - * - * // Retrieve cache entry from default group and return 'bar' if miss - * $data = Cache::instance()->get('foo', 'bar'); - * - * // Retrieve cache entry from memcache group - * $data = Cache::instance('memcache')->get('foo'); - * - * @param string $id id of cache to entry - * @param string $default default value to return if cache miss - * @return mixed - * @throws Cache_Exception - */ - abstract public function get($id, $default = NULL); - - /** - * Set a value to cache with id and lifetime - * - * $data = 'bar'; - * - * // Set 'bar' to 'foo' in default group, using default expiry - * Cache::instance()->set('foo', $data); - * - * // Set 'bar' to 'foo' in default group for 30 seconds - * Cache::instance()->set('foo', $data, 30); - * - * // Set 'bar' to 'foo' in memcache group for 10 minutes - * if (Cache::instance('memcache')->set('foo', $data, 600)) - * { - * // Cache was set successfully - * return - * } - * - * @param string $id id of cache entry - * @param string $data data to set to cache - * @param integer $lifetime lifetime in seconds - * @return boolean - */ - abstract public function set($id, $data, $lifetime = 3600); - - /** - * Delete a cache entry based on id - * - * // Delete 'foo' entry from the default group - * Cache::instance()->delete('foo'); - * - * // Delete 'foo' entry from the memcache group - * Cache::instance('memcache')->delete('foo') - * - * @param string $id id to remove from cache - * @return boolean - */ - abstract public function delete($id); - - /** - * Delete all cache entries. - * - * Beware of using this method when - * using shared memory cache systems, as it will wipe every - * entry within the system for all clients. - * - * // Delete all cache entries in the default group - * Cache::instance()->delete_all(); - * - * // Delete all cache entries in the memcache group - * Cache::instance('memcache')->delete_all(); - * - * @return boolean - */ - abstract public function delete_all(); - - /** - * Replaces troublesome characters with underscores. - * - * // Sanitize a cache id - * $id = $this->_sanitize_id($id); - * - * @param string $id id of cache to sanitize - * @return string - */ - protected function _sanitize_id($id) - { - // Change slashes and spaces to underscores - return str_replace(array('/', '\\', ' '), '_', $id); - } -} -// End Kohana_Cache diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/Apc.php b/includes/kohana/modules/cache/classes/Kohana/Cache/Apc.php deleted file mode 100644 index acefcc83..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/Apc.php +++ /dev/null @@ -1,166 +0,0 @@ - array( // Driver group - * 'driver' => 'apc', // using APC driver - * ), - * ) - * - * In cases where only one cache group is required, if the group is named `default` there is - * no need to pass the group name when instantiating a cache instance. - * - * #### General cache group configuration settings - * - * Below are the settings available to all types of cache driver. - * - * Name | Required | Description - * -------------- | -------- | --------------------------------------------------------------- - * driver | __YES__ | (_string_) The driver type to use - * - * ### System requirements - * - * * Kohana 3.0.x - * * PHP 5.2.4 or greater - * * APC PHP extension - * - * @package Kohana/Cache - * @category Base - * @author Kohana Team - * @copyright (c) 2009-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Cache_Apc extends Cache implements Cache_Arithmetic { - - /** - * Check for existence of the APC extension This method cannot be invoked externally. The driver must - * be instantiated using the `Cache::instance()` method. - * - * @param array $config configuration - * @throws Cache_Exception - */ - protected function __construct(array $config) - { - if ( ! extension_loaded('apc')) - { - throw new Cache_Exception('PHP APC extension is not available.'); - } - - parent::__construct($config); - } - - /** - * Retrieve a cached value entry by id. - * - * // Retrieve cache entry from apc group - * $data = Cache::instance('apc')->get('foo'); - * - * // Retrieve cache entry from apc group and return 'bar' if miss - * $data = Cache::instance('apc')->get('foo', 'bar'); - * - * @param string $id id of cache to entry - * @param string $default default value to return if cache miss - * @return mixed - * @throws Cache_Exception - */ - public function get($id, $default = NULL) - { - $data = apc_fetch($this->_sanitize_id($id), $success); - - return $success ? $data : $default; - } - - /** - * Set a value to cache with id and lifetime - * - * $data = 'bar'; - * - * // Set 'bar' to 'foo' in apc group, using default expiry - * Cache::instance('apc')->set('foo', $data); - * - * // Set 'bar' to 'foo' in apc group for 30 seconds - * Cache::instance('apc')->set('foo', $data, 30); - * - * @param string $id id of cache entry - * @param string $data data to set to cache - * @param integer $lifetime lifetime in seconds - * @return boolean - */ - public function set($id, $data, $lifetime = NULL) - { - if ($lifetime === NULL) - { - $lifetime = Arr::get($this->_config, 'default_expire', Cache::DEFAULT_EXPIRE); - } - - return apc_store($this->_sanitize_id($id), $data, $lifetime); - } - - /** - * Delete a cache entry based on id - * - * // Delete 'foo' entry from the apc group - * Cache::instance('apc')->delete('foo'); - * - * @param string $id id to remove from cache - * @return boolean - */ - public function delete($id) - { - return apc_delete($this->_sanitize_id($id)); - } - - /** - * Delete all cache entries. - * - * Beware of using this method when - * using shared memory cache systems, as it will wipe every - * entry within the system for all clients. - * - * // Delete all cache entries in the apc group - * Cache::instance('apc')->delete_all(); - * - * @return boolean - */ - public function delete_all() - { - return apc_clear_cache('user'); - } - - /** - * Increments a given value by the step value supplied. - * Useful for shared counters and other persistent integer based - * tracking. - * - * @param string id of cache entry to increment - * @param int step value to increment by - * @return integer - * @return boolean - */ - public function increment($id, $step = 1) - { - return apc_inc($id, $step); - } - - /** - * Decrements a given value by the step value supplied. - * Useful for shared counters and other persistent integer based - * tracking. - * - * @param string id of cache entry to decrement - * @param int step value to decrement by - * @return integer - * @return boolean - */ - public function decrement($id, $step = 1) - { - return apc_dec($id, $step); - } - -} // End Kohana_Cache_Apc diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/Arithmetic.php b/includes/kohana/modules/cache/classes/Kohana/Cache/Arithmetic.php deleted file mode 100644 index 1bdfb311..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/Arithmetic.php +++ /dev/null @@ -1,39 +0,0 @@ - array( // File driver group - * 'driver' => 'file', // using File driver - * 'cache_dir' => APPPATH.'cache/.kohana_cache', // Cache location - * ), - * ) - * - * In cases where only one cache group is required, if the group is named `default` there is - * no need to pass the group name when instantiating a cache instance. - * - * #### General cache group configuration settings - * - * Below are the settings available to all types of cache driver. - * - * Name | Required | Description - * -------------- | -------- | --------------------------------------------------------------- - * driver | __YES__ | (_string_) The driver type to use - * cache_dir | __NO__ | (_string_) The cache directory to use for this cache instance - * - * ### System requirements - * - * * Kohana 3.0.x - * * PHP 5.2.4 or greater - * - * @package Kohana/Cache - * @category Base - * @author Kohana Team - * @copyright (c) 2009-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Cache_File extends Cache implements Cache_GarbageCollect { - - /** - * Creates a hashed filename based on the string. This is used - * to create shorter unique IDs for each cache filename. - * - * // Create the cache filename - * $filename = Cache_File::filename($this->_sanitize_id($id)); - * - * @param string $string string to hash into filename - * @return string - */ - protected static function filename($string) - { - return sha1($string).'.cache'; - } - - /** - * @var string the caching directory - */ - protected $_cache_dir; - - /** - * Constructs the file cache driver. This method cannot be invoked externally. The file cache driver must - * be instantiated using the `Cache::instance()` method. - * - * @param array $config config - * @throws Cache_Exception - */ - protected function __construct(array $config) - { - // Setup parent - parent::__construct($config); - - try - { - $directory = Arr::get($this->_config, 'cache_dir', Kohana::$cache_dir); - $this->_cache_dir = new SplFileInfo($directory); - } - // PHP < 5.3 exception handle - catch (ErrorException $e) - { - $this->_cache_dir = $this->_make_directory($directory, 0777, TRUE); - } - // PHP >= 5.3 exception handle - catch (UnexpectedValueException $e) - { - $this->_cache_dir = $this->_make_directory($directory, 0777, TRUE); - } - - // If the defined directory is a file, get outta here - if ($this->_cache_dir->isFile()) - { - throw new Cache_Exception('Unable to create cache directory as a file already exists : :resource', array(':resource' => $this->_cache_dir->getRealPath())); - } - - // Check the read status of the directory - if ( ! $this->_cache_dir->isReadable()) - { - throw new Cache_Exception('Unable to read from the cache directory :resource', array(':resource' => $this->_cache_dir->getRealPath())); - } - - // Check the write status of the directory - if ( ! $this->_cache_dir->isWritable()) - { - throw new Cache_Exception('Unable to write to the cache directory :resource', array(':resource' => $this->_cache_dir->getRealPath())); - } - } - - /** - * Retrieve a cached value entry by id. - * - * // Retrieve cache entry from file group - * $data = Cache::instance('file')->get('foo'); - * - * // Retrieve cache entry from file group and return 'bar' if miss - * $data = Cache::instance('file')->get('foo', 'bar'); - * - * @param string $id id of cache to entry - * @param string $default default value to return if cache miss - * @return mixed - * @throws Cache_Exception - */ - public function get($id, $default = NULL) - { - $filename = Cache_File::filename($this->_sanitize_id($id)); - $directory = $this->_resolve_directory($filename); - - // Wrap operations in try/catch to handle notices - try - { - // Open file - $file = new SplFileInfo($directory.$filename); - - // If file does not exist - if ( ! $file->isFile()) - { - // Return default value - return $default; - } - else - { - // Open the file and parse data - $created = $file->getMTime(); - $data = $file->openFile(); - $lifetime = $data->fgets(); - - // If we're at the EOF at this point, corrupted! - if ($data->eof()) - { - throw new Cache_Exception(__METHOD__.' corrupted cache file!'); - } - - $cache = ''; - - while ($data->eof() === FALSE) - { - $cache .= $data->fgets(); - } - - // Test the expiry - if (($created + (int) $lifetime) < time()) - { - // Delete the file - $this->_delete_file($file, NULL, TRUE); - return $default; - } - else - { - return unserialize($cache); - } - } - - } - catch (ErrorException $e) - { - // Handle ErrorException caused by failed unserialization - if ($e->getCode() === E_NOTICE) - { - throw new Cache_Exception(__METHOD__.' failed to unserialize cached object with message : '.$e->getMessage()); - } - - // Otherwise throw the exception - throw $e; - } - } - - /** - * Set a value to cache with id and lifetime - * - * $data = 'bar'; - * - * // Set 'bar' to 'foo' in file group, using default expiry - * Cache::instance('file')->set('foo', $data); - * - * // Set 'bar' to 'foo' in file group for 30 seconds - * Cache::instance('file')->set('foo', $data, 30); - * - * @param string $id id of cache entry - * @param string $data data to set to cache - * @param integer $lifetime lifetime in seconds - * @return boolean - */ - public function set($id, $data, $lifetime = NULL) - { - $filename = Cache_File::filename($this->_sanitize_id($id)); - $directory = $this->_resolve_directory($filename); - - // If lifetime is NULL - if ($lifetime === NULL) - { - // Set to the default expiry - $lifetime = Arr::get($this->_config, 'default_expire', Cache::DEFAULT_EXPIRE); - } - - // Open directory - $dir = new SplFileInfo($directory); - - // If the directory path is not a directory - if ( ! $dir->isDir()) - { - // Create the directory - if ( ! mkdir($directory, 0777, TRUE)) - { - throw new Cache_Exception(__METHOD__.' unable to create directory : :directory', array(':directory' => $directory)); - } - - // chmod to solve potential umask issues - chmod($directory, 0777); - } - - // Open file to inspect - $resouce = new SplFileInfo($directory.$filename); - $file = $resouce->openFile('w'); - - try - { - $data = $lifetime."\n".serialize($data); - $file->fwrite($data, strlen($data)); - return (bool) $file->fflush(); - } - catch (ErrorException $e) - { - // If serialize through an error exception - if ($e->getCode() === E_NOTICE) - { - // Throw a caching error - throw new Cache_Exception(__METHOD__.' failed to serialize data for caching with message : '.$e->getMessage()); - } - - // Else rethrow the error exception - throw $e; - } - } - - /** - * Delete a cache entry based on id - * - * // Delete 'foo' entry from the file group - * Cache::instance('file')->delete('foo'); - * - * @param string $id id to remove from cache - * @return boolean - */ - public function delete($id) - { - $filename = Cache_File::filename($this->_sanitize_id($id)); - $directory = $this->_resolve_directory($filename); - - return $this->_delete_file(new SplFileInfo($directory.$filename), NULL, TRUE); - } - - /** - * Delete all cache entries. - * - * Beware of using this method when - * using shared memory cache systems, as it will wipe every - * entry within the system for all clients. - * - * // Delete all cache entries in the file group - * Cache::instance('file')->delete_all(); - * - * @return boolean - */ - public function delete_all() - { - return $this->_delete_file($this->_cache_dir, TRUE); - } - - /** - * Garbage collection method that cleans any expired - * cache entries from the cache. - * - * @return void - */ - public function garbage_collect() - { - $this->_delete_file($this->_cache_dir, TRUE, FALSE, TRUE); - return; - } - - /** - * Deletes files recursively and returns FALSE on any errors - * - * // Delete a file or folder whilst retaining parent directory and ignore all errors - * $this->_delete_file($folder, TRUE, TRUE); - * - * @param SplFileInfo $file file - * @param boolean $retain_parent_directory retain the parent directory - * @param boolean $ignore_errors ignore_errors to prevent all exceptions interrupting exec - * @param boolean $only_expired only expired files - * @return boolean - * @throws Cache_Exception - */ - protected function _delete_file(SplFileInfo $file, $retain_parent_directory = FALSE, $ignore_errors = FALSE, $only_expired = FALSE) - { - // Allow graceful error handling - try - { - // If is file - if ($file->isFile()) - { - try - { - // Handle ignore files - if (in_array($file->getFilename(), $this->config('ignore_on_delete'))) - { - $delete = FALSE; - } - // If only expired is not set - elseif ($only_expired === FALSE) - { - // We want to delete the file - $delete = TRUE; - } - // Otherwise... - else - { - // Assess the file expiry to flag it for deletion - $json = $file->openFile('r')->current(); - $data = json_decode($json); - $delete = $data->expiry < time(); - } - - // If the delete flag is set delete file - if ($delete === TRUE) - return unlink($file->getRealPath()); - else - return FALSE; - } - catch (ErrorException $e) - { - // Catch any delete file warnings - if ($e->getCode() === E_WARNING) - { - throw new Cache_Exception(__METHOD__.' failed to delete file : :file', array(':file' => $file->getRealPath())); - } - } - } - // Else, is directory - elseif ($file->isDir()) - { - // Create new DirectoryIterator - $files = new DirectoryIterator($file->getPathname()); - - // Iterate over each entry - while ($files->valid()) - { - // Extract the entry name - $name = $files->getFilename(); - - // If the name is not a dot - if ($name != '.' AND $name != '..') - { - // Create new file resource - $fp = new SplFileInfo($files->getRealPath()); - // Delete the file - $this->_delete_file($fp); - } - - // Move the file pointer on - $files->next(); - } - - // If set to retain parent directory, return now - if ($retain_parent_directory) - { - return TRUE; - } - - try - { - // Remove the files iterator - // (fixes Windows PHP which has permission issues with open iterators) - unset($files); - - // Try to remove the parent directory - return rmdir($file->getRealPath()); - } - catch (ErrorException $e) - { - // Catch any delete directory warnings - if ($e->getCode() === E_WARNING) - { - throw new Cache_Exception(__METHOD__.' failed to delete directory : :directory', array(':directory' => $file->getRealPath())); - } - throw $e; - } - } - else - { - // We get here if a file has already been deleted - return FALSE; - } - } - // Catch all exceptions - catch (Exception $e) - { - // If ignore_errors is on - if ($ignore_errors === TRUE) - { - // Return - return FALSE; - } - // Throw exception - throw $e; - } - } - - /** - * Resolves the cache directory real path from the filename - * - * // Get the realpath of the cache folder - * $realpath = $this->_resolve_directory($filename); - * - * @param string $filename filename to resolve - * @return string - */ - protected function _resolve_directory($filename) - { - return $this->_cache_dir->getRealPath().DIRECTORY_SEPARATOR.$filename[0].$filename[1].DIRECTORY_SEPARATOR; - } - - /** - * Makes the cache directory if it doesn't exist. Simply a wrapper for - * `mkdir` to ensure DRY principles - * - * @link http://php.net/manual/en/function.mkdir.php - * @param string $directory - * @param integer $mode - * @param boolean $recursive - * @param resource $context - * @return SplFileInfo - * @throws Cache_Exception - */ - protected function _make_directory($directory, $mode = 0777, $recursive = FALSE, $context = NULL) - { - if ( ! mkdir($directory, $mode, $recursive, $context)) - { - throw new Cache_Exception('Failed to create the defined cache directory : :directory', array(':directory' => $directory)); - } - chmod($directory, $mode); - - return new SplFileInfo($directory); - } -} diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/GarbageCollect.php b/includes/kohana/modules/cache/classes/Kohana/Cache/GarbageCollect.php deleted file mode 100644 index c0bc5196..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/GarbageCollect.php +++ /dev/null @@ -1,23 +0,0 @@ - array( // Default group - * 'driver' => 'memcache', // using Memcache driver - * 'servers' => array( // Available server definitions - * // First memcache server server - * array( - * 'host' => 'localhost', - * 'port' => 11211, - * 'persistent' => FALSE - * 'weight' => 1, - * 'timeout' => 1, - * 'retry_interval' => 15, - * 'status' => TRUE, - * 'instant_death' => TRUE, - * 'failure_callback' => array('className', 'classMethod') - * ), - * // Second memcache server - * array( - * 'host' => '192.168.1.5', - * 'port' => 22122, - * 'persistent' => TRUE - * ) - * ), - * 'compression' => FALSE, // Use compression? - * ), - * ) - * - * In cases where only one cache group is required, if the group is named `default` there is - * no need to pass the group name when instantiating a cache instance. - * - * #### General cache group configuration settings - * - * Below are the settings available to all types of cache driver. - * - * Name | Required | Description - * -------------- | -------- | --------------------------------------------------------------- - * driver | __YES__ | (_string_) The driver type to use - * servers | __YES__ | (_array_) Associative array of server details, must include a __host__ key. (see _Memcache server configuration_ below) - * compression | __NO__ | (_boolean_) Use data compression when caching - * - * #### Memcache server configuration - * - * The following settings should be used when defining each memcache server - * - * Name | Required | Description - * ---------------- | -------- | --------------------------------------------------------------- - * host | __YES__ | (_string_) The host of the memcache server, i.e. __localhost__; or __127.0.0.1__; or __memcache.domain.tld__ - * port | __NO__ | (_integer_) Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets. Default __11211__ - * persistent | __NO__ | (_boolean_) Controls the use of a persistent connection. Default __TRUE__ - * weight | __NO__ | (_integer_) Number of buckets to create for this server which in turn control its probability of it being selected. The probability is relative to the total weight of all servers. Default __1__ - * timeout | __NO__ | (_integer_) Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. Default __1__ - * retry_interval | __NO__ | (_integer_) Controls how often a failed server will be retried, the default value is 15 seconds. Setting this parameter to -1 disables automatic retry. Default __15__ - * status | __NO__ | (_boolean_) Controls if the server should be flagged as online. Default __TRUE__ - * failure_callback | __NO__ | (_[callback](http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback)_) Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted. The function takes two parameters, the hostname and port of the failed server. Default __NULL__ - * - * ### System requirements - * - * * Kohana 3.0.x - * * PHP 5.2.4 or greater - * * Memcache (plus Memcached-tags for native tagging support) - * * Zlib - * - * @package Kohana/Cache - * @category Base - * @version 2.0 - * @author Kohana Team - * @copyright (c) 2009-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Cache_Memcache extends Cache implements Cache_Arithmetic { - - // Memcache has a maximum cache lifetime of 30 days - const CACHE_CEILING = 2592000; - - /** - * Memcache resource - * - * @var Memcache - */ - protected $_memcache; - - /** - * Flags to use when storing values - * - * @var string - */ - protected $_flags; - - /** - * The default configuration for the memcached server - * - * @var array - */ - protected $_default_config = array(); - - /** - * Constructs the memcache Kohana_Cache object - * - * @param array $config configuration - * @throws Cache_Exception - */ - protected function __construct(array $config) - { - // Check for the memcache extention - if ( ! extension_loaded('memcache')) - { - throw new Cache_Exception('Memcache PHP extention not loaded'); - } - - parent::__construct($config); - - // Setup Memcache - $this->_memcache = new Memcache; - - // Load servers from configuration - $servers = Arr::get($this->_config, 'servers', NULL); - - if ( ! $servers) - { - // Throw an exception if no server found - throw new Cache_Exception('No Memcache servers defined in configuration'); - } - - // Setup default server configuration - $this->_default_config = array( - 'host' => 'localhost', - 'port' => 11211, - 'persistent' => FALSE, - 'weight' => 1, - 'timeout' => 1, - 'retry_interval' => 15, - 'status' => TRUE, - 'instant_death' => TRUE, - 'failure_callback' => array($this, '_failed_request'), - ); - - // Add the memcache servers to the pool - foreach ($servers as $server) - { - // Merge the defined config with defaults - $server += $this->_default_config; - - if ( ! $this->_memcache->addServer($server['host'], $server['port'], $server['persistent'], $server['weight'], $server['timeout'], $server['retry_interval'], $server['status'], $server['failure_callback'])) - { - throw new Cache_Exception('Memcache could not connect to host \':host\' using port \':port\'', array(':host' => $server['host'], ':port' => $server['port'])); - } - } - - // Setup the flags - $this->_flags = Arr::get($this->_config, 'compression', FALSE) ? MEMCACHE_COMPRESSED : FALSE; - } - - /** - * Retrieve a cached value entry by id. - * - * // Retrieve cache entry from memcache group - * $data = Cache::instance('memcache')->get('foo'); - * - * // Retrieve cache entry from memcache group and return 'bar' if miss - * $data = Cache::instance('memcache')->get('foo', 'bar'); - * - * @param string $id id of cache to entry - * @param string $default default value to return if cache miss - * @return mixed - * @throws Cache_Exception - */ - public function get($id, $default = NULL) - { - // Get the value from Memcache - $value = $this->_memcache->get($this->_sanitize_id($id)); - - // If the value wasn't found, normalise it - if ($value === FALSE) - { - $value = (NULL === $default) ? NULL : $default; - } - - // Return the value - return $value; - } - - /** - * Set a value to cache with id and lifetime - * - * $data = 'bar'; - * - * // Set 'bar' to 'foo' in memcache group for 10 minutes - * if (Cache::instance('memcache')->set('foo', $data, 600)) - * { - * // Cache was set successfully - * return - * } - * - * @param string $id id of cache entry - * @param mixed $data data to set to cache - * @param integer $lifetime lifetime in seconds, maximum value 2592000 - * @return boolean - */ - public function set($id, $data, $lifetime = 3600) - { - // If the lifetime is greater than the ceiling - if ($lifetime > Cache_Memcache::CACHE_CEILING) - { - // Set the lifetime to maximum cache time - $lifetime = Cache_Memcache::CACHE_CEILING + time(); - } - // Else if the lifetime is greater than zero - elseif ($lifetime > 0) - { - $lifetime += time(); - } - // Else - else - { - // Normalise the lifetime - $lifetime = 0; - } - - // Set the data to memcache - return $this->_memcache->set($this->_sanitize_id($id), $data, $this->_flags, $lifetime); - } - - /** - * Delete a cache entry based on id - * - * // Delete the 'foo' cache entry immediately - * Cache::instance('memcache')->delete('foo'); - * - * // Delete the 'bar' cache entry after 30 seconds - * Cache::instance('memcache')->delete('bar', 30); - * - * @param string $id id of entry to delete - * @param integer $timeout timeout of entry, if zero item is deleted immediately, otherwise the item will delete after the specified value in seconds - * @return boolean - */ - public function delete($id, $timeout = 0) - { - // Delete the id - return $this->_memcache->delete($this->_sanitize_id($id), $timeout); - } - - /** - * Delete all cache entries. - * - * Beware of using this method when - * using shared memory cache systems, as it will wipe every - * entry within the system for all clients. - * - * // Delete all cache entries in the default group - * Cache::instance('memcache')->delete_all(); - * - * @return boolean - */ - public function delete_all() - { - $result = $this->_memcache->flush(); - - // We must sleep after flushing, or overwriting will not work! - // @see http://php.net/manual/en/function.memcache-flush.php#81420 - sleep(1); - - return $result; - } - - /** - * Callback method for Memcache::failure_callback to use if any Memcache call - * on a particular server fails. This method switches off that instance of the - * server if the configuration setting `instant_death` is set to `TRUE`. - * - * @param string $hostname - * @param integer $port - * @return void|boolean - * @since 3.0.8 - */ - public function _failed_request($hostname, $port) - { - if ( ! $this->_config['instant_death']) - return; - - // Setup non-existent host - $host = FALSE; - - // Get host settings from configuration - foreach ($this->_config['servers'] as $server) - { - // Merge the defaults, since they won't always be set - $server += $this->_default_config; - // We're looking at the failed server - if ($hostname == $server['host'] and $port == $server['port']) - { - // Server to disable, since it failed - $host = $server; - continue; - } - } - - if ( ! $host) - return; - else - { - return $this->_memcache->setServerParams( - $host['host'], - $host['port'], - $host['timeout'], - $host['retry_interval'], - FALSE, // Server is offline - array($this, '_failed_request' - )); - } - } - - /** - * Increments a given value by the step value supplied. - * Useful for shared counters and other persistent integer based - * tracking. - * - * @param string id of cache entry to increment - * @param int step value to increment by - * @return integer - * @return boolean - */ - public function increment($id, $step = 1) - { - return $this->_memcache->increment($id, $step); - } - - /** - * Decrements a given value by the step value supplied. - * Useful for shared counters and other persistent integer based - * tracking. - * - * @param string id of cache entry to decrement - * @param int step value to decrement by - * @return integer - * @return boolean - */ - public function decrement($id, $step = 1) - { - return $this->_memcache->decrement($id, $step); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/MemcacheTag.php b/includes/kohana/modules/cache/classes/Kohana/Cache/MemcacheTag.php deleted file mode 100644 index 644e5439..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/MemcacheTag.php +++ /dev/null @@ -1,78 +0,0 @@ -_memcache, 'tag_add')) - { - throw new Cache_Exception('Memcached-tags PHP plugin not present. Please see http://code.google.com/p/memcached-tags/ for more information'); - } - } - - /** - * Set a value based on an id with tags - * - * @param string $id id - * @param mixed $data data - * @param integer $lifetime lifetime [Optional] - * @param array $tags tags [Optional] - * @return boolean - */ - public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL) - { - $id = $this->_sanitize_id($id); - - $result = $this->set($id, $data, $lifetime); - - if ($result and $tags) - { - foreach ($tags as $tag) - { - $this->_memcache->tag_add($tag, $id); - } - } - - return $result; - } - - /** - * Delete cache entries based on a tag - * - * @param string $tag tag - * @return boolean - */ - public function delete_tag($tag) - { - return $this->_memcache->tag_delete($tag); - } - - /** - * Find cache entries based on a tag - * - * @param string $tag tag - * @return void - * @throws Cache_Exception - */ - public function find($tag) - { - throw new Cache_Exception('Memcached-tags does not support finding by tag'); - } -} diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/Sqlite.php b/includes/kohana/modules/cache/classes/Kohana/Cache/Sqlite.php deleted file mode 100644 index 932704a2..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/Sqlite.php +++ /dev/null @@ -1,334 +0,0 @@ -_config, 'database', NULL); - - if ($database === NULL) - { - throw new Cache_Exception('Database path not available in Kohana Cache configuration'); - } - - // Load new Sqlite DB - $this->_db = new PDO('sqlite:'.$database); - - // Test for existing DB - $result = $this->_db->query("SELECT * FROM sqlite_master WHERE name = 'caches' AND type = 'table'")->fetchAll(); - - // If there is no table, create a new one - if (0 == count($result)) - { - $database_schema = Arr::get($this->_config, 'schema', NULL); - - if ($database_schema === NULL) - { - throw new Cache_Exception('Database schema not found in Kohana Cache configuration'); - } - - try - { - // Create the caches table - $this->_db->query(Arr::get($this->_config, 'schema', NULL)); - } - catch (PDOException $e) - { - throw new Cache_Exception('Failed to create new SQLite caches table with the following error : :error', array(':error' => $e->getMessage())); - } - } - } - - /** - * Retrieve a value based on an id - * - * @param string $id id - * @param string $default default [Optional] Default value to return if id not found - * @return mixed - * @throws Cache_Exception - */ - public function get($id, $default = NULL) - { - // Prepare statement - $statement = $this->_db->prepare('SELECT id, expiration, cache FROM caches WHERE id = :id LIMIT 0, 1'); - - // Try and load the cache based on id - try - { - $statement->execute(array(':id' => $this->_sanitize_id($id))); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - if ( ! $result = $statement->fetch(PDO::FETCH_OBJ)) - { - return $default; - } - - // If the cache has expired - if ($result->expiration != 0 and $result->expiration <= time()) - { - // Delete it and return default value - $this->delete($id); - return $default; - } - // Otherwise return cached object - else - { - // Disable notices for unserializing - $ER = error_reporting(~E_NOTICE); - - // Return the valid cache data - $data = unserialize($result->cache); - - // Turn notices back on - error_reporting($ER); - - // Return the resulting data - return $data; - } - } - - /** - * Set a value based on an id. Optionally add tags. - * - * @param string $id id - * @param mixed $data data - * @param integer $lifetime lifetime [Optional] - * @return boolean - */ - public function set($id, $data, $lifetime = NULL) - { - return (bool) $this->set_with_tags($id, $data, $lifetime); - } - - /** - * Delete a cache entry based on id - * - * @param string $id id - * @return boolean - * @throws Cache_Exception - */ - public function delete($id) - { - // Prepare statement - $statement = $this->_db->prepare('DELETE FROM caches WHERE id = :id'); - - // Remove the entry - try - { - $statement->execute(array(':id' => $this->_sanitize_id($id))); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - return (bool) $statement->rowCount(); - } - - /** - * Delete all cache entries - * - * @return boolean - */ - public function delete_all() - { - // Prepare statement - $statement = $this->_db->prepare('DELETE FROM caches'); - - // Remove the entry - try - { - $statement->execute(); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - return (bool) $statement->rowCount(); - } - - /** - * Set a value based on an id. Optionally add tags. - * - * @param string $id id - * @param mixed $data data - * @param integer $lifetime lifetime [Optional] - * @param array $tags tags [Optional] - * @return boolean - * @throws Cache_Exception - */ - public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL) - { - // Serialize the data - $data = serialize($data); - - // Normalise tags - $tags = (NULL === $tags) ? NULL : ('<'.implode('>,<', $tags).'>'); - - // Setup lifetime - if ($lifetime === NULL) - { - $lifetime = (0 === Arr::get($this->_config, 'default_expire', NULL)) ? 0 : (Arr::get($this->_config, 'default_expire', Cache::DEFAULT_EXPIRE) + time()); - } - else - { - $lifetime = (0 === $lifetime) ? 0 : ($lifetime + time()); - } - - // Prepare statement - // $this->exists() may throw Cache_Exception, no need to catch/rethrow - $statement = $this->exists($id) ? $this->_db->prepare('UPDATE caches SET expiration = :expiration, cache = :cache, tags = :tags WHERE id = :id') : $this->_db->prepare('INSERT INTO caches (id, cache, expiration, tags) VALUES (:id, :cache, :expiration, :tags)'); - - // Try to insert - try - { - $statement->execute(array(':id' => $this->_sanitize_id($id), ':cache' => $data, ':expiration' => $lifetime, ':tags' => $tags)); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - return (bool) $statement->rowCount(); - } - - /** - * Delete cache entries based on a tag - * - * @param string $tag tag - * @return boolean - * @throws Cache_Exception - */ - public function delete_tag($tag) - { - // Prepare the statement - $statement = $this->_db->prepare('DELETE FROM caches WHERE tags LIKE :tag'); - - // Try to delete - try - { - $statement->execute(array(':tag' => "%<{$tag}>%")); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - return (bool) $statement->rowCount(); - } - - /** - * Find cache entries based on a tag - * - * @param string $tag tag - * @return array - * @throws Cache_Exception - */ - public function find($tag) - { - // Prepare the statement - $statement = $this->_db->prepare('SELECT id, cache FROM caches WHERE tags LIKE :tag'); - - // Try to find - try - { - if ( ! $statement->execute(array(':tag' => "%<{$tag}>%"))) - { - return array(); - } - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - $result = array(); - - while ($row = $statement->fetchObject()) - { - // Disable notices for unserializing - $ER = error_reporting(~E_NOTICE); - - $result[$row->id] = unserialize($row->cache); - - // Turn notices back on - error_reporting($ER); - } - - return $result; - } - - /** - * Garbage collection method that cleans any expired - * cache entries from the cache. - * - * @return void - */ - public function garbage_collect() - { - // Create the sequel statement - $statement = $this->_db->prepare('DELETE FROM caches WHERE expiration < :expiration'); - - try - { - $statement->execute(array(':expiration' => time())); - } - catch (PDOException $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - } - - /** - * Tests whether an id exists or not - * - * @param string $id id - * @return boolean - * @throws Cache_Exception - */ - protected function exists($id) - { - $statement = $this->_db->prepare('SELECT id FROM caches WHERE id = :id'); - try - { - $statement->execute(array(':id' => $this->_sanitize_id($id))); - } - catch (PDOExeption $e) - { - throw new Cache_Exception('There was a problem querying the local SQLite3 cache. :error', array(':error' => $e->getMessage())); - } - - return (bool) $statement->fetchAll(); - } -} diff --git a/includes/kohana/modules/cache/classes/Kohana/Cache/Tagging.php b/includes/kohana/modules/cache/classes/Kohana/Cache/Tagging.php deleted file mode 100644 index 70d4d632..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/Cache/Tagging.php +++ /dev/null @@ -1,41 +0,0 @@ - array( // Driver group - * 'driver' => 'wincache', // using wincache driver - * ), - * ) - * - * In cases where only one cache group is required, if the group is named `default` there is - * no need to pass the group name when instantiating a cache instance. - * - * #### General cache group configuration settings - * - * Below are the settings available to all types of cache driver. - * - * Name | Required | Description - * -------------- | -------- | --------------------------------------------------------------- - * driver | __YES__ | (_string_) The driver type to use - * - * ### System requirements - * - * * Windows XP SP3 with IIS 5.1 and » FastCGI Extension - * * Windows Server 2003 with IIS 6.0 and » FastCGI Extension - * * Windows Vista SP1 with IIS 7.0 and FastCGI Module - * * Windows Server 2008 with IIS 7.0 and FastCGI Module - * * Windows 7 with IIS 7.5 and FastCGI Module - * * Windows Server 2008 R2 with IIS 7.5 and FastCGI Module - * * PHP 5.2.X, Non-thread-safe build - * * PHP 5.3 X86, Non-thread-safe VC9 build - * - * @package Kohana/Cache - * @category Base - * @author Kohana Team - * @copyright (c) 2009-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Cache_Wincache extends Cache { - - /** - * Check for existence of the wincache extension This method cannot be invoked externally. The driver must - * be instantiated using the `Cache::instance()` method. - * - * @param array $config configuration - * @throws Cache_Exception - */ - protected function __construct(array $config) - { - if ( ! extension_loaded('wincache')) - { - throw new Cache_Exception('PHP wincache extension is not available.'); - } - - parent::__construct($config); - } - - /** - * Retrieve a cached value entry by id. - * - * // Retrieve cache entry from wincache group - * $data = Cache::instance('wincache')->get('foo'); - * - * // Retrieve cache entry from wincache group and return 'bar' if miss - * $data = Cache::instance('wincache')->get('foo', 'bar'); - * - * @param string $id id of cache to entry - * @param string $default default value to return if cache miss - * @return mixed - * @throws Cache_Exception - */ - public function get($id, $default = NULL) - { - $data = wincache_ucache_get($this->_sanitize_id($id), $success); - - return $success ? $data : $default; - } - - /** - * Set a value to cache with id and lifetime - * - * $data = 'bar'; - * - * // Set 'bar' to 'foo' in wincache group, using default expiry - * Cache::instance('wincache')->set('foo', $data); - * - * // Set 'bar' to 'foo' in wincache group for 30 seconds - * Cache::instance('wincache')->set('foo', $data, 30); - * - * @param string $id id of cache entry - * @param string $data data to set to cache - * @param integer $lifetime lifetime in seconds - * @return boolean - */ - public function set($id, $data, $lifetime = NULL) - { - if ($lifetime === NULL) - { - $lifetime = Arr::get($this->_config, 'default_expire', Cache::DEFAULT_EXPIRE); - } - - return wincache_ucache_set($this->_sanitize_id($id), $data, $lifetime); - } - - /** - * Delete a cache entry based on id - * - * // Delete 'foo' entry from the wincache group - * Cache::instance('wincache')->delete('foo'); - * - * @param string $id id to remove from cache - * @return boolean - */ - public function delete($id) - { - return wincache_ucache_delete($this->_sanitize_id($id)); - } - - /** - * Delete all cache entries. - * - * Beware of using this method when - * using shared memory cache systems, as it will wipe every - * entry within the system for all clients. - * - * // Delete all cache entries in the wincache group - * Cache::instance('wincache')->delete_all(); - * - * @return boolean - */ - public function delete_all() - { - return wincache_ucache_clear(); - } -} diff --git a/includes/kohana/modules/cache/classes/Kohana/HTTP/Cache.php b/includes/kohana/modules/cache/classes/Kohana/HTTP/Cache.php deleted file mode 100644 index 2507f811..00000000 --- a/includes/kohana/modules/cache/classes/Kohana/HTTP/Cache.php +++ /dev/null @@ -1,503 +0,0 @@ - FALSE - * ) - * ); - * - * // Create HTTP_Cache with supplied cache engine - * $http_cache = HTTP_Cache::factory(Cache::instance('memcache'), - * array( - * 'allow_private_cache' => FALSE - * ) - * ); - * - * @uses [Cache] - * @param mixed $cache cache engine to use - * @param array $options options to set to this class - * @return HTTP_Cache - */ - public static function factory($cache, array $options = array()) - { - if ( ! $cache instanceof Cache) - { - $cache = Cache::instance($cache); - } - - $options['cache'] = $cache; - - return new HTTP_Cache($options); - } - - /** - * Basic cache key generator that hashes the entire request and returns - * it. This is fine for static content, or dynamic content where user - * specific information is encoded into the request. - * - * // Generate cache key - * $cache_key = HTTP_Cache::basic_cache_key_generator($request); - * - * @param Request $request - * @return string - */ - public static function basic_cache_key_generator(Request $request) - { - $uri = $request->uri(); - $query = $request->query(); - $headers = $request->headers()->getArrayCopy(); - $body = $request->body(); - - return sha1($uri.'?'.http_build_query($query, NULL, '&').'~'.implode('~', $headers).'~'.$body); - } - - /** - * @var Cache cache driver to use for HTTP caching - */ - protected $_cache; - - /** - * @var callback Cache key generator callback - */ - protected $_cache_key_callback; - - /** - * @var boolean Defines whether this client should cache `private` cache directives - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 - */ - protected $_allow_private_cache = FALSE; - - /** - * @var int The timestamp of the request - */ - protected $_request_time; - - /** - * @var int The timestamp of the response - */ - protected $_response_time; - - /** - * Constructor method for this class. Allows dependency injection of the - * required components such as `Cache` and the cache key generator. - * - * @param array $options - */ - public function __construct(array $options = array()) - { - foreach ($options as $key => $value) - { - if (method_exists($this, $key)) - { - $this->$key($value); - } - } - - if ($this->_cache_key_callback === NULL) - { - $this->cache_key_callback('HTTP_Cache::basic_cache_key_generator'); - } - } - - /** - * Executes the supplied [Request] with the supplied [Request_Client]. - * Before execution, the HTTP_Cache adapter checks the request type, - * destructive requests such as `POST`, `PUT` and `DELETE` will bypass - * cache completely and ensure the response is not cached. All other - * Request methods will allow caching, if the rules are met. - * - * @param Request_Client $client client to execute with Cache-Control - * @param Request $request request to execute with client - * @return [Response] - */ - public function execute(Request_Client $client, Request $request, Response $response) - { - if ( ! $this->_cache instanceof Cache) - return $client->execute_request($request, $response); - - // If this is a destructive request, by-pass cache completely - if (in_array($request->method(), array( - HTTP_Request::POST, - HTTP_Request::PUT, - HTTP_Request::DELETE))) - { - // Kill existing caches for this request - $this->invalidate_cache($request); - - $response = $client->execute_request($request, $response); - - $cache_control = HTTP_Header::create_cache_control(array( - 'no-cache', - 'must-revalidate' - )); - - // Ensure client respects destructive action - return $response->headers('cache-control', $cache_control); - } - - // Create the cache key - $cache_key = $this->create_cache_key($request, $this->_cache_key_callback); - - // Try and return cached version - if (($cached_response = $this->cache_response($cache_key, $request)) instanceof Response) - return $cached_response; - - // Start request time - $this->_request_time = time(); - - // Execute the request with the Request client - $response = $client->execute_request($request, $response); - - // Stop response time - $this->_response_time = (time() - $this->_request_time); - - // Cache the response - $this->cache_response($cache_key, $request, $response); - - $response->headers(HTTP_Cache::CACHE_STATUS_KEY, - HTTP_Cache::CACHE_STATUS_MISS); - - return $response; - } - - /** - * Invalidate a cached response for the [Request] supplied. - * This has the effect of deleting the response from the - * [Cache] entry. - * - * @param Request $request Response to remove from cache - * @return void - */ - public function invalidate_cache(Request $request) - { - if (($cache = $this->cache()) instanceof Cache) - { - $cache->delete($this->create_cache_key($request, $this->_cache_key_callback)); - } - - return; - } - - /** - * Getter and setter for the internal caching engine, - * used to cache responses if available and valid. - * - * @param Kohana_Cache $cache engine to use for caching - * @return Kohana_Cache - * @return Kohana_Request_Client - */ - public function cache(Cache $cache = NULL) - { - if ($cache === NULL) - return $this->_cache; - - $this->_cache = $cache; - return $this; - } - - /** - * Gets or sets the [Request_Client::allow_private_cache] setting. - * If set to `TRUE`, the client will also cache cache-control directives - * that have the `private` setting. - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 - * @param boolean $setting allow caching of privately marked responses - * @return boolean - * @return [Request_Client] - */ - public function allow_private_cache($setting = NULL) - { - if ($setting === NULL) - return $this->_allow_private_cache; - - $this->_allow_private_cache = (bool) $setting; - return $this; - } - - /** - * Sets or gets the cache key generator callback for this caching - * class. The cache key generator provides a unique hash based on the - * `Request` object passed to it. - * - * The default generator is [HTTP_Cache::basic_cache_key_generator()], which - * serializes the entire `HTTP_Request` into a unique sha1 hash. This will - * provide basic caching for static and simple dynamic pages. More complex - * algorithms can be defined and then passed into `HTTP_Cache` using this - * method. - * - * // Get the cache key callback - * $callback = $http_cache->cache_key_callback(); - * - * // Set the cache key callback - * $http_cache->cache_key_callback('Foo::cache_key'); - * - * // Alternatively, in PHP 5.3 use a closure - * $http_cache->cache_key_callback(function (Request $request) { - * return sha1($request->render()); - * }); - * - * @param callback $callback - * @return mixed - * @throws HTTP_Exception - */ - public function cache_key_callback($callback = NULL) - { - if ($callback === NULL) - return $this->_cache_key_callback; - - if ( ! is_callable($callback)) - throw new Kohana_Exception('cache_key_callback must be callable!'); - - $this->_cache_key_callback = $callback; - return $this; - } - - /** - * Creates a cache key for the request to use for caching - * [Kohana_Response] returned by [Request::execute]. - * - * This is the default cache key generating logic, but can be overridden - * by setting [HTTP_Cache::cache_key_callback()]. - * - * @param Request $request request to create key for - * @param callback $callback optional callback to use instead of built-in method - * @return string - */ - public function create_cache_key(Request $request, $callback = FALSE) - { - if (is_callable($callback)) - return call_user_func($callback, $request); - else - return HTTP_Cache::basic_cache_key_generator($request); - } - - /** - * Controls whether the response can be cached. Uses HTTP - * protocol to determine whether the response can be cached. - * - * @link RFC 2616 http://www.w3.org/Protocols/rfc2616/ - * @param Response $response The Response - * @return boolean - */ - public function set_cache(Response $response) - { - $headers = $response->headers()->getArrayCopy(); - - if ($cache_control = Arr::get($headers, 'cache-control')) - { - // Parse the cache control - $cache_control = HTTP_Header::parse_cache_control($cache_control); - - // If the no-cache or no-store directive is set, return - if (array_intersect($cache_control, array('no-cache', 'no-store'))) - return FALSE; - - // Check for private cache and get out of here if invalid - if ( ! $this->_allow_private_cache AND in_array('private', $cache_control)) - { - if ( ! isset($cache_control['s-maxage'])) - return FALSE; - - // If there is a s-maxage directive we can use that - $cache_control['max-age'] = $cache_control['s-maxage']; - } - - // Check that max-age has been set and if it is valid for caching - if (isset($cache_control['max-age']) AND $cache_control['max-age'] < 1) - return FALSE; - } - - if ($expires = Arr::get($headers, 'expires') AND ! isset($cache_control['max-age'])) - { - // Can't cache things that have expired already - if (strtotime($expires) <= time()) - return FALSE; - } - - return TRUE; - } - - /** - * Caches a [Response] using the supplied [Cache] - * and the key generated by [Request_Client::_create_cache_key]. - * - * If not response is supplied, the cache will be checked for an existing - * one that is available. - * - * @param string $key the cache key to use - * @param Request $request the HTTP Request - * @param Response $response the HTTP Response - * @return mixed - */ - public function cache_response($key, Request $request, Response $response = NULL) - { - if ( ! $this->_cache instanceof Cache) - return FALSE; - - // Check for Pragma: no-cache - if ($pragma = $request->headers('pragma')) - { - if ($pragma == 'no-cache') - return FALSE; - elseif (is_array($pragma) AND in_array('no-cache', $pragma)) - return FALSE; - } - - // If there is no response, lookup an existing cached response - if ($response === NULL) - { - $response = $this->_cache->get($key); - - if ( ! $response instanceof Response) - return FALSE; - - // Do cache hit arithmetic, using fast arithmetic if available - if ($this->_cache instanceof Cache_Arithmetic) - { - $hit_count = $this->_cache->increment(HTTP_Cache::CACHE_HIT_KEY.$key); - } - else - { - $hit_count = $this->_cache->get(HTTP_Cache::CACHE_HIT_KEY.$key); - $this->_cache->set(HTTP_Cache::CACHE_HIT_KEY.$key, ++$hit_count); - } - - // Update the header to have correct HIT status and count - $response->headers(HTTP_Cache::CACHE_STATUS_KEY, - HTTP_Cache::CACHE_STATUS_HIT) - ->headers(HTTP_Cache::CACHE_HIT_KEY, $hit_count); - - return $response; - } - else - { - if (($ttl = $this->cache_lifetime($response)) === FALSE) - return FALSE; - - $response->headers(HTTP_Cache::CACHE_STATUS_KEY, - HTTP_Cache::CACHE_STATUS_SAVED); - - // Set the hit count to zero - $this->_cache->set(HTTP_Cache::CACHE_HIT_KEY.$key, 0); - - return $this->_cache->set($key, $response, $ttl); - } - } - - /** - * Calculates the total Time To Live based on the specification - * RFC 2616 cache lifetime rules. - * - * @param Response $response Response to evaluate - * @return mixed TTL value or false if the response should not be cached - */ - public function cache_lifetime(Response $response) - { - // Get out of here if this cannot be cached - if ( ! $this->set_cache($response)) - return FALSE; - - // Calculate apparent age - if ($date = $response->headers('date')) - { - $apparent_age = max(0, $this->_response_time - strtotime($date)); - } - else - { - $apparent_age = max(0, $this->_response_time); - } - - // Calculate corrected received age - if ($age = $response->headers('age')) - { - $corrected_received_age = max($apparent_age, intval($age)); - } - else - { - $corrected_received_age = $apparent_age; - } - - // Corrected initial age - $corrected_initial_age = $corrected_received_age + $this->request_execution_time(); - - // Resident time - $resident_time = time() - $this->_response_time; - - // Current age - $current_age = $corrected_initial_age + $resident_time; - - // Prepare the cache freshness lifetime - $ttl = NULL; - - // Cache control overrides - if ($cache_control = $response->headers('cache-control')) - { - // Parse the cache control header - $cache_control = HTTP_Header::parse_cache_control($cache_control); - - if (isset($cache_control['max-age'])) - { - $ttl = $cache_control['max-age']; - } - - if (isset($cache_control['s-maxage']) AND isset($cache_control['private']) AND $this->_allow_private_cache) - { - $ttl = $cache_control['s-maxage']; - } - - if (isset($cache_control['max-stale']) AND ! isset($cache_control['must-revalidate'])) - { - $ttl = $current_age + $cache_control['max-stale']; - } - } - - // If we have a TTL at this point, return - if ($ttl !== NULL) - return $ttl; - - if ($expires = $response->headers('expires')) - return strtotime($expires) - $current_age; - - return FALSE; - } - - /** - * Returns the duration of the last request execution. - * Either returns the time of completed requests or - * `FALSE` if the request hasn't finished executing, or - * is yet to be run. - * - * @return mixed - */ - public function request_execution_time() - { - if ($this->_request_time === NULL OR $this->_response_time === NULL) - return FALSE; - - return $this->_response_time - $this->_request_time; - } - -} // End Kohana_HTTP_Cache \ No newline at end of file diff --git a/includes/kohana/modules/cache/config/cache.php b/includes/kohana/modules/cache/config/cache.php deleted file mode 100644 index acc567e5..00000000 --- a/includes/kohana/modules/cache/config/cache.php +++ /dev/null @@ -1,70 +0,0 @@ - array( - 'driver' => 'memcache', - 'default_expire' => 3600, - 'compression' => FALSE, // Use Zlib compression (can cause issues with integers) - 'servers' => array( - 'local' => array( - 'host' => 'localhost', // Memcache Server - 'port' => 11211, // Memcache port number - 'persistent' => FALSE, // Persistent connection - 'weight' => 1, - 'timeout' => 1, - 'retry_interval' => 15, - 'status' => TRUE, - ), - ), - 'instant_death' => TRUE, // Take server offline immediately on first fail (no retry) - ), - 'memcachetag' => array( - 'driver' => 'memcachetag', - 'default_expire' => 3600, - 'compression' => FALSE, // Use Zlib compression (can cause issues with integers) - 'servers' => array( - 'local' => array( - 'host' => 'localhost', // Memcache Server - 'port' => 11211, // Memcache port number - 'persistent' => FALSE, // Persistent connection - 'weight' => 1, - 'timeout' => 1, - 'retry_interval' => 15, - 'status' => TRUE, - ), - ), - 'instant_death' => TRUE, - ), - 'apc' => array( - 'driver' => 'apc', - 'default_expire' => 3600, - ), - 'wincache' => array( - 'driver' => 'wincache', - 'default_expire' => 3600, - ), - 'sqlite' => array( - 'driver' => 'sqlite', - 'default_expire' => 3600, - 'database' => APPPATH.'cache/kohana-cache.sql3', - 'schema' => 'CREATE TABLE caches(id VARCHAR(127) PRIMARY KEY, tags VARCHAR(255), expiration INTEGER, cache TEXT)', - ), - 'eaccelerator' => array( - 'driver' => 'eaccelerator', - ), - 'xcache' => array( - 'driver' => 'xcache', - 'default_expire' => 3600, - ), - 'file' => array( - 'driver' => 'file', - 'cache_dir' => APPPATH.'cache', - 'default_expire' => 3600, - 'ignore_on_delete' => array( - '.gitignore', - '.git', - '.svn' - ) - ) -*/ -); diff --git a/includes/kohana/modules/cache/config/userguide.php b/includes/kohana/modules/cache/config/userguide.php deleted file mode 100644 index 07566003..00000000 --- a/includes/kohana/modules/cache/config/userguide.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'cache' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'Cache', - - // A short description of this module, shown on the index page - 'description' => 'Common interface for caching engines.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/modules/cache/guide/cache.usage.md b/includes/kohana/modules/cache/guide/cache.usage.md deleted file mode 100644 index 15d7c52f..00000000 --- a/includes/kohana/modules/cache/guide/cache.usage.md +++ /dev/null @@ -1,219 +0,0 @@ -# Kohana Cache usage - -[Kohana_Cache] provides a simple interface allowing getting, setting and deleting of cached values. Two interfaces included in _Kohana Cache_ additionally provide _tagging_ and _garbage collection_ where they are supported by the respective drivers. - -## Getting a new cache instance - -Creating a new _Kohana Cache_ instance is simple, however it must be done using the [Cache::instance] method, rather than the traditional `new` constructor. - - // Create a new instance of cache using the default group - $cache = Cache::instance(); - -The default group will use whatever is set to [Cache::$default] and must have a corresponding [configuration](cache.config) definition for that group. - -To create a cache instance using a group other than the _default_, simply provide the group name as an argument. - - // Create a new instance of the memcache group - $memcache = Cache::instance('memcache'); - -If there is a cache instance already instantiated then you can get it directly from the class member. - - [!!] Beware that this can cause issues if you do not test for the instance before trying to access it. - - // Check for the existance of the cache driver - if (isset(Cache::$instances['memcache'])) - { - // Get the existing cache instance directly (faster) - $memcache = Cache::$instances['memcache']; - } - else - { - // Get the cache driver instance (slower) - $memcache = Cache::instance('memcache'); - } - -## Setting and getting variables to and from cache - -The cache library supports scalar and object values, utilising object serialization where required (or not supported by the caching engine). This means that the majority or objects can be cached without any modification. - - [!!] Serialisation does not work with resource handles, such as filesystem, curl or socket resources. - -### Setting a value to cache - -Setting a value to cache using the [Cache::set] method can be done in one of two ways; either using the Cache instance interface, which is good for atomic operations; or getting an instance and using that for multiple operations. - -The first example demonstrates how to quickly load and set a value to the default cache instance. - - // Create a cachable object - $object = new stdClass; - - // Set a property - $object->foo = 'bar'; - - // Cache the object using default group (quick interface) with default time (3600 seconds) - Cache::instance()->set('foo', $object); - -If multiple cache operations are required, it is best to assign an instance of Cache to a variable and use that as below. - - // Set the object using a defined group for a defined time period (30 seconds) - $memcache = Cache::instance('memcache'); - $memcache->set('foo', $object, 30); - -#### Setting a value with tags - -Certain cache drivers support setting values with tags. To set a value to cache with tags using the following interface. - - // Get a cache instance that supports tags - $memcache = Cache::instance('memcachetag'); - - // Test for tagging interface - if ($memcache instanceof Cache_Tagging) - { - // Set a value with some tags for 30 seconds - $memcache->set('foo', $object, 30, array('snafu', 'stfu', 'fubar')); - } - // Otherwise set without tags - else - { - // Set a value for 30 seconds - $memcache->set('foo', $object, 30); - } - -It is possible to implement custom tagging solutions onto existing or new cache drivers by implementing the [Cache_Tagging] interface. Kohana_Cache only applies the interface to drivers that support tagging natively as standard. - -### Getting a value from cache - -Getting variables back from cache is achieved using the [Cache::get] method using a single key to identify the cache entry. - - // Retrieve a value from cache (quickly) - $object = Cache::instance()->get('foo'); - -In cases where the requested key is not available or the entry has expired, a default value will be returned (__NULL__ by default). It is possible to define the default value as the key is requested. - - // If the cache key is available (with default value set to FALSE) - if ($object = Cache::instance()->get('foo', FALSE)) - { - // Do something - } - else - { - // Do something else - } - -#### Getting values from cache using tags - -It is possible to retrieve values from cache grouped by tag, using the [Cache::find] method with drivers that support tagging. - - [!!] The __Memcachetag__ driver does not support the `Cache::find($tag)` interface and will throw an exception. - - // Get an instance of cache - $cache = Cache::instance('memcachetag'); - - // Wrap in a try/catch statement to gracefully handle memcachetag - try - { - // Find values based on tag - return $cache->find('snafu'); - } - catch (Cache_Exception $e) - { - // Handle gracefully - return FALSE; - } - -### Deleting values from cache - -Deleting variables is very similar to the getting and setting methods already described. Deleting operations are split into three categories: - - - __Delete value by key__. Deletes a cached value by the associated key. - - __Delete all values__. Deletes all caches values stored in the cache instance. - - __Delete values by tag__. Deletes all values that have the supplied tag. This is only supported by Memcached-Tag and Sqlite. - -#### Delete value by key - -To delete a specific value by its associated key: - - // If the cache entry for 'foo' is deleted - if (Cache::instance()->delete('foo')) - { - // Cache entry successfully deleted, do something - } - -By default a `TRUE` value will be returned. However a `FALSE` value will be returned in instances where the key did not exist in the cache. - -#### Delete all values - -To delete all values in a specific instance: - - // If all cache items where deleted successfully - if (Cache::instance()->delete_all()) - { - // Do something - } - -It is also possible to delete all cache items in every instance: - - // For each cache instance - foreach (Cache::$instances as $group => $instance) - { - if ($instance->delete_all()) - { - var_dump('instance : '.$group.' has been flushed!'); - } - } - -#### Delete values by tag - -Some of the caching drivers support deleting by tag. This will remove all the cached values that are associated with a specific tag. Below is an example of how to robustly handle deletion by tag. - - // Get cache instance - $cache = Cache::instance(); - - // Check for tagging interface - if ($cache instanceof Cache_Tagging) - { - // Delete all entries by the tag 'snafu' - $cache->delete_tag('snafu'); - } - -#### Garbage Collection - -Garbage Collection (GC) is the cleaning of expired cache entries. For the most part, caching engines will take care of garbage collection internally. However a few of the file based systems do not handle this task and in these circumstances it would be prudent to garbage collect at a predetermined frequency. If no garbage collection is executed, the resource storing the cache entries will eventually fill and become unusable. - -When not automated, garbage collection is the responsibility of the developer. It is prudent to have a GC probability value that dictates how likely the garbage collection routing will be run. An example of such a system is demonstrated below. - - // Get a cache instance - $cache_file = Cache::instance('file'); - - // Set a GC probability of 10% - $gc = 10; - - // If the GC probability is a hit - if (rand(0,99) <= $gc and $cache_file instanceof Cache_GarbageCollect) - { - // Garbage Collect - $cache_file->garbage_collect(); - } - -# Interfaces - -Kohana Cache comes with two interfaces that are implemented where the drivers support them: - - - __[Cache_Tagging] for tagging support on cache entries__ - - [Cache_MemcacheTag] - - [Cache_Sqlite] - - __[Cache_GarbageCollect] for garbage collection with drivers without native support__ - - [Cache_File] - - [Cache_Sqlite] - -When using interface specific caching features, ensure that code checks for the required interface before using the methods supplied. The following example checks whether the garbage collection interface is available before calling the `garbage_collect` method. - - // Create a cache instance - $cache = Cache::instance(); - - // Test for Garbage Collection - if ($cache instanceof Cache_GarbageCollect) - { - // Collect garbage - $cache->garbage_collect(); - } \ No newline at end of file diff --git a/includes/kohana/modules/cache/guide/cache/config.md b/includes/kohana/modules/cache/guide/cache/config.md deleted file mode 100644 index 450bea8b..00000000 --- a/includes/kohana/modules/cache/guide/cache/config.md +++ /dev/null @@ -1,162 +0,0 @@ -# Kohana Cache configuration - -Kohana Cache uses configuration groups to create cache instances. A configuration group can -use any supported driver, with successive groups using multiple instances of the same driver type. - -The default cache group is loaded based on the `Cache::$default` setting. It is set to the `file` driver as standard, however this can be changed within the `/application/boostrap.php` file. - - // Change the default cache driver to memcache - Cache::$default = 'memcache'; - - // Load the memcache cache driver using default setting - $memcache = Cache::instance(); - -## Group settings - -Below are the default cache configuration groups for each supported driver. Add to- or override these settings -within the `application/config/cache.php` file. - -Name | Required | Description --------------- | -------- | --------------------------------------------------------------- -driver | __YES__ | (_string_) The driver type to use -default_expire | __NO__ | (_string_) The driver type to use - - - 'file' => array - ( - 'driver' => 'file', - 'cache_dir' => APPPATH.'cache/.kohana_cache', - 'default_expire' => 3600, - ), - -## Memcache & Memcached-tag settings - -Name | Required | Description --------------- | -------- | --------------------------------------------------------------- -driver | __YES__ | (_string_) The driver type to use -servers | __YES__ | (_array_) Associative array of server details, must include a __host__ key. (see _Memcache server configuration_ below) -compression | __NO__ | (_boolean_) Use data compression when caching - -### Memcache server configuration - -Name | Required | Description ----------------- | -------- | --------------------------------------------------------------- -host | __YES__ | (_string_) The host of the memcache server, i.e. __localhost__; or __127.0.0.1__; or __memcache.domain.tld__ -port | __NO__ | (_integer_) Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets. Default __11211__ -persistent | __NO__ | (_boolean_) Controls the use of a persistent connection. Default __TRUE__ -weight | __NO__ | (_integer_) Number of buckets to create for this server which in turn control its probability of it being selected. The probability is relative to the total weight of all servers. Default __1__ -timeout | __NO__ | (_integer_) Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. Default __1__ -retry_interval | __NO__ | (_integer_) Controls how often a failed server will be retried, the default value is 15 seconds. Setting this parameter to -1 disables automatic retry. Default __15__ -status | __NO__ | (_boolean_) Controls if the server should be flagged as online. Default __TRUE__ -failure_callback | __NO__ | (_[callback](http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback)_) Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted. The function takes two parameters, the hostname and port of the failed server. Default __NULL__ - - 'memcache' => array - ( - 'driver' => 'memcache', - 'default_expire' => 3600, - 'compression' => FALSE, // Use Zlib compression - (can cause issues with integers) - 'servers' => array - ( - 'local' => array - ( - 'host' => 'localhost', // Memcache Server - 'port' => 11211, // Memcache port number - 'persistent' => FALSE, // Persistent connection - ), - ), - ), - 'memcachetag' => array - ( - 'driver' => 'memcachetag', - 'default_expire' => 3600, - 'compression' => FALSE, // Use Zlib compression - (can cause issues with integers) - 'servers' => array - ( - 'local' => array - ( - 'host' => 'localhost', // Memcache Server - 'port' => 11211, // Memcache port number - 'persistent' => FALSE, // Persistent connection - ), - ), - ), - -## APC settings - - 'apc' => array - ( - 'driver' => 'apc', - 'default_expire' => 3600, - ), - -## SQLite settings - - 'sqlite' => array - ( - 'driver' => 'sqlite', - 'default_expire' => 3600, - 'database' => APPPATH.'cache/kohana-cache.sql3', - 'schema' => 'CREATE TABLE caches(id VARCHAR(127) PRIMARY KEY, - tags VARCHAR(255), expiration INTEGER, cache TEXT)', - ), - -## File settings - - 'file' => array - ( - 'driver' => 'file', - 'cache_dir' => 'cache/.kohana_cache', - 'default_expire' => 3600, - ) - -## Wincache settings - - 'wincache' => array - ( - 'driver' => 'wincache', - 'default_expire' => 3600, - ), - - -## Override existing configuration group - -The following example demonstrates how to override an existing configuration setting, using the config file in `/application/config/cache.php`. - - array - ( - 'driver' => 'memcache', // Use Memcached as the default driver - 'default_expire' => 8000, // Overide default expiry - 'servers' => array - ( - // Add a new server - array - ( - 'host' => 'cache.domain.tld', - 'port' => 11211, - 'persistent' => FALSE - ) - ), - 'compression' => FALSE - ) - ); - -## Add new configuration group - -The following example demonstrates how to add a new configuration setting, using the config file in `/application/config/cache.php`. - - array - ( - 'driver' => 'apc', // Use Memcached as the default driver - 'default_expire' => 1000, // Overide default expiry - ) - ); diff --git a/includes/kohana/modules/cache/guide/cache/examples.md b/includes/kohana/modules/cache/guide/cache/examples.md deleted file mode 100644 index e69de29b..00000000 diff --git a/includes/kohana/modules/cache/guide/cache/index.md b/includes/kohana/modules/cache/guide/cache/index.md deleted file mode 100644 index 0df10c9b..00000000 --- a/includes/kohana/modules/cache/guide/cache/index.md +++ /dev/null @@ -1,57 +0,0 @@ -# About Kohana Cache - -[Kohana_Cache] provides a common interface to a variety of caching engines. [Cache_Tagging] is -supported where available natively to the cache system. Kohana Cache supports multiple -instances of cache engines through a grouped singleton pattern. - -## Supported cache engines - - * APC ([Cache_Apc]) - * File ([Cache_File]) - * Memcached ([Cache_Memcache]) - * Memcached-tags ([Cache_Memcachetag]) - * SQLite ([Cache_Sqlite]) - * Wincache - -## Introduction to caching - -Caching should be implemented with consideration. Generally, caching the result of resources -is faster than reprocessing them. Choosing what, how and when to cache is vital. [PHP APC](http://php.net/manual/en/book.apc.php) is one of the fastest caching systems available, closely followed by [Memcached](http://memcached.org/). [SQLite](http://www.sqlite.org/) and File caching are two of the slowest cache methods, however usually faster than reprocessing -a complex set of instructions. - -Caching engines that use memory are considerably faster than file based alternatives. But -memory is limited whereas disk space is plentiful. If caching large datasets, such as large database result sets, it is best to use file caching. - - [!!] Cache drivers require the relevant PHP extensions to be installed. APC, eAccelerator, Memecached and Xcache all require non-standard PHP extensions. - -## What the Kohana Cache module does (and does not do) - -This module provides a simple abstracted interface to a wide selection of popular PHP cache engines. The caching API provides the basic caching methods implemented across all solutions, memory, network or disk based. Basic key / value storing is supported by all drivers, with additional tagging and garbage collection support where implemented or required. - -_Kohana Cache_ does not provide HTTP style caching for clients (web browsers) and/or proxies (_Varnish_, _Squid_). There are other Kohana modules that provide this functionality. - -## Choosing a cache provider - -Getting and setting values to cache is very simple when using the _Kohana Cache_ interface. The hardest choice is choosing which cache engine to use. When choosing a caching engine, the following criteria must be considered: - - 1. __Does the cache need to be distributed?__ - This is an important consideration as it will severely limit the options available to solutions such as Memcache when a distributed solution is required. - 2. __Does the cache need to be fast?__ - In almost all cases retrieving data from a cache is faster than execution. However generally memory based caching is considerably faster than disk based caching (see table below). - 3. __How much cache is required?__ - Cache is not endless, and memory based caches are subject to a considerably more limited storage resource. - -Driver | Storage | Speed | Tags | Distributed | Automatic Garbage Collection | Notes ----------------- | ------------ | --------- | -------- | ----------- | ---------------------------- | ----------------------- -APC | __Memory__ | Excellent | No | No | Yes | Widely available PHP opcode caching solution, improves php execution performance -Wincache | __Memory__ | Excellent | No | No | Yes | Windows variant of APC -File | __Disk__ | Poor | No | No | No | Marginally faster than execution -Memcache (tag) | __Memory__ | Good | No (yes) | Yes | Yes | Generally fast distributed solution, but has a speed hit due to variable network latency and serialization -Sqlite | __Disk__ | Poor | Yes | No | No | Marginally faster than execution - -It is possible to have hybrid cache solutions that use a combination of the engines above in different contexts. This is supported with _Kohana Cache_ as well - -## Minimum requirements - - * Kohana 3.0.4 - * PHP 5.2.4 or greater \ No newline at end of file diff --git a/includes/kohana/modules/cache/guide/cache/menu.md b/includes/kohana/modules/cache/guide/cache/menu.md deleted file mode 100644 index 5218558f..00000000 --- a/includes/kohana/modules/cache/guide/cache/menu.md +++ /dev/null @@ -1,3 +0,0 @@ -## [Cache]() -- [Configuration](config) -- [Usage](usage) \ No newline at end of file diff --git a/includes/kohana/modules/cache/guide/cache/usage.md b/includes/kohana/modules/cache/guide/cache/usage.md deleted file mode 100644 index 15d7c52f..00000000 --- a/includes/kohana/modules/cache/guide/cache/usage.md +++ /dev/null @@ -1,219 +0,0 @@ -# Kohana Cache usage - -[Kohana_Cache] provides a simple interface allowing getting, setting and deleting of cached values. Two interfaces included in _Kohana Cache_ additionally provide _tagging_ and _garbage collection_ where they are supported by the respective drivers. - -## Getting a new cache instance - -Creating a new _Kohana Cache_ instance is simple, however it must be done using the [Cache::instance] method, rather than the traditional `new` constructor. - - // Create a new instance of cache using the default group - $cache = Cache::instance(); - -The default group will use whatever is set to [Cache::$default] and must have a corresponding [configuration](cache.config) definition for that group. - -To create a cache instance using a group other than the _default_, simply provide the group name as an argument. - - // Create a new instance of the memcache group - $memcache = Cache::instance('memcache'); - -If there is a cache instance already instantiated then you can get it directly from the class member. - - [!!] Beware that this can cause issues if you do not test for the instance before trying to access it. - - // Check for the existance of the cache driver - if (isset(Cache::$instances['memcache'])) - { - // Get the existing cache instance directly (faster) - $memcache = Cache::$instances['memcache']; - } - else - { - // Get the cache driver instance (slower) - $memcache = Cache::instance('memcache'); - } - -## Setting and getting variables to and from cache - -The cache library supports scalar and object values, utilising object serialization where required (or not supported by the caching engine). This means that the majority or objects can be cached without any modification. - - [!!] Serialisation does not work with resource handles, such as filesystem, curl or socket resources. - -### Setting a value to cache - -Setting a value to cache using the [Cache::set] method can be done in one of two ways; either using the Cache instance interface, which is good for atomic operations; or getting an instance and using that for multiple operations. - -The first example demonstrates how to quickly load and set a value to the default cache instance. - - // Create a cachable object - $object = new stdClass; - - // Set a property - $object->foo = 'bar'; - - // Cache the object using default group (quick interface) with default time (3600 seconds) - Cache::instance()->set('foo', $object); - -If multiple cache operations are required, it is best to assign an instance of Cache to a variable and use that as below. - - // Set the object using a defined group for a defined time period (30 seconds) - $memcache = Cache::instance('memcache'); - $memcache->set('foo', $object, 30); - -#### Setting a value with tags - -Certain cache drivers support setting values with tags. To set a value to cache with tags using the following interface. - - // Get a cache instance that supports tags - $memcache = Cache::instance('memcachetag'); - - // Test for tagging interface - if ($memcache instanceof Cache_Tagging) - { - // Set a value with some tags for 30 seconds - $memcache->set('foo', $object, 30, array('snafu', 'stfu', 'fubar')); - } - // Otherwise set without tags - else - { - // Set a value for 30 seconds - $memcache->set('foo', $object, 30); - } - -It is possible to implement custom tagging solutions onto existing or new cache drivers by implementing the [Cache_Tagging] interface. Kohana_Cache only applies the interface to drivers that support tagging natively as standard. - -### Getting a value from cache - -Getting variables back from cache is achieved using the [Cache::get] method using a single key to identify the cache entry. - - // Retrieve a value from cache (quickly) - $object = Cache::instance()->get('foo'); - -In cases where the requested key is not available or the entry has expired, a default value will be returned (__NULL__ by default). It is possible to define the default value as the key is requested. - - // If the cache key is available (with default value set to FALSE) - if ($object = Cache::instance()->get('foo', FALSE)) - { - // Do something - } - else - { - // Do something else - } - -#### Getting values from cache using tags - -It is possible to retrieve values from cache grouped by tag, using the [Cache::find] method with drivers that support tagging. - - [!!] The __Memcachetag__ driver does not support the `Cache::find($tag)` interface and will throw an exception. - - // Get an instance of cache - $cache = Cache::instance('memcachetag'); - - // Wrap in a try/catch statement to gracefully handle memcachetag - try - { - // Find values based on tag - return $cache->find('snafu'); - } - catch (Cache_Exception $e) - { - // Handle gracefully - return FALSE; - } - -### Deleting values from cache - -Deleting variables is very similar to the getting and setting methods already described. Deleting operations are split into three categories: - - - __Delete value by key__. Deletes a cached value by the associated key. - - __Delete all values__. Deletes all caches values stored in the cache instance. - - __Delete values by tag__. Deletes all values that have the supplied tag. This is only supported by Memcached-Tag and Sqlite. - -#### Delete value by key - -To delete a specific value by its associated key: - - // If the cache entry for 'foo' is deleted - if (Cache::instance()->delete('foo')) - { - // Cache entry successfully deleted, do something - } - -By default a `TRUE` value will be returned. However a `FALSE` value will be returned in instances where the key did not exist in the cache. - -#### Delete all values - -To delete all values in a specific instance: - - // If all cache items where deleted successfully - if (Cache::instance()->delete_all()) - { - // Do something - } - -It is also possible to delete all cache items in every instance: - - // For each cache instance - foreach (Cache::$instances as $group => $instance) - { - if ($instance->delete_all()) - { - var_dump('instance : '.$group.' has been flushed!'); - } - } - -#### Delete values by tag - -Some of the caching drivers support deleting by tag. This will remove all the cached values that are associated with a specific tag. Below is an example of how to robustly handle deletion by tag. - - // Get cache instance - $cache = Cache::instance(); - - // Check for tagging interface - if ($cache instanceof Cache_Tagging) - { - // Delete all entries by the tag 'snafu' - $cache->delete_tag('snafu'); - } - -#### Garbage Collection - -Garbage Collection (GC) is the cleaning of expired cache entries. For the most part, caching engines will take care of garbage collection internally. However a few of the file based systems do not handle this task and in these circumstances it would be prudent to garbage collect at a predetermined frequency. If no garbage collection is executed, the resource storing the cache entries will eventually fill and become unusable. - -When not automated, garbage collection is the responsibility of the developer. It is prudent to have a GC probability value that dictates how likely the garbage collection routing will be run. An example of such a system is demonstrated below. - - // Get a cache instance - $cache_file = Cache::instance('file'); - - // Set a GC probability of 10% - $gc = 10; - - // If the GC probability is a hit - if (rand(0,99) <= $gc and $cache_file instanceof Cache_GarbageCollect) - { - // Garbage Collect - $cache_file->garbage_collect(); - } - -# Interfaces - -Kohana Cache comes with two interfaces that are implemented where the drivers support them: - - - __[Cache_Tagging] for tagging support on cache entries__ - - [Cache_MemcacheTag] - - [Cache_Sqlite] - - __[Cache_GarbageCollect] for garbage collection with drivers without native support__ - - [Cache_File] - - [Cache_Sqlite] - -When using interface specific caching features, ensure that code checks for the required interface before using the methods supplied. The following example checks whether the garbage collection interface is available before calling the `garbage_collect` method. - - // Create a cache instance - $cache = Cache::instance(); - - // Test for Garbage Collection - if ($cache instanceof Cache_GarbageCollect) - { - // Collect garbage - $cache->garbage_collect(); - } \ No newline at end of file diff --git a/includes/kohana/modules/cache/tests/cache/CacheBasicMethodsTest.php b/includes/kohana/modules/cache/tests/cache/CacheBasicMethodsTest.php deleted file mode 100644 index 5fdae60e..00000000 --- a/includes/kohana/modules/cache/tests/cache/CacheBasicMethodsTest.php +++ /dev/null @@ -1,299 +0,0 @@ -_cache_driver; - - $this->_cache_driver = $cache; - return $this; - } - - /** - * Data provider for test_set_get() - * - * @return array - */ - public function provider_set_get() - { - $object = new StdClass; - $object->foo = 'foo'; - $object->bar = 'bar'; - - $html_text = << - - - - - - -TESTTEXT; - - return array( - array( - array( - 'id' => 'string', // Key to set to cache - 'value' => 'foobar', // Value to set to key - 'ttl' => 0, // Time to live - 'wait' => FALSE, // Test wait time to let cache expire - 'type' => 'string', // Type test - 'default' => NULL // Default value get should return - ), - 'foobar' - ), - array( - array( - 'id' => 'integer', - 'value' => 101010, - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'integer', - 'default' => NULL - ), - 101010 - ), - array( - array( - 'id' => 'float', - 'value' => 10.00, - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'float', - 'default' => NULL - ), - 10.00 - ), - array( - array( - 'id' => 'array', - 'value' => array( - 'key' => 'foo', - 'value' => 'bar' - ), - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'array', - 'default' => NULL - ), - array( - 'key' => 'foo', - 'value' => 'bar' - ) - ), - array( - array( - 'id' => 'boolean', - 'value' => TRUE, - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'boolean', - 'default' => NULL - ), - TRUE - ), - array( - array( - 'id' => 'null', - 'value' => NULL, - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'null', - 'default' => NULL - ), - NULL - ), - array( - array( - 'id' => 'object', - 'value' => $object, - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'object', - 'default' => NULL - ), - $object - ), - array( - array( - 'id' => 'bar\\ with / troublesome key', - 'value' => 'foo bar snafu', - 'ttl' => 0, - 'wait' => FALSE, - 'type' => 'string', - 'default' => NULL - ), - 'foo bar snafu' - ), - array( - array( - 'id' => 'bar', - 'value' => 'foo', - 'ttl' => 3, - 'wait' => 5, - 'type' => 'null', - 'default' => NULL - ), - NULL - ), - array( - array( - 'id' => 'snafu', - 'value' => 'fubar', - 'ttl' => 3, - 'wait' => 5, - 'type' => 'string', - 'default' => 'something completely different!' - ), - 'something completely different!' - ), - array( - array( - 'id' => 'new line test with HTML', - 'value' => $html_text, - 'ttl' => 10, - 'wait' => FALSE, - 'type' => 'string', - 'default' => NULL, - ), - $html_text - ) - ); - } - - /** - * Tests the [Cache::set()] method, testing; - * - * - The value is cached - * - The lifetime is respected - * - The returned value type is as expected - * - The default not-found value is respected - * - * @dataProvider provider_set_get - * - * @param array data - * @param mixed expected - * @return void - */ - public function test_set_get(array $data, $expected) - { - $cache = $this->cache(); - extract($data); - - $this->assertTrue($cache->set($id, $value, $ttl)); - - if ($wait !== FALSE) - { - // Lets let the cache expire - sleep($wait); - } - - $result = $cache->get($id, $default); - $this->assertEquals($expected, $result); - $this->assertInternalType($type, $result); - - unset($id, $value, $ttl, $wait, $type, $default); - } - - /** - * Tests the [Cache::delete()] method, testing; - * - * - The a cached value is deleted from cache - * - The cache returns a TRUE value upon deletion - * - The cache returns a FALSE value if no value exists to delete - * - * @return void - */ - public function test_delete() - { - // Init - $cache = $this->cache(); - $cache->delete_all(); - - // Test deletion if real cached value - if ( ! $cache->set('test_delete_1', 'This should not be here!', 0)) - { - $this->fail('Unable to set cache value to delete!'); - } - - // Test delete returns TRUE and check the value is gone - $this->assertTrue($cache->delete('test_delete_1')); - $this->assertNull($cache->get('test_delete_1')); - - // Test non-existant cache value returns FALSE if no error - $this->assertFalse($cache->delete('test_delete_1')); - } - - /** - * Tests [Cache::delete_all()] works as specified - * - * @return void - * @uses Kohana_CacheBasicMethodsTest::provider_set_get() - */ - public function test_delete_all() - { - // Init - $cache = $this->cache(); - $data = $this->provider_set_get(); - - foreach ($data as $key => $values) - { - extract($values[0]); - if ( ! $cache->set($id, $value)) - { - $this->fail('Unable to set: '.$key.' => '.$value.' to cache'); - } - unset($id, $value, $ttl, $wait, $type, $default); - } - - // Test delete_all is successful - $this->assertTrue($cache->delete_all()); - - foreach ($data as $key => $values) - { - // Verify data has been purged - $this->assertSame('Cache Deleted!', $cache->get($values[0]['id'], - 'Cache Deleted!')); - } - } - -} // End Kohana_CacheBasicMethodsTest diff --git a/includes/kohana/modules/cache/tests/cache/CacheTest.php b/includes/kohana/modules/cache/tests/cache/CacheTest.php deleted file mode 100644 index a5c7564a..00000000 --- a/includes/kohana/modules/cache/tests/cache/CacheTest.php +++ /dev/null @@ -1,242 +0,0 @@ -load('cache.file')) - { - $base = array( - // Test default group - array( - NULL, - Cache::instance('file') - ), - // Test defined group - array( - 'file', - Cache::instance('file') - ), - ); - } - - - return array( - // Test bad group definition - $base+array( - Kohana_CacheTest::BAD_GROUP_DEFINITION, - 'Failed to load Kohana Cache group: 1010' - ), - ); - } - - /** - * Tests the [Cache::factory()] method behaves as expected - * - * @dataProvider provider_instance - * - * @return void - */ - public function test_instance($group, $expected) - { - if (in_array($group, array( - Kohana_CacheTest::BAD_GROUP_DEFINITION, - ) - )) - { - $this->setExpectedException('Cache_Exception'); - } - - try - { - $cache = Cache::instance($group); - } - catch (Cache_Exception $e) - { - $this->assertSame($expected, $e->getMessage()); - throw $e; - } - - $this->assertInstanceOf(get_class($expected), $cache); - $this->assertSame($expected->config(), $cache->config()); - } - - /** - * Tests that `clone($cache)` will be prevented to maintain singleton - * - * @return void - * @expectedException Cache_Exception - */ - public function test_cloning_fails() - { - if ( ! Kohana::$config->load('cache.file')) - { - $this->markTestSkipped('Unable to load File configuration'); - } - - try - { - $cache_clone = clone(Cache::instance('file')); - } - catch (Cache_Exception $e) - { - $this->assertSame('Cloning of Kohana_Cache objects is forbidden', - $e->getMessage()); - throw $e; - } - } - - /** - * Data provider for test_config - * - * @return array - */ - public function provider_config() - { - return array( - array( - array( - 'server' => 'otherhost', - 'port' => 5555, - 'persistent' => TRUE, - ), - NULL, - Kohana_CacheTest::EXPECT_SELF, - array( - 'server' => 'otherhost', - 'port' => 5555, - 'persistent' => TRUE, - ), - ), - array( - 'foo', - 'bar', - Kohana_CacheTest::EXPECT_SELF, - array( - 'foo' => 'bar' - ) - ), - array( - 'server', - NULL, - NULL, - array() - ), - array( - NULL, - NULL, - array(), - array() - ) - ); - } - - /** - * Tests the config method behaviour - * - * @dataProvider provider_config - * - * @param mixed key value to set or get - * @param mixed value to set to key - * @param mixed expected result from [Cache::config()] - * @param array expected config within cache - * @return void - */ - public function test_config($key, $value, $expected_result, array $expected_config) - { - $cache = $this->getMock('Cache_File', NULL, array(), '', FALSE); - - if ($expected_result === Kohana_CacheTest::EXPECT_SELF) - { - $expected_result = $cache; - } - - $this->assertSame($expected_result, $cache->config($key, $value)); - $this->assertSame($expected_config, $cache->config()); - } - - /** - * Data provider for test_sanitize_id - * - * @return array - */ - public function provider_sanitize_id() - { - return array( - array( - 'foo', - 'foo' - ), - array( - 'foo+-!@', - 'foo+-!@' - ), - array( - 'foo/bar', - 'foo_bar', - ), - array( - 'foo\\bar', - 'foo_bar' - ), - array( - 'foo bar', - 'foo_bar' - ), - array( - 'foo\\bar snafu/stfu', - 'foo_bar_snafu_stfu' - ) - ); - } - - /** - * Tests the [Cache::_sanitize_id()] method works as expected. - * This uses some nasty reflection techniques to access a protected - * method. - * - * @dataProvider provider_sanitize_id - * - * @param string id - * @param string expected - * @return void - */ - public function test_sanitize_id($id, $expected) - { - $cache = $this->getMock('Cache', array( - 'get', - 'set', - 'delete', - 'delete_all' - ), array(array()), - '', FALSE - ); - - $cache_reflection = new ReflectionClass($cache); - $sanitize_id = $cache_reflection->getMethod('_sanitize_id'); - $sanitize_id->setAccessible(TRUE); - - $this->assertSame($expected, $sanitize_id->invoke($cache, $id)); - } -} // End Kohana_CacheTest diff --git a/includes/kohana/modules/cache/tests/cache/FileTest.php b/includes/kohana/modules/cache/tests/cache/FileTest.php deleted file mode 100644 index 803258f2..00000000 --- a/includes/kohana/modules/cache/tests/cache/FileTest.php +++ /dev/null @@ -1,98 +0,0 @@ -load('cache.file')) - { - $this->markTestSkipped('Unable to load File configuration'); - } - - $this->cache(Cache::instance('file')); - } - - /** - * Tests that ignored files are not removed from file cache - * - * @return void - */ - public function test_ignore_delete_file() - { - $cache = $this->cache(); - $config = Kohana::$config->load('cache')->file; - $file = $config['cache_dir'].'/.gitignore'; - - // Lets pollute the cache folder - file_put_contents($file, 'foobar'); - - $this->assertTrue($cache->delete_all()); - $this->assertTrue(file_exists($file)); - $this->assertEquals('foobar', file_get_contents($file)); - - unlink($file); - } - - /** - * Provider for test_utf8 - * - * @return array - */ - public function provider_utf8() - { - return array( - array( - 'This is â ütf-8 Ӝ☃ string', - 'This is â ütf-8 Ӝ☃ string' - ), - array( - '㆓㆕㆙㆛', - '㆓㆕㆙㆛' - ), - array( - 'அஆஇஈஊ', - 'அஆஇஈஊ' - ) - ); - } - - /** - * Tests the file driver supports utf-8 strings - * - * @dataProvider provider_utf8 - * - * @return void - */ - public function test_utf8($input, $expected) - { - $cache = $this->cache(); - $cache->set('utf8', $input); - - $this->assertSame($expected, $cache->get('utf8')); - } - -} // End Kohana_SqliteTest diff --git a/includes/kohana/modules/cache/tests/cache/SqliteTest.php b/includes/kohana/modules/cache/tests/cache/SqliteTest.php deleted file mode 100644 index 4a9c2ea6..00000000 --- a/includes/kohana/modules/cache/tests/cache/SqliteTest.php +++ /dev/null @@ -1,44 +0,0 @@ -markTestSkipped('SQLite PDO PHP Extension is not available'); - } - - if ( ! Kohana::$config->load('cache.sqlite')) - { - $this->markTestIncomplete('Unable to load sqlite configuration'); - } - - $this->cache(Cache::instance('sqlite')); - } - -} // End Kohana_SqliteTest diff --git a/includes/kohana/modules/cache/tests/cache/WincacheTest.php b/includes/kohana/modules/cache/tests/cache/WincacheTest.php deleted file mode 100644 index 70e6f791..00000000 --- a/includes/kohana/modules/cache/tests/cache/WincacheTest.php +++ /dev/null @@ -1,39 +0,0 @@ -markTestSkipped('Wincache PHP Extension is not available'); - } - - $this->cache(Cache::instance('wincache')); - } - -} // End Kohana_WincacheTest diff --git a/includes/kohana/modules/cache/tests/cache/arithmetic/ApcTest.php b/includes/kohana/modules/cache/tests/cache/arithmetic/ApcTest.php deleted file mode 100644 index e1597cdc..00000000 --- a/includes/kohana/modules/cache/tests/cache/arithmetic/ApcTest.php +++ /dev/null @@ -1,75 +0,0 @@ -markTestSkipped('APC PHP Extension is not available'); - } - - if (ini_get('apc.enable_cli') != '1') - { - $this->markTestSkipped('Unable to test APC in CLI mode. To fix '. - 'place "apc.enable_cli=1" in your php.ini file'); - } - - $this->cache(Cache::instance('apc')); - } - - /** - * Tests the [Cache::set()] method, testing; - * - * - The value is cached - * - The lifetime is respected - * - The returned value type is as expected - * - The default not-found value is respected - * - * This test doesn't test the TTL as there is a known bug/feature - * in APC that prevents the same request from killing cache on timeout. - * - * @link http://pecl.php.net/bugs/bug.php?id=16814 - * - * @dataProvider provider_set_get - * - * @param array data - * @param mixed expected - * @return void - */ - public function test_set_get(array $data, $expected) - { - if ($data['wait'] !== FALSE) - { - $this->markTestSkipped('Unable to perform TTL test in CLI, see: '. - 'http://pecl.php.net/bugs/bug.php?id=16814 for more info!'); - } - - parent::test_set_get($data, $expected); - } - -} // End Kohana_ApcTest diff --git a/includes/kohana/modules/cache/tests/cache/arithmetic/CacheArithmeticMethods.php b/includes/kohana/modules/cache/tests/cache/arithmetic/CacheArithmeticMethods.php deleted file mode 100644 index 1dcc7c7b..00000000 --- a/includes/kohana/modules/cache/tests/cache/arithmetic/CacheArithmeticMethods.php +++ /dev/null @@ -1,173 +0,0 @@ -cache(); - - if ($cache instanceof Cache) - { - $cache->delete_all(); - } - } - - /** - * Provider for test_increment - * - * @return array - */ - public function provider_increment() - { - return array( - array( - 0, - array( - 'id' => 'increment_test_1', - 'step' => 1 - ), - 1 - ), - array( - 1, - array( - 'id' => 'increment_test_2', - 'step' => 1 - ), - 2 - ), - array( - 5, - array( - 'id' => 'increment_test_3', - 'step' => 5 - ), - 10 - ), - array( - NULL, - array( - 'id' => 'increment_test_4', - 'step' => 1 - ), - FALSE - ), - ); - } - - /** - * Test for [Cache_Arithmetic::increment()] - * - * @dataProvider provider_increment - * - * @param integer start state - * @param array increment arguments - * @return void - */ - public function test_increment( - $start_state = NULL, - array $inc_args, - $expected) - { - $cache = $this->cache(); - - if ($start_state !== NULL) - { - $cache->set($inc_args['id'], $start_state, 0); - } - - $this->assertSame( - $expected, - $cache->increment( - $inc_args['id'], - $inc_args['step'] - ) - ); - } - - /** - * Provider for test_decrement - * - * @return array - */ - public function provider_decrement() - { - return array( - array( - 10, - array( - 'id' => 'decrement_test_1', - 'step' => 1 - ), - 9 - ), - array( - 10, - array( - 'id' => 'decrement_test_2', - 'step' => 2 - ), - 8 - ), - array( - 50, - array( - 'id' => 'decrement_test_3', - 'step' => 5 - ), - 45 - ), - array( - NULL, - array( - 'id' => 'decrement_test_4', - 'step' => 1 - ), - FALSE - ), - ); } - - /** - * Test for [Cache_Arithmetic::decrement()] - * - * @dataProvider provider_decrement - * - * @param integer start state - * @param array decrement arguments - * @return void - */ - public function test_decrement( - $start_state = NULL, - array $dec_args, - $expected) - { - $cache = $this->cache(); - - if ($start_state !== NULL) - { - $cache->set($dec_args['id'], $start_state, 0); - } - - $this->assertSame( - $expected, - $cache->decrement( - $dec_args['id'], - $dec_args['step'] - ) - ); - } - -} // End Kohana_CacheArithmeticMethodsTest diff --git a/includes/kohana/modules/cache/tests/cache/arithmetic/MemcacheTest.php b/includes/kohana/modules/cache/tests/cache/arithmetic/MemcacheTest.php deleted file mode 100644 index 07cb9ef7..00000000 --- a/includes/kohana/modules/cache/tests/cache/arithmetic/MemcacheTest.php +++ /dev/null @@ -1,103 +0,0 @@ -markTestSkipped('Memcache PHP Extension is not available'); - } - if ( ! $config = Kohana::$config->load('cache.memcache')) - { - $this->markTestSkipped('Unable to load Memcache configuration'); - } - - $memcache = new Memcache; - if ( ! $memcache->connect($config['servers']['local']['host'], - $config['servers']['local']['port'])) - { - $this->markTestSkipped('Unable to connect to memcache server @ '. - $config['servers']['local']['host'].':'. - $config['servers']['local']['port']); - } - - if ($memcache->getVersion() === FALSE) - { - $this->markTestSkipped('Memcache server @ '. - $config['servers']['local']['host'].':'. - $config['servers']['local']['port']. - ' not responding!'); - } - - unset($memcache); - - $this->cache(Cache::instance('memcache')); - } - - /** - * Tests that multiple values set with Memcache do not cause unexpected - * results. For accurate results, this should be run with a memcache - * configuration that includes multiple servers. - * - * This is to test #4110 - * - * @link http://dev.kohanaframework.org/issues/4110 - * @return void - */ - public function test_multiple_set() - { - $cache = $this->cache(); - $id_set = 'set_id'; - $ttl = 300; - - $data = array( - 'foobar', - 0, - 1.0, - new stdClass, - array('foo', 'bar' => 1), - TRUE, - NULL, - FALSE - ); - - $previous_set = $cache->get($id_set, NULL); - - foreach ($data as $value) - { - // Use Equals over Sames as Objects will not be equal - $this->assertEquals($previous_set, $cache->get($id_set, NULL)); - $cache->set($id_set, $value, $ttl); - - $previous_set = $value; - } - } - - -} // End Kohana_CacheArithmeticMemcacheTest diff --git a/includes/kohana/modules/cache/tests/cache/request/client/CacheTest.php b/includes/kohana/modules/cache/tests/cache/request/client/CacheTest.php deleted file mode 100644 index 11f9a3ec..00000000 --- a/includes/kohana/modules/cache/tests/cache/request/client/CacheTest.php +++ /dev/null @@ -1,265 +0,0 @@ -defaults(array( - 'controller' => 'welcome', - 'action' => 'index' - )); - - parent::setUp(); - } - - /** - * Tests the Client does not attempt to load cache if no Cache library - * is present - * - * @return void - */ - public function test_cache_not_called_with_no_cache() - { - $request = new Request('welcome/index'); - $response = new Response; - - $client_mock = $this->getMock('Request_Client_Internal'); - - $request->client($client_mock); - $client_mock->expects($this->exactly(0)) - ->method('execute_request'); - $client_mock->expects($this->once()) - ->method('execute') - ->will($this->returnValue($response)); - - $this->assertSame($response, $request->execute()); - } - - /** - * Tests that the client attempts to load a cached response from the - * cache library, but fails. - * - * @return void - */ - public function test_cache_miss() - { - $route = new Route('welcome/index'); - $route->defaults(array( - 'controller' => 'Kohana_Request_CacheTest_Dummy', - 'action' => 'index', - )); - - $request = new Request('welcome/index', NULL, array($route)); - $cache_mock = $this->_get_cache_mock(); - - $request->client()->cache(HTTP_Cache::factory($cache_mock)); - - $cache_mock->expects($this->once()) - ->method('get') - ->with($request->client()->cache()->create_cache_key($request)) - ->will($this->returnValue(FALSE)); - - $response = $request->client()->execute($request); - - $this->assertSame(HTTP_Cache::CACHE_STATUS_MISS, - $response->headers(HTTP_Cache::CACHE_STATUS_KEY)); - } - - /** - * Tests the client saves a response if the correct headers are set - * - * @return void - */ - public function test_cache_save() - { - $lifetime = 800; - $request = new Request('welcome/index'); - $cache_mock = $this->_get_cache_mock(); - $response = Response::factory(); - - $request->client()->cache(new HTTP_Cache(array( - 'cache' => $cache_mock - ) - )); - - $response->headers('cache-control', 'max-age='.$lifetime); - - $key = $request->client()->cache()->create_cache_key($request); - - $cache_mock->expects($this->at(0)) - ->method('set') - ->with($this->stringEndsWith($key), $this->identicalTo(0)); - - $cache_mock->expects($this->at(1)) - ->method('set') - ->with($this->identicalTo($key), $this->anything(), $this->identicalTo($lifetime)) - ->will($this->returnValue(TRUE)); - - $this->assertTrue( - $request->client()->cache() - ->cache_response($key, $request, $response) - ); - - $this->assertSame(HTTP_Cache::CACHE_STATUS_SAVED, - $response->headers(HTTP_Cache::CACHE_STATUS_KEY)); - } - - /** - * Tests the client handles a cache HIT event correctly - * - * @return void - */ - public function test_cache_hit() - { - $lifetime = 800; - $request = new Request('welcome/index'); - $cache_mock = $this->_get_cache_mock(); - - $request->client()->cache(new HTTP_Cache(array( - 'cache' => $cache_mock - ) - )); - - $response = Response::factory(); - - $response->headers(array( - 'cache-control' => 'max-age='.$lifetime, - HTTP_Cache::CACHE_STATUS_KEY => - HTTP_Cache::CACHE_STATUS_HIT - )); - - $key = $request->client()->cache()->create_cache_key($request); - - $cache_mock->expects($this->exactly(2)) - ->method('get') - ->with($this->stringContains($key)) - ->will($this->returnValue($response)); - - $request->client()->cache()->cache_response($key, $request); - - $this->assertSame(HTTP_Cache::CACHE_STATUS_HIT, - $response->headers(HTTP_Cache::CACHE_STATUS_KEY)); - } - - - /** - * Data provider for test_set_cache - * - * @return array - */ - public function provider_set_cache() - { - return array( - array( - new HTTP_Header(array('cache-control' => 'no-cache')), - array('no-cache' => NULL), - FALSE, - ), - array( - new HTTP_Header(array('cache-control' => 'no-store')), - array('no-store' => NULL), - FALSE, - ), - array( - new HTTP_Header(array('cache-control' => 'max-age=100')), - array('max-age' => '100'), - TRUE - ), - array( - new HTTP_Header(array('cache-control' => 'private')), - array('private' => NULL), - FALSE - ), - array( - new HTTP_Header(array('cache-control' => 'private, max-age=100')), - array('private' => NULL, 'max-age' => '100'), - FALSE - ), - array( - new HTTP_Header(array('cache-control' => 'private, s-maxage=100')), - array('private' => NULL, 's-maxage' => '100'), - TRUE - ), - array( - new HTTP_Header(array( - 'expires' => date('m/d/Y', strtotime('-1 day')), - )), - array(), - FALSE - ), - array( - new HTTP_Header(array( - 'expires' => date('m/d/Y', strtotime('+1 day')), - )), - array(), - TRUE - ), - array( - new HTTP_Header(array()), - array(), - TRUE - ), - ); - } - - /** - * Tests the set_cache() method - * - * @test - * @dataProvider provider_set_cache - * - * @return null - */ - public function test_set_cache($headers, $cache_control, $expected) - { - /** - * Set up a mock response object to test with - */ - $response = $this->getMock('Response'); - - $response->expects($this->any()) - ->method('headers') - ->will($this->returnValue($headers)); - - $request = new Request_Client_Internal; - $request->cache(new HTTP_Cache); - $this->assertEquals($request->cache()->set_cache($response), $expected); - } - - /** - * Returns a mock object for Cache - * - * @return Cache - */ - protected function _get_cache_mock() - { - return $this->getMock('Cache_File', array(), array(), '', FALSE); - } -} // End Kohana_Request_Client_CacheTest - -class Controller_Kohana_Request_CacheTest_Dummy extends Controller -{ - public function action_index() - { - - } -} \ No newline at end of file diff --git a/includes/kohana/modules/cache/tests/phpunit.xml b/includes/kohana/modules/cache/tests/phpunit.xml deleted file mode 100644 index c6590be2..00000000 --- a/includes/kohana/modules/cache/tests/phpunit.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - ./cache - - - - - cache/ - - - diff --git a/includes/kohana/modules/codebench/classes/Bench/ArrCallback.php b/includes/kohana/modules/codebench/classes/Bench/ArrCallback.php deleted file mode 100644 index 698a6b8d..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/ArrCallback.php +++ /dev/null @@ -1,57 +0,0 @@ - - */ -class Bench_ArrCallback extends Codebench { - - public $description = - 'Parsing command[param,param] strings in Arr::callback(): - http://github.com/shadowhand/kohana/commit/c3aaae849164bf92a486e29e736a265b350cb4da#L0R127'; - - public $loops = 10000; - - public $subjects = array - ( - // Valid callback strings - 'foo', - 'foo::bar', - 'foo[apple,orange]', - 'foo::bar[apple,orange]', - '[apple,orange]', // no command, only params - 'foo[[apple],[orange]]', // params with brackets inside - - // Invalid callback strings - 'foo[apple,orange', // no closing bracket - ); - - public function bench_shadowhand($subject) - { - // The original regex we're trying to optimize - if (preg_match('/([^\[]*+)\[(.*)\]/', $subject, $match)) - return $match; - } - - public function bench_geert_regex_1($subject) - { - // Added ^ and $ around the whole pattern - if (preg_match('/^([^\[]*+)\[(.*)\]$/', $subject, $matches)) - return $matches; - } - - public function bench_geert_regex_2($subject) - { - // A rather experimental approach using \K which requires PCRE 7.2 ~ PHP 5.2.4 - // Note: $matches[0] = params, $matches[1] = command - if (preg_match('/^([^\[]*+)\[\K.*(?=\]$)/', $subject, $matches)) - return $matches; - } - - public function bench_geert_str($subject) - { - // A native string function approach which beats all the regexes - if (strpos($subject, '[') !== FALSE AND substr($subject, -1) === ']') - return explode('[', substr($subject, 0, -1), 2); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/AutoLinkEmails.php b/includes/kohana/modules/codebench/classes/Bench/AutoLinkEmails.php deleted file mode 100644 index 46e7a158..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/AutoLinkEmails.php +++ /dev/null @@ -1,70 +0,0 @@ - - */ -class Bench_AutoLinkEmails extends Codebench { - - public $description = - 'Fixing #2772, and comparing some possibilities.'; - - public $loops = 1000; - - public $subjects = array - ( - '
    -
  • voorzitter@xxxx.com
  • -
  • vicevoorzitter@xxxx.com
  • -
', - ); - - // The original function, with str_replace replaced by preg_replace. Looks clean. - public function bench_match_all_loop($subject) - { - if (preg_match_all('~\b(?|58;)(?!\.)[-+_a-z0-9.]++(?|58;)(?!\.)[-+_a-z0-9.]++(?|58;)(?!\.)[-+_a-z0-9.]++(?|58;)(?!\.)[-+_a-z0-9.]++(? - */ -class Bench_DateSpan extends Codebench { - - public $description = - 'Optimization for Date::span().'; - - public $loops = 1000; - - public $subjects = array(); - - public function __construct() - { - parent::__construct(); - - $this->subjects = array( - time(), - time() - Date::MONTH, - time() - Date::YEAR, - time() - Date::YEAR * 10, - ); - } - - // Original method - public static function bench_span_original($remote, $local = NULL, $output = 'years,months,weeks,days,hours,minutes,seconds') - { - // Array with the output formats - $output = preg_split('/[^a-z]+/', strtolower( (string) $output)); - - // Invalid output - if (empty($output)) - return FALSE; - - // Make the output values into keys - extract(array_flip($output), EXTR_SKIP); - - if ($local === NULL) - { - // Calculate the span from the current time - $local = time(); - } - - // Calculate timespan (seconds) - $timespan = abs($remote - $local); - - if (isset($years)) - { - $timespan -= Date::YEAR * ($years = (int) floor($timespan / Date::YEAR)); - } - - if (isset($months)) - { - $timespan -= Date::MONTH * ($months = (int) floor($timespan / Date::MONTH)); - } - - if (isset($weeks)) - { - $timespan -= Date::WEEK * ($weeks = (int) floor($timespan / Date::WEEK)); - } - - if (isset($days)) - { - $timespan -= Date::DAY * ($days = (int) floor($timespan / Date::DAY)); - } - - if (isset($hours)) - { - $timespan -= Date::HOUR * ($hours = (int) floor($timespan / Date::HOUR)); - } - - if (isset($minutes)) - { - $timespan -= Date::MINUTE * ($minutes = (int) floor($timespan / Date::MINUTE)); - } - - // Seconds ago, 1 - if (isset($seconds)) - { - $seconds = $timespan; - } - - // Remove the variables that cannot be accessed - unset($timespan, $remote, $local); - - // Deny access to these variables - $deny = array_flip(array('deny', 'key', 'difference', 'output')); - - // Return the difference - $difference = array(); - foreach ($output as $key) - { - if (isset($$key) AND ! isset($deny[$key])) - { - // Add requested key to the output - $difference[$key] = $$key; - } - } - - // Invalid output formats string - if (empty($difference)) - return FALSE; - - // If only one output format was asked, don't put it in an array - if (count($difference) === 1) - return current($difference); - - // Return array - return $difference; - } - - // Using an array for the output - public static function bench_span_use_array($remote, $local = NULL, $output = 'years,months,weeks,days,hours,minutes,seconds') - { - // Array with the output formats - $output = preg_split('/[^a-z]+/', strtolower( (string) $output)); - - // Invalid output - if (empty($output)) - return FALSE; - - // Convert the list of outputs to an associative array - $output = array_combine($output, array_fill(0, count($output), 0)); - - // Make the output values into keys - extract(array_flip($output), EXTR_SKIP); - - if ($local === NULL) - { - // Calculate the span from the current time - $local = time(); - } - - // Calculate timespan (seconds) - $timespan = abs($remote - $local); - - if (isset($output['years'])) - { - $timespan -= Date::YEAR * ($output['years'] = (int) floor($timespan / Date::YEAR)); - } - - if (isset($output['months'])) - { - $timespan -= Date::MONTH * ($output['months'] = (int) floor($timespan / Date::MONTH)); - } - - if (isset($output['weeks'])) - { - $timespan -= Date::WEEK * ($output['weeks'] = (int) floor($timespan / Date::WEEK)); - } - - if (isset($output['days'])) - { - $timespan -= Date::DAY * ($output['days'] = (int) floor($timespan / Date::DAY)); - } - - if (isset($output['hours'])) - { - $timespan -= Date::HOUR * ($output['hours'] = (int) floor($timespan / Date::HOUR)); - } - - if (isset($output['minutes'])) - { - $timespan -= Date::MINUTE * ($output['minutes'] = (int) floor($timespan / Date::MINUTE)); - } - - // Seconds ago, 1 - if (isset($output['seconds'])) - { - $output['seconds'] = $timespan; - } - - if (count($output) === 1) - { - // Only a single output was requested, return it - return array_pop($output); - } - - // Return array - return $output; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/ExplodeLimit.php b/includes/kohana/modules/codebench/classes/Bench/ExplodeLimit.php deleted file mode 100644 index 4bf2acc2..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/ExplodeLimit.php +++ /dev/null @@ -1,34 +0,0 @@ - - */ -class Bench_ExplodeLimit extends Codebench { - - public $description = - 'Having a look at the effect of adding a limit to the explode function.
- http://stackoverflow.com/questions/1308149/how-to-get-a-part-of-url-between-4th-and-5th-slashes'; - - public $loops = 10000; - - public $subjects = array - ( - 'http://example.com/articles/123a/view', - 'http://example.com/articles/123a/view/x/x/x/x/x', - 'http://example.com/articles/123a/view/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x', - ); - - public function bench_explode_without_limit($subject) - { - $parts = explode('/', $subject); - return $parts[4]; - } - - public function bench_explode_with_limit($subject) - { - $parts = explode('/', $subject, 6); - return $parts[4]; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/GruberURL.php b/includes/kohana/modules/codebench/classes/Bench/GruberURL.php deleted file mode 100644 index af239750..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/GruberURL.php +++ /dev/null @@ -1,61 +0,0 @@ - - */ -class Bench_GruberURL extends Codebench { - - public $description = - 'Optimization for http://daringfireball.net/2009/11/liberal_regex_for_matching_urls'; - - public $loops = 10000; - - public $subjects = array - ( - 'http://foo.com/blah_blah', - 'http://foo.com/blah_blah/', - '(Something like http://foo.com/blah_blah)', - 'http://foo.com/blah_blah_(wikipedia)', - '(Something like http://foo.com/blah_blah_(wikipedia))', - 'http://foo.com/blah_blah.', - 'http://foo.com/blah_blah/.', - '', - '', - 'http://foo.com/blah_blah,', - 'http://www.example.com/wpstyle/?p=364.', - 'http://✪df.ws/e7l', - 'rdar://1234', - 'rdar:/1234', - 'x-yojimbo-item://6303E4C1-xxxx-45A6-AB9D-3A908F59AE0E', - 'message://%3c330e7f8409726r6a4ba78dkf1fd71420c1bf6ff@mail.gmail.com%3e', - 'http://âž¡.ws/䨹', - 'www.âž¡.ws/䨹', - 'http://example.com', - 'Just a www.example.com link.', - // To test the use of possessive quatifiers: - 'httpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp', - ); - - public function bench_daringfireball($subject) - { - // Original regex by John Gruber - preg_match('~\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))~', $subject, $matches); - return (empty($matches)) ? FALSE : $matches[0]; - } - - public function bench_daringfireball_v2($subject) - { - // Removed outer capturing parentheses, made another pair non-capturing - preg_match('~\b(?:[\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|(?:[^[:punct:]\s]|/))~', $subject, $matches); - return (empty($matches)) ? FALSE : $matches[0]; - } - - public function bench_daringfireball_v3($subject) - { - // Made quantifiers possessive where possible - preg_match('~\b(?:[\w-]++://?+|www[.])[^\s()<>]+(?:\([\w\d]++\)|(?:[^[:punct:]\s]|/))~', $subject, $matches); - return (empty($matches)) ? FALSE : $matches[0]; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/LtrimDigits.php b/includes/kohana/modules/codebench/classes/Bench/LtrimDigits.php deleted file mode 100644 index 71ead49c..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/LtrimDigits.php +++ /dev/null @@ -1,28 +0,0 @@ - - */ -class Bench_LtrimDigits extends Codebench { - - public $description = 'Chopping off leading digits: regex vs ltrim.'; - - public $loops = 100000; - - public $subjects = array - ( - '123digits', - 'no-digits', - ); - - public function bench_regex($subject) - { - return preg_replace('/^\d+/', '', $subject); - } - - public function bench_ltrim($subject) - { - return ltrim($subject, '0..9'); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/MDDoBaseURL.php b/includes/kohana/modules/codebench/classes/Bench/MDDoBaseURL.php deleted file mode 100644 index 1ad2a1b7..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/MDDoBaseURL.php +++ /dev/null @@ -1,66 +0,0 @@ - - */ -class Bench_MDDoBaseURL extends Codebench { - - public $description = - 'Optimization for the doBaseURL() method of Kohana_Kodoc_Markdown - for the Kohana Userguide.'; - - public $loops = 10000; - - public $subjects = array - ( - // Valid matches - '[filesystem](about.filesystem)', - '[filesystem](about.filesystem "Optional title")', - '[same page link](#id)', - '[object oriented](http://wikipedia.org/wiki/Object-Oriented_Programming)', - - // Invalid matches - '![this is image syntax](about.filesystem)', - '[filesystem](about.filesystem', - ); - - public function bench_original($subject) - { - // The original regex contained a bug, which is fixed here for benchmarking purposes. - // At the very start of the regex, (?!!) has been replace by (? - */ -class Bench_MDDoImageURL extends Codebench { - - public $description = - 'Optimization for the doImageURL() method of Kohana_Kodoc_Markdown - for the Kohana Userguide.'; - - public $loops = 10000; - - public $subjects = array - ( - // Valid matches - '![Alt text](http://img.skitch.com/20091019-rud5mmqbf776jwua6hx9nm1n.png)', - '![Alt text](https://img.skitch.com/20091019-rud5mmqbf776jwua6hx9nm1n.png)', - '![Alt text](otherprotocol://image.png "Optional title")', - '![Alt text](img/install.png "Optional title")', - '![Alt text containing [square] brackets](img/install.png)', - '![Empty src]()', - - // Invalid matches - '![Alt text](img/install.png "No closing parenthesis"', - ); - - public function bench_original($subject) - { - return preg_replace_callback('~!\[(.+?)\]\((\S*(?:\s*".+?")?)\)~', array($this, '_add_image_url_original'), $subject); - } - protected function _add_image_url_original($matches) - { - if ($matches[2] AND strpos($matches[2], '://') === FALSE) - { - // Add the base url to the link URL - $matches[2] = 'http://BASE/'.$matches[2]; - } - - // Recreate the link - return "![{$matches[1]}]({$matches[2]})"; - } - - public function bench_optimized_callback($subject) - { - // Moved the check for "://" to the regex, simplifying the callback function - return preg_replace_callback('~!\[(.+?)\]\((?!\w++://)(\S*(?:\s*+".+?")?)\)~', array($this, '_add_image_url_optimized'), $subject); - } - protected function _add_image_url_optimized($matches) - { - // Add the base url to the link URL - $matches[2] = 'http://BASE/'.$matches[2]; - - // Recreate the link - return "![{$matches[1]}]({$matches[2]})"; - } - - public function bench_callback_gone($subject) - { - // All the optimized callback was doing now, is prepend some text to the URL. - // We don't need a callback for that, and that should be clearly faster. - return preg_replace('~(!\[.+?\]\()(?!\w++://)(\S*(?:\s*+".+?")?\))~', '$1http://BASE/$2', $subject); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/MDDoIncludeViews.php b/includes/kohana/modules/codebench/classes/Bench/MDDoIncludeViews.php deleted file mode 100644 index 9cac3d60..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/MDDoIncludeViews.php +++ /dev/null @@ -1,50 +0,0 @@ - - */ -class Bench_MDDoIncludeViews extends Codebench { - - public $description = - 'Optimization for the doIncludeViews() method of Kohana_Kodoc_Markdown - for the Kohana Userguide.'; - - public $loops = 10000; - - public $subjects = array - ( - // Valid matches - '{{one}} two {{three}}', - '{{userguide/examples/hello_world_error}}', - - // Invalid matches - '{}', - '{{}}', - '{{userguide/examples/hello_world_error}', - '{{userguide/examples/hello_world_error }}', - '{{userguide/examples/{{hello_world_error }}', - ); - - public function bench_original($subject) - { - preg_match_all('/{{(\S+?)}}/m', $subject, $matches, PREG_SET_ORDER); - return $matches; - } - - public function bench_possessive($subject) - { - // Using a possessive character class - // Removed useless /m modifier - preg_match_all('/{{([^\s{}]++)}}/', $subject, $matches, PREG_SET_ORDER); - return $matches; - } - - public function bench_lookaround($subject) - { - // Using lookaround to move $mathes[1] into $matches[0] - preg_match_all('/(?<={{)[^\s{}]++(?=}})/', $subject, $matches, PREG_SET_ORDER); - return $matches; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/StripNullBytes.php b/includes/kohana/modules/codebench/classes/Bench/StripNullBytes.php deleted file mode 100644 index 4d28853e..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/StripNullBytes.php +++ /dev/null @@ -1,37 +0,0 @@ - - */ -class Bench_StripNullBytes extends Codebench { - - public $description = - 'String replacement comparisons related to #2676.'; - - public $loops = 1000; - - public $subjects = array - ( - "\0", - "\0\0\0\0\0\0\0\0\0\0", - "bla\0bla\0bla\0bla\0bla\0bla\0bla\0bla\0bla\0bla", - "blablablablablablablablablablablablablablablabla", - ); - - public function bench_str_replace($subject) - { - return str_replace("\0", '', $subject); - } - - public function bench_strtr($subject) - { - return strtr($subject, array("\0" => '')); - } - - public function bench_preg_replace($subject) - { - return preg_replace('~\0+~', '', $subject); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/Transliterate.php b/includes/kohana/modules/codebench/classes/Bench/Transliterate.php deleted file mode 100644 index aff86931..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/Transliterate.php +++ /dev/null @@ -1,65 +0,0 @@ - - */ -class Bench_Transliterate extends Codebench { - - public $description = - 'Inspired by: - http://forum.kohanaframework.org/comments.php?DiscussionID=6113'; - - public $loops = 10; - - public $subjects = array - ( - // ASCII - 'a', 'b', 'c', 'd', '1', '2', '3', - - // Non-ASCII - 'à', 'ô', 'Ä', 'ḟ', 'ë', 'Å¡', 'Æ¡', - 'ß', 'ă', 'Å™', 'È›', 'ň', 'Ä', 'Ä·', - 'Å', 'ỳ', 'ņ', 'ĺ', 'ħ', 'á¹—', 'ó', - 'ú', 'Ä›', 'é', 'ç', 'áº', 'Ä‹', 'õ', - 'ṡ', 'ø', 'Ä£', 'ŧ', 'È™', 'Ä—', 'ĉ', - 'Å›', 'î', 'ű', 'ć', 'Ä™', 'ŵ', 'ṫ', - 'Å«', 'Ä', 'ö', 'è', 'Å·', 'Ä…', 'Å‚', - 'ų', 'ů', 'ÅŸ', 'ÄŸ', 'ļ', 'Æ’', 'ž', - 'ẃ', 'ḃ', 'Ã¥', 'ì', 'ï', 'ḋ', 'Å¥', - 'Å—', 'ä', 'í', 'Å•', 'ê', 'ü', 'ò', - 'Ä“', 'ñ', 'Å„', 'Ä¥', 'Ä', 'Ä‘', 'ĵ', - 'ÿ', 'Å©', 'Å­', 'Æ°', 'Å£', 'ý', 'Å‘', - 'â', 'ľ', 'ẅ', 'ż', 'Ä«', 'ã', 'Ä¡', - 'á¹', 'Å', 'Ä©', 'ù', 'į', 'ź', 'á', - 'û', 'þ', 'ð', 'æ', 'µ', 'Ä•', 'ı', - 'À', 'Ô', 'ÄŽ', 'Ḟ', 'Ë', 'Å ', 'Æ ', - 'Ä‚', 'Ř', 'Èš', 'Ň', 'Ä€', 'Ķ', 'Ä”', - 'Åœ', 'Ỳ', 'Å…', 'Ĺ', 'Ħ', 'á¹–', 'Ó', - 'Ú', 'Äš', 'É', 'Ç', 'Ẁ', 'ÄŠ', 'Õ', - 'á¹ ', 'Ø', 'Ä¢', 'Ŧ', 'Ș', 'Ä–', 'Ĉ', - 'Åš', 'ÃŽ', 'Å°', 'Ć', 'Ę', 'Å´', 'Ṫ', - 'Ū', 'ÄŒ', 'Ö', 'È', 'Ŷ', 'Ä„', 'Å', - 'Ų', 'Å®', 'Åž', 'Äž', 'Ä»', 'Æ‘', 'Ž', - 'Ẃ', 'Ḃ', 'Ã…', 'ÃŒ', 'Ã', 'Ḋ', 'Ť', - 'Å–', 'Ä', 'Ã', 'Å”', 'Ê', 'Ãœ', 'Ã’', - 'Ä’', 'Ñ', 'Ń', 'Ĥ', 'Äœ', 'Ä', 'Ä´', - 'Ÿ', 'Ũ', 'Ŭ', 'Ư', 'Å¢', 'Ã', 'Å', - 'Â', 'Ľ', 'Ẅ', 'Å»', 'Ī', 'Ã', 'Ä ', - 'á¹€', 'ÅŒ', 'Ĩ', 'Ù', 'Ä®', 'Ź', 'Ã', - 'Û', 'Þ', 'Ã', 'Æ', 'Ä°', - ); - - public function bench_utf8($subject) - { - return UTF8::transliterate_to_ascii($subject); - } - - public function bench_iconv($subject) - { - // Note: need to suppress errors on iconv because some chars trigger the following notice: - // "Detected an illegal character in input string" - return preg_replace('~[^-a-z0-9]+~i', '', @iconv('UTF-8', 'ASCII//TRANSLIT', $subject)); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/URLSite.php b/includes/kohana/modules/codebench/classes/Bench/URLSite.php deleted file mode 100644 index 0db347d8..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/URLSite.php +++ /dev/null @@ -1,123 +0,0 @@ - - */ -class Bench_URLSite extends Codebench { - - public $description = 'http://dev.kohanaframework.org/issues/3110'; - - public $loops = 1000; - - public $subjects = array - ( - '', - 'news', - 'news/', - '/news/', - 'news/page/5', - 'news/page:5', - 'http://example.com/', - 'http://example.com/hello', - 'http://example.com:80/', - 'http://user:pass@example.com/', - ); - - public function __construct() - { - foreach ($this->subjects as $subject) - { - // Automatically create URIs with query string and/or fragment part appended - $this->subjects[] = $subject.'?query=string'; - $this->subjects[] = $subject.'#fragment'; - $this->subjects[] = $subject.'?query=string#fragment'; - } - - parent::__construct(); - } - - public function bench_original($uri) - { - // Get the path from the URI - $path = trim(parse_url($uri, PHP_URL_PATH), '/'); - - if ($query = parse_url($uri, PHP_URL_QUERY)) - { - $query = '?'.$query; - } - - if ($fragment = parse_url($uri, PHP_URL_FRAGMENT)) - { - $fragment = '#'.$fragment; - } - - return $path.$query.$fragment; - } - - public function bench_explode($uri) - { - // Chop off possible scheme, host, port, user and pass parts - $path = preg_replace('~^[-a-z0-9+.]++://[^/]++/?~', '', trim($uri, '/')); - - $fragment = ''; - $explode = explode('#', $path, 2); - if (isset($explode[1])) - { - $path = $explode[0]; - $fragment = '#'.$explode[1]; - } - - $query = ''; - $explode = explode('?', $path, 2); - if (isset($explode[1])) - { - $path = $explode[0]; - $query = '?'.$explode[1]; - } - - return $path.$query.$fragment; - } - - public function bench_regex($uri) - { - preg_match('~^(?:[-a-z0-9+.]++://[^/]++/?)?([^?#]++)?(\?[^#]*+)?(#.*)?~', trim($uri, '/'), $matches); - $path = Arr::get($matches, 1, ''); - $query = Arr::get($matches, 2, ''); - $fragment = Arr::get($matches, 3, ''); - - return $path.$query.$fragment; - } - - public function bench_regex_without_arrget($uri) - { - preg_match('~^(?:[-a-z0-9+.]++://[^/]++/?)?([^?#]++)?(\?[^#]*+)?(#.*)?~', trim($uri, '/'), $matches); - $path = isset($matches[1]) ? $matches[1] : ''; - $query = isset($matches[2]) ? $matches[2] : ''; - $fragment = isset($matches[3]) ? $matches[3] : ''; - - return $path.$query.$fragment; - } - - // And then I thought, why do all the work of extracting the query and fragment parts and then reappending them? - // Just leaving them alone should be fine, right? As a bonus we get a very nice speed boost. - public function bench_less_is_more($uri) - { - // Chop off possible scheme, host, port, user and pass parts - $path = preg_replace('~^[-a-z0-9+.]++://[^/]++/?~', '', trim($uri, '/')); - - return $path; - } - - public function bench_less_is_more_with_strpos_optimization($uri) - { - if (strpos($uri, '://') !== FALSE) - { - // Chop off possible scheme, host, port, user and pass parts - $uri = preg_replace('~^[-a-z0-9+.]++://[^/]++/?~', '', trim($uri, '/')); - } - - return $uri; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/UserFuncArray.php b/includes/kohana/modules/codebench/classes/Bench/UserFuncArray.php deleted file mode 100644 index f53d0c66..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/UserFuncArray.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ -class Bench_UserFuncArray extends Codebench { - - public $description = - 'Testing the speed difference of using call_user_func_array - compared to counting args and doing manual calls.'; - - public $loops = 100000; - - public $subjects = array - ( - // Argument sets - array(), - array('one'), - array('one', 'two'), - array('one', 'two', 'three'), - ); - - public function bench_count_args($args) - { - $name = 'callme'; - switch (count($args)) - { - case 1: - $this->$name($args[0]); - break; - case 2: - $this->$name($args[0], $args[1]); - break; - case 3: - $this->$name($args[0], $args[1], $args[2]); - break; - case 4: - $this->$name($args[0], $args[1], $args[2], $args[3]); - break; - default: - call_user_func_array(array($this, $name), $args); - break; - } - } - - public function bench_direct_call($args) - { - $name = 'callme'; - call_user_func_array(array($this, $name), $args); - } - - protected function callme() - { - return count(func_get_args()); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/ValidColor.php b/includes/kohana/modules/codebench/classes/Bench/ValidColor.php deleted file mode 100644 index 8d046089..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/ValidColor.php +++ /dev/null @@ -1,116 +0,0 @@ - - */ -class Bench_ValidColor extends Codebench { - - public $description = - 'Optimization for Validate::color(). - See: http://forum.kohanaphp.com/comments.php?DiscussionID=2192. - - Note that the methods with an _invalid suffix contain flawed regexes and should be - completely discarded. I left them in here for educational purposes, and to remind myself - to think harder and test more thoroughly. It can\'t be that I only found out so late in - the game. For the regex explanation have a look at the forum topic mentioned earlier.'; - - public $loops = 10000; - - public $subjects = array - ( - // Valid colors - 'aaA', - '123', - '000000', - '#123456', - '#abcdef', - - // Invalid colors - 'ggg', - '1234', - '#1234567', - "#000\n", - '}§è!çà%$z', - ); - - // Note that I added the D modifier to corey's regexes. We need to match exactly - // the same if we want the benchmarks to be of any value. - public function bench_corey_regex_1_invalid($subject) - { - return (bool) preg_match('/^#?([0-9a-f]{1,2}){3}$/iD', $subject); - } - - public function bench_corey_regex_2($subject) - { - return (bool) preg_match('/^#?([0-9a-f]){3}(([0-9a-f]){3})?$/iD', $subject); - } - - // Optimized corey_regex_1 - // Using non-capturing parentheses and a possessive interval - public function bench_geert_regex_1a_invalid($subject) - { - return (bool) preg_match('/^#?(?:[0-9a-f]{1,2}+){3}$/iD', $subject); - } - - // Optimized corey_regex_2 - // Removed useless parentheses, made the remaining ones non-capturing - public function bench_geert_regex_2a($subject) - { - return (bool) preg_match('/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/iD', $subject); - } - - // Optimized geert_regex_1a - // Possessive "#" - public function bench_geert_regex_1b_invalid($subject) - { - return (bool) preg_match('/^#?+(?:[0-9a-f]{1,2}+){3}$/iD', $subject); - } - - // Optimized geert_regex_2a - // Possessive "#" - public function bench_geert_regex_2b($subject) - { - return (bool) preg_match('/^#?+[0-9a-f]{3}(?:[0-9a-f]{3})?$/iD', $subject); - } - - // Using \z instead of $ - public function bench_salathe_regex_1($subject) - { - return (bool) preg_match('/^#?+[0-9a-f]{3}(?:[0-9a-f]{3})?\z/i', $subject); - } - - // Using \A instead of ^ - public function bench_salathe_regex_2($subject) - { - return (bool) preg_match('/\A#?+[0-9a-f]{3}(?:[0-9a-f]{3})?\z/i', $subject); - } - - // A solution without regex - public function bench_geert_str($subject) - { - if ($subject[0] === '#') - { - $subject = substr($subject, 1); - } - - $strlen = strlen($subject); - return (($strlen === 3 OR $strlen === 6) AND ctype_xdigit($subject)); - } - - // An ugly, but fast, solution without regex - public function bench_salathe_str($subject) - { - if ($subject[0] === '#') - { - $subject = substr($subject, 1); - } - - // TRUE if: - // 1. $subject is 6 or 3 chars long - // 2. $subject contains only hexadecimal digits - return (((isset($subject[5]) AND ! isset($subject[6])) OR - (isset($subject[2]) AND ! isset($subject[3]))) - AND ctype_xdigit($subject)); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Bench/ValidURL.php b/includes/kohana/modules/codebench/classes/Bench/ValidURL.php deleted file mode 100644 index 3c88675d..00000000 --- a/includes/kohana/modules/codebench/classes/Bench/ValidURL.php +++ /dev/null @@ -1,105 +0,0 @@ - - */ -class Bench_ValidURL extends Codebench { - - public $description = - 'filter_var vs regex: - http://dev.kohanaframework.org/issues/2847'; - - public $loops = 1000; - - public $subjects = array - ( - // Valid - 'http://google.com', - 'http://google.com/', - 'http://google.com/?q=abc', - 'http://google.com/#hash', - 'http://localhost', - 'http://hello-world.pl', - 'http://hello--world.pl', - 'http://h.e.l.l.0.pl', - 'http://server.tld/get/info', - 'http://127.0.0.1', - 'http://127.0.0.1:80', - 'http://user@127.0.0.1', - 'http://user:pass@127.0.0.1', - 'ftp://my.server.com', - 'rss+xml://rss.example.com', - - // Invalid - 'http://google.2com', - 'http://google.com?q=abc', - 'http://google.com#hash', - 'http://hello-.pl', - 'http://hel.-lo.world.pl', - 'http://ww£.google.com', - 'http://127.0.0.1234', - 'http://127.0.0.1.1', - 'http://user:@127.0.0.1', - "http://finalnewline.com\n", - ); - - public function bench_filter_var($url) - { - return (bool) filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED); - } - - public function bench_regex($url) - { - // Based on http://www.apps.ietf.org/rfc/rfc1738.html#sec-5 - if ( ! preg_match( - '~^ - - # scheme - [-a-z0-9+.]++:// - - # username:password (optional) - (?: - [-a-z0-9$_.+!*\'(),;?&=%]++ # username - (?::[-a-z0-9$_.+!*\'(),;?&=%]++)? # password (optional) - @ - )? - - (?: - # ip address - \d{1,3}+(?:\.\d{1,3}+){3}+ - - | # or - - # hostname (captured) - ( - (?!-)[-a-z0-9]{1,63}+(? 253) - return FALSE; - - // An extra check for the top level domain - // It must start with a letter - $tld = ltrim(substr($matches[1], (int) strrpos($matches[1], '.')), '.'); - return ctype_alpha($tld[0]); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/codebench/classes/Codebench.php b/includes/kohana/modules/codebench/classes/Codebench.php deleted file mode 100644 index 0f4c55cd..00000000 --- a/includes/kohana/modules/codebench/classes/Codebench.php +++ /dev/null @@ -1,3 +0,0 @@ -request->param('class'); - - // Convert submitted class name to URI segment - if (isset($_POST['class'])) - { - throw HTTP_Exception::factory(302)->location('codebench/'.trim($_POST['class'])); - } - - // Pass the class name on to the view - $this->template->class = (string) $class; - - // Try to load the class, then run it - if (Kohana::auto_load($class) === TRUE) - { - $codebench = new $class; - $this->template->codebench = $codebench->run(); - } - } -} diff --git a/includes/kohana/modules/codebench/classes/Kohana/Codebench.php b/includes/kohana/modules/codebench/classes/Kohana/Codebench.php deleted file mode 100644 index 0acfa5ce..00000000 --- a/includes/kohana/modules/codebench/classes/Kohana/Codebench.php +++ /dev/null @@ -1,217 +0,0 @@ - 'A', - 150 => 'B', - 200 => 'C', - 300 => 'D', - 500 => 'E', - 'default' => 'F', - ); - - /** - * Constructor. - * - * @return void - */ - public function __construct() - { - // Set the maximum execution time - set_time_limit(Kohana::$config->load('codebench')->max_execution_time); - } - - /** - * Runs Codebench on the extending class. - * - * @return array benchmark output - */ - public function run() - { - // Array of all methods to loop over - $methods = array_filter(get_class_methods($this), array($this, '_method_filter')); - - // Make sure the benchmark runs at least once, - // also if no subject data has been provided. - if (empty($this->subjects)) - { - $this->subjects = array('NULL' => NULL); - } - - // Initialize benchmark output - $codebench = array - ( - 'class' => get_class($this), - 'description' => $this->description, - 'loops' => array - ( - 'base' => (int) $this->loops, - 'total' => (int) $this->loops * count($this->subjects) * count($methods), - ), - 'subjects' => $this->subjects, - 'benchmarks' => array(), - ); - - // Benchmark each method - foreach ($methods as $method) - { - // Initialize benchmark output for this method - $codebench['benchmarks'][$method] = array('time' => 0, 'memory' => 0); - - // Using Reflection because simply calling $this->$method($subject) in the loop below - // results in buggy benchmark times correlating to the length of the method name. - $reflection = new ReflectionMethod(get_class($this), $method); - - // Benchmark each subject on each method - foreach ($this->subjects as $subject_key => $subject) - { - // Prerun each method/subject combo before the actual benchmark loop. - // This way relatively expensive initial processes won't be benchmarked, e.g. autoloading. - // At the same time we capture the return here so we don't have to do that in the loop anymore. - $return = $reflection->invoke($this, $subject); - - // Start the timer for one subject - $token = Profiler::start('codebench', $method.$subject_key); - - // The heavy work - for ($i = 0; $i < $this->loops; ++$i) - { - $reflection->invoke($this, $subject); - } - - // Stop and read the timer - $benchmark = Profiler::total($token); - - // Benchmark output specific to the current method and subject - $codebench['benchmarks'][$method]['subjects'][$subject_key] = array - ( - 'return' => $return, - 'time' => $benchmark[0], - 'memory' => $benchmark[1], - ); - - // Update method totals - $codebench['benchmarks'][$method]['time'] += $benchmark[0]; - $codebench['benchmarks'][$method]['memory'] += $benchmark[1]; - } - } - - // Initialize the fastest and slowest benchmarks for both methods and subjects, time and memory, - // these values will be overwritten using min() and max() later on. - // The 999999999 values look like a hack, I know, but they work, - // unless your method runs for more than 31 years or consumes over 1GB of memory. - $fastest_method = $fastest_subject = array('time' => 999999999, 'memory' => 999999999); - $slowest_method = $slowest_subject = array('time' => 0, 'memory' => 0); - - // Find the fastest and slowest benchmarks, needed for the percentage calculations - foreach ($methods as $method) - { - // Update the fastest and slowest method benchmarks - $fastest_method['time'] = min($fastest_method['time'], $codebench['benchmarks'][$method]['time']); - $fastest_method['memory'] = min($fastest_method['memory'], $codebench['benchmarks'][$method]['memory']); - $slowest_method['time'] = max($slowest_method['time'], $codebench['benchmarks'][$method]['time']); - $slowest_method['memory'] = max($slowest_method['memory'], $codebench['benchmarks'][$method]['memory']); - - foreach ($this->subjects as $subject_key => $subject) - { - // Update the fastest and slowest subject benchmarks - $fastest_subject['time'] = min($fastest_subject['time'], $codebench['benchmarks'][$method]['subjects'][$subject_key]['time']); - $fastest_subject['memory'] = min($fastest_subject['memory'], $codebench['benchmarks'][$method]['subjects'][$subject_key]['memory']); - $slowest_subject['time'] = max($slowest_subject['time'], $codebench['benchmarks'][$method]['subjects'][$subject_key]['time']); - $slowest_subject['memory'] = max($slowest_subject['memory'], $codebench['benchmarks'][$method]['subjects'][$subject_key]['memory']); - } - } - - // Percentage calculations for methods - foreach ($codebench['benchmarks'] as & $method) - { - // Calculate percentage difference relative to fastest and slowest methods - $method['percent']['fastest']['time'] = (empty($fastest_method['time'])) ? 0 : ($method['time'] / $fastest_method['time'] * 100); - $method['percent']['fastest']['memory'] = (empty($fastest_method['memory'])) ? 0 : ($method['memory'] / $fastest_method['memory'] * 100); - $method['percent']['slowest']['time'] = (empty($slowest_method['time'])) ? 0 : ($method['time'] / $slowest_method['time'] * 100); - $method['percent']['slowest']['memory'] = (empty($slowest_method['memory'])) ? 0 : ($method['memory'] / $slowest_method['memory'] * 100); - - // Assign a grade for time and memory to each method - $method['grade']['time'] = $this->_grade($method['percent']['fastest']['time']); - $method['grade']['memory'] = $this->_grade($method['percent']['fastest']['memory']); - - // Percentage calculations for subjects - foreach ($method['subjects'] as & $subject) - { - // Calculate percentage difference relative to fastest and slowest subjects for this method - $subject['percent']['fastest']['time'] = (empty($fastest_subject['time'])) ? 0 : ($subject['time'] / $fastest_subject['time'] * 100); - $subject['percent']['fastest']['memory'] = (empty($fastest_subject['memory'])) ? 0 : ($subject['memory'] / $fastest_subject['memory'] * 100); - $subject['percent']['slowest']['time'] = (empty($slowest_subject['time'])) ? 0 : ($subject['time'] / $slowest_subject['time'] * 100); - $subject['percent']['slowest']['memory'] = (empty($slowest_subject['memory'])) ? 0 : ($subject['memory'] / $slowest_subject['memory'] * 100); - - // Assign a grade letter for time and memory to each subject - $subject['grade']['time'] = $this->_grade($subject['percent']['fastest']['time']); - $subject['grade']['memory'] = $this->_grade($subject['percent']['fastest']['memory']); - } - } - - return $codebench; - } - - /** - * Callback for array_filter(). - * Filters out all methods not to benchmark. - * - * @param string method name - * @return boolean - */ - protected function _method_filter($method) - { - // Only benchmark methods with the "bench" prefix - return (substr($method, 0, 5) === 'bench'); - } - - /** - * Returns the applicable grade letter for a score. - * - * @param integer|double score - * @return string grade letter - */ - protected function _grade($score) - { - foreach ($this->grades as $max => $grade) - { - if ($max === 'default') - continue; - - if ($score <= $max) - return $grade; - } - - return $this->grades['default']; - } -} diff --git a/includes/kohana/modules/codebench/config/codebench.php b/includes/kohana/modules/codebench/config/codebench.php deleted file mode 100644 index 590186da..00000000 --- a/includes/kohana/modules/codebench/config/codebench.php +++ /dev/null @@ -1,16 +0,0 @@ - 0, - - /** - * Expand all benchmark details by default. - */ - 'expand_all' => FALSE, - -); diff --git a/includes/kohana/modules/codebench/config/userguide.php b/includes/kohana/modules/codebench/config/userguide.php deleted file mode 100644 index e6943aca..00000000 --- a/includes/kohana/modules/codebench/config/userguide.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'codebench' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'Codebench', - - // A short description of this module, shown on the index page - 'description' => 'Code benchmarking tool.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/modules/codebench/guide/codebench/index.md b/includes/kohana/modules/codebench/guide/codebench/index.md deleted file mode 100644 index 78b6f217..00000000 --- a/includes/kohana/modules/codebench/guide/codebench/index.md +++ /dev/null @@ -1,76 +0,0 @@ -# Using Codebench - -[!!] The contents of this page are taken (with some minor changes) from and are copyright Geert De Deckere. - -For a long time I have been using a quick-and-dirty `benchmark.php` file to optimize bits of PHP code, many times regex-related stuff. The file contained not much more than a [gettimeofday](http://php.net/gettimeofday) function wrapped around a `for` loop. It worked, albeit not very efficiently. Something more solid was needed. I set out to create a far more usable piece of software to aid in the everlasting quest to squeeze every millisecond out of those regular expressions. - -## Codebench Goals - -### Benchmark multiple regular expressions at once - -Being able to compare the speed of an arbitrary amount of regular expressions would be tremendously useful. In case you are wondering—yes, I had been writing down benchmark times for each regex, uncommenting them one by one. You get the idea. Those days should be gone forever now. - -### Benchmark multiple subjects at once - -What gets overlooked too often when testing and optimizing regular expressions is the fact that speed can vastly differ depending on the subjects, also known as input or target strings. Just because your regular expression matches, say, a valid email address quickly, does not necessarily mean it will quickly realize when an invalid email is provided. I plan to write a follow-up article with hands-on regex examples to demonstrate this point. Anyway, Codebench allows you to create an array of subjects which will be passed to each benchmark. - -### Make it flexible enough to work for all PCRE functions - -Initially I named the module “Regexbenchâ€. I quickly realized, though, it would be flexible enough to benchmark all kinds of PHP code, hence the change to “Codebenchâ€. While tools specifically built to help profiling PCRE functions, like [preg_match](http://php.net/preg_match) or [preg_replace](http://php.net/preg_replace), definitely have their use, more flexibility was needed here. You should be able to compare all kinds of constructions like combinations of PCRE functions and native PHP string functions. - -### Create clean and portable benchmark cases - -Throwing valuable benchmark data away every time I needed to optimize another regular expression had to stop. A clean file containing the complete set of all regex variations to compare, together with the set of subjects to test them against, would be more than welcome. Moreover, it would be easy to exchange benchmark cases with others. - -### Visualize the benchmarks - -Obviously providing a visual representation of the benchmark results, via simple graphs, would make interpreting them easier. Having not to think about Internet Explorer for once, made writing CSS a whole lot more easy and fun. It resulted in some fine graphs which are fully resizable. - -Below are two screenshots of Codebench in action. `Valid_Color` is a class made for benchmarking different ways to validate hexadecimal HTML color values, e.g. `#FFF`. If you are interested in the story behind the actual regular expressions, take a look at [this topic in the Kohana forums](http://forum.kohanaphp.com/comments.php?DiscussionID=2192). - -![Benchmarking several ways to validate HTML color values](codebench_screenshot1.png) -**Benchmarking seven ways to validate HTML color values** - -![Collapsable results per subject for each method](codebench_screenshot2.png) -**Collapsable results per subject for each method** - -## Working with Codebench - -Codebench is included in Kohana 3, but if you need you [can download it](http://github.com/kohana/codebench/) from GitHub. Be sure Codebench is activated in your `application/bootstrap.php`. - -Creating your own benchmarks is just a matter of creating a class that extends the Codebench class. The class should go in `classes/bench` and the class name should have the `Bench_` prefix. Put the code parts you want to compare into separate methods. Be sure to prefix those methods with `bench_`, other methods will not be benchmarked. Glance at the files in `modules/codebench/classes/bench/` for more examples. - -Here is another short example with some extra explanations. - - // classes/bench/ltrimdigits.php - class Bench_LtrimDigits extends Codebench { - - // Some optional explanatory comments about the benchmark file. - // HTML allowed. URLs will be converted to links automatically. - public $description = 'Chopping off leading digits: regex vs ltrim.'; - - // How many times to execute each method per subject. - // Total loops = loops * number of methods * number of subjects - public $loops = 100000; - - // The subjects to supply iteratively to your benchmark methods. - public $subjects = array - ( - '123digits', - 'no-digits', - ); - - public function bench_regex($subject) - { - return preg_replace('/^\d+/', '', $subject); - } - - public function bench_ltrim($subject) - { - return ltrim($subject, '0..9'); - } - } - - - -And the winner is… [ltrim](http://php.net/ltrim). Happy benchmarking! \ No newline at end of file diff --git a/includes/kohana/modules/codebench/guide/codebench/menu.md b/includes/kohana/modules/codebench/guide/codebench/menu.md deleted file mode 100644 index c73a19a0..00000000 --- a/includes/kohana/modules/codebench/guide/codebench/menu.md +++ /dev/null @@ -1 +0,0 @@ -## [Codebench]() \ No newline at end of file diff --git a/includes/kohana/modules/codebench/init.php b/includes/kohana/modules/codebench/init.php deleted file mode 100644 index f238cb05..00000000 --- a/includes/kohana/modules/codebench/init.php +++ /dev/null @@ -1,8 +0,0 @@ -)') - ->defaults(array( - 'controller' => 'Codebench', - 'action' => 'index', - 'class' => NULL)); diff --git a/includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot1.png b/includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot1.png deleted file mode 100644 index d1cfcfb2cc4db8afe79465408be1c0587244b780..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15827 zcmb`uXIK;6-o{JsRi#O_04hzI6bTTjQdOik0qIR3w9r9C1VN;?5I{hBZ$Ut%C_R9H zl+er2MFL15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BUoEjIvISw=H~%R&4ZCE7;W7hk8Tz8SPN z)eK$D-bhzpD6JfCZ;g)Zow9=!p60e^Z&gJiS4ki#^@6^K@zFx79@h^7Uumzv?>7B- z)tbcKmQp|5>gUQHh3hoff-^9ElXF`2vtf6t8=u;u7dqN~sBYmpb~mN72LAe;duh?J z&u$a;)US%M9I0uw8e5-|ow-{m!kqEb#(%y{=nZtdX`Mc)SX?QR?dr?u-P9wC zo$0N(#_~}^WUuxPDn5KvFS^9D_eKBM@!}ErLc{YLOPvk*wD3}e+O7BQ`(y!QX(Jub z9sdTuvGh9?w9B~)4A>avmP>)Vt~aCcfat98@LyN0=aUL8p2I1kgo@oa+l()&ob*{ilAXVV5r#zNQ{;F`IZU zl2N13%n@nQ!rQhoj!TIKzp1zh_VHOM+fz>k)U?|LYQ=p%uPT1k)AtQq8ZN~{><0N8 zI&@)#S%%0Rnh_K2^xxdG8(RloeWByWi~SreH&fdfjD6wA!BLlMqux!QEeKo5P&jn? zM!7;ju@cNqvvmS2{vC@)dqoIq>kFqWg3G$;;xVxOoA)&-0ObnpU!%^B3F z9vj7mde5FLtKQQOTU*1qh2SfcgALiH4Q>~BC2_xqi!vIQHPO!Ep~grrcfPt-zGPWr z(_hZs?E;Nk=!A#?DSh9G8X{_7TV4~Z;lBErYUpI7(i>;nKlPW3P zvtG{f#Nul9KFJ1Md%^kx?!W5a^z;h5<6N7vE;R}jUg~ua-<$7U=k)Q%U6G%>o X%k+Esjeze-6WmwTQ7Kn?68`@HDeN9w diff --git a/includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot2.png b/includes/kohana/modules/codebench/media/guide/codebench/codebench_screenshot2.png deleted file mode 100644 index 85bf560bead5dd6042892a5a90f2d1212a7c8ee0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13575 zcmb`ucQl+^-#0Eri707CZ%ITO1kpP&LW1ZSf?%|0!RRd^I1I@of)FJ!x@e>KgG>;0 z5WPenJ!16sZaMdTpYzHGA*R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p9KFOBT-~D diff --git a/includes/kohana/modules/codebench/views/codebench.php b/includes/kohana/modules/codebench/views/codebench.php deleted file mode 100644 index 64823403..00000000 --- a/includes/kohana/modules/codebench/views/codebench.php +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - <?php if ($class !== ''): ?> - <?php echo $class, ' · ' ?> - <?php endif; ?>Codebench - - - - - - - - - - - -
-

- - - - - Library not found - - No methods found to benchmark - - -

-
- - - - - -

- - Remember to prefix the methods you want to benchmark with “benchâ€.
- You might also want to overwrite Codebench->method_filter(). -
-

- - - -
    - $benchmark) { ?> -
  • - -

    - - - +% - -

    - -
    - - - - - - - - - - - - $subject) { ?> - - - - - - - - -
    Benchmarks per subject for
    subject → returns
    - - [] → - - () - - - - - - - - - - - s - - -
    -
    - -
  • - -
- - - - - - - - Raw output:', Debug::vars($codebench) ?> - - - - - - - diff --git a/includes/kohana/modules/cron/README.markdown b/includes/kohana/modules/cron/README.markdown deleted file mode 100644 index b08b42f3..00000000 --- a/includes/kohana/modules/cron/README.markdown +++ /dev/null @@ -1,86 +0,0 @@ -# Kohana-Cron - -This module provides a way to schedule tasks (jobs) within your Kohana application. - - -## Installation - -Step 1: Download the module into your modules subdirectory. - -Step 2: Enable the module in your bootstrap file: - - /** - * Enable modules. Modules are referenced by a relative or absolute path. - */ - Kohana::modules(array( - 'cron' => MODPATH.'cron', - // 'auth' => MODPATH.'auth', // Basic authentication - // 'codebench' => MODPATH.'codebench', // Benchmarking tool - // 'database' => MODPATH.'database', // Database access - // 'image' => MODPATH.'image', // Image manipulation - // 'orm' => MODPATH.'orm', // Object Relationship Mapping - // 'pagination' => MODPATH.'pagination', // Paging of results - // 'userguide' => MODPATH.'userguide', // User guide and API documentation - )); - - -Step 3: Make sure the settings in `config/cron.php` are correct for your environment. -If not, copy the file to `application/config/cron.php` and change the values accordingly. - - -## Usage - -In its simplest form, a task is a [PHP callback][1] and times at which it should run. -To configure a task call `Cron::set($name, array($frequency, $callback))` where -`$frequency` is a string of date and time fields identical to those found in [crontab][2]. -For example, - - Cron::set('reindex_catalog', array('@daily', 'Catalog::regenerate_index')); - Cron::set('calendar_notifications', array('*/5 * * * *', 'Calendar::send_emails')); - -Configured tasks are run with their appropriate frequency by calling `Cron::run()`. Call -this method in your bootstrap file, and you're done! - - -## Advanced Usage - -A task can also be an instance of `Cron` that extends `next()` and/or `execute()` as -needed. Such a task is configured by calling `Cron::set($name, $instance)`. - -If you have access to the system crontab, you can run Cron less (or more) than once -every request. You will need to modify the lines where the request is handled in your -bootstrap file to prevent extraneous output. The default is: - - /** - * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. - * If no source is specified, the URI will be automatically detected. - */ - echo Request::instance() - ->execute() - ->send_headers() - ->response; - -Change it to: - - if ( ! defined('SUPPRESS_REQUEST')) - { - /** - * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. - * If no source is specified, the URI will be automatically detected. - */ - echo Request::instance() - ->execute() - ->send_headers() - ->response; - } - -Then set up a system cron job to run your application's Cron once a minute: - - * * * * * /usr/bin/php -f /path/to/kohana/modules/cron/run.php - -The included `run.php` should work for most cases, but you are free to call `Cron::run()` -in any way you see fit. - - - [1]: http://php.net/manual/language.pseudo-types.php#language.types.callback - [2]: http://linux.die.net/man/5/crontab diff --git a/includes/kohana/modules/cron/classes/Cron.php b/includes/kohana/modules/cron/classes/Cron.php deleted file mode 100644 index 7f3d2757..00000000 --- a/includes/kohana/modules/cron/classes/Cron.php +++ /dev/null @@ -1,10 +0,0 @@ -load('cron'); - $result = FALSE; - - if (file_exists($config->lock) AND ($stat = @stat($config->lock)) AND time() - $config->window < $stat['mtime']) - { - // Lock exists and has not expired - return $result; - } - - $fh = fopen($config->lock, 'a'); - - if (flock($fh, LOCK_EX)) - { - fseek($fh, 0, SEEK_END); - - if (ftell($fh) === (empty($stat) ? 0 : $stat['size'])) - { - // Current size matches expected size - // Claim the file by changing the size - fwrite($fh, '.'); - - $result = TRUE; - } - - // else, Another process acquired during flock() - } - - fclose($fh); - - return $result; - } - - /** - * Store the timestamps of when jobs should run next - */ - protected static function _save() - { - Kohana::cache("Cron::run()", Cron::$_times, Kohana::$config->load('cron')->window * 2); - } - - /** - * Release the Cron mutex - */ - protected static function _unlock() - { - return @unlink(Kohana::$config->load('cron')->lock); - } - - /** - * @return boolean FALSE when another instance is running - */ - public static function run() - { - if (empty(Cron::$_jobs)) - return TRUE; - - if ( ! Cron::_lock()) - return FALSE; - - try - { - Cron::_load(); - - $now = time(); - $threshold = $now - Kohana::$config->load('cron')->window; - - foreach (Cron::$_jobs as $name => $job) - { - if (empty(Cron::$_times[$name]) OR Cron::$_times[$name] < $threshold) - { - // Expired - - Cron::$_times[$name] = $job->next($now); - - if ($job->next($threshold) < $now) - { - // Within the window - - $job->execute(); - } - } - elseif (Cron::$_times[$name] < $now) - { - // Within the window - - Cron::$_times[$name] = $job->next($now); - - $job->execute(); - } - } - } - catch (Exception $e) {} - - Cron::_save(); - Cron::_unlock(); - - if (isset($e)) - throw $e; - - return TRUE; - } - - protected $_callback; - protected $_period; - - public function __construct($period, $callback) - { - $this->_period = $period; - $this->_callback = $callback; - } - - /** - * Execute this job - */ - public function execute() - { - call_user_func($this->_callback); - } - - /** - * Calculates the next timestamp in this period - * - * @param integer Timestamp from which to calculate - * @return integer Next timestamp in this period - */ - public function next($from) - { - // PHP >= 5.3.0 - //if ($this->_period instanceof DatePeriod) { return; } - //if (is_string($this->_period) AND preg_match('/^P[\dDHMSTWY]+$/', $period)) { $this->_period = new DateInterval($this->_period); } - //if ($this->_period instanceof DateInterval) { return; } - - return $this->_next_crontab($from); - } - - /** - * Calculates the next timestamp of this crontab period - * - * @param integer Timestamp from which to calculate - * @return integer Next timestamp in this period - */ - protected function _next_crontab($from) - { - if (is_string($this->_period)) - { - // Convert string to lists of valid values - - if ($this->_period[0] === '@') - { - switch (substr($this->_period, 1)) - { - case 'annually': - case 'yearly': - // '0 0 1 1 *' - $this->_period = array('minutes' => array(0), 'hours' => array(0), 'monthdays' => array(1), 'months' => array(1), 'weekdays' => range(0,6)); - break; - - case 'daily': - case 'midnight': - // '0 0 * * *' - $this->_period = array('minutes' => array(0), 'hours' => array(0), 'monthdays' => range(1,31), 'months' => range(1,12), 'weekdays' => range(0,6)); - break; - - case 'hourly': - // '0 * * * *' - $this->_period = array('minutes' => array(0), 'hours' => range(0,23), 'monthdays' => range(1,31), 'months' => range(1,12), 'weekdays' => range(0,6)); - break; - - case 'monthly': - // '0 0 1 * *' - $this->_period = array('minutes' => array(0), 'hours' => array(0), 'monthdays' => array(1), 'months' => range(1,12), 'weekdays' => range(0,6)); - break; - - case 'weekly': - // '0 0 * * 0' - $this->_period = array('minutes' => array(0), 'hours' => array(0), 'monthdays' => range(1,31), 'months' => range(1,12), 'weekdays' => array(0)); - break; - } - } - else - { - list($minutes, $hours, $monthdays, $months, $weekdays) = explode(' ', $this->_period); - - $months = strtr(strtolower($months), array( - 'jan' => 1, - 'feb' => 2, - 'mar' => 3, - 'apr' => 4, - 'may' => 5, - 'jun' => 6, - 'jul' => 7, - 'aug' => 8, - 'sep' => 9, - 'oct' => 10, - 'nov' => 11, - 'dec' => 12, - )); - - $weekdays = strtr(strtolower($weekdays), array( - 'sun' => 0, - 'mon' => 1, - 'tue' => 2, - 'wed' => 3, - 'thu' => 4, - 'fri' => 5, - 'sat' => 6, - )); - - $this->_period = array( - 'minutes' => $this->_parse_crontab_field($minutes, 0, 59), - 'hours' => $this->_parse_crontab_field($hours, 0, 23), - 'monthdays' => $this->_parse_crontab_field($monthdays, 1, 31), - 'months' => $this->_parse_crontab_field($months, 1, 12), - 'weekdays' => $this->_parse_crontab_field($weekdays, 0, 7) - ); - - // Ensure Sunday is zero - if (end($this->_period['weekdays']) === 7) - { - array_pop($this->_period['weekdays']); - - if (reset($this->_period['weekdays']) !== 0) - { - array_unshift($this->_period['weekdays'], 0); - } - } - } - } - - $from = getdate($from); - - if ( ! in_array($from['mon'], $this->_period['months'])) - return $this->_next_crontab_month($from); - - if (count($this->_period['weekdays']) === 7) - { - // Day of Week is unrestricted, defer to Day of Month - if ( ! in_array($from['mday'], $this->_period['monthdays'])) - return $this->_next_crontab_monthday($from); - } - elseif (count($this->_period['monthdays']) === 31) - { - // Day of Month is unrestricted, use Day of Week - if ( ! in_array($from['wday'], $this->_period['weekdays'])) - return $this->_next_crontab_weekday($from); - } - else - { - // Both Day of Week and Day of Month are restricted - if ( ! in_array($from['mday'], $this->_period['monthdays']) AND ! in_array($from['wday'], $this->_period['weekdays'])) - return $this->_next_crontab_day($from); - } - - if ( ! in_array($from['hours'], $this->_period['hours'])) - return $this->_next_crontab_hour($from); - - return $this->_next_crontab_minute($from); - } - - /** - * Calculates the first timestamp in the next day of this period when both - * Day of Week and Day of Month are restricted - * - * @uses _next_crontab_month() - * - * @param array Date array from getdate() - * @return integer Timestamp of next restricted Day - */ - protected function _next_crontab_day(array $from) - { - // Calculate effective Day of Month for next Day of Week - - if ($from['wday'] >= end($this->_period['weekdays'])) - { - $next = reset($this->_period['weekdays']) + 7; - } - else - { - foreach ($this->_period['weekdays'] as $next) - { - if ($from['wday'] < $next) - break; - } - } - - $monthday = $from['mday'] + $next - $from['wday']; - - if ($monthday <= (int) date('t', mktime(0, 0, 0, $from['mon'], 1, $from['year']))) - { - // Next Day of Week is in this Month - - if ($from['mday'] >= end($this->_period['monthdays'])) - { - // No next Day of Month, use next Day of Week - $from['mday'] = $monthday; - } - else - { - // Calculate next Day of Month - foreach ($this->_period['monthdays'] as $next) - { - if ($from['mday'] < $next) - break; - } - - // Use earliest day - $from['mday'] = min($monthday, $next); - } - } - else - { - if ($from['mday'] >= end($this->_period['monthdays'])) - { - // No next Day of Month, use next Month - return $this->_next_crontab_month($from); - } - - // Calculate next Day of Month - foreach ($this->_period['monthdays'] as $next) - { - if ($from['mday'] < $next) - break; - } - - // Use next Day of Month - $from['mday'] = $next; - } - - // Use first Hour and first Minute - return mktime(reset($this->_period['hours']), reset($this->_period['minutes']), 0, $from['mon'], $from['mday'], $from['year']); - } - - /** - * Calculates the first timestamp in the next hour of this period - * - * @uses _next_crontab_day() - * @uses _next_crontab_monthday() - * @uses _next_crontab_weekday() - * - * @param array Date array from getdate() - * @return integer Timestamp of next Hour - */ - protected function _next_crontab_hour(array $from) - { - if ($from['hours'] >= end($this->_period['hours'])) - { - // No next Hour - - if (count($this->_period['weekdays']) === 7) - { - // Day of Week is unrestricted, defer to Day of Month - return $this->_next_crontab_monthday($from); - } - - if (count($this->_period['monthdays']) === 31) - { - // Day of Month is unrestricted, use Day of Week - return $this->_next_crontab_weekday($from); - } - - // Both Day of Week and Day of Month are restricted - return $this->_next_crontab_day($from); - } - - // Calculate next Hour - foreach ($this->_period['hours'] as $next) - { - if ($from['hours'] < $next) - break; - } - - // Use next Hour and first Minute - return mktime($next, reset($this->_period['minutes']), 0, $from['mon'], $from['mday'], $from['year']); - } - - /** - * Calculates the timestamp of the next minute in this period - * - * @uses _next_crontab_hour() - * - * @param array Date array from getdate() - * @return integer Timestamp of next Minute - */ - protected function _next_crontab_minute(array $from) - { - if ($from['minutes'] >= end($this->_period['minutes'])) - { - // No next Minute, use next Hour - return $this->_next_crontab_hour($from); - } - - // Calculate next Minute - foreach ($this->_period['minutes'] as $next) - { - if ($from['minutes'] < $next) - break; - } - - // Use next Minute - return mktime($from['hours'], $next, 0, $from['mon'], $from['mday'], $from['year']); - } - - /** - * Calculates the first timestamp in the next month of this period - * - * @param array Date array from getdate() - * @return integer Timestamp of next Month - */ - protected function _next_crontab_month(array $from) - { - if ($from['mon'] >= end($this->_period['months'])) - { - // No next Month, increment Year and use first Month - ++$from['year']; - $from['mon'] = reset($this->_period['months']); - } - else - { - // Calculate next Month - foreach ($this->_period['months'] as $next) - { - if ($from['mon'] < $next) - break; - } - - // Use next Month - $from['mon'] = $next; - } - - if (count($this->_period['weekdays']) === 7) - { - // Day of Week is unrestricted, use first Day of Month - $from['mday'] = reset($this->_period['monthdays']); - } - else - { - // Calculate Day of Month for the first Day of Week - $indices = array_flip($this->_period['weekdays']); - - $monthday = 1; - $weekday = (int) date('w', mktime(0, 0, 0, $from['mon'], 1, $from['year'])); - - while ( ! isset($indices[$weekday % 7]) AND $monthday < 7) - { - ++$monthday; - ++$weekday; - } - - if (count($this->_period['monthdays']) === 31) - { - // Day of Month is unrestricted, use first Day of Week - $from['mday'] = $monthday; - } - else - { - // Both Day of Month and Day of Week are restricted, use earliest one - $from['mday'] = min($monthday, reset($this->_period['monthdays'])); - } - } - - // Use first Hour and first Minute - return mktime(reset($this->_period['hours']), reset($this->_period['minutes']), 0, $from['mon'], $from['mday'], $from['year']); - } - - /** - * Calculates the first timestamp in the next day of this period when only - * Day of Month is restricted - * - * @uses _next_crontab_month() - * - * @param array Date array from getdate() - * @return integer Timestamp of next Day of Month - */ - protected function _next_crontab_monthday(array $from) - { - if ($from['mday'] >= end($this->_period['monthdays'])) - { - // No next Day of Month, use next Month - return $this->_next_crontab_month($from); - } - - // Calculate next Day of Month - foreach ($this->_period['monthdays'] as $next) - { - if ($from['mday'] < $next) - break; - } - - // Use next Day of Month, first Hour, and first Minute - return mktime(reset($this->_period['hours']), reset($this->_period['minutes']), 0, $from['mon'], $next, $from['year']); - } - - /** - * Calculates the first timestamp in the next day of this period when only - * Day of Week is restricted - * - * @uses _next_crontab_month() - * - * @param array Date array from getdate() - * @return integer Timestamp of next Day of Week - */ - protected function _next_crontab_weekday(array $from) - { - // Calculate effective Day of Month for next Day of Week - - if ($from['wday'] >= end($this->_period['weekdays'])) - { - $next = reset($this->_period['weekdays']) + 7; - } - else - { - foreach ($this->_period['weekdays'] as $next) - { - if ($from['wday'] < $next) - break; - } - } - - $monthday = $from['mday'] + $next - $from['wday']; - - if ($monthday > (int) date('t', mktime(0, 0, 0, $from['mon'], 1, $from['year']))) - { - // Next Day of Week is not in this Month, use next Month - return $this->_next_crontab_month($from); - } - - // Use next Day of Week, first Hour, and first Minute - return mktime(reset($this->_period['hours']), reset($this->_period['minutes']), 0, $from['mon'], $monthday, $from['year']); - } - - /** - * Returns a sorted array of all the values indicated in a Crontab field - * @link http://linux.die.net/man/5/crontab - * - * @param string Crontab field - * @param integer Minimum value for this field - * @param integer Maximum value for this field - * @return array - */ - protected function _parse_crontab_field($value, $min, $max) - { - $result = array(); - - foreach (explode(',', $value) as $value) - { - if ($slash = strrpos($value, '/')) - { - $step = (int) substr($value, $slash + 1); - $value = substr($value, 0, $slash); - } - - if ($value === '*') - { - $result = array_merge($result, range($min, $max, $slash ? $step : 1)); - } - elseif ($dash = strpos($value, '-')) - { - $result = array_merge($result, range(max($min, (int) substr($value, 0, $dash)), min($max, (int) substr($value, $dash + 1)), $slash ? $step : 1)); - } - else - { - $value = (int) $value; - - if ($min <= $value AND $value <= $max) - { - $result[] = $value; - } - } - } - - sort($result); - - return array_unique($result); - } - -} diff --git a/includes/kohana/modules/cron/config/cron.php b/includes/kohana/modules/cron/config/cron.php deleted file mode 100644 index 80cd3d3e..00000000 --- a/includes/kohana/modules/cron/config/cron.php +++ /dev/null @@ -1,28 +0,0 @@ - Kohana::$cache_dir.DIRECTORY_SEPARATOR.'cron.lck', - - /** - * Cron does not run EXACTLY when tasks are scheduled. - * A task can be executed up to this many seconds AFTER its scheduled time. - * - * For example, Cron is run at 10:48 and a task was scheduled to execute at - * 10:45, 180 seconds ago. If window is greater than 180, the task will be - * executed. - * - * This value should always be larger than the time it takes to run all - * your tasks. - */ - 'window' => 300, -); diff --git a/includes/kohana/modules/cron/run.php b/includes/kohana/modules/cron/run.php deleted file mode 100644 index 6cafdbf8..00000000 --- a/includes/kohana/modules/cron/run.php +++ /dev/null @@ -1,22 +0,0 @@ -next($from); - - $this->assertSame($expected_result, $result); - } - - public function provider_next() - { - return array - ( - array('@annually', mktime(8, 45, 0, 11, 19, 2009), mktime(0, 0, 0, 1, 1, 2010)), - array('@monthly', mktime(8, 45, 0, 11, 19, 2009), mktime(0, 0, 0, 12, 1, 2009)), - array('@weekly', mktime(8, 45, 0, 11, 19, 2009), mktime(0, 0, 0, 11, 22, 2009)), - array('@daily', mktime(8, 45, 0, 11, 19, 2009), mktime(0, 0, 0, 11, 20, 2009)), - array('@hourly', mktime(8, 45, 0, 11, 19, 2009), mktime(9, 0, 0, 11, 19, 2009)), - - array('* * * * *', mktime(8, 45, 0, 11, 19, 2009), mktime(8, 46, 0, 11, 19, 2009)), - - array( - '* * * * 0', // Sundays - mktime(0, 0, 0, 11, 30, 2009), // Monday, Nov 30, 2009 - mktime(0, 0, 0, 12, 6, 2009) // Sunday, Dec 6, 2009 - ), - - array( - '* * 15 * 6', // 15th and Saturdays - mktime(0, 0, 0, 11, 29, 2009), // Sunday, Nov 29, 2009 - mktime(0, 0, 0, 12, 5, 2009) // Saturday, Dec 5, 2009 - ), - - array( - '* * * * 1,5', // Mondays and Fridays - mktime(0, 0, 0, 11, 24, 2009), // Tuesday, Nov 24, 2009 - mktime(0, 0, 0, 11, 27, 2009) // Friday, Nov 27, 2009 - ), - - array( - '* * 15 * 6-7', // 15th, Saturdays, and Sundays - mktime(0, 0, 0, 11, 23, 2009), // Monday, Nov 23, 2009 - mktime(0, 0, 0, 11, 28, 2009) // Saturday, Nov 28, 2009 - ), - - array( - '* * 15,30 * 2', // 15th, 30th, and Tuesdays - mktime(0, 0, 0, 11, 29, 2009), // Sunday, Nov 29, 2009 - mktime(0, 0, 0, 11, 30, 2009) // Monday, Nov 30, 2009 - ), - - array( - '0 0 * * 4', // Midnight on Thursdays - mktime(1, 0, 0, 11, 19, 2009), // 01:00 Thursday, Nov 19, 2009 - mktime(0, 0, 0, 11, 26, 2009) // 00:00 Thursday, Nov 26, 2009 - ), - - array( - '0 0 */2 * 4', // Midnight on odd days and Thursdays - mktime(1, 0, 0, 11, 19, 2009), // 01:00 Thursday, Nov 19, 2009 - mktime(0, 0, 0, 11, 21, 2009) // 00:00 Saturday, Nov 21, 2009 - ), - ); - } -} diff --git a/includes/kohana/modules/database/classes/Config/Database.php b/includes/kohana/modules/database/classes/Config/Database.php deleted file mode 100644 index 7acb31bf..00000000 --- a/includes/kohana/modules/database/classes/Config/Database.php +++ /dev/null @@ -1,12 +0,0 @@ -_db_instance = $config['instance']; - } - elseif ($this->_db_instance === NULL) - { - $this->_db_instance = Database::$default; - } - - if (isset($config['table_name'])) - { - $this->_table_name = $config['table_name']; - } - } - - /** - * Tries to load the specificed configuration group - * - * Returns FALSE if group does not exist or an array if it does - * - * @param string $group Configuration group - * @return boolean|array - */ - public function load($group) - { - /** - * Prevents the catch-22 scenario where the database config reader attempts to load the - * database connections details from the database. - * - * @link http://dev.kohanaframework.org/issues/4316 - */ - if ($group === 'database') - return FALSE; - - $query = DB::select('config_key', 'config_value') - ->from($this->_table_name) - ->where('group_name', '=', $group) - ->execute($this->_db_instance); - - return count($query) ? array_map('unserialize', $query->as_array('config_key', 'config_value')) : FALSE; - } -} diff --git a/includes/kohana/modules/database/classes/Kohana/Config/Database/Writer.php b/includes/kohana/modules/database/classes/Kohana/Config/Database/Writer.php deleted file mode 100644 index f6b67380..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Config/Database/Writer.php +++ /dev/null @@ -1,110 +0,0 @@ -_loaded_keys[$group] = array_combine(array_keys($config), array_keys($config)); - } - - return $config; - } - - /** - * Writes the passed config for $group - * - * Returns chainable instance on success or throws - * Kohana_Config_Exception on failure - * - * @param string $group The config group - * @param string $key The config key to write to - * @param array $config The configuration to write - * @return boolean - */ - public function write($group, $key, $config) - { - $config = serialize($config); - - // Check to see if we've loaded the config from the table already - if (isset($this->_loaded_keys[$group][$key])) - { - $this->_update($group, $key, $config); - } - else - { - // Attempt to run an insert query - // This may fail if the config key already exists in the table - // and we don't know about it - try - { - $this->_insert($group, $key, $config); - } - catch (Database_Exception $e) - { - // Attempt to run an update instead - $this->_update($group, $key, $config); - } - } - - return TRUE; - } - - /** - * Insert the config values into the table - * - * @param string $group The config group - * @param string $key The config key to write to - * @param array $config The serialized configuration to write - * @return boolean - */ - protected function _insert($group, $key, $config) - { - DB::insert($this->_table_name, array('group_name', 'config_key', 'config_value')) - ->values(array($group, $key, $config)) - ->execute($this->_db_instance); - - return $this; - } - - /** - * Update the config values in the table - * - * @param string $group The config group - * @param string $key The config key to write to - * @param array $config The serialized configuration to write - * @return boolean - */ - protected function _update($group, $key, $config) - { - DB::update($this->_table_name) - ->set(array('config_value' => $config)) - ->where('group_name', '=', $group) - ->where('config_key', '=', $key) - ->execute($this->_db_instance); - - return $this; - } -} diff --git a/includes/kohana/modules/database/classes/Kohana/DB.php b/includes/kohana/modules/database/classes/Kohana/DB.php deleted file mode 100644 index 77388a99..00000000 --- a/includes/kohana/modules/database/classes/Kohana/DB.php +++ /dev/null @@ -1,139 +0,0 @@ -[`DB::select_array()`](#select_array) | [Database_Query_Builder_Select] - * [`DB::update()`](#update) | [Database_Query_Builder_Update] - * [`DB::delete()`](#delete) | [Database_Query_Builder_Delete] - * [`DB::expr()`](#expr) | [Database_Expression] - * - * You pass the same parameters to these functions as you pass to the objects they return. - * - * @package Kohana/Database - * @category Base - * @author Kohana Team - * @copyright (c) 2009 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_DB { - - /** - * Create a new [Database_Query] of the given type. - * - * // Create a new SELECT query - * $query = DB::query(Database::SELECT, 'SELECT * FROM users'); - * - * // Create a new DELETE query - * $query = DB::query(Database::DELETE, 'DELETE FROM users WHERE id = 5'); - * - * Specifying the type changes the returned result. When using - * `Database::SELECT`, a [Database_Query_Result] will be returned. - * `Database::INSERT` queries will return the insert id and number of rows. - * For all other queries, the number of affected rows is returned. - * - * @param integer $type type: Database::SELECT, Database::UPDATE, etc - * @param string $sql SQL statement - * @return Database_Query - */ - public static function query($type, $sql) - { - return new Database_Query($type, $sql); - } - - /** - * Create a new [Database_Query_Builder_Select]. Each argument will be - * treated as a column. To generate a `foo AS bar` alias, use an array. - * - * // SELECT id, username - * $query = DB::select('id', 'username'); - * - * // SELECT id AS user_id - * $query = DB::select(array('id', 'user_id')); - * - * @param mixed $columns column name or array($column, $alias) or object - * @return Database_Query_Builder_Select - */ - public static function select($columns = NULL) - { - return new Database_Query_Builder_Select(func_get_args()); - } - - /** - * Create a new [Database_Query_Builder_Select] from an array of columns. - * - * // SELECT id, username - * $query = DB::select_array(array('id', 'username')); - * - * @param array $columns columns to select - * @return Database_Query_Builder_Select - */ - public static function select_array(array $columns = NULL) - { - return new Database_Query_Builder_Select($columns); - } - - /** - * Create a new [Database_Query_Builder_Insert]. - * - * // INSERT INTO users (id, username) - * $query = DB::insert('users', array('id', 'username')); - * - * @param string $table table to insert into - * @param array $columns list of column names or array($column, $alias) or object - * @return Database_Query_Builder_Insert - */ - public static function insert($table = NULL, array $columns = NULL) - { - return new Database_Query_Builder_Insert($table, $columns); - } - - /** - * Create a new [Database_Query_Builder_Update]. - * - * // UPDATE users - * $query = DB::update('users'); - * - * @param string $table table to update - * @return Database_Query_Builder_Update - */ - public static function update($table = NULL) - { - return new Database_Query_Builder_Update($table); - } - - /** - * Create a new [Database_Query_Builder_Delete]. - * - * // DELETE FROM users - * $query = DB::delete('users'); - * - * @param string $table table to delete from - * @return Database_Query_Builder_Delete - */ - public static function delete($table = NULL) - { - return new Database_Query_Builder_Delete($table); - } - - /** - * Create a new [Database_Expression] which is not escaped. An expression - * is the only way to use SQL functions within query builders. - * - * $expression = DB::expr('COUNT(users.id)'); - * $query = DB::update('users')->set(array('login_count' => DB::expr('login_count + 1')))->where('id', '=', $id); - * $users = ORM::factory('user')->where(DB::expr("BINARY `hash`"), '=', $hash)->find(); - * - * @param string $string expression - * @param array parameters - * @return Database_Expression - */ - public static function expr($string, $parameters = array()) - { - return new Database_Expression($string, $parameters); - } - -} // End DB diff --git a/includes/kohana/modules/database/classes/Kohana/Database.php b/includes/kohana/modules/database/classes/Kohana/Database.php deleted file mode 100644 index 267d938c..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database.php +++ /dev/null @@ -1,726 +0,0 @@ -load('database')->$name; - } - - if ( ! isset($config['type'])) - { - throw new Kohana_Exception('Database type not defined in :name configuration', - array(':name' => $name)); - } - - // Set the driver class name - $driver = 'Database_'.ucfirst($config['type']); - - // Create the database connection instance - $driver = new $driver($name, $config); - - // Store the database instance - Database::$instances[$name] = $driver; - } - - return Database::$instances[$name]; - } - - /** - * @var string the last query executed - */ - public $last_query; - - // Character that is used to quote identifiers - protected $_identifier = '"'; - - // Instance name - protected $_instance; - - // Raw server connection - protected $_connection; - - // Configuration array - protected $_config; - - /** - * Stores the database configuration locally and name the instance. - * - * [!!] This method cannot be accessed directly, you must use [Database::instance]. - * - * @return void - */ - public function __construct($name, array $config) - { - // Set the instance name - $this->_instance = $name; - - // Store the config locally - $this->_config = $config; - - if (empty($this->_config['table_prefix'])) - { - $this->_config['table_prefix'] = ''; - } - } - - /** - * Disconnect from the database when the object is destroyed. - * - * // Destroy the database instance - * unset(Database::instances[(string) $db], $db); - * - * [!!] Calling `unset($db)` is not enough to destroy the database, as it - * will still be stored in `Database::$instances`. - * - * @return void - */ - public function __destruct() - { - $this->disconnect(); - } - - /** - * Returns the database instance name. - * - * echo (string) $db; - * - * @return string - */ - public function __toString() - { - return $this->_instance; - } - - /** - * Connect to the database. This is called automatically when the first - * query is executed. - * - * $db->connect(); - * - * @throws Database_Exception - * @return void - */ - abstract public function connect(); - - /** - * Disconnect from the database. This is called automatically by [Database::__destruct]. - * Clears the database instance from [Database::$instances]. - * - * $db->disconnect(); - * - * @return boolean - */ - public function disconnect() - { - unset(Database::$instances[$this->_instance]); - - return TRUE; - } - - /** - * Set the connection character set. This is called automatically by [Database::connect]. - * - * $db->set_charset('utf8'); - * - * @throws Database_Exception - * @param string $charset character set name - * @return void - */ - abstract public function set_charset($charset); - - /** - * Perform an SQL query of the given type. - * - * // Make a SELECT query and use objects for results - * $db->query(Database::SELECT, 'SELECT * FROM groups', TRUE); - * - * // Make a SELECT query and use "Model_User" for the results - * $db->query(Database::SELECT, 'SELECT * FROM users LIMIT 1', 'Model_User'); - * - * @param integer $type Database::SELECT, Database::INSERT, etc - * @param string $sql SQL query - * @param mixed $as_object result object class string, TRUE for stdClass, FALSE for assoc array - * @param array $params object construct parameters for result class - * @return object Database_Result for SELECT queries - * @return array list (insert id, row count) for INSERT queries - * @return integer number of affected rows for all other queries - */ - abstract public function query($type, $sql, $as_object = FALSE, array $params = NULL); - - /** - * Start a SQL transaction - * - * // Start the transactions - * $db->begin(); - * - * try { - * DB::insert('users')->values($user1)... - * DB::insert('users')->values($user2)... - * // Insert successful commit the changes - * $db->commit(); - * } - * catch (Database_Exception $e) - * { - * // Insert failed. Rolling back changes... - * $db->rollback(); - * } - * - * @param string $mode transaction mode - * @return boolean - */ - abstract public function begin($mode = NULL); - - /** - * Commit the current transaction - * - * // Commit the database changes - * $db->commit(); - * - * @return boolean - */ - abstract public function commit(); - - /** - * Abort the current transaction - * - * // Undo the changes - * $db->rollback(); - * - * @return boolean - */ - abstract public function rollback(); - - /** - * Count the number of records in a table. - * - * // Get the total number of records in the "users" table - * $count = $db->count_records('users'); - * - * @param mixed $table table name string or array(query, alias) - * @return integer - */ - public function count_records($table) - { - // Quote the table name - $table = $this->quote_table($table); - - return $this->query(Database::SELECT, 'SELECT COUNT(*) AS total_row_count FROM '.$table, FALSE) - ->get('total_row_count'); - } - - /** - * Returns a normalized array describing the SQL data type - * - * $db->datatype('char'); - * - * @param string $type SQL data type - * @return array - */ - public function datatype($type) - { - static $types = array - ( - // SQL-92 - 'bit' => array('type' => 'string', 'exact' => TRUE), - 'bit varying' => array('type' => 'string'), - 'char' => array('type' => 'string', 'exact' => TRUE), - 'char varying' => array('type' => 'string'), - 'character' => array('type' => 'string', 'exact' => TRUE), - 'character varying' => array('type' => 'string'), - 'date' => array('type' => 'string'), - 'dec' => array('type' => 'float', 'exact' => TRUE), - 'decimal' => array('type' => 'float', 'exact' => TRUE), - 'double precision' => array('type' => 'float'), - 'float' => array('type' => 'float'), - 'int' => array('type' => 'int', 'min' => '-2147483648', 'max' => '2147483647'), - 'integer' => array('type' => 'int', 'min' => '-2147483648', 'max' => '2147483647'), - 'interval' => array('type' => 'string'), - 'national char' => array('type' => 'string', 'exact' => TRUE), - 'national char varying' => array('type' => 'string'), - 'national character' => array('type' => 'string', 'exact' => TRUE), - 'national character varying' => array('type' => 'string'), - 'nchar' => array('type' => 'string', 'exact' => TRUE), - 'nchar varying' => array('type' => 'string'), - 'numeric' => array('type' => 'float', 'exact' => TRUE), - 'real' => array('type' => 'float'), - 'smallint' => array('type' => 'int', 'min' => '-32768', 'max' => '32767'), - 'time' => array('type' => 'string'), - 'time with time zone' => array('type' => 'string'), - 'timestamp' => array('type' => 'string'), - 'timestamp with time zone' => array('type' => 'string'), - 'varchar' => array('type' => 'string'), - - // SQL:1999 - 'binary large object' => array('type' => 'string', 'binary' => TRUE), - 'blob' => array('type' => 'string', 'binary' => TRUE), - 'boolean' => array('type' => 'bool'), - 'char large object' => array('type' => 'string'), - 'character large object' => array('type' => 'string'), - 'clob' => array('type' => 'string'), - 'national character large object' => array('type' => 'string'), - 'nchar large object' => array('type' => 'string'), - 'nclob' => array('type' => 'string'), - 'time without time zone' => array('type' => 'string'), - 'timestamp without time zone' => array('type' => 'string'), - - // SQL:2003 - 'bigint' => array('type' => 'int', 'min' => '-9223372036854775808', 'max' => '9223372036854775807'), - - // SQL:2008 - 'binary' => array('type' => 'string', 'binary' => TRUE, 'exact' => TRUE), - 'binary varying' => array('type' => 'string', 'binary' => TRUE), - 'varbinary' => array('type' => 'string', 'binary' => TRUE), - ); - - if (isset($types[$type])) - return $types[$type]; - - return array(); - } - - /** - * List all of the tables in the database. Optionally, a LIKE string can - * be used to search for specific tables. - * - * // Get all tables in the current database - * $tables = $db->list_tables(); - * - * // Get all user-related tables - * $tables = $db->list_tables('user%'); - * - * @param string $like table to search for - * @return array - */ - abstract public function list_tables($like = NULL); - - /** - * Lists all of the columns in a table. Optionally, a LIKE string can be - * used to search for specific fields. - * - * // Get all columns from the "users" table - * $columns = $db->list_columns('users'); - * - * // Get all name-related columns - * $columns = $db->list_columns('users', '%name%'); - * - * // Get the columns from a table that doesn't use the table prefix - * $columns = $db->list_columns('users', NULL, FALSE); - * - * @param string $table table to get columns from - * @param string $like column to search for - * @param boolean $add_prefix whether to add the table prefix automatically or not - * @return array - */ - abstract public function list_columns($table, $like = NULL, $add_prefix = TRUE); - - /** - * Extracts the text between parentheses, if any. - * - * // Returns: array('CHAR', '6') - * list($type, $length) = $db->_parse_type('CHAR(6)'); - * - * @param string $type - * @return array list containing the type and length, if any - */ - protected function _parse_type($type) - { - if (($open = strpos($type, '(')) === FALSE) - { - // No length specified - return array($type, NULL); - } - - // Closing parenthesis - $close = strrpos($type, ')', $open); - - // Length without parentheses - $length = substr($type, $open + 1, $close - 1 - $open); - - // Type without the length - $type = substr($type, 0, $open).substr($type, $close + 1); - - return array($type, $length); - } - - /** - * Return the table prefix defined in the current configuration. - * - * $prefix = $db->table_prefix(); - * - * @return string - */ - public function table_prefix() - { - return $this->_config['table_prefix']; - } - - /** - * Quote a value for an SQL query. - * - * $db->quote(NULL); // 'NULL' - * $db->quote(10); // 10 - * $db->quote('fred'); // 'fred' - * - * Objects passed to this function will be converted to strings. - * [Database_Expression] objects will be compiled. - * [Database_Query] objects will be compiled and converted to a sub-query. - * All other objects will be converted using the `__toString` method. - * - * @param mixed $value any value to quote - * @return string - * @uses Database::escape - */ - public function quote($value) - { - if ($value === NULL) - { - return 'NULL'; - } - elseif ($value === TRUE) - { - return "'1'"; - } - elseif ($value === FALSE) - { - return "'0'"; - } - elseif (is_object($value)) - { - if ($value instanceof Database_Query) - { - // Create a sub-query - return '('.$value->compile($this).')'; - } - elseif ($value instanceof Database_Expression) - { - // Compile the expression - return $value->compile($this); - } - else - { - // Convert the object to a string - return $this->quote( (string) $value); - } - } - elseif (is_array($value)) - { - return '('.implode(', ', array_map(array($this, __FUNCTION__), $value)).')'; - } - elseif (is_int($value)) - { - return (int) $value; - } - elseif (is_float($value)) - { - // Convert to non-locale aware float to prevent possible commas - return sprintf('%F', $value); - } - - return $this->escape($value); - } - - /** - * Quote a database column name and add the table prefix if needed. - * - * $column = $db->quote_column($column); - * - * You can also use SQL methods within identifiers. - * - * $column = $db->quote_column(DB::expr('COUNT(`column`)')); - * - * Objects passed to this function will be converted to strings. - * [Database_Expression] objects will be compiled. - * [Database_Query] objects will be compiled and converted to a sub-query. - * All other objects will be converted using the `__toString` method. - * - * @param mixed $column column name or array(column, alias) - * @return string - * @uses Database::quote_identifier - * @uses Database::table_prefix - */ - public function quote_column($column) - { - // Identifiers are escaped by repeating them - $escaped_identifier = $this->_identifier.$this->_identifier; - - if (is_array($column)) - { - list($column, $alias) = $column; - $alias = str_replace($this->_identifier, $escaped_identifier, $alias); - } - - if ($column instanceof Database_Query) - { - // Create a sub-query - $column = '('.$column->compile($this).')'; - } - elseif ($column instanceof Database_Expression) - { - // Compile the expression - $column = $column->compile($this); - } - else - { - // Convert to a string - $column = (string) $column; - - $column = str_replace($this->_identifier, $escaped_identifier, $column); - - if ($column === '*') - { - return $column; - } - elseif (strpos($column, '.') !== FALSE) - { - $parts = explode('.', $column); - - if ($prefix = $this->table_prefix()) - { - // Get the offset of the table name, 2nd-to-last part - $offset = count($parts) - 2; - - // Add the table prefix to the table name - $parts[$offset] = $prefix.$parts[$offset]; - } - - foreach ($parts as & $part) - { - if ($part !== '*') - { - // Quote each of the parts - $part = $this->_identifier.$part.$this->_identifier; - } - } - - $column = implode('.', $parts); - } - else - { - $column = $this->_identifier.$column.$this->_identifier; - } - } - - if (isset($alias)) - { - $column .= ' AS '.$this->_identifier.$alias.$this->_identifier; - } - - return $column; - } - - /** - * Quote a database table name and adds the table prefix if needed. - * - * $table = $db->quote_table($table); - * - * Objects passed to this function will be converted to strings. - * [Database_Expression] objects will be compiled. - * [Database_Query] objects will be compiled and converted to a sub-query. - * All other objects will be converted using the `__toString` method. - * - * @param mixed $table table name or array(table, alias) - * @return string - * @uses Database::quote_identifier - * @uses Database::table_prefix - */ - public function quote_table($table) - { - // Identifiers are escaped by repeating them - $escaped_identifier = $this->_identifier.$this->_identifier; - - if (is_array($table)) - { - list($table, $alias) = $table; - $alias = str_replace($this->_identifier, $escaped_identifier, $alias); - } - - if ($table instanceof Database_Query) - { - // Create a sub-query - $table = '('.$table->compile($this).')'; - } - elseif ($table instanceof Database_Expression) - { - // Compile the expression - $table = $table->compile($this); - } - else - { - // Convert to a string - $table = (string) $table; - - $table = str_replace($this->_identifier, $escaped_identifier, $table); - - if (strpos($table, '.') !== FALSE) - { - $parts = explode('.', $table); - - if ($prefix = $this->table_prefix()) - { - // Get the offset of the table name, last part - $offset = count($parts) - 1; - - // Add the table prefix to the table name - $parts[$offset] = $prefix.$parts[$offset]; - } - - foreach ($parts as & $part) - { - // Quote each of the parts - $part = $this->_identifier.$part.$this->_identifier; - } - - $table = implode('.', $parts); - } - else - { - // Add the table prefix - $table = $this->_identifier.$this->table_prefix().$table.$this->_identifier; - } - } - - if (isset($alias)) - { - // Attach table prefix to alias - $table .= ' AS '.$this->_identifier.$this->table_prefix().$alias.$this->_identifier; - } - - return $table; - } - - /** - * Quote a database identifier - * - * Objects passed to this function will be converted to strings. - * [Database_Expression] objects will be compiled. - * [Database_Query] objects will be compiled and converted to a sub-query. - * All other objects will be converted using the `__toString` method. - * - * @param mixed $value any identifier - * @return string - */ - public function quote_identifier($value) - { - // Identifiers are escaped by repeating them - $escaped_identifier = $this->_identifier.$this->_identifier; - - if (is_array($value)) - { - list($value, $alias) = $value; - $alias = str_replace($this->_identifier, $escaped_identifier, $alias); - } - - if ($value instanceof Database_Query) - { - // Create a sub-query - $value = '('.$value->compile($this).')'; - } - elseif ($value instanceof Database_Expression) - { - // Compile the expression - $value = $value->compile($this); - } - else - { - // Convert to a string - $value = (string) $value; - - $value = str_replace($this->_identifier, $escaped_identifier, $value); - - if (strpos($value, '.') !== FALSE) - { - $parts = explode('.', $value); - - foreach ($parts as & $part) - { - // Quote each of the parts - $part = $this->_identifier.$part.$this->_identifier; - } - - $value = implode('.', $parts); - } - else - { - $value = $this->_identifier.$value.$this->_identifier; - } - } - - if (isset($alias)) - { - $value .= ' AS '.$this->_identifier.$alias.$this->_identifier; - } - - return $value; - } - - /** - * Sanitize a string by escaping characters that could cause an SQL - * injection attack. - * - * $value = $db->escape('any string'); - * - * @param string $value value to quote - * @return string - */ - abstract public function escape($value); - -} // End Database_Connection diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Exception.php b/includes/kohana/modules/database/classes/Kohana/Database/Exception.php deleted file mode 100644 index 68f709e0..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Exception.php +++ /dev/null @@ -1,11 +0,0 @@ -_value = $value; - $this->_parameters = $parameters; - } - - /** - * Bind a variable to a parameter. - * - * @param string $param parameter key to replace - * @param mixed $var variable to use - * @return $this - */ - public function bind($param, & $var) - { - $this->_parameters[$param] =& $var; - - return $this; - } - - /** - * Set the value of a parameter. - * - * @param string $param parameter key to replace - * @param mixed $value value to use - * @return $this - */ - public function param($param, $value) - { - $this->_parameters[$param] = $value; - - return $this; - } - - /** - * Add multiple parameter values. - * - * @param array $params list of parameter values - * @return $this - */ - public function parameters(array $params) - { - $this->_parameters = $params + $this->_parameters; - - return $this; - } - - /** - * Get the expression value as a string. - * - * $sql = $expression->value(); - * - * @return string - */ - public function value() - { - return (string) $this->_value; - } - - /** - * Return the value of the expression as a string. - * - * echo $expression; - * - * @return string - * @uses Database_Expression::value - */ - public function __toString() - { - return $this->value(); - } - - /** - * Compile the SQL expression and return it. Replaces any parameters with - * their given values. - * - * @param mixed Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - $value = $this->value(); - - if ( ! empty($this->_parameters)) - { - // Quote all of the parameter values - $params = array_map(array($db, 'quote'), $this->_parameters); - - // Replace the values in the expression - $value = strtr($value, $params); - } - - return $value; - } - -} // End Database_Expression diff --git a/includes/kohana/modules/database/classes/Kohana/Database/MySQL.php b/includes/kohana/modules/database/classes/Kohana/Database/MySQL.php deleted file mode 100644 index 8700904e..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/MySQL.php +++ /dev/null @@ -1,443 +0,0 @@ -_connection) - return; - - if (Database_MySQL::$_set_names === NULL) - { - // Determine if we can use mysql_set_charset(), which is only - // available on PHP 5.2.3+ when compiled against MySQL 5.0+ - Database_MySQL::$_set_names = ! function_exists('mysql_set_charset'); - } - - // Extract the connection parameters, adding required variabels - extract($this->_config['connection'] + array( - 'database' => '', - 'hostname' => '', - 'username' => '', - 'password' => '', - 'persistent' => FALSE, - )); - - // Prevent this information from showing up in traces - unset($this->_config['connection']['username'], $this->_config['connection']['password']); - - try - { - if ($persistent) - { - // Create a persistent connection - $this->_connection = mysql_pconnect($hostname, $username, $password); - } - else - { - // Create a connection and force it to be a new link - $this->_connection = mysql_connect($hostname, $username, $password, TRUE); - } - } - catch (Exception $e) - { - // No connection exists - $this->_connection = NULL; - - throw new Database_Exception(':error', - array(':error' => $e->getMessage()), - $e->getCode()); - } - - // \xFF is a better delimiter, but the PHP driver uses underscore - $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password); - - $this->_select_db($database); - - if ( ! empty($this->_config['charset'])) - { - // Set the character set - $this->set_charset($this->_config['charset']); - } - - if ( ! empty($this->_config['connection']['variables'])) - { - // Set session variables - $variables = array(); - - foreach ($this->_config['connection']['variables'] as $var => $val) - { - $variables[] = 'SESSION '.$var.' = '.$this->quote($val); - } - - mysql_query('SET '.implode(', ', $variables), $this->_connection); - } - } - - /** - * Select the database - * - * @param string $database Database - * @return void - */ - protected function _select_db($database) - { - if ( ! mysql_select_db($database, $this->_connection)) - { - // Unable to select database - throw new Database_Exception(':error', - array(':error' => mysql_error($this->_connection)), - mysql_errno($this->_connection)); - } - - Database_MySQL::$_current_databases[$this->_connection_id] = $database; - } - - public function disconnect() - { - try - { - // Database is assumed disconnected - $status = TRUE; - - if (is_resource($this->_connection)) - { - if ($status = mysql_close($this->_connection)) - { - // Clear the connection - $this->_connection = NULL; - - // Clear the instance - parent::disconnect(); - } - } - } - catch (Exception $e) - { - // Database is probably not disconnected - $status = ! is_resource($this->_connection); - } - - return $status; - } - - public function set_charset($charset) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - if (Database_MySQL::$_set_names === TRUE) - { - // PHP is compiled against MySQL 4.x - $status = (bool) mysql_query('SET NAMES '.$this->quote($charset), $this->_connection); - } - else - { - // PHP is compiled against MySQL 5.x - $status = mysql_set_charset($charset, $this->_connection); - } - - if ($status === FALSE) - { - throw new Database_Exception(':error', - array(':error' => mysql_error($this->_connection)), - mysql_errno($this->_connection)); - } - } - - public function query($type, $sql, $as_object = FALSE, array $params = NULL) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - if (Kohana::$profiling) - { - // Benchmark this query for the current instance - $benchmark = Profiler::start("Database ({$this->_instance})", $sql); - } - - if ( ! empty($this->_config['connection']['persistent']) AND $this->_config['connection']['database'] !== Database_MySQL::$_current_databases[$this->_connection_id]) - { - // Select database on persistent connections - $this->_select_db($this->_config['connection']['database']); - } - - // Execute the query - if (($result = mysql_query($sql, $this->_connection)) === FALSE) - { - if (isset($benchmark)) - { - // This benchmark is worthless - Profiler::delete($benchmark); - } - - throw new Database_Exception(':error [ :query ]', - array(':error' => mysql_error($this->_connection), ':query' => $sql), - mysql_errno($this->_connection)); - } - - if (isset($benchmark)) - { - Profiler::stop($benchmark); - } - - // Set the last query - $this->last_query = $sql; - - if ($type === Database::SELECT) - { - // Return an iterator of results - return new Database_MySQL_Result($result, $sql, $as_object, $params); - } - elseif ($type === Database::INSERT) - { - // Return a list of insert id and rows created - return array( - mysql_insert_id($this->_connection), - mysql_affected_rows($this->_connection), - ); - } - else - { - // Return the number of rows affected - return mysql_affected_rows($this->_connection); - } - } - - public function datatype($type) - { - static $types = array - ( - 'blob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '65535'), - 'bool' => array('type' => 'bool'), - 'bigint unsigned' => array('type' => 'int', 'min' => '0', 'max' => '18446744073709551615'), - 'datetime' => array('type' => 'string'), - 'decimal unsigned' => array('type' => 'float', 'exact' => TRUE, 'min' => '0'), - 'double' => array('type' => 'float'), - 'double precision unsigned' => array('type' => 'float', 'min' => '0'), - 'double unsigned' => array('type' => 'float', 'min' => '0'), - 'enum' => array('type' => 'string'), - 'fixed' => array('type' => 'float', 'exact' => TRUE), - 'fixed unsigned' => array('type' => 'float', 'exact' => TRUE, 'min' => '0'), - 'float unsigned' => array('type' => 'float', 'min' => '0'), - 'int unsigned' => array('type' => 'int', 'min' => '0', 'max' => '4294967295'), - 'integer unsigned' => array('type' => 'int', 'min' => '0', 'max' => '4294967295'), - 'longblob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '4294967295'), - 'longtext' => array('type' => 'string', 'character_maximum_length' => '4294967295'), - 'mediumblob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '16777215'), - 'mediumint' => array('type' => 'int', 'min' => '-8388608', 'max' => '8388607'), - 'mediumint unsigned' => array('type' => 'int', 'min' => '0', 'max' => '16777215'), - 'mediumtext' => array('type' => 'string', 'character_maximum_length' => '16777215'), - 'national varchar' => array('type' => 'string'), - 'numeric unsigned' => array('type' => 'float', 'exact' => TRUE, 'min' => '0'), - 'nvarchar' => array('type' => 'string'), - 'point' => array('type' => 'string', 'binary' => TRUE), - 'real unsigned' => array('type' => 'float', 'min' => '0'), - 'set' => array('type' => 'string'), - 'smallint unsigned' => array('type' => 'int', 'min' => '0', 'max' => '65535'), - 'text' => array('type' => 'string', 'character_maximum_length' => '65535'), - 'tinyblob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '255'), - 'tinyint' => array('type' => 'int', 'min' => '-128', 'max' => '127'), - 'tinyint unsigned' => array('type' => 'int', 'min' => '0', 'max' => '255'), - 'tinytext' => array('type' => 'string', 'character_maximum_length' => '255'), - 'year' => array('type' => 'string'), - ); - - $type = str_replace(' zerofill', '', $type); - - if (isset($types[$type])) - return $types[$type]; - - return parent::datatype($type); - } - - /** - * Start a SQL transaction - * - * @link http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html - * - * @param string $mode Isolation level - * @return boolean - */ - public function begin($mode = NULL) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - if ($mode AND ! mysql_query("SET TRANSACTION ISOLATION LEVEL $mode", $this->_connection)) - { - throw new Database_Exception(':error', - array(':error' => mysql_error($this->_connection)), - mysql_errno($this->_connection)); - } - - return (bool) mysql_query('START TRANSACTION', $this->_connection); - } - - /** - * Commit a SQL transaction - * - * @return boolean - */ - public function commit() - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return (bool) mysql_query('COMMIT', $this->_connection); - } - - /** - * Rollback a SQL transaction - * - * @return boolean - */ - public function rollback() - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return (bool) mysql_query('ROLLBACK', $this->_connection); - } - - public function list_tables($like = NULL) - { - if (is_string($like)) - { - // Search for table names - $result = $this->query(Database::SELECT, 'SHOW TABLES LIKE '.$this->quote($like), FALSE); - } - else - { - // Find all table names - $result = $this->query(Database::SELECT, 'SHOW TABLES', FALSE); - } - - $tables = array(); - foreach ($result as $row) - { - $tables[] = reset($row); - } - - return $tables; - } - - public function list_columns($table, $like = NULL, $add_prefix = TRUE) - { - // Quote the table name - $table = ($add_prefix === TRUE) ? $this->quote_table($table) : $table; - - if (is_string($like)) - { - // Search for column names - $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); - } - else - { - // Find all column names - $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); - } - - $count = 0; - $columns = array(); - foreach ($result as $row) - { - list($type, $length) = $this->_parse_type($row['Type']); - - $column = $this->datatype($type); - - $column['column_name'] = $row['Field']; - $column['column_default'] = $row['Default']; - $column['data_type'] = $type; - $column['is_nullable'] = ($row['Null'] == 'YES'); - $column['ordinal_position'] = ++$count; - - switch ($column['type']) - { - case 'float': - if (isset($length)) - { - list($column['numeric_precision'], $column['numeric_scale']) = explode(',', $length); - } - break; - case 'int': - if (isset($length)) - { - // MySQL attribute - $column['display'] = $length; - } - break; - case 'string': - switch ($column['data_type']) - { - case 'binary': - case 'varbinary': - $column['character_maximum_length'] = $length; - break; - case 'char': - case 'varchar': - $column['character_maximum_length'] = $length; - case 'text': - case 'tinytext': - case 'mediumtext': - case 'longtext': - $column['collation_name'] = $row['Collation']; - break; - case 'enum': - case 'set': - $column['collation_name'] = $row['Collation']; - $column['options'] = explode('\',\'', substr($length, 1, -1)); - break; - } - break; - } - - // MySQL attributes - $column['comment'] = $row['Comment']; - $column['extra'] = $row['Extra']; - $column['key'] = $row['Key']; - $column['privileges'] = $row['Privileges']; - - $columns[$row['Field']] = $column; - } - - return $columns; - } - - public function escape($value) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE) - { - throw new Database_Exception(':error', - array(':error' => mysql_error($this->_connection)), - mysql_errno($this->_connection)); - } - - // SQL standard is to use single-quotes for all values - return "'$value'"; - } - -} // End Database_MySQL diff --git a/includes/kohana/modules/database/classes/Kohana/Database/MySQL/Result.php b/includes/kohana/modules/database/classes/Kohana/Database/MySQL/Result.php deleted file mode 100644 index 22a5d143..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/MySQL/Result.php +++ /dev/null @@ -1,71 +0,0 @@ -_total_rows = mysql_num_rows($result); - } - - public function __destruct() - { - if (is_resource($this->_result)) - { - mysql_free_result($this->_result); - } - } - - public function seek($offset) - { - if ($this->offsetExists($offset) AND mysql_data_seek($this->_result, $offset)) - { - // Set the current row to the offset - $this->_current_row = $this->_internal_row = $offset; - - return TRUE; - } - else - { - return FALSE; - } - } - - public function current() - { - if ($this->_current_row !== $this->_internal_row AND ! $this->seek($this->_current_row)) - return NULL; - - // Increment internal row for optimization assuming rows are fetched in order - $this->_internal_row++; - - if ($this->_as_object === TRUE) - { - // Return an stdClass - return mysql_fetch_object($this->_result); - } - elseif (is_string($this->_as_object)) - { - // Return an object of given class name - return mysql_fetch_object($this->_result, $this->_as_object, $this->_object_params); - } - else - { - // Return an array of the row - return mysql_fetch_assoc($this->_result); - } - } - -} // End Database_MySQL_Result_Select diff --git a/includes/kohana/modules/database/classes/Kohana/Database/PDO.php b/includes/kohana/modules/database/classes/Kohana/Database/PDO.php deleted file mode 100644 index 573f8d30..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/PDO.php +++ /dev/null @@ -1,247 +0,0 @@ -_config['identifier'])) - { - // Allow the identifier to be overloaded per-connection - $this->_identifier = (string) $this->_config['identifier']; - } - } - - public function connect() - { - if ($this->_connection) - return; - - // Extract the connection parameters, adding required variabels - extract($this->_config['connection'] + array( - 'dsn' => '', - 'username' => NULL, - 'password' => NULL, - 'persistent' => FALSE, - )); - - // Clear the connection parameters for security - unset($this->_config['connection']); - - // Force PDO to use exceptions for all errors - $options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; - - if ( ! empty($persistent)) - { - // Make the connection persistent - $options[PDO::ATTR_PERSISTENT] = TRUE; - } - - try - { - // Create a new PDO connection - $this->_connection = new PDO($dsn, $username, $password, $options); - } - catch (PDOException $e) - { - throw new Database_Exception(':error', - array(':error' => $e->getMessage()), - $e->getCode()); - } - } - - /** - * Create or redefine a SQL aggregate function. - * - * [!!] Works only with SQLite - * - * @link http://php.net/manual/function.pdo-sqlitecreateaggregate - * - * @param string $name Name of the SQL function to be created or redefined - * @param callback $step Called for each row of a result set - * @param callback $final Called after all rows of a result set have been processed - * @param integer $arguments Number of arguments that the SQL function takes - * - * @return boolean - */ - public function create_aggregate($name, $step, $final, $arguments = -1) - { - $this->_connection or $this->connect(); - - return $this->_connection->sqliteCreateAggregate( - $name, $step, $final, $arguments - ); - } - - /** - * Create or redefine a SQL function. - * - * [!!] Works only with SQLite - * - * @link http://php.net/manual/function.pdo-sqlitecreatefunction - * - * @param string $name Name of the SQL function to be created or redefined - * @param callback $callback Callback which implements the SQL function - * @param integer $arguments Number of arguments that the SQL function takes - * - * @return boolean - */ - public function create_function($name, $callback, $arguments = -1) - { - $this->_connection or $this->connect(); - - return $this->_connection->sqliteCreateFunction( - $name, $callback, $arguments - ); - } - - public function disconnect() - { - // Destroy the PDO object - $this->_connection = NULL; - - return parent::disconnect(); - } - - public function set_charset($charset) - { - // Make sure the database is connected - $this->_connection OR $this->connect(); - - // This SQL-92 syntax is not supported by all drivers - $this->_connection->exec('SET NAMES '.$this->quote($charset)); - } - - public function query($type, $sql, $as_object = FALSE, array $params = NULL) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - if (Kohana::$profiling) - { - // Benchmark this query for the current instance - $benchmark = Profiler::start("Database ({$this->_instance})", $sql); - } - - try - { - $result = $this->_connection->query($sql); - } - catch (Exception $e) - { - if (isset($benchmark)) - { - // This benchmark is worthless - Profiler::delete($benchmark); - } - - // Convert the exception in a database exception - throw new Database_Exception(':error [ :query ]', - array( - ':error' => $e->getMessage(), - ':query' => $sql - ), - $e->getCode()); - } - - if (isset($benchmark)) - { - Profiler::stop($benchmark); - } - - // Set the last query - $this->last_query = $sql; - - if ($type === Database::SELECT) - { - // Convert the result into an array, as PDOStatement::rowCount is not reliable - if ($as_object === FALSE) - { - $result->setFetchMode(PDO::FETCH_ASSOC); - } - elseif (is_string($as_object)) - { - $result->setFetchMode(PDO::FETCH_CLASS, $as_object, $params); - } - else - { - $result->setFetchMode(PDO::FETCH_CLASS, 'stdClass'); - } - - $result = $result->fetchAll(); - - // Return an iterator of results - return new Database_Result_Cached($result, $sql, $as_object, $params); - } - elseif ($type === Database::INSERT) - { - // Return a list of insert id and rows created - return array( - $this->_connection->lastInsertId(), - $result->rowCount(), - ); - } - else - { - // Return the number of rows affected - return $result->rowCount(); - } - } - - public function begin($mode = NULL) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return $this->_connection->beginTransaction(); - } - - public function commit() - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return $this->_connection->commit(); - } - - public function rollback() - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return $this->_connection->rollBack(); - } - - public function list_tables($like = NULL) - { - throw new Kohana_Exception('Database method :method is not supported by :class', - array(':method' => __FUNCTION__, ':class' => __CLASS__)); - } - - public function list_columns($table, $like = NULL, $add_prefix = TRUE) - { - throw new Kohana_Exception('Database method :method is not supported by :class', - array(':method' => __FUNCTION__, ':class' => __CLASS__)); - } - - public function escape($value) - { - // Make sure the database is connected - $this->_connection or $this->connect(); - - return $this->_connection->quote($value); - } - -} // End Database_PDO diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query.php b/includes/kohana/modules/database/classes/Kohana/Database/Query.php deleted file mode 100644 index 480e41b8..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query.php +++ /dev/null @@ -1,262 +0,0 @@ -_type = $type; - $this->_sql = $sql; - } - - /** - * Return the SQL query string. - * - * @return string - */ - public function __toString() - { - try - { - // Return the SQL string - return $this->compile(Database::instance()); - } - catch (Exception $e) - { - return Kohana_Exception::text($e); - } - } - - /** - * Get the type of the query. - * - * @return integer - */ - public function type() - { - return $this->_type; - } - - /** - * Enables the query to be cached for a specified amount of time. - * - * @param integer $lifetime number of seconds to cache, 0 deletes it from the cache - * @param boolean whether or not to execute the query during a cache hit - * @return $this - * @uses Kohana::$cache_life - */ - public function cached($lifetime = NULL, $force = FALSE) - { - if ($lifetime === NULL) - { - // Use the global setting - $lifetime = Kohana::$cache_life; - } - - $this->_force_execute = $force; - $this->_lifetime = $lifetime; - - return $this; - } - - /** - * Returns results as associative arrays - * - * @return $this - */ - public function as_assoc() - { - $this->_as_object = FALSE; - - $this->_object_params = array(); - - return $this; - } - - /** - * Returns results as objects - * - * @param string $class classname or TRUE for stdClass - * @param array $params - * @return $this - */ - public function as_object($class = TRUE, array $params = NULL) - { - $this->_as_object = $class; - - if ($params) - { - // Add object parameters - $this->_object_params = $params; - } - - return $this; - } - - /** - * Set the value of a parameter in the query. - * - * @param string $param parameter key to replace - * @param mixed $value value to use - * @return $this - */ - public function param($param, $value) - { - // Add or overload a new parameter - $this->_parameters[$param] = $value; - - return $this; - } - - /** - * Bind a variable to a parameter in the query. - * - * @param string $param parameter key to replace - * @param mixed $var variable to use - * @return $this - */ - public function bind($param, & $var) - { - // Bind a value to a variable - $this->_parameters[$param] =& $var; - - return $this; - } - - /** - * Add multiple parameters to the query. - * - * @param array $params list of parameters - * @return $this - */ - public function parameters(array $params) - { - // Merge the new parameters in - $this->_parameters = $params + $this->_parameters; - - return $this; - } - - /** - * Compile the SQL query and return it. Replaces any parameters with their - * given values. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - // Import the SQL locally - $sql = $this->_sql; - - if ( ! empty($this->_parameters)) - { - // Quote all of the values - $values = array_map(array($db, 'quote'), $this->_parameters); - - // Replace the values in the SQL - $sql = strtr($sql, $values); - } - - return $sql; - } - - /** - * Execute the current query on the given database. - * - * @param mixed $db Database instance or name of instance - * @param string result object classname, TRUE for stdClass or FALSE for array - * @param array result object constructor arguments - * @return object Database_Result for SELECT queries - * @return mixed the insert id for INSERT queries - * @return integer number of affected rows for all other queries - */ - public function execute($db = NULL, $as_object = NULL, $object_params = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - if ($as_object === NULL) - { - $as_object = $this->_as_object; - } - - if ($object_params === NULL) - { - $object_params = $this->_object_params; - } - - // Compile the SQL query - $sql = $this->compile($db); - - if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) - { - // Set the cache key based on the database instance name and SQL - $cache_key = 'Database::query("'.$db.'", "'.$sql.'")'; - - // Read the cache first to delete a possible hit with lifetime <= 0 - if (($result = Kohana::cache($cache_key, NULL, $this->_lifetime)) !== NULL - AND ! $this->_force_execute) - { - // Return a cached result - return new Database_Result_Cached($result, $sql, $as_object, $object_params); - } - } - - // Execute the query - $result = $db->query($this->_type, $sql, $as_object, $object_params); - - if (isset($cache_key) AND $this->_lifetime > 0) - { - // Cache the result array - Kohana::cache($cache_key, $result->as_array(), $this->_lifetime); - } - - return $result; - } - -} // End Database_Query diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder.php deleted file mode 100644 index 3e1bdb50..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder.php +++ /dev/null @@ -1,248 +0,0 @@ -compile($db); - } - - return implode(' ', $statements); - } - - /** - * Compiles an array of conditions into an SQL partial. Used for WHERE - * and HAVING. - * - * @param object $db Database instance - * @param array $conditions condition statements - * @return string - */ - protected function _compile_conditions(Database $db, array $conditions) - { - $last_condition = NULL; - - $sql = ''; - foreach ($conditions as $group) - { - // Process groups of conditions - foreach ($group as $logic => $condition) - { - if ($condition === '(') - { - if ( ! empty($sql) AND $last_condition !== '(') - { - // Include logic operator - $sql .= ' '.$logic.' '; - } - - $sql .= '('; - } - elseif ($condition === ')') - { - $sql .= ')'; - } - else - { - if ( ! empty($sql) AND $last_condition !== '(') - { - // Add the logic operator - $sql .= ' '.$logic.' '; - } - - // Split the condition - list($column, $op, $value) = $condition; - - if ($value === NULL) - { - if ($op === '=') - { - // Convert "val = NULL" to "val IS NULL" - $op = 'IS'; - } - elseif ($op === '!=') - { - // Convert "val != NULL" to "valu IS NOT NULL" - $op = 'IS NOT'; - } - } - - // Database operators are always uppercase - $op = strtoupper($op); - - if ($op === 'BETWEEN' AND is_array($value)) - { - // BETWEEN always has exactly two arguments - list($min, $max) = $value; - - if ((is_string($min) AND array_key_exists($min, $this->_parameters)) === FALSE) - { - // Quote the value, it is not a parameter - $min = $db->quote($min); - } - - if ((is_string($max) AND array_key_exists($max, $this->_parameters)) === FALSE) - { - // Quote the value, it is not a parameter - $max = $db->quote($max); - } - - // Quote the min and max value - $value = $min.' AND '.$max; - } - elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) - { - // Quote the value, it is not a parameter - $value = $db->quote($value); - } - - if ($column) - { - if (is_array($column)) - { - // Use the column name - $column = $db->quote_identifier(reset($column)); - } - else - { - // Apply proper quoting to the column - $column = $db->quote_column($column); - } - } - - // Append the statement to the query - $sql .= trim($column.' '.$op.' '.$value); - } - - $last_condition = $condition; - } - } - - return $sql; - } - - /** - * Compiles an array of set values into an SQL partial. Used for UPDATE. - * - * @param object $db Database instance - * @param array $values updated values - * @return string - */ - protected function _compile_set(Database $db, array $values) - { - $set = array(); - foreach ($values as $group) - { - // Split the set - list ($column, $value) = $group; - - // Quote the column name - $column = $db->quote_column($column); - - if ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) - { - // Quote the value, it is not a parameter - $value = $db->quote($value); - } - - $set[$column] = $column.' = '.$value; - } - - return implode(', ', $set); - } - - /** - * Compiles an array of GROUP BY columns into an SQL partial. - * - * @param object $db Database instance - * @param array $columns - * @return string - */ - protected function _compile_group_by(Database $db, array $columns) - { - $group = array(); - - foreach ($columns as $column) - { - if (is_array($column)) - { - // Use the column alias - $column = $db->quote_identifier(end($column)); - } - else - { - // Apply proper quoting to the column - $column = $db->quote_column($column); - } - - $group[] = $column; - } - - return 'GROUP BY '.implode(', ', $group); - } - - /** - * Compiles an array of ORDER BY statements into an SQL partial. - * - * @param object $db Database instance - * @param array $columns sorting columns - * @return string - */ - protected function _compile_order_by(Database $db, array $columns) - { - $sort = array(); - foreach ($columns as $group) - { - list ($column, $direction) = $group; - - if (is_array($column)) - { - // Use the column alias - $column = $db->quote_identifier(end($column)); - } - else - { - // Apply proper quoting to the column - $column = $db->quote_column($column); - } - - if ($direction) - { - // Make the direction uppercase - $direction = ' '.strtoupper($direction); - } - - $sort[] = $column.$direction; - } - - return 'ORDER BY '.implode(', ', $sort); - } - - /** - * Reset the current builder status. - * - * @return $this - */ - abstract public function reset(); - -} // End Database_Query_Builder diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Delete.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Delete.php deleted file mode 100644 index 0bc47613..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Delete.php +++ /dev/null @@ -1,99 +0,0 @@ -_table = $table; - } - - // Start the query with no SQL - return parent::__construct(Database::DELETE, ''); - } - - /** - * Sets the table to delete from. - * - * @param mixed $table table name or array($table, $alias) or object - * @return $this - */ - public function table($table) - { - $this->_table = $table; - - return $this; - } - - /** - * Compile the SQL query and return it. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - // Start a deletion query - $query = 'DELETE FROM '.$db->quote_table($this->_table); - - if ( ! empty($this->_where)) - { - // Add deletion conditions - $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); - } - - if ( ! empty($this->_order_by)) - { - // Add sorting - $query .= ' '.$this->_compile_order_by($db, $this->_order_by); - } - - if ($this->_limit !== NULL) - { - // Add limiting - $query .= ' LIMIT '.$this->_limit; - } - - $this->_sql = $query; - - return parent::compile($db); - } - - public function reset() - { - $this->_table = NULL; - $this->_where = array(); - - $this->_parameters = array(); - - $this->_sql = NULL; - - return $this; - } - -} // End Database_Query_Builder_Delete diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Insert.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Insert.php deleted file mode 100644 index aa3c8073..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Insert.php +++ /dev/null @@ -1,181 +0,0 @@ -_table = $table; - } - - if ($columns) - { - // Set the column names - $this->_columns = $columns; - } - - // Start the query with no SQL - return parent::__construct(Database::INSERT, ''); - } - - /** - * Sets the table to insert into. - * - * @param mixed $table table name or array($table, $alias) or object - * @return $this - */ - public function table($table) - { - $this->_table = $table; - - return $this; - } - - /** - * Set the columns that will be inserted. - * - * @param array $columns column names - * @return $this - */ - public function columns(array $columns) - { - $this->_columns = $columns; - - return $this; - } - - /** - * Adds or overwrites values. Multiple value sets can be added. - * - * @param array $values values list - * @param ... - * @return $this - */ - public function values(array $values) - { - if ( ! is_array($this->_values)) - { - throw new Kohana_Exception('INSERT INTO ... SELECT statements cannot be combined with INSERT INTO ... VALUES'); - } - - // Get all of the passed values - $values = func_get_args(); - - $this->_values = array_merge($this->_values, $values); - - return $this; - } - - /** - * Use a sub-query to for the inserted values. - * - * @param object $query Database_Query of SELECT type - * @return $this - */ - public function select(Database_Query $query) - { - if ($query->type() !== Database::SELECT) - { - throw new Kohana_Exception('Only SELECT queries can be combined with INSERT queries'); - } - - $this->_values = $query; - - return $this; - } - - /** - * Compile the SQL query and return it. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - // Start an insertion query - $query = 'INSERT INTO '.$db->quote_table($this->_table); - - // Add the column names - $query .= ' ('.implode(', ', array_map(array($db, 'quote_column'), $this->_columns)).') '; - - if (is_array($this->_values)) - { - // Callback for quoting values - $quote = array($db, 'quote'); - - $groups = array(); - foreach ($this->_values as $group) - { - foreach ($group as $offset => $value) - { - if ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) - { - // Quote the value, it is not a parameter - $group[$offset] = $db->quote($value); - } - } - - $groups[] = '('.implode(', ', $group).')'; - } - - // Add the values - $query .= 'VALUES '.implode(', ', $groups); - } - else - { - // Add the sub-query - $query .= (string) $this->_values; - } - - $this->_sql = $query; - - return parent::compile($db);; - } - - public function reset() - { - $this->_table = NULL; - - $this->_columns = - $this->_values = array(); - - $this->_parameters = array(); - - $this->_sql = NULL; - - return $this; - } - -} // End Database_Query_Builder_Insert diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Join.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Join.php deleted file mode 100644 index 10402f66..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Join.php +++ /dev/null @@ -1,149 +0,0 @@ -_table = $table; - - if ($type !== NULL) - { - // Set the JOIN type - $this->_type = (string) $type; - } - } - - /** - * Adds a new condition for joining. - * - * @param mixed $c1 column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $c2 column name or array($column, $alias) or object - * @return $this - */ - public function on($c1, $op, $c2) - { - if ( ! empty($this->_using)) - { - throw new Kohana_Exception('JOIN ... ON ... cannot be combined with JOIN ... USING ...'); - } - - $this->_on[] = array($c1, $op, $c2); - - return $this; - } - - /** - * Adds a new condition for joining. - * - * @param string $columns column name - * @return $this - */ - public function using($columns) - { - if ( ! empty($this->_on)) - { - throw new Kohana_Exception('JOIN ... ON ... cannot be combined with JOIN ... USING ...'); - } - - $columns = func_get_args(); - - $this->_using = array_merge($this->_using, $columns); - - return $this; - } - - /** - * Compile the SQL partial for a JOIN statement and return it. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - if ($this->_type) - { - $sql = strtoupper($this->_type).' JOIN'; - } - else - { - $sql = 'JOIN'; - } - - // Quote the table name that is being joined - $sql .= ' '.$db->quote_table($this->_table); - - if ( ! empty($this->_using)) - { - // Quote and concat the columns - $sql .= ' USING ('.implode(', ', array_map(array($db, 'quote_column'), $this->_using)).')'; - } - else - { - $conditions = array(); - foreach ($this->_on as $condition) - { - // Split the condition - list($c1, $op, $c2) = $condition; - - if ($op) - { - // Make the operator uppercase and spaced - $op = ' '.strtoupper($op); - } - - // Quote each of the columns used for the condition - $conditions[] = $db->quote_column($c1).$op.' '.$db->quote_column($c2); - } - - // Concat the conditions "... AND ..." - $sql .= ' ON ('.implode(' AND ', $conditions).')'; - } - - return $sql; - } - - public function reset() - { - $this->_type = - $this->_table = NULL; - - $this->_on = array(); - } - -} // End Database_Query_Builder_Join diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Select.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Select.php deleted file mode 100644 index 3492a711..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Select.php +++ /dev/null @@ -1,446 +0,0 @@ -_select = $columns; - } - - // Start the query with no actual SQL statement - parent::__construct(Database::SELECT, ''); - } - - /** - * Enables or disables selecting only unique columns using "SELECT DISTINCT" - * - * @param boolean $value enable or disable distinct columns - * @return $this - */ - public function distinct($value) - { - $this->_distinct = (bool) $value; - - return $this; - } - - /** - * Choose the columns to select from. - * - * @param mixed $columns column name or array($column, $alias) or object - * @return $this - */ - public function select($columns = NULL) - { - $columns = func_get_args(); - - $this->_select = array_merge($this->_select, $columns); - - return $this; - } - - /** - * Choose the columns to select from, using an array. - * - * @param array $columns list of column names or aliases - * @return $this - */ - public function select_array(array $columns) - { - $this->_select = array_merge($this->_select, $columns); - - return $this; - } - - /** - * Choose the tables to select "FROM ..." - * - * @param mixed $table table name or array($table, $alias) or object - * @return $this - */ - public function from($tables) - { - $tables = func_get_args(); - - $this->_from = array_merge($this->_from, $tables); - - return $this; - } - - /** - * Adds addition tables to "JOIN ...". - * - * @param mixed $table column name or array($column, $alias) or object - * @param string $type join type (LEFT, RIGHT, INNER, etc) - * @return $this - */ - public function join($table, $type = NULL) - { - $this->_join[] = $this->_last_join = new Database_Query_Builder_Join($table, $type); - - return $this; - } - - /** - * Adds "ON ..." conditions for the last created JOIN statement. - * - * @param mixed $c1 column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $c2 column name or array($column, $alias) or object - * @return $this - */ - public function on($c1, $op, $c2) - { - $this->_last_join->on($c1, $op, $c2); - - return $this; - } - - /** - * Adds "USING ..." conditions for the last created JOIN statement. - * - * @param string $columns column name - * @return $this - */ - public function using($columns) - { - $columns = func_get_args(); - - call_user_func_array(array($this->_last_join, 'using'), $columns); - - return $this; - } - - /** - * Creates a "GROUP BY ..." filter. - * - * @param mixed $columns column name or array($column, $alias) or object - * @return $this - */ - public function group_by($columns) - { - $columns = func_get_args(); - - $this->_group_by = array_merge($this->_group_by, $columns); - - return $this; - } - - /** - * Alias of and_having() - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function having($column, $op, $value = NULL) - { - return $this->and_having($column, $op, $value); - } - - /** - * Creates a new "AND HAVING" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function and_having($column, $op, $value = NULL) - { - $this->_having[] = array('AND' => array($column, $op, $value)); - - return $this; - } - - /** - * Creates a new "OR HAVING" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function or_having($column, $op, $value = NULL) - { - $this->_having[] = array('OR' => array($column, $op, $value)); - - return $this; - } - - /** - * Alias of and_having_open() - * - * @return $this - */ - public function having_open() - { - return $this->and_having_open(); - } - - /** - * Opens a new "AND HAVING (...)" grouping. - * - * @return $this - */ - public function and_having_open() - { - $this->_having[] = array('AND' => '('); - - return $this; - } - - /** - * Opens a new "OR HAVING (...)" grouping. - * - * @return $this - */ - public function or_having_open() - { - $this->_having[] = array('OR' => '('); - - return $this; - } - - /** - * Closes an open "AND HAVING (...)" grouping. - * - * @return $this - */ - public function having_close() - { - return $this->and_having_close(); - } - - /** - * Closes an open "AND HAVING (...)" grouping. - * - * @return $this - */ - public function and_having_close() - { - $this->_having[] = array('AND' => ')'); - - return $this; - } - - /** - * Closes an open "OR HAVING (...)" grouping. - * - * @return $this - */ - public function or_having_close() - { - $this->_having[] = array('OR' => ')'); - - return $this; - } - - /** - * Adds an other UNION clause. - * - * @param mixed $select if string, it must be the name of a table. Else - * must be an instance of Database_Query_Builder_Select - * @param boolean $all decides if it's an UNION or UNION ALL clause - * @return $this - */ - public function union($select, $all = TRUE) - { - if (is_string($select)) - { - $select = DB::select()->from($select); - } - if ( ! $select instanceof Database_Query_Builder_Select) - throw new Kohana_Exception('first parameter must be a string or an instance of Database_Query_Builder_Select'); - $this->_union []= array('select' => $select, 'all' => $all); - return $this; - } - - /** - * Start returning results after "OFFSET ..." - * - * @param integer $number starting result number or NULL to reset - * @return $this - */ - public function offset($number) - { - $this->_offset = $number; - - return $this; - } - - /** - * Compile the SQL query and return it. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - // Callback to quote columns - $quote_column = array($db, 'quote_column'); - - // Callback to quote tables - $quote_table = array($db, 'quote_table'); - - // Start a selection query - $query = 'SELECT '; - - if ($this->_distinct === TRUE) - { - // Select only unique results - $query .= 'DISTINCT '; - } - - if (empty($this->_select)) - { - // Select all columns - $query .= '*'; - } - else - { - // Select all columns - $query .= implode(', ', array_unique(array_map($quote_column, $this->_select))); - } - - if ( ! empty($this->_from)) - { - // Set tables to select from - $query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from))); - } - - if ( ! empty($this->_join)) - { - // Add tables to join - $query .= ' '.$this->_compile_join($db, $this->_join); - } - - if ( ! empty($this->_where)) - { - // Add selection conditions - $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); - } - - if ( ! empty($this->_group_by)) - { - // Add grouping - $query .= ' '.$this->_compile_group_by($db, $this->_group_by); - } - - if ( ! empty($this->_having)) - { - // Add filtering conditions - $query .= ' HAVING '.$this->_compile_conditions($db, $this->_having); - } - - if ( ! empty($this->_order_by)) - { - // Add sorting - $query .= ' '.$this->_compile_order_by($db, $this->_order_by); - } - - if ($this->_limit !== NULL) - { - // Add limiting - $query .= ' LIMIT '.$this->_limit; - } - - if ($this->_offset !== NULL) - { - // Add offsets - $query .= ' OFFSET '.$this->_offset; - } - - if ( ! empty($this->_union)) - { - foreach ($this->_union as $u) { - $query .= ' UNION '; - if ($u['all'] === TRUE) - { - $query .= 'ALL '; - } - $query .= $u['select']->compile($db); - } - } - - $this->_sql = $query; - - return parent::compile($db); - } - - public function reset() - { - $this->_select = - $this->_from = - $this->_join = - $this->_where = - $this->_group_by = - $this->_having = - $this->_order_by = - $this->_union = array(); - - $this->_distinct = FALSE; - - $this->_limit = - $this->_offset = - $this->_last_join = NULL; - - $this->_parameters = array(); - - $this->_sql = NULL; - - return $this; - } - -} // End Database_Query_Select diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Update.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Update.php deleted file mode 100644 index e6e3da50..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Update.php +++ /dev/null @@ -1,140 +0,0 @@ -_table = $table; - } - - // Start the query with no SQL - return parent::__construct(Database::UPDATE, ''); - } - - /** - * Sets the table to update. - * - * @param mixed $table table name or array($table, $alias) or object - * @return $this - */ - public function table($table) - { - $this->_table = $table; - - return $this; - } - - /** - * Set the values to update with an associative array. - * - * @param array $pairs associative (column => value) list - * @return $this - */ - public function set(array $pairs) - { - foreach ($pairs as $column => $value) - { - $this->_set[] = array($column, $value); - } - - return $this; - } - - /** - * Set the value of a single column. - * - * @param mixed $column table name or array($table, $alias) or object - * @param mixed $value column value - * @return $this - */ - public function value($column, $value) - { - $this->_set[] = array($column, $value); - - return $this; - } - - /** - * Compile the SQL query and return it. - * - * @param mixed $db Database instance or name of instance - * @return string - */ - public function compile($db = NULL) - { - if ( ! is_object($db)) - { - // Get the database instance - $db = Database::instance($db); - } - - // Start an update query - $query = 'UPDATE '.$db->quote_table($this->_table); - - // Add the columns to update - $query .= ' SET '.$this->_compile_set($db, $this->_set); - - if ( ! empty($this->_where)) - { - // Add selection conditions - $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); - } - - if ( ! empty($this->_order_by)) - { - // Add sorting - $query .= ' '.$this->_compile_order_by($db, $this->_order_by); - } - - if ($this->_limit !== NULL) - { - // Add limiting - $query .= ' LIMIT '.$this->_limit; - } - - $this->_sql = $query; - - return parent::compile($db); - } - - public function reset() - { - $this->_table = NULL; - - $this->_set = - $this->_where = array(); - - $this->_limit = NULL; - - $this->_parameters = array(); - - $this->_sql = NULL; - - return $this; - } - - -} // End Database_Query_Builder_Update diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Where.php b/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Where.php deleted file mode 100644 index 58f6b5dd..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Query/Builder/Where.php +++ /dev/null @@ -1,180 +0,0 @@ -and_where($column, $op, $value); - } - - /** - * Creates a new "AND WHERE" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function and_where($column, $op, $value) - { - $this->_where[] = array('AND' => array($column, $op, $value)); - - return $this; - } - - /** - * Creates a new "OR WHERE" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function or_where($column, $op, $value) - { - $this->_where[] = array('OR' => array($column, $op, $value)); - - return $this; - } - - /** - * Alias of and_where_open() - * - * @return $this - */ - public function where_open() - { - return $this->and_where_open(); - } - - /** - * Opens a new "AND WHERE (...)" grouping. - * - * @return $this - */ - public function and_where_open() - { - $this->_where[] = array('AND' => '('); - - return $this; - } - - /** - * Opens a new "OR WHERE (...)" grouping. - * - * @return $this - */ - public function or_where_open() - { - $this->_where[] = array('OR' => '('); - - return $this; - } - - /** - * Closes an open "WHERE (...)" grouping. - * - * @return $this - */ - public function where_close() - { - return $this->and_where_close(); - } - - /** - * Closes an open "WHERE (...)" grouping or removes the grouping when it is - * empty. - * - * @return $this - */ - public function where_close_empty() - { - $group = end($this->_where); - - if ($group AND reset($group) === '(') - { - array_pop($this->_where); - - return $this; - } - - return $this->where_close(); - } - - /** - * Closes an open "WHERE (...)" grouping. - * - * @return $this - */ - public function and_where_close() - { - $this->_where[] = array('AND' => ')'); - - return $this; - } - - /** - * Closes an open "WHERE (...)" grouping. - * - * @return $this - */ - public function or_where_close() - { - $this->_where[] = array('OR' => ')'); - - return $this; - } - - /** - * Applies sorting with "ORDER BY ..." - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $direction direction of sorting - * @return $this - */ - public function order_by($column, $direction = NULL) - { - $this->_order_by[] = array($column, $direction); - - return $this; - } - - /** - * Return up to "LIMIT ..." results - * - * @param integer $number maximum results to return or NULL to reset - * @return $this - */ - public function limit($number) - { - $this->_limit = $number; - - return $this; - } - -} // End Database_Query_Builder_Where diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Result.php b/includes/kohana/modules/database/classes/Kohana/Database/Result.php deleted file mode 100644 index 3c3284f9..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Result.php +++ /dev/null @@ -1,338 +0,0 @@ -_result = $result; - - // Store the SQL locally - $this->_query = $sql; - - if (is_object($as_object)) - { - // Get the object class name - $as_object = get_class($as_object); - } - - // Results as objects or associative arrays - $this->_as_object = $as_object; - - if ($params) - { - // Object constructor params - $this->_object_params = $params; - } - } - - /** - * Result destruction cleans up all open result sets. - * - * @return void - */ - abstract public function __destruct(); - - /** - * Get a cached database result from the current result iterator. - * - * $cachable = serialize($result->cached()); - * - * @return Database_Result_Cached - * @since 3.0.5 - */ - public function cached() - { - return new Database_Result_Cached($this->as_array(), $this->_query, $this->_as_object); - } - - /** - * Return all of the rows in the result as an array. - * - * // Indexed array of all rows - * $rows = $result->as_array(); - * - * // Associative array of rows by "id" - * $rows = $result->as_array('id'); - * - * // Associative array of rows, "id" => "name" - * $rows = $result->as_array('id', 'name'); - * - * @param string $key column for associative keys - * @param string $value column for values - * @return array - */ - public function as_array($key = NULL, $value = NULL) - { - $results = array(); - - if ($key === NULL AND $value === NULL) - { - // Indexed rows - - foreach ($this as $row) - { - $results[] = $row; - } - } - elseif ($key === NULL) - { - // Indexed columns - - if ($this->_as_object) - { - foreach ($this as $row) - { - $results[] = $row->$value; - } - } - else - { - foreach ($this as $row) - { - $results[] = $row[$value]; - } - } - } - elseif ($value === NULL) - { - // Associative rows - - if ($this->_as_object) - { - foreach ($this as $row) - { - $results[$row->$key] = $row; - } - } - else - { - foreach ($this as $row) - { - $results[$row[$key]] = $row; - } - } - } - else - { - // Associative columns - - if ($this->_as_object) - { - foreach ($this as $row) - { - $results[$row->$key] = $row->$value; - } - } - else - { - foreach ($this as $row) - { - $results[$row[$key]] = $row[$value]; - } - } - } - - $this->rewind(); - - return $results; - } - - /** - * Return the named column from the current row. - * - * // Get the "id" value - * $id = $result->get('id'); - * - * @param string $name column to get - * @param mixed $default default value if the column does not exist - * @return mixed - */ - public function get($name, $default = NULL) - { - $row = $this->current(); - - if ($this->_as_object) - { - if (isset($row->$name)) - return $row->$name; - } - else - { - if (isset($row[$name])) - return $row[$name]; - } - - return $default; - } - - /** - * Implements [Countable::count], returns the total number of rows. - * - * echo count($result); - * - * @return integer - */ - public function count() - { - return $this->_total_rows; - } - - /** - * Implements [ArrayAccess::offsetExists], determines if row exists. - * - * if (isset($result[10])) - * { - * // Row 10 exists - * } - * - * @param int $offset - * @return boolean - */ - public function offsetExists($offset) - { - return ($offset >= 0 AND $offset < $this->_total_rows); - } - - /** - * Implements [ArrayAccess::offsetGet], gets a given row. - * - * $row = $result[10]; - * - * @param int $offset - * @return mixed - */ - public function offsetGet($offset) - { - if ( ! $this->seek($offset)) - return NULL; - - return $this->current(); - } - - /** - * Implements [ArrayAccess::offsetSet], throws an error. - * - * [!!] You cannot modify a database result. - * - * @param int $offset - * @param mixed $value - * @return void - * @throws Kohana_Exception - */ - final public function offsetSet($offset, $value) - { - throw new Kohana_Exception('Database results are read-only'); - } - - /** - * Implements [ArrayAccess::offsetUnset], throws an error. - * - * [!!] You cannot modify a database result. - * - * @param int $offset - * @return void - * @throws Kohana_Exception - */ - final public function offsetUnset($offset) - { - throw new Kohana_Exception('Database results are read-only'); - } - - /** - * Implements [Iterator::key], returns the current row number. - * - * echo key($result); - * - * @return integer - */ - public function key() - { - return $this->_current_row; - } - - /** - * Implements [Iterator::next], moves to the next row. - * - * next($result); - * - * @return $this - */ - public function next() - { - ++$this->_current_row; - return $this; - } - - /** - * Implements [Iterator::prev], moves to the previous row. - * - * prev($result); - * - * @return $this - */ - public function prev() - { - --$this->_current_row; - return $this; - } - - /** - * Implements [Iterator::rewind], sets the current row to zero. - * - * rewind($result); - * - * @return $this - */ - public function rewind() - { - $this->_current_row = 0; - return $this; - } - - /** - * Implements [Iterator::valid], checks if the current row exists. - * - * [!!] This method is only used internally. - * - * @return boolean - */ - public function valid() - { - return $this->offsetExists($this->_current_row); - } - -} // End Database_Result diff --git a/includes/kohana/modules/database/classes/Kohana/Database/Result/Cached.php b/includes/kohana/modules/database/classes/Kohana/Database/Result/Cached.php deleted file mode 100644 index 8af08543..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Database/Result/Cached.php +++ /dev/null @@ -1,51 +0,0 @@ -_total_rows = count($result); - } - - public function __destruct() - { - // Cached results do not use resources - } - - public function cached() - { - return $this; - } - - public function seek($offset) - { - if ($this->offsetExists($offset)) - { - $this->_current_row = $offset; - - return TRUE; - } - else - { - return FALSE; - } - } - - public function current() - { - // Return an array of the row - return $this->valid() ? $this->_result[$this->_current_row] : NULL; - } - -} // End Database_Result_Cached diff --git a/includes/kohana/modules/database/classes/Kohana/Model/Database.php b/includes/kohana/modules/database/classes/Kohana/Model/Database.php deleted file mode 100644 index 790e8f04..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Model/Database.php +++ /dev/null @@ -1,63 +0,0 @@ -_db = $db; - } - elseif ( ! $this->_db) - { - // Use the default name - $this->_db = Database::$default; - } - - if (is_string($this->_db)) - { - // Load the database - $this->_db = Database::instance($this->_db); - } - } - -} // End Model diff --git a/includes/kohana/modules/database/classes/Kohana/Session/Database.php b/includes/kohana/modules/database/classes/Kohana/Session/Database.php deleted file mode 100644 index 34abbbd2..00000000 --- a/includes/kohana/modules/database/classes/Kohana/Session/Database.php +++ /dev/null @@ -1,239 +0,0 @@ - 'session_id', - 'last_active' => 'last_active', - 'contents' => 'contents' - ); - - // Garbage collection requests - protected $_gc = 500; - - // The current session id - protected $_session_id; - - // The old session id - protected $_update_id; - - public function __construct(array $config = NULL, $id = NULL) - { - if ( ! isset($config['group'])) - { - // Use the default group - $config['group'] = Database::$default; - } - - // Load the database - $this->_db = Database::instance($config['group']); - - if (isset($config['table'])) - { - // Set the table name - $this->_table = (string) $config['table']; - } - - if (isset($config['gc'])) - { - // Set the gc chance - $this->_gc = (int) $config['gc']; - } - - if (isset($config['columns'])) - { - // Overload column names - $this->_columns = $config['columns']; - } - - parent::__construct($config, $id); - - if (mt_rand(0, $this->_gc) === $this->_gc) - { - // Run garbage collection - // This will average out to run once every X requests - $this->_gc(); - } - } - - public function id() - { - return $this->_session_id; - } - - protected function _read($id = NULL) - { - if ($id OR $id = Cookie::get($this->_name)) - { - $result = DB::select(array($this->_columns['contents'], 'contents')) - ->from($this->_table) - ->where($this->_columns['session_id'], '=', ':id') - ->limit(1) - ->param(':id', $id) - ->execute($this->_db); - - if ($result->count()) - { - // Set the current session id - $this->_session_id = $this->_update_id = $id; - - // Return the contents - return $result->get('contents'); - } - } - - // Create a new session id - $this->_regenerate(); - - return NULL; - } - - protected function _regenerate() - { - // Create the query to find an ID - $query = DB::select($this->_columns['session_id']) - ->from($this->_table) - ->where($this->_columns['session_id'], '=', ':id') - ->limit(1) - ->bind(':id', $id); - - do - { - // Create a new session id - $id = str_replace('.', '-', uniqid(NULL, TRUE)); - - // Get the the id from the database - $result = $query->execute($this->_db); - } - while ($result->count()); - - return $this->_session_id = $id; - } - - protected function _write() - { - if ($this->_update_id === NULL) - { - // Insert a new row - $query = DB::insert($this->_table, $this->_columns) - ->values(array(':new_id', ':active', ':contents')); - } - else - { - // Update the row - $query = DB::update($this->_table) - ->value($this->_columns['last_active'], ':active') - ->value($this->_columns['contents'], ':contents') - ->where($this->_columns['session_id'], '=', ':old_id'); - - if ($this->_update_id !== $this->_session_id) - { - // Also update the session id - $query->value($this->_columns['session_id'], ':new_id'); - } - } - - $query - ->param(':new_id', $this->_session_id) - ->param(':old_id', $this->_update_id) - ->param(':active', $this->_data['last_active']) - ->param(':contents', $this->__toString()); - - // Execute the query - $query->execute($this->_db); - - // The update and the session id are now the same - $this->_update_id = $this->_session_id; - - // Update the cookie with the new session id - Cookie::set($this->_name, $this->_session_id, $this->_lifetime); - - return TRUE; - } - - /** - * @return bool - */ - protected function _restart() - { - $this->_regenerate(); - - return TRUE; - } - - protected function _destroy() - { - if ($this->_update_id === NULL) - { - // Session has not been created yet - return TRUE; - } - - // Delete the current session - $query = DB::delete($this->_table) - ->where($this->_columns['session_id'], '=', ':id') - ->param(':id', $this->_update_id); - - try - { - // Execute the query - $query->execute($this->_db); - - // Delete the cookie - Cookie::delete($this->_name); - } - catch (Exception $e) - { - // An error occurred, the session has not been deleted - return FALSE; - } - - return TRUE; - } - - protected function _gc() - { - if ($this->_lifetime) - { - // Expire sessions when their lifetime is up - $expires = $this->_lifetime; - } - else - { - // Expire sessions after one month - $expires = Date::MONTH; - } - - // Delete all sessions that have expired - DB::delete($this->_table) - ->where($this->_columns['last_active'], '<', ':time') - ->param(':time', time() - $expires) - ->execute($this->_db); - } - -} // End Session_Database diff --git a/includes/kohana/modules/database/classes/Model/Database.php b/includes/kohana/modules/database/classes/Model/Database.php deleted file mode 100644 index 3b6e609d..00000000 --- a/includes/kohana/modules/database/classes/Model/Database.php +++ /dev/null @@ -1,3 +0,0 @@ - array - ( - 'type' => 'MySQL', - 'connection' => array( - /** - * The following options are available for MySQL: - * - * string hostname server hostname, or socket - * string database database name - * string username database username - * string password database password - * boolean persistent use persistent connections? - * array variables system variables as "key => value" pairs - * - * Ports and sockets may be appended to the hostname. - */ - 'hostname' => 'localhost', - 'database' => 'kohana', - 'username' => FALSE, - 'password' => FALSE, - 'persistent' => FALSE, - ), - 'table_prefix' => '', - 'charset' => 'utf8', - 'caching' => FALSE, - ), - 'alternate' => array( - 'type' => 'PDO', - 'connection' => array( - /** - * The following options are available for PDO: - * - * string dsn Data Source Name - * string username database username - * string password database password - * boolean persistent use persistent connections? - */ - 'dsn' => 'mysql:host=localhost;dbname=kohana', - 'username' => 'root', - 'password' => 'r00tdb', - 'persistent' => FALSE, - ), - /** - * The following extra options are available for PDO: - * - * string identifier set the escaping identifier - */ - 'table_prefix' => '', - 'charset' => 'utf8', - 'caching' => FALSE, - ), -); diff --git a/includes/kohana/modules/database/config/session.php b/includes/kohana/modules/database/config/session.php deleted file mode 100644 index 58263ae6..00000000 --- a/includes/kohana/modules/database/config/session.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - /** - * Database settings for session storage. - * - * string group configuation group name - * string table session table name - * integer gc number of requests before gc is invoked - * columns array custom column names - */ - 'group' => 'default', - 'table' => 'sessions', - 'gc' => 500, - 'columns' => array( - /** - * session_id: session identifier - * last_active: timestamp of the last activity - * contents: serialized session data - */ - 'session_id' => 'session_id', - 'last_active' => 'last_active', - 'contents' => 'contents' - ), - ), -); diff --git a/includes/kohana/modules/database/config/userguide.php b/includes/kohana/modules/database/config/userguide.php deleted file mode 100644 index 88ff2a32..00000000 --- a/includes/kohana/modules/database/config/userguide.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'database' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'Database', - - // A short description of this module, shown on the index page - 'description' => 'Database agnostic querying and result management.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/config.md b/includes/kohana/modules/database/guide/database/config.md deleted file mode 100644 index 240a6bb4..00000000 --- a/includes/kohana/modules/database/guide/database/config.md +++ /dev/null @@ -1,116 +0,0 @@ -# Configuration - -The default config file is located in `MODPATH/database/config/database.php`. You should copy this file to `APPPATH/config/database.php` and make changes there, in keeping with the [cascading filesystem](../kohana/files). - -The database configuration file contains an array of configuration groups. The structure of each database configuration group, called an "instance", looks like this: - - string INSTANCE_NAME => array( - 'type' => string DATABASE_TYPE, - 'connection' => array CONNECTION_ARRAY, - 'table_prefix' => string TABLE_PREFIX, - 'charset' => string CHARACTER_SET, - ), - -Understanding each of these settings is important. - -INSTANCE_NAME -: Connections can be named anything you want, but you should always have at least one connection called "default". - -DATABASE_TYPE -: One of the installed database drivers. Kohana comes with "mysql" and "pdo" drivers. Drivers must extend the Database class. - -CONNECTION_ARRAY -: Specific driver options for connecting to your database. (Driver options are explained [below](#connection-settings).) - -TABLE_PREFIX -: Prefix that will be added to all table names by the [query builder](#query_building). - - -## Example - -The example file below shows 2 MySQL connections, one local and one remote. - - return array - ( - 'default' => array - ( - 'type' => 'mysql', - 'connection' => array( - 'hostname' => 'localhost', - 'username' => 'dbuser', - 'password' => 'mypassword', - 'persistent' => FALSE, - 'database' => 'my_db_name', - ), - 'table_prefix' => '', - 'charset' => 'utf8', - ), - 'remote' => array( - 'type' => 'mysql', - 'connection' => array( - 'hostname' => '55.55.55.55', - 'username' => 'remote_user', - 'password' => 'mypassword', - 'persistent' => FALSE, - 'database' => 'my_remote_db_name', - ), - 'table_prefix' => '', - 'charset' => 'utf8', - ), - ); - -## Connections and Instances - -Each configuration group is referred to as a database instance. Each instance can be accessed by calling [Database::instance]. If you don't provide a parameter, the default instance is used. - - // This would connect to the database defined as 'default' - $default = Database::instance(); - - // This would connect to the database defined as 'remote' - $remote = Database::instance('remote'); - -To disconnect the database, simply destroy the object: - - unset($default) - - // Or - - unset(Database::$instances['default']); - -If you want to disconnect all of the database instances at once: - - Database::$instances = array(); - -## Connection Settings - -Every database driver has different connection settings. - -### MySQL - -A [MySQL database](http://www.php.net/manual/en/book.mysql.php) can accept the following options in the `connection` array: - -Type | Option | Description | Default value -----------|------------|----------------------------| ------------------------- -`string` | hostname | Hostname of the database | `localhost` -`integer` | port | Port number | `NULL` -`string` | socket | UNIX socket | `NULL` -`string` | username | Database username | `NULL` -`string` | password | Database password | `NULL` -`boolean` | persistent | Persistent connections | `FALSE` -`string` | database | Database name | `kohana` - -### PDO - -A [PDO database](http://php.net/manual/en/book.pdo.php) can accept these options in the `connection` array: - -Type | Option | Description | Default value -----------|------------|----------------------------| ------------------------- -`string` | dsn | PDO data source identifier | `localhost` -`array` | options | Driver-specific options | none -`string` | username | Database username | `NULL` -`string` | password | Database password | `NULL` -`boolean` | persistent | Persistent connections | `FALSE` - -The connection character set should be configured using the DSN string or `options` array. - -[!!] If you are using PDO and are not sure what to use for the `dsn` option, review [PDO::__construct](http://php.net/pdo.construct). \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/examples.md b/includes/kohana/modules/database/guide/database/examples.md deleted file mode 100644 index 6a9d1b59..00000000 --- a/includes/kohana/modules/database/guide/database/examples.md +++ /dev/null @@ -1,52 +0,0 @@ -# Examples - -Here are some "real world" examples of using the database library to construct your queries and use the results. - -## Examples of Parameterized Statements - -TODO: 4-6 examples of parameterized statements of varying complexity, including a good bind() example. - -## Pagination and search/filter - -In this example, we loop through an array of whitelisted input fields and for each allowed non-empty value we add it to the search query. We make a clone of the query and then execute that query to count the total number of results. The count is then passed to the [Pagination](../pagination) class to determine the search offset. The last few lines search with Pagination's items_per_page and offset values to return a page of results based on the current page the user is on. - - $query = DB::select()->from('users'); - - //only search for these fields - $form_inputs = array('first_name', 'last_name', 'email'); - foreach ($form_inputs as $name) - { - $value = Arr::get($_GET, $name, FALSE); - if ($value !== FALSE AND $value != '') - { - $query->where($name, 'like', '%'.$value.'%'); - } - } - - //copy the query & execute it - $pagination_query = clone $query; - $count = $pagination_query->select(DB::expr('COUNT(*)) AS mycount')->execute()->get('mycount'); - - //pass the total item count to Pagination - $config = Kohana::$config->load('pagination'); - $pagination = Pagination::factory(array( - 'total_items' => $count, - 'current_page' => array('source' => 'route', 'key' => 'page'), - 'items_per_page' => 20, - 'view' => 'pagination/pretty', - 'auto_hide' => TRUE, - )); - $page_links = $pagination->render(); - - //search for results starting at the offset calculated by the Pagination class - $query->order_by('last_name', 'asc') - ->order_by('first_name', 'asc') - ->limit($pagination->items_per_page) - ->offset($pagination->offset); - $results = $query->execute()->as_array(); - -## Having - -TODO: example goes here - -[!!] We could use more examples on this page. \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/index.md b/includes/kohana/modules/database/guide/database/index.md deleted file mode 100644 index 162651d2..00000000 --- a/includes/kohana/modules/database/guide/database/index.md +++ /dev/null @@ -1,17 +0,0 @@ -# Database - -Kohana 3.0 comes with a robust module for working with databases. By default, the database module supports drivers for [MySQL](http://php.net/mysql) and [PDO](http://php.net/pdo), but new drivers can be made for other database servers. - -The database module is included with the Kohana 3.0 install, but needs to be enabled before you can use it. To enable, open your `application/bootstrap.php` file and modify the call to [Kohana::modules] by including the database module like so: - - Kohana::modules(array( - ... - 'database' => MODPATH.'database', - ... - )); - -Next, you will then need to [configure](config) the database module to connect to your database. - -Once that is done then you can make [queries](query) and use the [results](results). - -The database module also provides a [config driver](../api/Kohana_Config_Database) (for storing [configuration](../kohana/files/config) in the database) and a [session driver](Session_Database). diff --git a/includes/kohana/modules/database/guide/database/menu.md b/includes/kohana/modules/database/guide/database/menu.md deleted file mode 100644 index e1c06a81..00000000 --- a/includes/kohana/modules/database/guide/database/menu.md +++ /dev/null @@ -1,7 +0,0 @@ -## [Database]() -- [Configuration](config) -- [Querying](query) - - [Parameterized Statements](query/parameterized) - - [Query Builder](query/builder) -- [Results](results) -- [Examples](examples) \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/query.md b/includes/kohana/modules/database/guide/database/query.md deleted file mode 100644 index 0a15bf55..00000000 --- a/includes/kohana/modules/database/guide/database/query.md +++ /dev/null @@ -1,5 +0,0 @@ -# Making Queries - -There are two different ways to make queries. The simplest way to make a query is to use [Database_Query], via [DB::query], to manually create queries. These queries are called [parameterized statements](query/parameterized) and allow you to set query parameters which are automatically escaped. The second way to make a query is by building the query using method calls. This is done using the [query builder](query/builder). - -[!!] All queries are run using the `execute` method, which accepts a [Database] object or instance name. See [Database_Query::execute] for more information. \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/query/builder.md b/includes/kohana/modules/database/guide/database/query/builder.md deleted file mode 100644 index d2fd893c..00000000 --- a/includes/kohana/modules/database/guide/database/query/builder.md +++ /dev/null @@ -1,251 +0,0 @@ -# Query Builder - -Creating queries dynamically using objects and methods allows queries to be written very quickly in an agnostic way. Query building also adds identifier (table and column name) quoting, as well as value quoting. - -## Select - -Each type of database query is represented by a different class, each with their own methods. For instance, to create a SELECT query, we use [DB::select] which is a shortcut to return a new [Database_Query_Builder_Select] object: - - $query = DB::select(); - -Query Builder methods return a reference to itself so that method chaining may be used. Select queries ussually require a table and they are referenced using the `from()` method. The `from()` method takes one parameter which can be the table name (string), an array of two strings (table name and alias), or an object (See Subqueries in the Advanced Queries section below). - - $query = DB::select()->from('users'); - -Limiting the results of queries is done using the `where()`, `and_where()` and `or_where()` methods. These methods take three parameters: a column, an operator, and a value. - - $query = DB::select()->from('users')->where('username', '=', 'john'); - -Multiple `where()` methods may be used to string together multiple clauses connected by the boolean operator in the method's prefix. The `where()` method is a wrapper that just calls `and_where()`. - - $query = DB::select()->from('users')->where('username', '=', 'john')->or_where('username', '=', 'jane'); - -You can use any operator you want. Examples include `IN`, `BETWEEN`, `>`, `=<`, `!=`, etc. Use an array for operators that require more than one value. - - $query = DB::select()->from('users')->where('logins', '<=', 1); - - $query = DB::select()->from('users')->where('logins', '>', 50); - - $query = DB::select()->from('users')->where('username', 'IN', array('john','mark','matt')); - - $query = DB::select()->from('users')->where('joindate', 'BETWEEN', array($then, $now)); - -By default, [DB::select] will select all columns (`SELECT * ...`), but you can also specify which columns you want returned by passing parameters to [DB::select]: - - $query = DB::select('username', 'password')->from('users')->where('username', '=', 'john'); - -Now take a minute to look at what this method chain is doing. First, we create a new selection object using the [DB::select] method. Next, we set table(s) using the `from()` method. Last, we search for a specific records using the `where()` method. We can display the SQL that will be executed by casting the query to a string: - - echo Debug::vars((string) $query); - // Should display: - // SELECT `username`, `password` FROM `users` WHERE `username` = 'john' - -Notice how the column and table names are automatically escaped, as well as the values? This is one of the key benefits of using the query builder. - -### Select - AS (column aliases) - -It is also possible to create `AS` aliases when selecting, by passing an array as each parameter to [DB::select]: - - $query = DB::select(array('username', 'u'), array('password', 'p'))->from('users'); - -This query would generate the following SQL: - - SELECT `username` AS `u`, `password` AS `p` FROM `users` - -### Select - DISTINCT - -Unique column values may be turned on or off (default) by passing TRUE or FALSE, respectively, to the `distinct()` method. - - $query = DB::select('username')->distinct(TRUE)->from('posts'); - -This query would generate the following SQL: - - SELECT DISTINCT `username` FROM `posts` - -### Select - LIMIT & OFFSET - -When querying large sets of data, it is often better to limit the results and page through the data one chunk at a time. This is done using the `limit()` and `offset()` methods. - - $query = DB::select()->from(`posts`)->limit(10)->offset(30); - -This query would generate the following SQL: - - SELECT * FROM `posts` LIMIT 10 OFFSET 30 - -### Select - ORDER BY - -Often you will want the results in a particular order and rather than sorting the results, it's better to have the results returned to you in the correct order. You can do this by using the order_by() method. It takes the column name and an optional direction string as the parameters. Multiple `order_by()` methods can be used to add additional sorting capability. - - $query = DB::select()->from(`posts`)->order_by(`published`, `DESC`); - -This query would generate the following SQL: - - SELECT * FROM `posts` ORDER BY `published` DESC - -[!!] For a complete list of methods available while building a select query see [Database_Query_Builder_Select]. - -## Insert - -To create records into the database, use [DB::insert] to create an INSERT query, using `values()` to pass in the data: - - $query = DB::insert('users', array('username', 'password'))->values(array('fred', 'p@5sW0Rd')); - -This query would generate the following SQL: - - INSERT INTO `users` (`username`, `password`) VALUES ('fred', 'p@5sW0Rd') - -[!!] For a complete list of methods available while building an insert query see [Database_Query_Builder_Insert]. - -## Update - -To modify an existing record, use [DB::update] to create an UPDATE query: - - $query = DB::update('users')->set(array('username' => 'jane'))->where('username', '=', 'john'); - -This query would generate the following SQL: - - UPDATE `users` SET `username` = 'jane' WHERE `username` = 'john' - -[!!] For a complete list of methods available while building an update query see [Database_Query_Builder_Update]. - -## Delete - -To remove an existing record, use [DB::delete] to create a DELETE query: - - $query = DB::delete('users')->where('username', 'IN', array('john', 'jane')); - -This query would generate the following SQL: - - DELETE FROM `users` WHERE `username` IN ('john', 'jane') - -[!!] For a complete list of methods available while building a delete query see [Database_Query_Builder_Delete]. - -## Advanced Queries - -### Joins - -Multiple tables can be joined using the `join()` and `on()` methods. The `join()` method takes two parameters. The first is either a table name, an array containing the table and alias, or an object (subquery or expression). The second parameter is the join type: LEFT, RIGHT, INNER, etc. - -The `on()` method sets the conditions for the previous `join()` method and is very similar to the `where()` method in that it takes three parameters; left column (name or object), an operator, and the right column (name or object). Multiple `on()` methods may be used to supply multiple conditions and they will be appended with an 'AND' operator. - - // This query will find all the posts related to "smith" with JOIN - $query = DB::select('authors.name', 'posts.content')->from('authors')->join('posts')->on('authors.id', '=', 'posts.author_id')->where('authors.name', '=', 'smith'); - -This query would generate the following SQL: - - SELECT `authors`.`name`, `posts`.`content` FROM `authors` JOIN `posts` ON (`authors`.`id` = `posts`.`author_id`) WHERE `authors`.`name` = 'smith' - -If you want to do a LEFT, RIGHT or INNER JOIN you would do it like this `join('colum_name', 'type_of_join')`: - - // This query will find all the posts related to "smith" with LEFT JOIN - $query = DB::select()->from('authors')->join('posts', 'LEFT')->on('authors.id', '=', 'posts.author_id')->where('authors.name', '=', 'smith'); - -This query would generate the following SQL: - - SELECT `authors`.`name`, `posts`.`content` FROM `authors` LEFT JOIN `posts` ON (`authors`.`id` = `posts`.`author_id`) WHERE `authors`.`name` = 'smith' - -[!!] When joining multiple tables with similar column names, it's best to prefix the columns with the table name or table alias to avoid errors. Ambiguous column names should also be aliased so that they can be referenced easier. - -### Database Functions - -Eventually you will probably run into a situation where you need to call `COUNT` or some other database function within your query. The query builder supports these functions using the `Database_Expression` class: - - $query = DB::select(array(DB::expr('COUNT(`username`)'), 'total_users'))->from('users'); - -This looks almost exactly the same as a standard `AS` alias, but note how the column name is put in a call to `DB::expr()`. Any time `DB::expr()` is used, the column name will **not** be escaped. This query would generate the following SQL: - - SELECT COUNT(`username`) AS `total_users` FROM `users` - -[!!] When building complex queries and you need to get a count of the total rows that will be returned, build the expression with an empty column list first. Then clone the query and add the COUNT function to one copy and the columns list to the other. This will cut down on the total lines of code and make updating the query easier. - - $query = DB::select()->from('users') - ->join('posts')->on('posts.username', '=', 'users.username') - ->where('users.active', '=', TRUE) - ->where('posts.created', '>=', $yesterday); - - $total = clone $query; - $total->select(array(DB::expr('COUNT( DISTINCT `username`)'), 'unique_users')); - $query->select('posts.username')->distinct(); - -### Aggregate Functions - -Aggregate functions like `COUNT()`, `SUM()`, `AVG()`, etc. will most likely be used with the `group_by()` and possibly the `having()` methods in order to group and filter the results on a set of columns. - - $query = DB::select('username', array(DB::expr('COUNT(`id`)'), 'total_posts') - ->from('posts')->group_by('username')->having('total_posts', '>=', 10); - -This will generate the following query: - - SELECT `username`, COUNT(`id`) AS `total_posts` FROM `posts` GROUP BY `username` HAVING `total_posts` >= 10 - -### Subqueries - -Query Builder objects can be passed as parameters to many of the methods to create subqueries. Let's take the previous example query and pass it to a new query. - - $sub = DB::select('username', array(DB::expr('COUNT(`id`)'), 'total_posts') - ->from('posts')->group_by('username')->having('total_posts', '>=', 10); - - $query = DB::select('profiles.*', 'posts.total_posts')->from('profiles') - ->join(array($sub, 'posts'), 'INNER')->on('profiles.username', '=', 'posts.username'); - -This will generate the following query: - - SELECT `profiles`.*, `posts`.`total_posts` FROM `profiles` INNER JOIN - ( SELECT `username`, COUNT(`id`) AS `total_posts` FROM `posts` GROUP BY `username` HAVING `total_posts` >= 10 ) AS posts - ON `profiles`.`username` = `posts`.`username` - -Insert queries can also use a select query for the input values - - $sub = DB::select('username', array(DB::expr('COUNT(`id`)'), 'total_posts') - ->from('posts')->group_by('username')->having('total_posts', '>=', 10); - - $query = DB::insert('post_totals', array('username', 'posts'))->select($sub); - -This will generate the following query: - - INSERT INTO `post_totals` (`username`, `posts`) - SELECT `username`, COUNT(`id`) AS `total_posts` FROM `posts` GROUP BY `username` HAVING `total_posts` >= 10 - -### Boolean Operators and Nested Clauses - -Multiple Where and Having clauses are added to the query with Boolean operators connecting each expression. The default operator for both methods is AND which is the same as the and_ prefixed method. The OR operator can be specified by prefixing the methods with or_. Where and Having clauses can be nested or grouped by post fixing either method with _open and then followed by a method with a _close. - - $query = DB::select()->from('users') - ->where_open() - ->or_where('id', 'IN', $expired) - ->and_where_open() - ->where('last_login', '<=', $last_month) - ->or_where('last_login', 'IS', NULL) - ->and_where_close() - ->where_close() - ->and_where('removed','IS', NULL); - -This will generate the following query: - - SELECT * FROM `users` WHERE ( `id` IN (1, 2, 3, 5) OR ( `last_login` <= 1276020805 OR `last_login` IS NULL ) ) AND `removed` IS NULL - -### Database Expressions - -There are cases were you need a complex expression or other database functions, which you don't want the Query Builder to try and escape. In these cases, you will need to use a database expression created with [DB::expr]. **A database expression is taken as direct input and no escaping is performed.** - - $query = DB::update('users')->set(array('login_count' => DB::expr('login_count + 1')))->where('id', '=', $id); - -This will generate the following query, assuming `$id = 45`: - - UPDATE `users` SET `login_count` = `login_count` + 1 WHERE `id` = 45 - -Another example to calculate the distance of two geographical points: - - $query = DB::select(array(DB::expr('degrees(acos(sin(radians('.$lat.')) * sin(radians(`latitude`)) + cos(radians('.$lat.')) * cos(radians(`latitude`)) * cos(radians(abs('.$lng.' - `longitude`))))) * 69.172'), 'distance'))->from('locations'); - -[!!] You must validate or escape any user input inside of DB::expr as it will obviously not be escaped it for you. - -## Executing - -Once you are done building, you can execute the query using `execute()` and use [the results](results). - - $result = $query->execute(); - -To use a different database [config group](config) pass either the name or the config object to `execute()`. - - $result = $query->execute('config_name') \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/query/parameterized.md b/includes/kohana/modules/database/guide/database/query/parameterized.md deleted file mode 100644 index 5a4e5370..00000000 --- a/includes/kohana/modules/database/guide/database/query/parameterized.md +++ /dev/null @@ -1,67 +0,0 @@ -# Parameterized Statements - -Using parameterized statements allows you to write SQL queries manually while still escaping the query values automatically to prevent [SQL injection](http://wikipedia.org/wiki/SQL_Injection). Creating a query is simple: - - $query = DB::query(Database::SELECT, 'SELECT * FROM users WHERE username = :user'); - -The [DB::query] method is just a shortcut that creates a new [Database_Query] class for us, to allow method chaining. The query contains a `:user` parameter, which we will get to in a second. - -The first parameter of [DB::query] is the type of query. It should be `Database::SELECT`, `Database::INSERT`, `Database::UPDATE`, or `Database::DELETE`. This is done for compatibility reasons for drivers, and to easily determine what `execute()` should return. - -The second parameter is the query itself. Rather than trying to concatenate your query and variables together, you should make use of [Database_Query::param]. This will make your queries much easier to mantain, and will escape the values to prevent [SQL injection](http://wikipedia.org/wiki/SQL_Injection). - -## Parameters - -Our example query earlier contains a `:user` parameter, which we can assign to a value using [Database_Query::param] like so: - - $query->param(':user', 'john'); - -[!!] Parameter names can be any unique string, as they are replaced using [strtr](http://php.net/strtr). It is highly recommended to **not** use dollars signs as parameter names to prevent confusion. Colons are commonly used. - -You can also update the `:user` parameter by calling [Database_Query::param] again: - - $query->param(':user', $_GET['search']); - -If you want to set multiple parameters at once, you can use [Database_Query::parameters]. - - $query = DB::query(Database::SELECT, 'SELECT * FROM users WHERE username = :user AND status = :status'); - - $query->parameters(array( - ':user' => 'john', - ':status' => 'active', - )); - -It is also possible to bind a parameter to a variable, using a [variable reference]((http://php.net/language.references.whatdo)). This can be extremely useful when running the same query many times: - - $query = DB::query(Database::INSERT, 'INSERT INTO users (username, password) VALUES (:user, :pass)') - ->bind(':user', $username) - ->bind(':pass', $password); - - foreach ($new_users as $username => $password) - { - $query->execute(); - } - -In the above example, the variables `$username` and `$password` are changed for every loop of the `foreach` statement. When the parameter changes, it effectively changes the `:user` and `:pass` query parameters. Careful parameter binding can save a lot of code when it is used properly. - -The only difference between `param()` and `bind()` is that `bind()` passes the variable by reference rather than by assignment (copied), so future changes to the variable can be "seen" by the query. - -[!!] Although all parameters are escaped to prevent SQL injection, it is still a good idea to validate/sanitize your input. - -## Display the raw query - -If you want to display the SQL that will be executed, you can simply echo the query: - - echo $query; - // Should display: - // SELECT * FROM users WHERE username = 'john' - -## Executing - -Once you have assigned something to each of the parameters, you can execute the query using `execute()` and use [the results](results). - - $result = $query->execute(); - -To use a different database [config group](config) pass either the name or the config object to `execute()`. - - $result = $query->execute('config_name') \ No newline at end of file diff --git a/includes/kohana/modules/database/guide/database/results.md b/includes/kohana/modules/database/guide/database/results.md deleted file mode 100644 index e13dfa12..00000000 --- a/includes/kohana/modules/database/guide/database/results.md +++ /dev/null @@ -1,105 +0,0 @@ -# Results - -## Execute - -Once you have a query object built, either through a parameterized statement or through the builder, you must then `execute()` the query and retrieve the results. Depending on the query type used, the results returned will vary. - -## Select - -[DB::select] will return a [Database_Result] object which you can then iterate over. This example shows how you can iterate through the [Database_Result] using a foreach. - - $results = DB::select()->from('users')->where('verified', '=', 0)->execute(); - foreach($results as $user) - { - // Send reminder email to $user['email'] - echo $user['email']." needs to verify his/her account\n"; - } - -### Select - `as_object()` and `as_assoc()` - -When iterating over a result set, the default type will be an associative array with the column names or aliases as the keys. As an option, before calling `execute()`, you can specify to return the result rows as an object by using the `as_object()` method. The `as_object()` method takes one parameter, the name of the class of your choice, but will default to TRUE which uses the `stdClass`. Here is the example again using `stdClass`. - - $results = DB::select()->from('users')->where('verified', '=', 0)->as_object()->execute(); - foreach($results as $user) - { - // Send reminder email to $user->email - echo $user->email." needs to verify his/her account\n"; - } - -[!!] The method `as_assoc()` will remove the object name and return the results set back to an associative array. Since this is the default, this method is seldom required. - -### Select - `as_array()` - -Sometimes you will require the results as a pure array rather than as an object. The `Database_Result` method `as_array()` will return an array of all rows. - - $results = DB::select('id', 'email')->from('users')->execute(); - $users = $results->as_array(); - foreach($users as $user) - { - echo 'User ID: '.$user['id']; - echo 'User Email: '.$user['email']; - } - -It also accepts two parameters that can be very helpful: `$key` and `$value`. When passing a value to `$key` you will index the resulting array by the column specified. - - $results = DB::select('id', 'email')->from('users')->execute(); - $users = $results->as_array('id'); - foreach($users as $id => $user) - { - echo 'User ID: '.$id; - echo 'User Email: '.$user['email']; - } - -The second parameter, `$value`, will reference the column specified and return that value rather than the whole row. This is particularly useful when making `

-

- - - -~~~ - -View for `crop/do` action goes to `views/crop/do.php`. - -~~~ - - - Upload Profile Image Result - - - -

Upload success

-

- Here is your uploaded and cropped avatar: - " alt="Uploaded avatar" /> -

- -

Something went wrong with the upload

-

- - - -~~~ - -## Screenshots - -Below are screenshots for this example. - -![Original image](crop_orig.jpg) - -_Original image to upload_ - -![Upload image form](crop_form.jpg) - -_Upload image form_ - -![Upload result page](crop_result.jpg) - -_Upload result form_ \ No newline at end of file diff --git a/includes/kohana/modules/image/guide/image/examples/dynamic.md b/includes/kohana/modules/image/guide/image/examples/dynamic.md deleted file mode 100644 index 2d70260b..00000000 --- a/includes/kohana/modules/image/guide/image/examples/dynamic.md +++ /dev/null @@ -1,108 +0,0 @@ -# Dynamic Image Controller - -In this example, we have images under `/uploads` under the webroot directory. We allow the user to render any image with dynamic dimension and is resized on the fly. It also caches the response for 1 hour to show basic caching mechanism. - -## Route - -First, we need a [Route]. This [Route] is based on this URL pattern: - -`/imagefly/filename/width/height` - where filename is the name of the image without the extension. This assumes that all images are in `jpg` and all filenames uses numbers, letters, dash and underscores only. - -This is our [Route] definition: - -~~~ -/** - * Set route for image fly - */ -Route::set('imagefly', 'imagefly///', array('image' => '[-09a-zA-Z_]+', 'width' => '[0-9]+', 'height' => '[0-9]+')) - ->defaults(array( - 'controller' => 'imagefly', - 'action' => 'index' - )); -~~~ - -We ensure that the filename is only composed of letters, numbers and underscores, width and height must be numeric. - -## Controller - -Our controller simply accepts the request and capture the following parameters as defined by the [Route]: - -* `filename` - without the filename extension (and without dot) -* `width` -* `height` - -Then it finds the image file and when found, render it on the browser. Additional features added are browser caching. - -~~~ -request->param('image'); - $width = (int) $this->request->param('width'); - $height = (int) $this->request->param('height'); - - $rendered = FALSE; - if ($file AND $width AND $height) - { - $filename = DOCROOT.'uploads/'.$file.'.jpg'; - - if (is_file($filename)) - { - $this->_render_image($filename, $width, $height); - $rendered = TRUE; - } - } - - if ( ! $rendered) - { - $this->response->status(404); - } - } - - protected function _render_image($filename, $width, $height) - { - // Calculate ETag from original file padded with the dimension specs - $etag_sum = md5(base64_encode(file_get_contents($filename)).$width.','.$height); - - // Render as image and cache for 1 hour - $this->response->headers('Content-Type', 'image/jpeg') - ->headers('Cache-Control', 'max-age='.Date::HOUR.', public, must-revalidate') - ->headers('Expires', gmdate('D, d M Y H:i:s', time() + Date::HOUR).' GMT') - ->headers('Last-Modified', date('r', filemtime($filename))) - ->headers('ETag', $etag_sum); - - if ( - $this->request->headers('if-none-match') AND - (string) $this->request->headers('if-none-match') === $etag_sum) - { - $this->response->status(304) - ->headers('Content-Length', '0'); - } - else - { - $result = Image::factory($filename) - ->resize($width, $height) - ->render('jpg'); - - $this->response->body($result); - } - } -} -~~~ - -When the parameters are invalid or the filename does not exists, it simply returns 404 not found error. - -The rendering of image uses some caching mechanism. One by setting the max age and expire headers and second by using etags. - -## Screenshots - -Visiting [http://localhost/kohana/imagefly/kitteh/400/400](http://localhost/kohana/imagefly/kitteh/400/400) yields: - -![Kitten 400x400](dynamic-400.jpg) - -Visiting [http://localhost/kohana/imagefly/kitteh/600/500](http://localhost/kohana/imagefly/kitteh/600/500) yields: - -![Kitten 400x400](dynamic-600.jpg) \ No newline at end of file diff --git a/includes/kohana/modules/image/guide/image/examples/upload.md b/includes/kohana/modules/image/guide/image/examples/upload.md deleted file mode 100644 index e08b780c..00000000 --- a/includes/kohana/modules/image/guide/image/examples/upload.md +++ /dev/null @@ -1,139 +0,0 @@ -# Upload Image - -The following example shows how to handle uploading of an image, resize it and save it to a file. Be sure you have enabled the [Image] module as discussed in getting started guide. - -Assuming you are creating a web application that allows your members to upload their profile picture (avatar), the steps below explains it how. - -## Controller - -First we need to create a controller that handles the requests for uploading an image. We will name it `Controller_Avatar` and accessible through `/avatar` URL. Assuming that your project is located at [http://localhost/kohana](http://localhost/kohana), then our avatar controller is at [http://localhost/kohana/avatar](http://localhost/kohana/avatar). - -For simplicity, the upload form will be on `index` action and `upload` action will process the uploaded file. This is what our controller now looks like. Please note that we are not using [Controller_Template], just [Controller]. - -~~~ -response->body($view); - } - - public function action_upload() - { - $view = View::factory('avatar/upload'); - $error_message = NULL; - $filename = NULL; - - if ($this->request->method() == Request::POST) - { - if (isset($_FILES['avatar'])) - { - $filename = $this->_save_image($_FILES['avatar']); - } - } - - if ( ! $filename) - { - $error_message = 'There was a problem while uploading the image. - Make sure it is uploaded and must be JPG/PNG/GIF file.'; - } - - $view->uploaded_file = $filename; - $view->error_message = $error_message; - $this->response->body($view); - } - - protected function _save_image($image) - { - if ( - ! Upload::valid($image) OR - ! Upload::not_empty($image) OR - ! Upload::type($image, array('jpg', 'jpeg', 'png', 'gif'))) - { - return FALSE; - } - - $directory = DOCROOT.'uploads/'; - - if ($file = Upload::save($image, NULL, $directory)) - { - $filename = strtolower(Text::random('alnum', 20)).'.jpg'; - - Image::factory($file) - ->resize(200, 200, Image::AUTO) - ->save($directory.$filename); - - // Delete the temporary file - unlink($file); - - return $filename; - } - - return FALSE; - } - -} -~~~ - -We have `index` and `upload` actions. `index` action will display the upload form and `upload` action will process the uploaded image and provides feedback to the user. - -In `upload` action, it checks if the request method was `POST`, then delegates the process to `_save_image()` method which in turn performs various checks and finally resize and save the image to the `uploads` directory. - -## Views - -For the upload form (the `index` action), the view is located at `views/avatar/index.php`. - -~~~ - - - Upload Avatar - - -

Upload your avatar

-
-

Choose file:

-

-

-
- - -~~~ - -Take note of the action attribute. It points to our `avatar/upload` action whose view code goes to `views/avatar/upload.php`. - -~~~ - - - Upload Avatar Result - - - -

Upload success

-

- Here is your uploaded avatar: - " alt="Uploaded avatar" /> -

- -

Something went wrong with the upload

-

- - - -~~~ - -When the upload is successfull, a success message is displayed with the uploaded image displayed. Otherwise, when it fails, it displays an error message. - -## Screenshots - -Below are screenshots for this example. - -![Upload image form](upload_form.jpg) - -_Upload image form_ - -![Upload result page](upload_result.jpg) - -_Upload result form_ \ No newline at end of file diff --git a/includes/kohana/modules/image/guide/image/index.md b/includes/kohana/modules/image/guide/image/index.md deleted file mode 100644 index 0225c26a..00000000 --- a/includes/kohana/modules/image/guide/image/index.md +++ /dev/null @@ -1,21 +0,0 @@ -# Image - -Kohana 3.x provides a simple yet powerful image manipulation module. The [Image] module provides features that allows your application to resize images, crop, rotate, flip and many more. - -## Drivers - -[Image] module ships with [Image_GD] driver which requires `GD` extension enabled in your PHP installation. This is the default driver. Additional drivers can be created by extending the [Image] class. - -## Getting Started - -Before using the image module, we must enable it first on `APPPATH/bootstrap.php`: - -~~~ -Kohana::modules(array( - ... - 'image' => MODPATH.'image', // Image manipulation - ... -)); -~~~ - -Next: [Using the image module](using). \ No newline at end of file diff --git a/includes/kohana/modules/image/guide/image/menu.md b/includes/kohana/modules/image/guide/image/menu.md deleted file mode 100644 index 8c877435..00000000 --- a/includes/kohana/modules/image/guide/image/menu.md +++ /dev/null @@ -1,6 +0,0 @@ -## [Image]() -- [Using](using) -- [Examples](examples) - - [Upload Image](examples/upload) - - [Crop Profile Image](examples/crop) - - [Dynamic Image Controller](examples/dynamic) \ No newline at end of file diff --git a/includes/kohana/modules/image/guide/image/using.md b/includes/kohana/modules/image/guide/image/using.md deleted file mode 100644 index fd1859b3..00000000 --- a/includes/kohana/modules/image/guide/image/using.md +++ /dev/null @@ -1,112 +0,0 @@ -# Basic Usage - -Shown here are the basic usage of this module. For full documentation about the image module usage, visit the [Image] api browser. - -## Creating Instance - -[Image::factory()] creates an instance of the image object and prepares it for manipulation. It accepts the `filename` as an arguement and an optional `driver` parameter. When `driver` is not specified, the default driver `GD` is used. - -~~~ -// Uses the image from upload directory -$img = Image::factory(DOCROOT.'uploads/sample-image.jpg'); -~~~ - -Once an instance is created, you can now manipulate the image by using the following instance methods. - -## Resize - -Resize the image to the given size. Either the width or the height can be omitted and the image will be resized proportionally. - -Using the image object above, we can resize our image to say 150x150 pixels with automatic scaling using the code below: - -~~~ -$img->resize(150, 150, Image::AUTO); -~~~ - -The parameters are `width`, `height` and `master` dimension respectively. With `AUTO` master dimension, the image is resized by either width or height depending on which is closer to the specified dimension. - -Other examples: - -~~~ -// Resize to 200 pixels on the shortest side -$img->resize(200, 200); - -// Resize to 200x200 pixels, keeping aspect ratio -$img->resize(200, 200, Image::INVERSE); - -// Resize to 500 pixel width, keeping aspect ratio -$img->resize(500, NULL); - -// Resize to 500 pixel height, keeping aspect ratio -$img->resize(NULL, 500); - -// Resize to 200x500 pixels, ignoring aspect ratio -$img->resize(200, 500, Image::NONE); -~~~ - -## Render - -You can render the image object directly to the browser using the [Image::render()] method. - -~~~ -$img = Image::factory(DOCROOT.'uploads/colorado-farm-1920x1200.jpg'); - -header('Content-Type: image/jpeg'); - -echo $img->resize(300, 300) - ->render(); -~~~ - -What it did is resize a 1920x1200 wallpaper image into 300x300 proportionally and render it to the browser. If you are trying to render the image in a controller action, you can do instead: - -~~~ -$img = Image::factory(DOCROOT.'uploads/colorado-farm-1920x1200.jpg'); - -$this->response->headers('Content-Type', 'image/jpg'); - -$this->response->body( - $img->resize(300, 300) - ->render() -); -~~~ - -[Image::render()] method also allows you to specify the type and quality of the rendered image. - -~~~ -// Render the image at 50% quality -$img->render(NULL, 50); - -// Render the image as a PNG -$img->render('png'); -~~~ - -## Save To File - -[Image::save()] let's you save the image object to a file. It has two parameters: `filename` and `quality`. If `filename` is omitted, the original file used will be overwritten instead. The `quality` parameter is an integer from 1-100 which indicates the quality of image to save which defaults to 100. - -On our example above, instead of rendering the file to the browser, you may want to save it somewhere instead. To do so, you may: - -~~~ -$img = Image::factory(DOCROOT.'uploads/colorado-farm-1920x1200.jpg'); - -$filename = DOCROOT.'uploads/img-'.uniqid().'.jpg'; - -$img->resize(300, 300) - ->save($filename, 80); -~~~ - -What we do is resize the image and save it to file reducing quality to 80% and save it to the upload directory using a unique filename. - -## Other Methods - -There are more methods available for the [Image] module which provides powerfull features that are best describe in the API documentation. Here are some of them: - -* [Image::background()] - Set the background color of an image. -* [Image::crop()] - Crop an image to the given size. -* [Image::flip()] - Flip the image along the horizontal or vertical axis. -* [Image::reflection()] - Add a reflection to an image. -* [Image::rotate()] - Rotate the image by a given amount. -* [Image::sharpen()] - Sharpen the image by a given amount. -* [Image::watermark()] - Add a watermark to an image with a specified opacity. - -Next: [Examples](examples) \ No newline at end of file diff --git a/includes/kohana/modules/image/media/guide/image/Thumbs.db b/includes/kohana/modules/image/media/guide/image/Thumbs.db deleted file mode 100644 index a0f028f80c3d119e1f50f6f3ab445a267420816c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19968 zcmeI(2UrzLz9{-dMxr1&N=7o0ksu;ja?UC!Ip>TZQG$SgAVCmBvM8{~S#pq^(;|bw zA}{hSW@eu|GiTnpv*(=mzPsNy1wVRyO{eOvuKssbt)Bw~3t43pi;%xd5)c%~)%7h1 z`d`gQ0-taEDcy!Zkimx=SJ&6qf1U|}fRF!9f1opP362#9Ts%Sm6+i=St~myP3ETp( z0Biskpat*%d;k;y2mx>hxG4ifU`h;-0HgpJKn_p8w|5B0O|6P0g&kNt=|7KG+_wGNN|9fEBpMSYnH|yTi;WyXh|8)P~)Dt&#z~A5h zH+9EN9q@bZ|C@T`E|l?EOIGJq@~2gm~ofFhs-JOPve6+jhG1JnTx zKoigcv;iGJ7tjOr0RzAgFanGL6TlRB3Ooaz17?6Z@B(-V+>}L2zzVoI#tbmE1?&KO zzyWXsoB(IQ1#ku20C&Ix@C0t|W^cd;@CEz;e;@z|1a7YBO&Rb5_rvwX^#bI!qO5`} z1PK(Xr#A<9Jq=C`3NrG|FG#517Y!2)4HXp)3j+fk69)?i2OA3;8yAo8HZC3k9ya!E zlG_A#h=_@aaqvmWNQlS?iHM1AHiCo#)aI`lE{Fj7;42}^U1M?OZHdvqn+@VM)D9ETNH%ASY_5=Tipc0@F z((y{6-%)>tLGMI#|5aQTCc~q$W@3#&I3wS4=b&3yB&1~I6im!4toPXX1q6kJMMR|^ z%gD;fD=2DeY3u0f=^L1tzj$e3X=Ux=>gMj@>E#{#IwUkKJR&ka;ay@<^81w3>`ytl zpYy)t7kv9(UQr3Hs;+5iZTr#Q(b?5KG(0joHa;;qwFp~UURhmR-`L#SKR7%(K0%zG z-Q)`ig7W8V{YTFJE?)#7U&yGaD5w}W`9ebW08j`}(dc;538mCAo;ls2zyAu8=uuo&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VQd4L-ir}hI!c&4D1suVJKRffzNR=Ef1g8U z(c3tOx2-lBVfNpJ*Bv-3Sy=L|d>Q@jF;kSoW8~RjIFoi{-{>dY&qzM&D%f zV|RBvYmkAs7OT#}m5}v{6HK%;1qs@gi?C7=fq=E_Oo3YXg#HDOs{di&tElYvxnBka zb226de$wqc+l%%|j%f9vjI}frF5r8|^yczc6+Ija>z+u(mXt$VqOmLEVs6yMzjy2r zOlW2#BjG7MM(fK68C(#crv8Gb9K5F9Ze!QcY3 zL=dSdv>?=_d5u*0uzZv8un9?@I8c!TO%`U=c$_RkFb@Fs_kv867uI8;OBY6O?9tgK zb_a{TEg;j^cT?5)jgJqVzW9mfAks=FW@Dj?j5Z(0lFae*RATo9Nl#J*5L3LmV~Mg8 zd1XziAkpD1>tai#Q9VnZlL^T&B6|VhD$owCp}qQ%4pmhRL@GlU=7)p9MWY+6*eFb( z7XSd;T$z^LpeVj0*^l|@R0PztQp$wWO+^UQbdW|_*_3b{o#1j;;GE;hnR@le|DpR3 zk+42;(*H{)q&+g2G-L)ix;Bf?O3=kzc6s{gVLxzYs|b&6ftIk~vPz~f7>DCghYj01 zS_pW)K9X}~8}M*_Iq}w7P7dZW9WaMu66?|3+5!f%s6MX!z?Q>|8I&xIz1XcOd(wX_ zyB-(Zbo!dH76P^@oH!>bo5|NO9ha4}G0QGMDxg~yGEYb=K&>t41bKo6FQ#P6Y}WSe ztz@NR0h@fapcEw=ZUPr66b?o^ZvY@wg~xywAcYyAzJgS diff --git a/includes/kohana/modules/image/media/guide/image/crop_orig.jpg b/includes/kohana/modules/image/media/guide/image/crop_orig.jpg deleted file mode 100644 index 1389acc3f6954c66a7abeb0ddd587960d12b4926..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 31360 zcma&MWl$YK(>8o?cZcA?or45-m*DPlaCZsr?r?Ak?(PuW4#6FQy9W=FFZcbt-&60; zx3{Kds;9U1s@dJ1zPjh{>fapzro6PAGyn=30I>LX0sdY9up~Xq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L29F+DAY<=F2k61jEj{jW-ov76?xN5^b8r#NUi@Eh*u1m13%QbOXv7e0NP1s z?c~KGG3ktyT$tq4+Af!~0gwd{5E_Kr8l)6ORTV6tDQv7|ciR8S;k<)Afm zTuWk0Y!&kRNzb`@RwYFvgdZahxjaeWkjKnhXlm0b^aJamDJ(k@$SK6&TV;~9lw;sO54Mgx{wGx zS_z%;yMb4A`XT1ybK%{2Tp1_eX+mj!6W&B9^?{HHm5N1XO0)uuzbS${Ql)>gzRH^g z9XrGP3IU&U{IctQ2Qy%Z>VvKoxja$Ov4ks7mCtn7dzI@{=6I2}m&pB~KP&Zh<|E;! i$i?@oC`G31{qJpG-wO&QDi!l5>O5w@0jYk!SN;!iv84zA diff --git a/includes/kohana/modules/image/media/guide/image/dynamic-400.jpg b/includes/kohana/modules/image/media/guide/image/dynamic-400.jpg deleted file mode 100644 index 13b691f07b876985a4227afd62a821629adbe68f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27609 zcmc$_WmF~0vLL*1cXw;t-5nZt_r@D&++7-n#@$^u?(XhRU>Fr0JleQ(~InYCut z_v4GKT^SJ-6%|=KGAk-7^JD2_3xF*BRq87M1QY-;`7D5sGXRR1v$2&s00aOI008(t zSr-5bVG~;;Q-DeLCkF%!fB_B$35x&#;I{z)R4f31$Q=M+_4{KL5D0(-2M31$hlGHD zgn|70!9hbpLc_ts!otDA!Xv}~4ao3_NXSTt@Mvi0=xAv8czAgDME?OGP*6|^@Cew* z$k@0TC>Xf^ap3oJ;D zcCfn+h!a&o|AGntfI&h0=j8#&ApQViyO=8!VJ5#E!&o$se=LFg%l?0<{?v@DWJqj( zt^K zi!VKIId{6!t2yPqG~fV*49nn$UKvkV=u@6?C}@SjllrkJ<>5eEI}nQ+U}5wdJ#tyO zI&o|iW`LdLW($q4N>(tvDN{^)Y`^+8ePX69liED~I9vRe#lhVa8$2Azl*&f);Sb6R zTgOFTeJe9tIdWMUep5|LwKGFQ*oA`f3+o5QOx(=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OgxFF&Z`{ zf59UQyEGpOuQbOvun4_n3}XSoF7(Jg;};F%SixV%L*x#KW2Pu#FL5fMHn&uzn3N>t zo2+W-1Vw54?E(7J`(o)?jbsR_ipw?+PW%OPpvNP;*$b`vw> z?2{{X^(uMvs^Nc=rYqimmdRJ_0C3wKT#&2}Pij*}>j(@g8l{@kT0BDL)y`2S>G!y_ z&n|kp8g6N*k(cyHL?(V&n*v?kR@~IS^-P(D{7e}-{cuPy=a4THhYgP4r7I~L&BQN? z#{r;$jr-j=`|9${Gz2@r@s;LSx0&StKZ;eeArcXYydLsrKA0k2RrU};4Og1k-Ll7~ zEE=*bHg@Yaq$R!3jA=s+E9trw<;c*DkItQWcQUa2?jpEGY=~+ z+_9zAl=g=qam7(ahY&w1f`Pfx*@R$DD#|Kh1w0aWYzSO1Y_5$0O>4$9Oc)J~hz6L3 z3Kxab2RH+e0mQV@id81&5MV#IB(0g^SbGjQsv;Tyr9{wf3t~cs>6^`Y4&7xEJ0$Px~P1Wv{e*;%nr(FCY|fGkZKC1-s&qxlH^&7M=T0xd1{+ zY^_H68UdUSZ|6klAIbD+U~(*whD4IWgC#{8tXCHgzw8MER^b@c0rdb-v2?lDCUJ+x z2Lx;(l*Clo3Y0}{NIV-A973IL5@~+bg5-GP*m5o2Olobbi>8=Ef`)w$&|H}Z32;Vu zdtcJfWMBAJuTnc^UoDg@HnyaJ5(12wD^vci1q;n`287pT3X+V-L|FECu(n3N9ap4x0#YY~rqobqp77KFf&5y1341@R|#?|n@rT+oZhm}SE diff --git a/includes/kohana/modules/image/media/guide/image/dynamic-600.jpg b/includes/kohana/modules/image/media/guide/image/dynamic-600.jpg deleted file mode 100644 index f521b49b14679d954038f36b2c2048176ccd2060..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45517 zcma&NbzB@x7bc2_;4XncaCaL#!QE|e7#xC=z+k~0GPt|Dy99UlK=8rcJ^3AhcWy0hQPwZ;3L2zp`gRSaHhk+h=O5YZ0liQYDW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est.php b/includes/kohana/modules/image/tests/kohana/ImageTest.php deleted file mode 100644 index 967b7643..00000000 --- a/includes/kohana/modules/image/tests/kohana/ImageTest.php +++ /dev/null @@ -1,36 +0,0 @@ -markTestSkipped('The GD extension is not available.'); - } - } - - /** - * Tests the Image::save() method for files that don't have extensions - * - * @return void - */ - public function test_save_without_extension() - { - $image = Image::factory(MODPATH.'image/tests/test_data/test_image'); - $this->assertTrue($image->save(Kohana::$cache_dir.'/test_image')); - - unlink(Kohana::$cache_dir.'/test_image'); - } - -} // End Kohana_ImageTest diff --git a/includes/kohana/modules/image/tests/test_data/test_image b/includes/kohana/modules/image/tests/test_data/test_image deleted file mode 100644 index 683a3c3e95a97f0f36a4b029d59840a51da473ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3455 zcmbV{`#%$o_s2J8Gg6ei&Co(}t1z@Fn&q|cH&f?JN93qQD{9}JY6N1OIPMAAo=WfFeNY?}fiV z0l{QKRS|J!H?G_Dw5 z-*0*Re*Gth8XOWD79J596&({B=OvUF@0ggHY5^0cNy1`NVY!m|l89$T#U;h3U%dRc z>?K0TOh{bxNUf;2WMyz-ULoQYqrIb(k$v-Z4IkeTWR%6gQT|GZ#G%{jL{lz0Aj(_R>N8&53) zYff#ylg0ay1(fD-xf>RSxEi6hN5X*xt5bqzdfI_vanCeD5c{S@{n@-)MGAD8kV9Dy zM2ZUa&WAXY_;O--XWzC&bIGb##0Urqee26pM84Bk!0NNO=8CQD;~&OW86k__;di3W z)&K(M?lXc*Gb{eZC`n{jlFkFn?mACfUjU6?)5iuMhXX;Oh4#ZuV@&p>Y0+s6AZf18 z{hLqtj=$H>jEQ>;$)*_jr!co~uZuJ)iVyg6=ikR8|8-RaNx!XEz9L3Zm)&-a%b%Y6 zqf*bNnEh;s?m}INEf}B#eA6oUS1J&S#wJdU&#dE3nw% ztT8Oy!6}cp{!6vriu`-qH1yj;ltn0Gr*1sH?Z6X^yT6!bM>s!lKk?Rocv-sBGrw8*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CAHS`C AA^-pY diff --git a/includes/kohana/modules/khemail/README.markdown b/includes/kohana/modules/khemail/README.markdown deleted file mode 100644 index c2053385..00000000 --- a/includes/kohana/modules/khemail/README.markdown +++ /dev/null @@ -1,39 +0,0 @@ -Email Module For Kohana 3.0 -================================= - -This is a direct port of the email helper from Kohana 2.3.3 source code. - -It has been updated to work with SwiftMailer 4 and includes the libs dir from the 4.0.4 distribution. - -Usage should be exactly as with old helper. - -Methods defined: - -### Email::connect($config = NULL) - -Creates SwiftMailer object. $config is an array of configuration values and defaults to using the config file 'email'. - -Note: PopBeforeSmtp is not supported in this release as I didn't know what was required to set it up. -It IS supported in Swiftmailer through the Swift_Plugins_PopBeforeSmtpPlugin plugin class. This can be used manually if required. -If anyone can modify and test the connect() methd with this functionality I'll add it but I can't find documentation about how it used to work (i.e. is expected to work) so I have left it out for now. - -### Email::send($to, $from, $subject, $message, $html = false) - -$to can be any of the following: - -* a single string email address e.g. "test@example.com" -* an array specifying an email address and a name e.g. array('test@example.com', 'John Doe') -* an array of recipients in either above format, keyed by type e.g. array('to' => 'test@example.com', 'cc' => array('test2@example.com', 'Jane Doe'), 'bcc' => 'another@example.com') - -$from can be either a string email or array of email and name as above - -More complex email (multipart, attachments, batch mailing etc.) must be done using the native Swift_Mailer classes. The Swift Mailer autoloader is included by connect() so you can use and class in the Swift library without worrying about including files. - -The Swift_Mailer object setup by connect is returned by it so if you need to access it manually use: - - $mailer = Email::connect(); - - // Create complex Swift_Message object stored in $message - - $mailer->send($message); - diff --git a/includes/kohana/modules/khemail/classes/Email.php b/includes/kohana/modules/khemail/classes/Email.php deleted file mode 100644 index 32ddec51..00000000 --- a/includes/kohana/modules/khemail/classes/Email.php +++ /dev/null @@ -1,145 +0,0 @@ -load('email'); - - switch ($config['driver']) - { - case 'smtp': - // Set port - $port = empty($config['options']['port']) ? 25 : (int) $config['options']['port']; - - // Create SMTP Transport - $transport = Swift_SmtpTransport::newInstance($config['options']['hostname'], $port); - - if ( ! empty($config['options']['encryption'])) - { - // Set encryption - $transport->setEncryption($config['options']['encryption']); - } - - // Do authentication, if part of the DSN - empty($config['options']['username']) or $transport->setUsername($config['options']['username']); - empty($config['options']['password']) or $transport->setPassword($config['options']['password']); - - // Set the timeout to 5 seconds - $transport->setTimeout(empty($config['options']['timeout']) ? 5 : (int) $config['options']['timeout']); - break; - case 'sendmail': - // Create a sendmail connection - $transport = Swift_SendmailTransport::newInstance(empty($config['options']) ? "/usr/sbin/sendmail -bs" : $config['options']); - - break; - default: - // Use the native connection - $transport = Swift_MailTransport::newInstance($config['options']); - break; - } - - // Create the SwiftMailer instance - return Email::$mail = Swift_Mailer::newInstance($transport); - } - - /** - * Send an email message. - * - * @param string|array recipient email (and name), or an array of To, Cc, Bcc names - * @param string|array sender email (and name) - * @param string message subject - * @param string message body - * @param boolean send email as HTML - * @return integer number of emails sent - */ - public static function send($to, $from, $subject, $message, $html = FALSE) - { - // Connect to SwiftMailer - (Email::$mail === NULL) and email::connect(); - - // Determine the message type - $html = ($html === TRUE) ? 'text/html' : 'text/plain'; - - // Create the message - $message = Swift_Message::newInstance($subject, $message, $html, 'utf-8'); - - if (is_string($to)) - { - // Single recipient - $message->setTo($to); - } - elseif (is_array($to)) - { - if (isset($to[0]) AND isset($to[1])) - { - // Create To: address set - $to = array('to' => $to); - } - - foreach ($to as $method => $set) - { - if ( ! in_array($method, array('to', 'cc', 'bcc'))) - { - // Use To: by default - $method = 'to'; - } - - // Create method name - $method = 'add'.ucfirst($method); - - if (is_array($set)) - { - // Add a recipient with name - $message->$method($set[0], $set[1]); - } - else - { - // Add a recipient without name - $message->$method($set); - } - } - } - - if (is_string($from)) - { - // From without a name - $message->setFrom($from); - } - elseif (is_array($from)) - { - // From with a name - $message->setFrom($from[0], $from[1]); - } - - return Email::$mail->send($message); - } - -} // End email diff --git a/includes/kohana/modules/khemail/config/email.php b/includes/kohana/modules/khemail/config/email.php deleted file mode 100644 index 1dfad969..00000000 --- a/includes/kohana/modules/khemail/config/email.php +++ /dev/null @@ -1,29 +0,0 @@ - 'native', - - /** - * To use secure connections with SMTP, set "port" to 465 instead of 25. - * To enable TLS, set "encryption" to "tls". - * - * Note for SMTP, 'auth' key no longer exists as it did in 2.3.x helper - * Simply specifying a username and password is enough for all normal auth methods - * as they are autodeteccted in Swiftmailer 4 - * - * PopB4Smtp is not supported in this module as I had no way to test it but - * SwiftMailer 4 does have a PopBeforeSMTP plugin so it shouldn't be hard to implement - * - * Encryption can be one of 'ssl' or 'tls' (both require non-default PHP extensions - * - * Driver options: - * @param null native: no options - * @param string sendmail: executable path, with -bs or equivalent attached - * @param array smtp: hostname, (username), (password), (port), (encryption) - */ - 'options' => NULL -); \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/CHANGES b/includes/kohana/modules/khemail/vendor/swift/CHANGES deleted file mode 100644 index 86fdb119..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/CHANGES +++ /dev/null @@ -1,61 +0,0 @@ -Changelog for Swift Mailer, since Version 4.x ---------------------------------------------- - -09 March 2009: 4.0.0 --------------------- - - * Complete rewrite of Version 3.x with lots of breaking changes at the interface - level, but for the best in the long run. - * Changed Connections to Transports - * Made sending more robust (less error prone) - * Simplified Swift_Message interface (removed need for separate RecipientList) - * Improved Plugin API (better event management) - * Changed all MIME generated content to be full RFC 2822 (and friends) compliant - -11 March 2009: 4.0.1 --------------------- - - * Fixed regression with cache clearing logic in setBody(), setEncoder() and - setCharset() - -13 March 2009: 4.0.2 --------------------- - - * Added addTo(), addCc() etc methods. - * Allowed setTo(), setCc() etc to accept a $name parameters. - * Patched a bug in MailTransport where failed recipients were not being merged. - * Added Swift::VERSION constant - * Allowed custom autoloaders to be used - -20 March 2009: 4.0.3 --------------------- - - * Fixed Bug where base64 encoded content could exceed 76 chars per line - * Allowed Decorator plugin to accept a custom Replacements object - -12 August 2009: 4.0.4 --------------------- - - * Bugfixes for operating under safe mode and using the MailTransport - * Compatibility for PHP 5.3 - * Optimizations for addTo(), addCc() etc operations - * Bugfix for double-escaping issue in batch sending - -27 September 2009: 4.0.5 ------------------------- - - * Fixed a warning (#78) - * Clarified license and updated the file headers accordingly - * Added __toString() methods where toString() methods already exists - * Removed constants (SWIFT_LIB_DIRECTORY, SWIFT_MAP_DIRECTORY, SWIFT_CLASS_DIRECTORY) - * Simplified autoloading - * Added a setAuthMode() method to AuthHandler (#54) - -20 January 2010: 4.0.6 ----------------------- - - * added a PEAR package and a script to generate PEAR packages - * fixed Swift_Transport_TransportException for SMTP connection not thrown (#109) - * fixed Message-IDs are not updated properly (#118) - --- End of Changes -- diff --git a/includes/kohana/modules/khemail/vendor/swift/LICENSE b/includes/kohana/modules/khemail/vendor/swift/LICENSE deleted file mode 100644 index fc8a5de7..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/includes/kohana/modules/khemail/vendor/swift/README b/includes/kohana/modules/khemail/vendor/swift/README deleted file mode 100644 index 794d8320..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/README +++ /dev/null @@ -1,30 +0,0 @@ -Swift Mailer, by Chris Corbyn ------------------------------ - -Swift Mailer is a component based mailing solution for PHP 5. -It is released under the LGPL license. - -Homepage: http://swiftmailer.org -Documentation: http://swiftmailer.org/docs -Mailing List: http://groups.google.com/group/swiftmailer -Bugs: http://swiftmailer.lighthouseapp.com/ -Repository: http://github.com/swiftmailer/swiftmailer - -Swift Mailer is highly object-oriented by design and lends itself -to use in complex web application with a great deal of flexibility. - -For full details on usage, see the documentation. - -IMPORTANT: Users upgrading from version 3.x or earlier absolutely - MUST read the documentation. In short, the API is considerably - different so your old code won't "just work". - -If you'd like to make a donation, we are working on a system where -donations are taken on a per-feature-request basis via the website -with target amounts for each feature. In the meantime however you -may donate directly to the author via PayPal: - - PayPal: chris@w3style.co.uk - -Donations are certainly voluntary, but seriously, you donors are -complete legends and drive this project! :) diff --git a/includes/kohana/modules/khemail/vendor/swift/VERSION b/includes/kohana/modules/khemail/vendor/swift/VERSION deleted file mode 100644 index 2064f106..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/VERSION +++ /dev/null @@ -1 +0,0 @@ -Swift-4.0.6 diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift.php deleted file mode 100644 index 77abbbf6..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift.php +++ /dev/null @@ -1,57 +0,0 @@ -createDependenciesFor('mime.attachment') - ); - - $this->setBody($data); - $this->setFilename($filename); - if ($contentType) - { - $this->setContentType($contentType); - } - } - - /** - * Create a new Attachment. - * @param string|Swift_OutputByteStream $data - * @param string $filename - * @param string $contentType - * @return Swift_Mime_Attachment - */ - public static function newInstance($data = null, $filename = null, - $contentType = null) - { - return new self($data, $filename, $contentType); - } - - /** - * Create a new Attachment from a filesystem path. - * @param string $path - * @param string $contentType optional - * @return Swift_Mime_Attachment - */ - public static function fromPath($path, $contentType = null) - { - return self::newInstance()->setFile( - new Swift_ByteStream_FileByteStream($path), - $contentType - ); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/AbstractFilterableInputStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/AbstractFilterableInputStream.php deleted file mode 100644 index 71bc3f1b..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/AbstractFilterableInputStream.php +++ /dev/null @@ -1,178 +0,0 @@ -_filters[$key] = $filter; - } - - /** - * Remove an already present StreamFilter based on its $key. - * @param string $key - */ - public function removeFilter($key) - { - unset($this->_filters[$key]); - } - - /** - * Writes $bytes to the end of the stream. - * @param string $bytes - * @throws Swift_IoException - */ - public function write($bytes) - { - $this->_writeBuffer .= $bytes; - foreach ($this->_filters as $filter) - { - if ($filter->shouldBuffer($this->_writeBuffer)) - { - return; - } - } - $this->_doWrite($this->_writeBuffer); - return ++$this->_sequence; - } - - /** - * For any bytes that are currently buffered inside the stream, force them - * off the buffer. - * - * @throws Swift_IoException - */ - public function commit() - { - $this->_doWrite($this->_writeBuffer); - } - - /** - * Attach $is to this stream. - * The stream acts as an observer, receiving all data that is written. - * All {@link write()} and {@link flushBuffers()} operations will be mirrored. - * - * @param Swift_InputByteStream $is - */ - public function bind(Swift_InputByteStream $is) - { - $this->_mirrors[] = $is; - } - - /** - * Remove an already bound stream. - * If $is is not bound, no errors will be raised. - * If the stream currently has any buffered data it will be written to $is - * before unbinding occurs. - * - * @param Swift_InputByteStream $is - */ - public function unbind(Swift_InputByteStream $is) - { - foreach ($this->_mirrors as $k => $stream) - { - if ($is === $stream) - { - if ($this->_writeBuffer !== '') - { - $stream->write($this->_filter($this->_writeBuffer)); - } - unset($this->_mirrors[$k]); - } - } - } - - /** - * Flush the contents of the stream (empty it) and set the internal pointer - * to the beginning. - * @throws Swift_IoException - */ - public function flushBuffers() - { - if ($this->_writeBuffer !== '') - { - $this->_doWrite($this->_writeBuffer); - } - $this->_flush(); - - foreach ($this->_mirrors as $stream) - { - $stream->flushBuffers(); - } - } - - // -- Private methods - - /** Run $bytes through all filters */ - private function _filter($bytes) - { - foreach ($this->_filters as $filter) - { - $bytes = $filter->filter($bytes); - } - return $bytes; - } - - /** Just write the bytes to the stream */ - private function _doWrite($bytes) - { - $this->_commit($this->_filter($bytes)); - - foreach ($this->_mirrors as $stream) - { - $stream->write($bytes); - } - - $this->_writeBuffer = ''; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/ArrayByteStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/ArrayByteStream.php deleted file mode 100644 index f9188894..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/ArrayByteStream.php +++ /dev/null @@ -1,190 +0,0 @@ -_array = $stack; - $this->_arraySize = count($stack); - } - elseif (is_string($stack)) - { - $this->write($stack); - } - else - { - $this->_array = array(); - } - } - - /** - * Reads $length bytes from the stream into a string and moves the pointer - * through the stream by $length. If less bytes exist than are requested the - * remaining bytes are given instead. If no bytes are remaining at all, boolean - * false is returned. - * @param int $length - * @return string - */ - public function read($length) - { - if ($this->_offset == $this->_arraySize) - { - return false; - } - - // Don't use array slice - $end = $length + $this->_offset; - $end = $this->_arraySize<$end - ?$this->_arraySize - :$end; - $ret = ''; - for (; $this->_offset < $end; ++$this->_offset) - { - $ret .= $this->_array[$this->_offset]; - } - return $ret; - } - - /** - * Writes $bytes to the end of the stream. - * @param string $bytes - */ - public function write($bytes) - { - $to_add = str_split($bytes); - foreach ($to_add as $value) - { - $this->_array[] = $value; - } - $this->_arraySize = count($this->_array); - - foreach ($this->_mirrors as $stream) - { - $stream->write($bytes); - } - } - - /** - * Not used. - */ - public function commit() - { - } - - /** - * Attach $is to this stream. - * The stream acts as an observer, receiving all data that is written. - * All {@link write()} and {@link flushBuffers()} operations will be mirrored. - * - * @param Swift_InputByteStream $is - */ - public function bind(Swift_InputByteStream $is) - { - $this->_mirrors[] = $is; - } - - /** - * Remove an already bound stream. - * If $is is not bound, no errors will be raised. - * If the stream currently has any buffered data it will be written to $is - * before unbinding occurs. - * - * @param Swift_InputByteStream $is - */ - public function unbind(Swift_InputByteStream $is) - { - foreach ($this->_mirrors as $k => $stream) - { - if ($is === $stream) - { - unset($this->_mirrors[$k]); - } - } - } - - /** - * Move the internal read pointer to $byteOffset in the stream. - * @param int $byteOffset - * @return boolean - */ - public function setReadPointer($byteOffset) - { - if ($byteOffset > $this->_arraySize) - { - $byteOffset = $this->_arraySize; - } - elseif ($byteOffset < 0) - { - $byteOffset = 0; - } - - $this->_offset = $byteOffset; - } - - /** - * Flush the contents of the stream (empty it) and set the internal pointer - * to the beginning. - */ - public function flushBuffers() - { - $this->_offset = 0; - $this->_array = array(); - $this->_arraySize = 0; - - foreach ($this->_mirrors as $stream) - { - $stream->flushBuffers(); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/FileByteStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/FileByteStream.php deleted file mode 100644 index 14773c2f..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ByteStream/FileByteStream.php +++ /dev/null @@ -1,177 +0,0 @@ -_path = $path; - $this->_mode = $writable ? 'w+b' : 'rb'; - $this->_quotes = get_magic_quotes_runtime(); - } - - /** - * Get the complete path to the file. - * @return string - */ - public function getPath() - { - return $this->_path; - } - - /** - * Reads $length bytes from the stream into a string and moves the pointer - * through the stream by $length. If less bytes exist than are requested the - * remaining bytes are given instead. If no bytes are remaining at all, boolean - * false is returned. - * @param int $length - * @return string - * @throws Swift_IoException - */ - public function read($length) - { - $fp = $this->_getReadHandle(); - if (!feof($fp)) - { - if ($this->_quotes) - { - set_magic_quotes_runtime(0); - } - $bytes = fread($fp, $length); - if ($this->_quotes) - { - set_magic_quotes_runtime(1); - } - $this->_offset = ftell($fp); - return $bytes; - } - else - { - return false; - } - } - - /** - * Move the internal read pointer to $byteOffset in the stream. - * @param int $byteOffset - * @return boolean - */ - public function setReadPointer($byteOffset) - { - if (isset($this->_reader)) - { - fseek($this->_reader, $byteOffset, SEEK_SET); - } - $this->_offset = $byteOffset; - } - - // -- Private methods - - /** Just write the bytes to the file */ - protected function _commit($bytes) - { - fwrite($this->_getWriteHandle(), $bytes); - $this->_resetReadHandle(); - } - - /** Not used */ - protected function _flush() - { - } - - /** Get the resource for reading */ - private function _getReadHandle() - { - if (!isset($this->_reader)) - { - if (!$this->_reader = fopen($this->_path, 'rb')) - { - throw new Swift_IoException( - 'Unable to open file for reading [' . $this->_path . ']' - ); - } - fseek($this->_reader, $this->_offset, SEEK_SET); - } - return $this->_reader; - } - - /** Get the resource for writing */ - private function _getWriteHandle() - { - if (!isset($this->_writer)) - { - if (!$this->_writer = fopen($this->_path, $this->_mode)) - { - throw new Swift_IoException( - 'Unable to open file for writing [' . $this->_path . ']' - ); - } - } - return $this->_writer; - } - - /** Force a reload of the resource for writing */ - private function _resetWriteHandle() - { - if (isset($this->_writer)) - { - fclose($this->_writer); - $this->_writer = null; - } - } - - /** Force a reload of the resource for reading */ - private function _resetReadHandle() - { - if (isset($this->_reader)) - { - fclose($this->_reader); - $this->_reader = null; - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader.php deleted file mode 100644 index 53d39ece..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader.php +++ /dev/null @@ -1,60 +0,0 @@ - - */ -interface Swift_CharacterReader -{ - const MAP_TYPE_INVALID = 0x01; - const MAP_TYPE_FIXED_LEN = 0x02; - const MAP_TYPE_POSITIONS = 0x03; - - /** - * Returns the complete charactermap - * - * @param string $string - * @param int $startOffset - * @param array $currentMap - * @param mixed $ignoredChars - * @return int - */ - public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars); - - /** - * Returns mapType - * @int mapType - */ - public function getMapType(); - - /** - * Returns an integer which specifies how many more bytes to read. - * A positive integer indicates the number of more bytes to fetch before invoking - * this method again. - * A value of zero means this is already a valid character. - * A value of -1 means this cannot possibly be a valid character. - * @param int[] $bytes - * @return int - */ - public function validateByteSequence($bytes, $size); - - /** - * Returns the number of bytes which should be read to start each character. - * For fixed width character sets this should be the number of - * octets-per-character. For multibyte character sets this will probably be 1. - * @return int - */ - public function getInitialByteSize(); - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/GenericFixedWidthReader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/GenericFixedWidthReader.php deleted file mode 100644 index 26b13ff4..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/GenericFixedWidthReader.php +++ /dev/null @@ -1,96 +0,0 @@ - - */ -class Swift_CharacterReader_GenericFixedWidthReader - implements Swift_CharacterReader -{ - - /** - * The number of bytes in a single character. - * @var int - * @access private - */ - private $_width; - - /** - * Creates a new GenericFixedWidthReader using $width bytes per character. - * @param int $width - */ - public function __construct($width) - { - $this->_width = $width; - } - - /** - * Returns the complete charactermap - * - * @param string $string - * @param int $startOffset - * @param array $currentMap - * @param mixed $ignoredChars - * @return $int - */ - public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars) - { - $strlen = strlen($string); - // % and / are CPU intensive, so, maybe find a better way - $ignored = $strlen%$this->_width; - $ignoredChars = substr($string, - $ignored); - $currentMap = $this->_width; - return ($strlen - $ignored)/$this->_width; - - } - - /** - * Returns mapType - * @int mapType - */ - public function getMapType() - { - return self::MAP_TYPE_FIXED_LEN; - } - - /** - * Returns an integer which specifies how many more bytes to read. - * A positive integer indicates the number of more bytes to fetch before invoking - * this method again. - * A value of zero means this is already a valid character. - * A value of -1 means this cannot possibly be a valid character. - * @param string $bytes - * @return int - */ - public function validateByteSequence($bytes, $size) - { - $needed = $this->_width - $size; - return ($needed > -1) - ? $needed - : -1 - ; - } - - /** - * Returns the number of bytes which should be read to start each character. - * @return int - */ - public function getInitialByteSize() - { - return $this->_width; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/UsAsciiReader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/UsAsciiReader.php deleted file mode 100644 index 3e0228a3..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/UsAsciiReader.php +++ /dev/null @@ -1,83 +0,0 @@ -"\x07F") - { // Invalid char - $currentMap[$i+$startOffset]=$string[$i]; - } - } - return $strlen; - } - - /** - * Returns mapType - * @int mapType - */ - public function getMapType() - { - return self::MAP_TYPE_INVALID; - } - - /** - * Returns an integer which specifies how many more bytes to read. - * A positive integer indicates the number of more bytes to fetch before invoking - * this method again. - * A value of zero means this is already a valid character. - * A value of -1 means this cannot possibly be a valid character. - * @param string $bytes - * @return int - */ - public function validateByteSequence($bytes, $size) - { - $byte = reset($bytes); - if (1 == count($bytes) && $byte >= 0x00 && $byte <= 0x7F) - { - return 0; - } - else - { - return -1; - } - } - - /** - * Returns the number of bytes which should be read to start each character. - * @return int - */ - public function getInitialByteSize() - { - return 1; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/Utf8Reader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/Utf8Reader.php deleted file mode 100644 index 54ea9a46..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReader/Utf8Reader.php +++ /dev/null @@ -1,183 +0,0 @@ - - */ -class Swift_CharacterReader_Utf8Reader - implements Swift_CharacterReader -{ - - /** Pre-computed for optimization */ - private static $length_map=array( -//N=0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F, - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x0N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x1N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x2N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x3N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x4N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x5N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x6N - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, //0x7N - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //0x8N - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //0x9N - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //0xAN - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, //0xBN - 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, //0xCN - 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, //0xDN - 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, //0xEN - 4,4,4,4,4,4,4,4,5,5,5,5,6,6,0,0 //0xFN - ); - private static $s_length_map=array( - "\x00"=>1, "\x01"=>1, "\x02"=>1, "\x03"=>1, "\x04"=>1, "\x05"=>1, "\x06"=>1, "\x07"=>1, - "\x08"=>1, "\x09"=>1, "\x0a"=>1, "\x0b"=>1, "\x0c"=>1, "\x0d"=>1, "\x0e"=>1, "\x0f"=>1, - "\x10"=>1, "\x11"=>1, "\x12"=>1, "\x13"=>1, "\x14"=>1, "\x15"=>1, "\x16"=>1, "\x17"=>1, - "\x18"=>1, "\x19"=>1, "\x1a"=>1, "\x1b"=>1, "\x1c"=>1, "\x1d"=>1, "\x1e"=>1, "\x1f"=>1, - "\x20"=>1, "\x21"=>1, "\x22"=>1, "\x23"=>1, "\x24"=>1, "\x25"=>1, "\x26"=>1, "\x27"=>1, - "\x28"=>1, "\x29"=>1, "\x2a"=>1, "\x2b"=>1, "\x2c"=>1, "\x2d"=>1, "\x2e"=>1, "\x2f"=>1, - "\x30"=>1, "\x31"=>1, "\x32"=>1, "\x33"=>1, "\x34"=>1, "\x35"=>1, "\x36"=>1, "\x37"=>1, - "\x38"=>1, "\x39"=>1, "\x3a"=>1, "\x3b"=>1, "\x3c"=>1, "\x3d"=>1, "\x3e"=>1, "\x3f"=>1, - "\x40"=>1, "\x41"=>1, "\x42"=>1, "\x43"=>1, "\x44"=>1, "\x45"=>1, "\x46"=>1, "\x47"=>1, - "\x48"=>1, "\x49"=>1, "\x4a"=>1, "\x4b"=>1, "\x4c"=>1, "\x4d"=>1, "\x4e"=>1, "\x4f"=>1, - "\x50"=>1, "\x51"=>1, "\x52"=>1, "\x53"=>1, "\x54"=>1, "\x55"=>1, "\x56"=>1, "\x57"=>1, - "\x58"=>1, "\x59"=>1, "\x5a"=>1, "\x5b"=>1, "\x5c"=>1, "\x5d"=>1, "\x5e"=>1, "\x5f"=>1, - "\x60"=>1, "\x61"=>1, "\x62"=>1, "\x63"=>1, "\x64"=>1, "\x65"=>1, "\x66"=>1, "\x67"=>1, - "\x68"=>1, "\x69"=>1, "\x6a"=>1, "\x6b"=>1, "\x6c"=>1, "\x6d"=>1, "\x6e"=>1, "\x6f"=>1, - "\x70"=>1, "\x71"=>1, "\x72"=>1, "\x73"=>1, "\x74"=>1, "\x75"=>1, "\x76"=>1, "\x77"=>1, - "\x78"=>1, "\x79"=>1, "\x7a"=>1, "\x7b"=>1, "\x7c"=>1, "\x7d"=>1, "\x7e"=>1, "\x7f"=>1, - "\x80"=>0, "\x81"=>0, "\x82"=>0, "\x83"=>0, "\x84"=>0, "\x85"=>0, "\x86"=>0, "\x87"=>0, - "\x88"=>0, "\x89"=>0, "\x8a"=>0, "\x8b"=>0, "\x8c"=>0, "\x8d"=>0, "\x8e"=>0, "\x8f"=>0, - "\x90"=>0, "\x91"=>0, "\x92"=>0, "\x93"=>0, "\x94"=>0, "\x95"=>0, "\x96"=>0, "\x97"=>0, - "\x98"=>0, "\x99"=>0, "\x9a"=>0, "\x9b"=>0, "\x9c"=>0, "\x9d"=>0, "\x9e"=>0, "\x9f"=>0, - "\xa0"=>0, "\xa1"=>0, "\xa2"=>0, "\xa3"=>0, "\xa4"=>0, "\xa5"=>0, "\xa6"=>0, "\xa7"=>0, - "\xa8"=>0, "\xa9"=>0, "\xaa"=>0, "\xab"=>0, "\xac"=>0, "\xad"=>0, "\xae"=>0, "\xaf"=>0, - "\xb0"=>0, "\xb1"=>0, "\xb2"=>0, "\xb3"=>0, "\xb4"=>0, "\xb5"=>0, "\xb6"=>0, "\xb7"=>0, - "\xb8"=>0, "\xb9"=>0, "\xba"=>0, "\xbb"=>0, "\xbc"=>0, "\xbd"=>0, "\xbe"=>0, "\xbf"=>0, - "\xc0"=>2, "\xc1"=>2, "\xc2"=>2, "\xc3"=>2, "\xc4"=>2, "\xc5"=>2, "\xc6"=>2, "\xc7"=>2, - "\xc8"=>2, "\xc9"=>2, "\xca"=>2, "\xcb"=>2, "\xcc"=>2, "\xcd"=>2, "\xce"=>2, "\xcf"=>2, - "\xd0"=>2, "\xd1"=>2, "\xd2"=>2, "\xd3"=>2, "\xd4"=>2, "\xd5"=>2, "\xd6"=>2, "\xd7"=>2, - "\xd8"=>2, "\xd9"=>2, "\xda"=>2, "\xdb"=>2, "\xdc"=>2, "\xdd"=>2, "\xde"=>2, "\xdf"=>2, - "\xe0"=>3, "\xe1"=>3, "\xe2"=>3, "\xe3"=>3, "\xe4"=>3, "\xe5"=>3, "\xe6"=>3, "\xe7"=>3, - "\xe8"=>3, "\xe9"=>3, "\xea"=>3, "\xeb"=>3, "\xec"=>3, "\xed"=>3, "\xee"=>3, "\xef"=>3, - "\xf0"=>4, "\xf1"=>4, "\xf2"=>4, "\xf3"=>4, "\xf4"=>4, "\xf5"=>4, "\xf6"=>4, "\xf7"=>4, - "\xf8"=>5, "\xf9"=>5, "\xfa"=>5, "\xfb"=>5, "\xfc"=>6, "\xfd"=>6, "\xfe"=>0, "\xff"=>0, - ); - - /** - * Returns the complete charactermap - * - * @param string $string - * @param int $startOffset - * @param array $currentMap - * @param mixed $ignoredChars - */ - public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars) - { - if (!isset($currentMap['i']) || !isset($currentMap['p'])) - { - $currentMap['p'] = $currentMap['i'] = array(); - } - $strlen=strlen($string); - $charPos=count($currentMap['p']); - $foundChars=0; - $invalid=false; - for ($i=0; $i<$strlen; ++$i) - { - $char=$string[$i]; - $size=self::$s_length_map[$char]; - if ($size==0) - { - /* char is invalid, we must wait for a resync */ - $invalid=true; - continue; - } - else - { - if ($invalid==true) - { - /* We mark the chars as invalid and start a new char */ - $currentMap['p'][$charPos+$foundChars]=$startOffset+$i; - $currentMap['i'][$charPos+$foundChars]=true; - ++$foundChars; - $invalid=false; - } - if (($i+$size) > $strlen){ - $ignoredChars=substr($string, $i); - break; - } - for ($j=1; $j<$size; ++$j) - { - $char=$string[$i+$j]; - if ($char>"\x7F" && $char<"\xC0") - { - // Valid - continue parsing - } - else - { - /* char is invalid, we must wait for a resync */ - $invalid=true; - continue 2; - } - } - /* Ok we got a complete char here */ - $lastChar=$currentMap['p'][$charPos+$foundChars]=$startOffset+$i+$size; - $i+=$j-1; - ++$foundChars; - } - } - return $foundChars; - } - - /** - * Returns mapType - * @int mapType - */ - public function getMapType() - { - return self::MAP_TYPE_POSITIONS; - } - - /** - * Returns an integer which specifies how many more bytes to read. - * A positive integer indicates the number of more bytes to fetch before invoking - * this method again. - * A value of zero means this is already a valid character. - * A value of -1 means this cannot possibly be a valid character. - * @param string $bytes - * @return int - */ - public function validateByteSequence($bytes, $size) - { - if ($size<1){ - return -1; - } - $needed = self::$length_map[$bytes[0]] - $size; - return ($needed > -1) - ? $needed - : -1 - ; - } - - /** - * Returns the number of bytes which should be read to start each character. - * @return int - */ - public function getInitialByteSize() - { - return 1; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReaderFactory.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReaderFactory.php deleted file mode 100644 index 9e01de17..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterReaderFactory.php +++ /dev/null @@ -1,29 +0,0 @@ - $prefix . 'GenericFixedWidthReader', - 'constructor' => array(1) - ); - - $doubleByte = array( - 'class' => $prefix . 'GenericFixedWidthReader', - 'constructor' => array(2) - ); - - $fourBytes = array( - 'class' => $prefix . 'GenericFixedWidthReader', - 'constructor' => array(4) - ); - - //Utf-8 - $this->_map['utf-?8'] = array( - 'class' => $prefix . 'Utf8Reader', - 'constructor' => array() - ); - - //7-8 bit charsets - $this->_map['(us-)?ascii'] = $singleByte; - $this->_map['(iso|iec)-?8859-?[0-9]+'] = $singleByte; - $this->_map['windows-?125[0-9]'] = $singleByte; - $this->_map['cp-?[0-9]+'] = $singleByte; - $this->_map['ansi'] = $singleByte; - $this->_map['macintosh'] = $singleByte; - $this->_map['koi-?7'] = $singleByte; - $this->_map['koi-?8-?.+'] = $singleByte; - $this->_map['mik'] = $singleByte; - $this->_map['(cork|t1)'] = $singleByte; - $this->_map['v?iscii'] = $singleByte; - - //16 bits - $this->_map['(ucs-?2|utf-?16)'] = $doubleByte; - - //32 bits - $this->_map['(ucs-?4|utf-?32)'] = $fourBytes; - - //Fallback - $this->_map['.*'] = $singleByte; - } - - /** - * Returns a CharacterReader suitable for the charset applied. - * @param string $charset - * @return Swift_CharacterReader - */ - public function getReaderFor($charset) - { - $charset = trim(strtolower($charset)); - foreach ($this->_map as $pattern => $spec) - { - $re = '/^' . $pattern . '$/D'; - if (preg_match($re, $charset)) - { - if (!array_key_exists($pattern, $this->_loaded)) - { - $reflector = new ReflectionClass($spec['class']); - if ($reflector->getConstructor()) - { - $reader = $reflector->newInstanceArgs($spec['constructor']); - } - else - { - $reader = $reflector->newInstance(); - } - $this->_loaded[$pattern] = $reader; - } - return $this->_loaded[$pattern]; - } - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream.php deleted file mode 100644 index bf915282..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream.php +++ /dev/null @@ -1,86 +0,0 @@ -setCharacterReaderFactory($factory); - $this->setCharacterSet($charset); - } - - /** - * Set the character set used in this CharacterStream. - * @param string $charset - */ - public function setCharacterSet($charset) - { - $this->_charset = $charset; - $this->_charReader = null; - } - - /** - * Set the CharacterReaderFactory for multi charset support. - * @param Swift_CharacterReaderFactory $factory - */ - public function setCharacterReaderFactory( - Swift_CharacterReaderFactory $factory) - { - $this->_charReaderFactory = $factory; - } - - /** - * Overwrite this character stream using the byte sequence in the byte stream. - * @param Swift_OutputByteStream $os output stream to read from - */ - public function importByteStream(Swift_OutputByteStream $os) - { - if (!isset($this->_charReader)) - { - $this->_charReader = $this->_charReaderFactory - ->getReaderFor($this->_charset); - } - - $startLength = $this->_charReader->getInitialByteSize(); - while (false !== $bytes = $os->read($startLength)) - { - $c = array(); - for ($i = 0, $len = strlen($bytes); $i < $len; ++$i) - { - $c[] = self::$_byteMap[$bytes[$i]]; - } - $size = count($c); - $need = $this->_charReader - ->validateByteSequence($c, $size); - if ($need > 0 && - false !== $bytes = $os->read($need)) - { - for ($i = 0, $len = strlen($bytes); $i < $len; ++$i) - { - $c[] = self::$_byteMap[$bytes[$i]]; - } - } - $this->_array[] = $c; - ++$this->_array_size; - } - } - - /** - * Import a string a bytes into this CharacterStream, overwriting any existing - * data in the stream. - * @param string $string - */ - public function importString($string) - { - $this->flushContents(); - $this->write($string); - } - - /** - * Read $length characters from the stream and move the internal pointer - * $length further into the stream. - * @param int $length - * @return string - */ - public function read($length) - { - if ($this->_offset == $this->_array_size) - { - return false; - } - - // Don't use array slice - $arrays = array(); - $end = $length + $this->_offset; - for ($i = $this->_offset; $i < $end; ++$i) - { - if (!isset($this->_array[$i])) - { - break; - } - $arrays[] = $this->_array[$i]; - } - $this->_offset += $i - $this->_offset; // Limit function calls - $chars = false; - foreach ($arrays as $array) - { - $chars .= implode('', array_map('chr', $array)); - } - return $chars; - } - - /** - * Read $length characters from the stream and return a 1-dimensional array - * containing there octet values. - * @param int $length - * @return int[] - */ - public function readBytes($length) - { - if ($this->_offset == $this->_array_size) - { - return false; - } - $arrays = array(); - $end = $length + $this->_offset; - for ($i = $this->_offset; $i < $end; ++$i) - { - if (!isset($this->_array[$i])) - { - break; - } - $arrays[] = $this->_array[$i]; - } - $this->_offset += ($i - $this->_offset); // Limit function calls - return call_user_func_array('array_merge', $arrays); - } - - /** - * Write $chars to the end of the stream. - * @param string $chars - */ - public function write($chars) - { - if (!isset($this->_charReader)) - { - $this->_charReader = $this->_charReaderFactory->getReaderFor( - $this->_charset); - } - - $startLength = $this->_charReader->getInitialByteSize(); - - $fp = fopen('php://memory', 'w+b'); - fwrite($fp, $chars); - unset($chars); - fseek($fp, 0, SEEK_SET); - - $buffer = array(0); - $buf_pos = 1; - $buf_len = 1; - $has_datas = true; - do - { - $bytes = array(); - // Buffer Filing - if ($buf_len - $buf_pos < $startLength) - { - $buf = array_splice($buffer, $buf_pos); - $new = $this->_reloadBuffer($fp, 100); - if ($new) - { - $buffer = array_merge($buf, $new); - $buf_len = count($buffer); - $buf_pos = 0; - } - else - { - $has_datas = false; - } - } - if ($buf_len - $buf_pos > 0) - { - $size = 0; - for ($i = 0; $i < $startLength && isset($buffer[$buf_pos]); ++$i) - { - ++$size; - $bytes[] = $buffer[$buf_pos++]; - } - $need = $this->_charReader->validateByteSequence( - $bytes, $size); - if ($need > 0) - { - if ($buf_len - $buf_pos < $need) - { - $new = $this->_reloadBuffer($fp, $need); - - if ($new) - { - $buffer = array_merge($buffer, $new); - $buf_len = count($buffer); - } - } - for ($i = 0; $i < $need && isset($buffer[$buf_pos]); ++$i) - { - $bytes[] = $buffer[$buf_pos++]; - } - } - $this->_array[] = $bytes; - ++$this->_array_size; - } - } - while ($has_datas); - - fclose($fp); - } - - /** - * Move the internal pointer to $charOffset in the stream. - * @param int $charOffset - */ - public function setPointer($charOffset) - { - if ($charOffset > $this->_array_size) - { - $charOffset = $this->_array_size; - } - elseif ($charOffset < 0) - { - $charOffset = 0; - } - $this->_offset = $charOffset; - } - - /** - * Empty the stream and reset the internal pointer. - */ - public function flushContents() - { - $this->_offset = 0; - $this->_array = array(); - $this->_array_size = 0; - } - - private function _reloadBuffer($fp, $len) - { - if (!feof($fp) && ($bytes = fread($fp, $len)) !== false) - { - $buf = array(); - for ($i = 0, $len = strlen($bytes); $i < $len; ++$i) - { - $buf[] = self::$_byteMap[$bytes[$i]]; - } - return $buf; - } - return false; - } - - private static function _initializeMaps() - { - if (!isset(self::$_charMap)) - { - self::$_charMap = array(); - for ($byte = 0; $byte < 256; ++$byte) - { - self::$_charMap[$byte] = chr($byte); - } - self::$_byteMap = array_flip(self::$_charMap); - } - } -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream/NgCharacterStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream/NgCharacterStream.php deleted file mode 100644 index f090aa7d..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/CharacterStream/NgCharacterStream.php +++ /dev/null @@ -1,300 +0,0 @@ -. - - */ - -//@require 'Swift/CharacterStream.php'; -//@require 'Swift/OutputByteStream.php'; - - -/** - * A CharacterStream implementation which stores characters in an internal array. - * @package Swift - * @subpackage CharacterStream - * @author Xavier De Cock - */ - -Class Swift_CharacterStream_NgCharacterStream - implements Swift_CharacterStream -{ - - /** - * The char reader (lazy-loaded) for the current charset. - * @var Swift_CharacterReader - * @access private - */ - private $_charReader; - - /** - * A factory for creatiing CharacterReader instances. - * @var Swift_CharacterReaderFactory - * @access private - */ - private $_charReaderFactory; - - /** - * The character set this stream is using. - * @var string - * @access private - */ - private $_charset; - - /** - * The datas stored as is - * - * @var string - */ - private $_datas = ""; - - /** - * Number of bytes in the stream - * - * @var int - */ - private $_datasSize = 0; - - /** - * Map - * - * @var mixed - */ - private $_map; - - /** - * Map Type - * - * @var int - */ - private $_mapType = 0; - - /** - * Number of characters in the stream - * - * @var int - */ - private $_charCount = 0; - - /** - * Position in the stream - * - * @var unknown_type - */ - private $_currentPos = 0; - - /** - * The constructor - * - * @param Swift_CharacterReaderFactory $factory - * @param unknown_type $charset - */ - public function __construct(Swift_CharacterReaderFactory $factory, - $charset) - { - $this->setCharacterReaderFactory($factory); - $this->setCharacterSet($charset); - } - - /* -- Changing parameters of the stream -- */ - - /** - * Set the character set used in this CharacterStream. - * @param string $charset - */ - public function setCharacterSet($charset) - { - $this->_charset = $charset; - $this->_charReader = null; - $this->_mapType = 0; - } - - /** - * Set the CharacterReaderFactory for multi charset support. - * @param Swift_CharacterReaderFactory $factory - */ - public function setCharacterReaderFactory( - Swift_CharacterReaderFactory $factory) - { - $this->_charReaderFactory = $factory; - } - - /** - * @see Swift_CharacterStream::flushContents() - * - */ - public function flushContents() - { - $this->_datas = null; - $this->_map = null; - $this->_charCount = 0; - $this->_currentPos = 0; - $this->_datasSize = 0; - } - - /** - * @see Swift_CharacterStream::importByteStream() - * - * @param Swift_OutputByteStream $os - */ - public function importByteStream(Swift_OutputByteStream $os) - { - $this->flushContents(); - $blocks=512; - $os->setReadPointer(0); - while(false!==($read = $os->read($blocks))) - $this->write($read); - } - - /** - * @see Swift_CharacterStream::importString() - * - * @param string $string - */ - public function importString($string) - { - $this->flushContents(); - $this->write($string); - } - - /** - * @see Swift_CharacterStream::read() - * - * @param int $length - * @return string - */ - public function read($length) - { - if ($this->_currentPos>=$this->_charCount) - { - return false; - } - $ret=false; - $length = ($this->_currentPos+$length > $this->_charCount) - ? $this->_charCount - $this->_currentPos - : $length; - switch ($this->_mapType) - { - case Swift_CharacterReader::MAP_TYPE_FIXED_LEN: - $len = $length*$this->_map; - $ret = substr($this->_datas, - $this->_currentPos * $this->_map, - $len); - $this->_currentPos += $length; - break; - - case Swift_CharacterReader::MAP_TYPE_INVALID: - $end = $this->_currentPos + $length; - $end = $end > $this->_charCount - ?$this->_charCount - :$end; - $ret = ''; - for (; $this->_currentPos < $length; ++$this->_currentPos) - { - if (isset ($this->_map[$this->_currentPos])) - { - $ret .= '?'; - } - else - { - $ret .= $this->_datas[$this->_currentPos]; - } - } - break; - - case Swift_CharacterReader::MAP_TYPE_POSITIONS: - $end = $this->_currentPos + $length; - $end = $end > $this->_charCount - ?$this->_charCount - :$end; - $ret = ''; - $start = 0; - if ($this->_currentPos>0) - { - $start = $this->_map['p'][$this->_currentPos-1]; - } - $to = $start; - for (; $this->_currentPos < $end; ++$this->_currentPos) - { - if (isset($this->_map['i'][$this->_currentPos])) { - $ret .= substr($this->_datas, $start, $to - $start).'?'; - $start = $this->_map['p'][$this->_currentPos]; - } else { - $to = $this->_map['p'][$this->_currentPos]; - } - } - $ret .= substr($this->_datas, $start, $to - $start); - break; - } - return $ret; - } - - /** - * @see Swift_CharacterStream::readBytes() - * - * @param int $length - * @return int[] - */ - public function readBytes($length) - { - $read=$this->read($length); - if ($read!==false) - { - $ret = array_map('ord', str_split($read, 1)); - return $ret; - } - return false; - } - - /** - * @see Swift_CharacterStream::setPointer() - * - * @param int $charOffset - */ - public function setPointer($charOffset) - { - if ($this->_charCount<$charOffset){ - $charOffset=$this->_charCount; - } - $this->_currentPos = $charOffset; - } - - /** - * @see Swift_CharacterStream::write() - * - * @param string $chars - */ - public function write($chars) - { - if (!isset($this->_charReader)) - { - $this->_charReader = $this->_charReaderFactory->getReaderFor( - $this->_charset); - $this->_map = array(); - $this->_mapType = $this->_charReader->getMapType(); - } - $ignored=''; - $this->_datas .= $chars; - $this->_charCount += $this->_charReader->getCharPositions(substr($this->_datas, $this->_datasSize), $this->_datasSize, $this->_map, $ignored); - if ($ignored!==false) { - $this->_datasSize=strlen($this->_datas)-strlen($ignored); - } - else - { - $this->_datasSize=strlen($this->_datas); - } - } -} \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyContainer.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyContainer.php deleted file mode 100644 index b6ba554e..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyContainer.php +++ /dev/null @@ -1,349 +0,0 @@ -_store); - } - - /** - * Test if an item is registered in this container with the given name. - * @param string $itemName - * @return boolean - * @see register() - */ - public function has($itemName) - { - return array_key_exists($itemName, $this->_store) - && isset($this->_store[$itemName]['lookupType']); - } - - /** - * Lookup the item with the given $itemName. - * @param string $itemName - * @return mixed - * @throws Swift_DependencyException If the dependency is not found - * @see register() - */ - public function lookup($itemName) - { - if (!$this->has($itemName)) - { - throw new Swift_DependencyException( - 'Cannot lookup dependency "' . $itemName . '" since it is not registered.' - ); - } - - switch ($this->_store[$itemName]['lookupType']) - { - case self::TYPE_ALIAS: - return $this->_createAlias($itemName); - case self::TYPE_VALUE: - return $this->_getValue($itemName); - case self::TYPE_INSTANCE: - return $this->_createNewInstance($itemName); - case self::TYPE_SHARED: - return $this->_createSharedInstance($itemName); - } - } - - /** - * Create an array of arguments passed to the constructor of $itemName. - * @param string $itemName - * @return array - */ - public function createDependenciesFor($itemName) - { - $args = array(); - if (isset($this->_store[$itemName]['args'])) - { - $args = $this->_resolveArgs($this->_store[$itemName]['args']); - } - return $args; - } - - /** - * Register a new dependency with $itemName. - * This method returns the current DependencyContainer instance because it - * requires the use of the fluid interface to set the specific details for the - * dependency. - * - * @param string $itemName - * @return Swift_DependencyContainer - * @see asNewInstanceOf(), asSharedInstanceOf(), asValue() - */ - public function register($itemName) - { - $this->_store[$itemName] = array(); - $this->_endPoint =& $this->_store[$itemName]; - return $this; - } - - /** - * Specify the previously registered item as a literal value. - * {@link register()} must be called before this will work. - * - * @param mixed $value - * @return Swift_DependencyContainer - */ - public function asValue($value) - { - $endPoint =& $this->_getEndPoint(); - $endPoint['lookupType'] = self::TYPE_VALUE; - $endPoint['value'] = $value; - return $this; - } - - /** - * Specify the previously registered item as an alias of another item. - * @param string $lookup - * @return Swift_DependencyContainer - */ - public function asAliasOf($lookup) - { - $endPoint =& $this->_getEndPoint(); - $endPoint['lookupType'] = self::TYPE_ALIAS; - $endPoint['ref'] = $lookup; - return $this; - } - - /** - * Specify the previously registered item as a new instance of $className. - * {@link register()} must be called before this will work. - * Any arguments can be set with {@link withDependencies()}, - * {@link addConstructorValue()} or {@link addConstructorLookup()}. - * - * @param string $className - * @return Swift_DependencyContainer - * @see withDependencies(), addConstructorValue(), addConstructorLookup() - */ - public function asNewInstanceOf($className) - { - $endPoint =& $this->_getEndPoint(); - $endPoint['lookupType'] = self::TYPE_INSTANCE; - $endPoint['className'] = $className; - return $this; - } - - /** - * Specify the previously registered item as a shared instance of $className. - * {@link register()} must be called before this will work. - * @param string $className - * @return Swift_DependencyContainer - */ - public function asSharedInstanceOf($className) - { - $endPoint =& $this->_getEndPoint(); - $endPoint['lookupType'] = self::TYPE_SHARED; - $endPoint['className'] = $className; - return $this; - } - - /** - * Specify a list of injected dependencies for the previously registered item. - * This method takes an array of lookup names. - * - * @param array $lookups - * @return Swift_DependencyContainer - * @see addConstructorValue(), addConstructorLookup() - */ - public function withDependencies(array $lookups) - { - $endPoint =& $this->_getEndPoint(); - $endPoint['args'] = array(); - foreach ($lookups as $lookup) - { - $this->addConstructorLookup($lookup); - } - return $this; - } - - /** - * Specify a literal (non looked up) value for the constructor of the - * previously registered item. - * - * @param mixed $value - * @return Swift_DependencyContainer - * @see withDependencies(), addConstructorLookup() - */ - public function addConstructorValue($value) - { - $endPoint =& $this->_getEndPoint(); - if (!isset($endPoint['args'])) - { - $endPoint['args'] = array(); - } - $endPoint['args'][] = array('type' => 'value', 'item' => $value); - return $this; - } - - /** - * Specify a dependency lookup for the constructor of the previously - * registered item. - * - * @param string $lookup - * @return Swift_DependencyContainer - * @see withDependencies(), addConstructorValue() - */ - public function addConstructorLookup($lookup) - { - $endPoint =& $this->_getEndPoint(); - if (!isset($this->_endPoint['args'])) - { - $endPoint['args'] = array(); - } - $endPoint['args'][] = array('type' => 'lookup', 'item' => $lookup); - return $this; - } - - // -- Private methods - - /** Get the literal value with $itemName */ - private function _getValue($itemName) - { - return $this->_store[$itemName]['value']; - } - - /** Resolve an alias to another item */ - private function _createAlias($itemName) - { - return $this->lookup($this->_store[$itemName]['ref']); - } - - /** Create a fresh instance of $itemName */ - private function _createNewInstance($itemName) - { - $reflector = new ReflectionClass($this->_store[$itemName]['className']); - if ($reflector->getConstructor()) - { - return $reflector->newInstanceArgs( - $this->createDependenciesFor($itemName) - ); - } - else - { - return $reflector->newInstance(); - } - } - - /** Create and register a shared instance of $itemName */ - private function _createSharedInstance($itemName) - { - if (!isset($this->_store[$itemName]['instance'])) - { - $this->_store[$itemName]['instance'] = $this->_createNewInstance($itemName); - } - return $this->_store[$itemName]['instance']; - } - - /** Get the current endpoint in the store */ - private function &_getEndPoint() - { - if (!isset($this->_endPoint)) - { - throw new BadMethodCallException( - 'Component must first be registered by calling register()' - ); - } - return $this->_endPoint; - } - - /** Get an argument list with dependencies resolved */ - private function _resolveArgs(array $args) - { - $resolved = array(); - foreach ($args as $argDefinition) - { - switch ($argDefinition['type']) - { - case 'lookup': - $resolved[] = $this->_lookupRecursive($argDefinition['item']); - break; - case 'value': - $resolved[] = $argDefinition['item']; - break; - } - } - return $resolved; - } - - /** Resolve a single dependency with an collections */ - private function _lookupRecursive($item) - { - if (is_array($item)) - { - $collection = array(); - foreach ($item as $k => $v) - { - $collection[$k] = $this->_lookupRecursive($v); - } - return $collection; - } - else - { - return $this->lookup($item); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyException.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyException.php deleted file mode 100644 index bb1681ce..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/DependencyException.php +++ /dev/null @@ -1,30 +0,0 @@ -createDependenciesFor('mime.embeddedfile') - ); - - $this->setBody($data); - $this->setFilename($filename); - if ($contentType) - { - $this->setContentType($contentType); - } - } - - /** - * Create a new EmbeddedFile. - * @param string|Swift_OutputByteStream $data - * @param string $filename - * @param string $contentType - * @return Swift_Mime_EmbeddedFile - */ - public static function newInstance($data = null, $filename = null, - $contentType = null) - { - return new self($data, $filename, $contentType); - } - - /** - * Create a new EmbeddedFile from a filesystem path. - * @param string $path - * @return Swift_Mime_EmbeddedFile - */ - public static function fromPath($path) - { - return self::newInstance()->setFile( - new Swift_ByteStream_FileByteStream($path) - ); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder.php deleted file mode 100644 index 32aa96a0..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder.php +++ /dev/null @@ -1,32 +0,0 @@ -= $maxLineLength || 76 < $maxLineLength) - { - $maxLineLength = 76; - } - - $encodedString = base64_encode($string); - $firstLine = ''; - - if (0 != $firstLineOffset) - { - $firstLine = substr( - $encodedString, 0, $maxLineLength - $firstLineOffset - ) . "\r\n"; - $encodedString = substr( - $encodedString, $maxLineLength - $firstLineOffset - ); - } - - return $firstLine . trim(chunk_split($encodedString, $maxLineLength, "\r\n")); - } - - /** - * Does nothing. - */ - public function charsetChanged($charset) - { - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/QpEncoder.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/QpEncoder.php deleted file mode 100644 index 6914f6c4..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/QpEncoder.php +++ /dev/null @@ -1,263 +0,0 @@ - '=00', 1 => '=01', 2 => '=02', 3 => '=03', 4 => '=04', - 5 => '=05', 6 => '=06', 7 => '=07', 8 => '=08', 9 => '=09', - 10 => '=0A', 11 => '=0B', 12 => '=0C', 13 => '=0D', 14 => '=0E', - 15 => '=0F', 16 => '=10', 17 => '=11', 18 => '=12', 19 => '=13', - 20 => '=14', 21 => '=15', 22 => '=16', 23 => '=17', 24 => '=18', - 25 => '=19', 26 => '=1A', 27 => '=1B', 28 => '=1C', 29 => '=1D', - 30 => '=1E', 31 => '=1F', 32 => '=20', 33 => '=21', 34 => '=22', - 35 => '=23', 36 => '=24', 37 => '=25', 38 => '=26', 39 => '=27', - 40 => '=28', 41 => '=29', 42 => '=2A', 43 => '=2B', 44 => '=2C', - 45 => '=2D', 46 => '=2E', 47 => '=2F', 48 => '=30', 49 => '=31', - 50 => '=32', 51 => '=33', 52 => '=34', 53 => '=35', 54 => '=36', - 55 => '=37', 56 => '=38', 57 => '=39', 58 => '=3A', 59 => '=3B', - 60 => '=3C', 61 => '=3D', 62 => '=3E', 63 => '=3F', 64 => '=40', - 65 => '=41', 66 => '=42', 67 => '=43', 68 => '=44', 69 => '=45', - 70 => '=46', 71 => '=47', 72 => '=48', 73 => '=49', 74 => '=4A', - 75 => '=4B', 76 => '=4C', 77 => '=4D', 78 => '=4E', 79 => '=4F', - 80 => '=50', 81 => '=51', 82 => '=52', 83 => '=53', 84 => '=54', - 85 => '=55', 86 => '=56', 87 => '=57', 88 => '=58', 89 => '=59', - 90 => '=5A', 91 => '=5B', 92 => '=5C', 93 => '=5D', 94 => '=5E', - 95 => '=5F', 96 => '=60', 97 => '=61', 98 => '=62', 99 => '=63', - 100 => '=64', 101 => '=65', 102 => '=66', 103 => '=67', 104 => '=68', - 105 => '=69', 106 => '=6A', 107 => '=6B', 108 => '=6C', 109 => '=6D', - 110 => '=6E', 111 => '=6F', 112 => '=70', 113 => '=71', 114 => '=72', - 115 => '=73', 116 => '=74', 117 => '=75', 118 => '=76', 119 => '=77', - 120 => '=78', 121 => '=79', 122 => '=7A', 123 => '=7B', 124 => '=7C', - 125 => '=7D', 126 => '=7E', 127 => '=7F', 128 => '=80', 129 => '=81', - 130 => '=82', 131 => '=83', 132 => '=84', 133 => '=85', 134 => '=86', - 135 => '=87', 136 => '=88', 137 => '=89', 138 => '=8A', 139 => '=8B', - 140 => '=8C', 141 => '=8D', 142 => '=8E', 143 => '=8F', 144 => '=90', - 145 => '=91', 146 => '=92', 147 => '=93', 148 => '=94', 149 => '=95', - 150 => '=96', 151 => '=97', 152 => '=98', 153 => '=99', 154 => '=9A', - 155 => '=9B', 156 => '=9C', 157 => '=9D', 158 => '=9E', 159 => '=9F', - 160 => '=A0', 161 => '=A1', 162 => '=A2', 163 => '=A3', 164 => '=A4', - 165 => '=A5', 166 => '=A6', 167 => '=A7', 168 => '=A8', 169 => '=A9', - 170 => '=AA', 171 => '=AB', 172 => '=AC', 173 => '=AD', 174 => '=AE', - 175 => '=AF', 176 => '=B0', 177 => '=B1', 178 => '=B2', 179 => '=B3', - 180 => '=B4', 181 => '=B5', 182 => '=B6', 183 => '=B7', 184 => '=B8', - 185 => '=B9', 186 => '=BA', 187 => '=BB', 188 => '=BC', 189 => '=BD', - 190 => '=BE', 191 => '=BF', 192 => '=C0', 193 => '=C1', 194 => '=C2', - 195 => '=C3', 196 => '=C4', 197 => '=C5', 198 => '=C6', 199 => '=C7', - 200 => '=C8', 201 => '=C9', 202 => '=CA', 203 => '=CB', 204 => '=CC', - 205 => '=CD', 206 => '=CE', 207 => '=CF', 208 => '=D0', 209 => '=D1', - 210 => '=D2', 211 => '=D3', 212 => '=D4', 213 => '=D5', 214 => '=D6', - 215 => '=D7', 216 => '=D8', 217 => '=D9', 218 => '=DA', 219 => '=DB', - 220 => '=DC', 221 => '=DD', 222 => '=DE', 223 => '=DF', 224 => '=E0', - 225 => '=E1', 226 => '=E2', 227 => '=E3', 228 => '=E4', 229 => '=E5', - 230 => '=E6', 231 => '=E7', 232 => '=E8', 233 => '=E9', 234 => '=EA', - 235 => '=EB', 236 => '=EC', 237 => '=ED', 238 => '=EE', 239 => '=EF', - 240 => '=F0', 241 => '=F1', 242 => '=F2', 243 => '=F3', 244 => '=F4', - 245 => '=F5', 246 => '=F6', 247 => '=F7', 248 => '=F8', 249 => '=F9', - 250 => '=FA', 251 => '=FB', 252 => '=FC', 253 => '=FD', 254 => '=FE', - 255 => '=FF' - ); - - /** - * A map of non-encoded ascii characters. - * @var string[] - * @access protected - */ - protected static $_safeMap = array(); - - /** - * Creates a new QpEncoder for the given CharacterStream. - * @param Swift_CharacterStream $charStream to use for reading characters - * @param Swift_StreamFilter $filter if input should be canonicalized - */ - public function __construct(Swift_CharacterStream $charStream, - Swift_StreamFilter $filter = null) - { - $this->_charStream = $charStream; - if (empty(self::$_safeMap)) - { - foreach (array_merge( - array(0x09, 0x20), range(0x21, 0x3C), range(0x3E, 0x7E)) as $byte) - { - self::$_safeMap[$byte] = chr($byte); - } - } - $this->_filter = $filter; - } - - /** - * Takes an unencoded string and produces a QP encoded string from it. - * QP encoded strings have a maximum line length of 76 characters. - * If the first line needs to be shorter, indicate the difference with - * $firstLineOffset. - * @param string $string to encode - * @param int $firstLineOffset, optional - * @param int $maxLineLength, optional, 0 indicates the default of 76 chars - * @return string - */ - public function encodeString($string, $firstLineOffset = 0, - $maxLineLength = 0) - { - if ($maxLineLength > 76 || $maxLineLength <= 0) - { - $maxLineLength = 76; - } - - $thisLineLength = $maxLineLength - $firstLineOffset; - - $lines = array(); - $lNo = 0; - $lines[$lNo] = ''; - $currentLine =& $lines[$lNo++]; - $size=$lineLen=0; - - $this->_charStream->flushContents(); - $this->_charStream->importString($string); - - //Fetching more than 4 chars at one is slower, as is fetching fewer bytes - // Conveniently 4 chars is the UTF-8 safe number since UTF-8 has up to 6 - // bytes per char and (6 * 4 * 3 = 72 chars per line) * =NN is 3 bytes - while (false !== $bytes = $this->_nextSequence()) - { - //If we're filtering the input - if (isset($this->_filter)) - { - //If we can't filter because we need more bytes - while ($this->_filter->shouldBuffer($bytes)) - { - //Then collect bytes into the buffer - if (false === $moreBytes = $this->_nextSequence(1)) - { - break; - } - - foreach ($moreBytes as $b) - { - $bytes[] = $b; - } - } - //And filter them - $bytes = $this->_filter->filter($bytes); - } - - $enc = $this->_encodeByteSequence($bytes, $size); - if ($currentLine && $lineLen+$size >= $thisLineLength) - { - $lines[$lNo] = ''; - $currentLine =& $lines[$lNo++]; - $thisLineLength = $maxLineLength; - $lineLen=0; - } - $lineLen+=$size; - $currentLine .= $enc; - } - - return $this->_standardize(implode("=\r\n", $lines)); - } - - /** - * Updates the charset used. - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->_charStream->setCharacterSet($charset); - } - - // -- Protected methods - - /** - * Encode the given byte array into a verbatim QP form. - * @param int[] $bytes - * @return string - * @access protected - */ - protected function _encodeByteSequence(array $bytes, &$size) - { - $ret = ''; - $size=0; - foreach ($bytes as $b) - { - if (isset(self::$_safeMap[$b])) - { - $ret .= self::$_safeMap[$b]; - ++$size; - } - else - { - $ret .= self::$_qpMap[$b]; - $size+=3; - } - } - return $ret; - } - - /** - * Get the next sequence of bytes to read from the char stream. - * @param int $size number of bytes to read - * @return int[] - * @access protected - */ - protected function _nextSequence($size = 4) - { - return $this->_charStream->readBytes($size); - } - - /** - * Make sure CRLF is correct and HT/SPACE are in valid places. - * @param string $string - * @return string - * @access protected - */ - protected function _standardize($string) - { - $string = str_replace(array("\t=0D=0A", " =0D=0A", "=0D=0A"), - array("=09\r\n", "=20\r\n", "\r\n"), $string - ); - switch ($end = ord(substr($string, -1))) - { - case 0x09: - case 0x20: - $string = substr_replace($string, self::$_qpMap[$end], -1); - } - return $string; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/Rfc2231Encoder.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/Rfc2231Encoder.php deleted file mode 100644 index febc6ba8..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoder/Rfc2231Encoder.php +++ /dev/null @@ -1,89 +0,0 @@ -_charStream = $charStream; - } - - /** - * Takes an unencoded string and produces a string encoded according to - * RFC 2231 from it. - * @param string $string to encode - * @param int $firstLineOffset - * @param int $maxLineLength, optional, 0 indicates the default of 75 bytes - * @return string - */ - public function encodeString($string, $firstLineOffset = 0, - $maxLineLength = 0) - { - $lines = array(); $lineCount = 0; - $lines[] = ''; - $currentLine =& $lines[$lineCount++]; - - if (0 >= $maxLineLength) - { - $maxLineLength = 75; - } - - $this->_charStream->flushContents(); - $this->_charStream->importString($string); - - $thisLineLength = $maxLineLength - $firstLineOffset; - - while (false !== $char = $this->_charStream->read(4)) - { - $encodedChar = rawurlencode($char); - if (0 != strlen($currentLine) - && strlen($currentLine . $encodedChar) > $thisLineLength) - { - $lines[] = ''; - $currentLine =& $lines[$lineCount++]; - $thisLineLength = $maxLineLength; - } - $currentLine .= $encodedChar; - } - - return implode("\r\n", $lines); - } - - /** - * Updates the charset used. - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->_charStream->setCharacterSet($charset); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoding.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoding.php deleted file mode 100644 index 1849a829..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Encoding.php +++ /dev/null @@ -1,70 +0,0 @@ -lookup($key); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandEvent.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandEvent.php deleted file mode 100644 index 73eb5850..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandEvent.php +++ /dev/null @@ -1,67 +0,0 @@ -_command = $command; - $this->_successCodes = $successCodes; - } - - /** - * Get the command which was sent to the server. - * @return string - */ - public function getCommand() - { - return $this->_command; - } - - /** - * Get the numeric response codes which indicate success for this command. - * @return int[] - */ - public function getSuccessCodes() - { - return $this->_successCodes; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandListener.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandListener.php deleted file mode 100644 index 2fd71172..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/CommandListener.php +++ /dev/null @@ -1,29 +0,0 @@ -_source = $source; - } - - /** - * Get the source object of this event. - * @return object - */ - public function getSource() - { - return $this->_source; - } - - /** - * Prevent this Event from bubbling any further up the stack. - * @param boolean $cancel, optional - */ - public function cancelBubble($cancel = true) - { - $this->_bubbleCancelled = $cancel; - } - - /** - * Returns true if this Event will not bubble any further up the stack. - * @return boolean - */ - public function bubbleCancelled() - { - return $this->_bubbleCancelled; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseEvent.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseEvent.php deleted file mode 100644 index addf9e7a..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseEvent.php +++ /dev/null @@ -1,65 +0,0 @@ -_response = $response; - $this->_valid = $valid; - } - - /** - * Get the response which was received from the server. - * @return string - */ - public function getResponse() - { - return $this->_response; - } - - /** - * Get the success status of this Event. - * @return boolean - */ - public function isValid() - { - return $this->_valid; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseListener.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseListener.php deleted file mode 100644 index 092385b2..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/ResponseListener.php +++ /dev/null @@ -1,29 +0,0 @@ -_message = $message; - $this->_result = self::RESULT_PENDING; - } - - /** - * Get the Transport used to send the Message. - * @return Swift_Transport - */ - public function getTransport() - { - return $this->getSource(); - } - - /** - * Get the Message being sent. - * @return Swift_Mime_Message - */ - public function getMessage() - { - return $this->_message; - } - - /** - * Set the array of addresses that failed in sending. - * @param array $recipients - */ - public function setFailedRecipients($recipients) - { - $this->_failedRecipients = $recipients; - } - - /** - * Get an recipient addresses which were not accepted for delivery. - * @return string[] - */ - public function getFailedRecipients() - { - return $this->_failedRecipients; - } - - /** - * Set the result of sending. - * @return int - */ - public function setResult($result) - { - $this->_result = $result; - } - - /** - * Get the result of this Event. - * The return value is a bitmask from - * {@link RESULT_PENDING, RESULT_SUCCESS, RESULT_TENTATIVE, RESULT_FAILED} - * @return int - */ - public function getResult() - { - return $this->_result; - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SendListener.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SendListener.php deleted file mode 100644 index a8f0cc33..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/SendListener.php +++ /dev/null @@ -1,35 +0,0 @@ -_eventMap = array( - 'Swift_Events_CommandEvent' => 'Swift_Events_CommandListener', - 'Swift_Events_ResponseEvent' => 'Swift_Events_ResponseListener', - 'Swift_Events_SendEvent' => 'Swift_Events_SendListener', - 'Swift_Events_TransportChangeEvent' => 'Swift_Events_TransportChangeListener', - 'Swift_Events_TransportExceptionEvent' => 'Swift_Events_TransportExceptionListener' - ); - } - - /** - * Create a new SendEvent for $source and $message. - * - * @param Swift_Transport $source - * @param Swift_Mime_Message - * @return Swift_Events_SendEvent - */ - public function createSendEvent(Swift_Transport $source, - Swift_Mime_Message $message) - { - return new Swift_Events_SendEvent($source, $message); - } - - /** - * Create a new CommandEvent for $source and $command. - * - * @param Swift_Transport $source - * @param string $command That will be executed - * @param array $successCodes That are needed - * @return Swift_Events_CommandEvent - */ - public function createCommandEvent(Swift_Transport $source, - $command, $successCodes = array()) - { - return new Swift_Events_CommandEvent($source, $command, $successCodes); - } - - /** - * Create a new ResponseEvent for $source and $response. - * - * @param Swift_Transport $source - * @param string $response - * @param boolean $valid If the response is valid - * @return Swift_Events_ResponseEvent - */ - public function createResponseEvent(Swift_Transport $source, - $response, $valid) - { - return new Swift_Events_ResponseEvent($source, $response, $valid); - } - - /** - * Create a new TransportChangeEvent for $source. - * - * @param Swift_Transport $source - * @return Swift_Events_TransportChangeEvent - */ - public function createTransportChangeEvent(Swift_Transport $source) - { - return new Swift_Events_TransportChangeEvent($source); - } - - /** - * Create a new TransportExceptionEvent for $source. - * - * @param Swift_Transport $source - * @param Swift_TransportException $ex - * @return Swift_Events_TransportExceptionEvent - */ - public function createTransportExceptionEvent(Swift_Transport $source, - Swift_TransportException $ex) - { - return new Swift_Events_TransportExceptionEvent($source, $ex); - } - - /** - * Bind an event listener to this dispatcher. - * - * @param Swift_Events_EventListener $listener - */ - public function bindEventListener(Swift_Events_EventListener $listener) - { - foreach ($this->_listeners as $l) - { - //Already loaded - if ($l === $listener) - { - return; - } - } - $this->_listeners[] = $listener; - } - - /** - * Dispatch the given Event to all suitable listeners. - * - * @param Swift_Events_EventObject $evt - * @param string $target method - */ - public function dispatchEvent(Swift_Events_EventObject $evt, $target) - { - $this->_prepareBubbleQueue($evt); - $this->_bubble($evt, $target); - } - - // -- Private methods - - /** Queue listeners on a stack ready for $evt to be bubbled up it */ - private function _prepareBubbleQueue(Swift_Events_EventObject $evt) - { - $this->_bubbleQueue = array(); - $evtClass = get_class($evt); - foreach ($this->_listeners as $listener) - { - if (array_key_exists($evtClass, $this->_eventMap) - && ($listener instanceof $this->_eventMap[$evtClass])) - { - $this->_bubbleQueue[] = $listener; - } - } - } - - /** Bubble $evt up the stack calling $target() on each listener */ - private function _bubble(Swift_Events_EventObject $evt, $target) - { - if (!$evt->bubbleCancelled() && $listener = array_shift($this->_bubbleQueue)) - { - $listener->$target($evt); - $this->_bubble($evt, $target); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeEvent.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeEvent.php deleted file mode 100644 index f069a4c1..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeEvent.php +++ /dev/null @@ -1,31 +0,0 @@ -getSource(); - } - -} \ No newline at end of file diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeListener.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeListener.php deleted file mode 100644 index ba729d01..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportChangeListener.php +++ /dev/null @@ -1,53 +0,0 @@ -_exception = $ex; - } - - /** - * Get the TransportException thrown. - * @return Swift_TransportException - */ - public function getException() - { - return $this->_exception; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportExceptionListener.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportExceptionListener.php deleted file mode 100644 index d6dce94f..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Events/TransportExceptionListener.php +++ /dev/null @@ -1,30 +0,0 @@ -createDependenciesFor('transport.failover') - ); - - $this->setTransports($transports); - } - - /** - * Create a new FailoverTransport instance. - * @param string $transports - * @return Swift_FailoverTransport - */ - public static function newInstance($transports = array()) - { - return new self($transports); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/FileStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/FileStream.php deleted file mode 100644 index a7f894dc..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/FileStream.php +++ /dev/null @@ -1,28 +0,0 @@ -setFile( - new Swift_ByteStream_FileByteStream($path) - ); - return $image; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/InputByteStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/InputByteStream.php deleted file mode 100644 index e8f45f4a..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/InputByteStream.php +++ /dev/null @@ -1,72 +0,0 @@ -_stream = $stream; - } - - /** - * Set a string into the cache under $itemKey for the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @param string $string - * @param int $mode - * @see MODE_WRITE, MODE_APPEND - */ - public function setString($nsKey, $itemKey, $string, $mode) - { - $this->_prepareCache($nsKey); - switch ($mode) - { - case self::MODE_WRITE: - $this->_contents[$nsKey][$itemKey] = $string; - break; - case self::MODE_APPEND: - if (!$this->hasKey($nsKey, $itemKey)) - { - $this->_contents[$nsKey][$itemKey] = ''; - } - $this->_contents[$nsKey][$itemKey] .= $string; - break; - default: - throw new Swift_SwiftException( - 'Invalid mode [' . $mode . '] used to set nsKey='. - $nsKey . ', itemKey=' . $itemKey - ); - } - } - - /** - * Set a ByteStream into the cache under $itemKey for the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @param Swift_OutputByteStream $os - * @param int $mode - * @see MODE_WRITE, MODE_APPEND - */ - public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os, - $mode) - { - $this->_prepareCache($nsKey); - switch ($mode) - { - case self::MODE_WRITE: - $this->clearKey($nsKey, $itemKey); - case self::MODE_APPEND: - if (!$this->hasKey($nsKey, $itemKey)) - { - $this->_contents[$nsKey][$itemKey] = ''; - } - while (false !== $bytes = $os->read(8192)) - { - $this->_contents[$nsKey][$itemKey] .= $bytes; - } - break; - default: - throw new Swift_SwiftException( - 'Invalid mode [' . $mode . '] used to set nsKey='. - $nsKey . ', itemKey=' . $itemKey - ); - } - } - - /** - * Provides a ByteStream which when written to, writes data to $itemKey. - * NOTE: The stream will always write in append mode. - * @param string $nsKey - * @param string $itemKey - * @return Swift_InputByteStream - */ - public function getInputByteStream($nsKey, $itemKey, - Swift_InputByteStream $writeThrough = null) - { - $is = clone $this->_stream; - $is->setKeyCache($this); - $is->setNsKey($nsKey); - $is->setItemKey($itemKey); - if (isset($writeThrough)) - { - $is->setWriteThroughStream($writeThrough); - } - return $is; - } - - /** - * Get data back out of the cache as a string. - * @param string $nsKey - * @param string $itemKey - * @return string - */ - public function getString($nsKey, $itemKey) - { - $this->_prepareCache($nsKey); - if ($this->hasKey($nsKey, $itemKey)) - { - return $this->_contents[$nsKey][$itemKey]; - } - } - - /** - * Get data back out of the cache as a ByteStream. - * @param string $nsKey - * @param string $itemKey - * @param Swift_InputByteStream $is to write the data to - */ - public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is) - { - $this->_prepareCache($nsKey); - $is->write($this->getString($nsKey, $itemKey)); - } - - /** - * Check if the given $itemKey exists in the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @return boolean - */ - public function hasKey($nsKey, $itemKey) - { - $this->_prepareCache($nsKey); - return array_key_exists($itemKey, $this->_contents[$nsKey]); - } - - /** - * Clear data for $itemKey in the namespace $nsKey if it exists. - * @param string $nsKey - * @param string $itemKey - */ - public function clearKey($nsKey, $itemKey) - { - unset($this->_contents[$nsKey][$itemKey]); - } - - /** - * Clear all data in the namespace $nsKey if it exists. - * @param string $nsKey - */ - public function clearAll($nsKey) - { - unset($this->_contents[$nsKey]); - } - - // -- Private methods - - /** - * Initialize the namespace of $nsKey if needed. - * @param string $nsKey - * @access private - */ - private function _prepareCache($nsKey) - { - if (!array_key_exists($nsKey, $this->_contents)) - { - $this->_contents[$nsKey] = array(); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/DiskKeyCache.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/DiskKeyCache.php deleted file mode 100644 index 599fd6c7..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/DiskKeyCache.php +++ /dev/null @@ -1,316 +0,0 @@ -_stream = $stream; - $this->_path = $path; - $this->_quotes = get_magic_quotes_runtime(); - } - - /** - * Set a string into the cache under $itemKey for the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @param string $string - * @param int $mode - * @throws Swift_IoException - * @see MODE_WRITE, MODE_APPEND - */ - public function setString($nsKey, $itemKey, $string, $mode) - { - $this->_prepareCache($nsKey); - switch ($mode) - { - case self::MODE_WRITE: - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START); - break; - case self::MODE_APPEND: - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_END); - break; - default: - throw new Swift_SwiftException( - 'Invalid mode [' . $mode . '] used to set nsKey='. - $nsKey . ', itemKey=' . $itemKey - ); - break; - } - fwrite($fp, $string); - } - - /** - * Set a ByteStream into the cache under $itemKey for the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @param Swift_OutputByteStream $os - * @param int $mode - * @see MODE_WRITE, MODE_APPEND - * @throws Swift_IoException - */ - public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os, - $mode) - { - $this->_prepareCache($nsKey); - switch ($mode) - { - case self::MODE_WRITE: - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START); - break; - case self::MODE_APPEND: - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_END); - break; - default: - throw new Swift_SwiftException( - 'Invalid mode [' . $mode . '] used to set nsKey='. - $nsKey . ', itemKey=' . $itemKey - ); - break; - } - while (false !== $bytes = $os->read(8192)) - { - fwrite($fp, $bytes); - } - } - - /** - * Provides a ByteStream which when written to, writes data to $itemKey. - * NOTE: The stream will always write in append mode. - * @param string $nsKey - * @param string $itemKey - * @return Swift_InputByteStream - */ - public function getInputByteStream($nsKey, $itemKey, - Swift_InputByteStream $writeThrough = null) - { - $is = clone $this->_stream; - $is->setKeyCache($this); - $is->setNsKey($nsKey); - $is->setItemKey($itemKey); - if (isset($writeThrough)) - { - $is->setWriteThroughStream($writeThrough); - } - return $is; - } - - /** - * Get data back out of the cache as a string. - * @param string $nsKey - * @param string $itemKey - * @return string - * @throws Swift_IoException - */ - public function getString($nsKey, $itemKey) - { - $this->_prepareCache($nsKey); - if ($this->hasKey($nsKey, $itemKey)) - { - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START); - if ($this->_quotes) - { - set_magic_quotes_runtime(0); - } - $str = ''; - while (!feof($fp) && false !== $bytes = fread($fp, 8192)) - { - $str .= $bytes; - } - if ($this->_quotes) - { - set_magic_quotes_runtime(1); - } - return $str; - } - } - - /** - * Get data back out of the cache as a ByteStream. - * @param string $nsKey - * @param string $itemKey - * @param Swift_InputByteStream $is to write the data to - */ - public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is) - { - if ($this->hasKey($nsKey, $itemKey)) - { - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START); - if ($this->_quotes) - { - set_magic_quotes_runtime(0); - } - while (!feof($fp) && false !== $bytes = fread($fp, 8192)) - { - $is->write($bytes); - } - if ($this->_quotes) - { - set_magic_quotes_runtime(1); - } - } - } - - /** - * Check if the given $itemKey exists in the namespace $nsKey. - * @param string $nsKey - * @param string $itemKey - * @return boolean - */ - public function hasKey($nsKey, $itemKey) - { - return is_file($this->_path . '/' . $nsKey . '/' . $itemKey); - } - - /** - * Clear data for $itemKey in the namespace $nsKey if it exists. - * @param string $nsKey - * @param string $itemKey - */ - public function clearKey($nsKey, $itemKey) - { - if ($this->hasKey($nsKey, $itemKey)) - { - $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_END); - fclose($fp); - unlink($this->_path . '/' . $nsKey . '/' . $itemKey); - } - unset($this->_keys[$nsKey][$itemKey]); - } - - /** - * Clear all data in the namespace $nsKey if it exists. - * @param string $nsKey - */ - public function clearAll($nsKey) - { - if (array_key_exists($nsKey, $this->_keys)) - { - foreach ($this->_keys[$nsKey] as $itemKey=>$null) - { - $this->clearKey($nsKey, $itemKey); - } - rmdir($this->_path . '/' . $nsKey); - unset($this->_keys[$nsKey]); - } - } - - // -- Private methods - - /** - * Initialize the namespace of $nsKey if needed. - * @param string $nsKey - * @access private - */ - private function _prepareCache($nsKey) - { - $cacheDir = $this->_path . '/' . $nsKey; - if (!is_dir($cacheDir)) - { - if (!mkdir($cacheDir)) - { - throw new Swift_IoException('Failed to create cache directory ' . $cacheDir); - } - $this->_keys[$nsKey] = array(); - } - } - - /** - * Get a file handle on the cache item. - * @param string $nsKey - * @param string $itemKey - * @param int $position - * @return resource - * @access private - */ - private function _getHandle($nsKey, $itemKey, $position) - { - if (!isset($this->_keys[$nsKey]) || !array_key_exists($itemKey, $this->_keys[$nsKey])) - { - $fp = fopen($this->_path . '/' . $nsKey . '/' . $itemKey, 'w+b'); - $this->_keys[$nsKey][$itemKey] = $fp; - } - if (self::POSITION_START == $position) - { - fseek($this->_keys[$nsKey][$itemKey], 0, SEEK_SET); - } - else - { - fseek($this->_keys[$nsKey][$itemKey], 0, SEEK_END); - } - return $this->_keys[$nsKey][$itemKey]; - } - - /** - * Destructor. - */ - public function __destruct() - { - foreach ($this->_keys as $nsKey=>$null) - { - $this->clearAll($nsKey); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/KeyCacheInputStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/KeyCacheInputStream.php deleted file mode 100644 index a1f4440c..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/KeyCache/KeyCacheInputStream.php +++ /dev/null @@ -1,53 +0,0 @@ -_keyCache = $keyCache; - } - - /** - * Specify a stream to write through for each write(). - * @param Swift_InputByteStream $is - */ - public function setWriteThroughStream(Swift_InputByteStream $is) - { - $this->_writeThrough = $is; - } - - /** - * Writes $bytes to the end of the stream. - * @param string $bytes - * @param Swift_InputByteStream $is, optional - */ - public function write($bytes, Swift_InputByteStream $is = null) - { - $this->_keyCache->setString( - $this->_nsKey, $this->_itemKey, $bytes, Swift_KeyCache::MODE_APPEND - ); - if (isset($is)) - { - $is->write($bytes); - } - if (isset($this->_writeThrough)) - { - $this->_writeThrough->write($bytes); - } - } - - /** - * Not used. - */ - public function commit() - { - } - - /** - * Not used. - */ - public function bind(Swift_InputByteStream $is) - { - } - - /** - * Not used. - */ - public function unbind(Swift_InputByteStream $is) - { - } - - /** - * Flush the contents of the stream (empty it) and set the internal pointer - * to the beginning. - */ - public function flushBuffers() - { - $this->_keyCache->clearKey($this->_nsKey, $this->_itemKey); - } - - /** - * Set the nsKey which will be written to. - * @param string $nsKey - */ - public function setNsKey($nsKey) - { - $this->_nsKey = $nsKey; - } - - /** - * Set the itemKey which will be written to. - * @param string $itemKey - */ - public function setItemKey($itemKey) - { - $this->_itemKey = $itemKey; - } - - /** - * Any implementation should be cloneable, allowing the clone to access a - * separate $nsKey and $itemKey. - */ - public function __clone() - { - $this->_writeThrough = null; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/LoadBalancedTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/LoadBalancedTransport.php deleted file mode 100644 index 14ae2928..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/LoadBalancedTransport.php +++ /dev/null @@ -1,48 +0,0 @@ -createDependenciesFor('transport.loadbalanced') - ); - - $this->setTransports($transports); - } - - /** - * Create a new LoadBalancedTransport instance. - * @param string $transports - * @return Swift_LoadBalancedTransport - */ - public static function newInstance($transports = array()) - { - return new self($transports); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MailTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MailTransport.php deleted file mode 100644 index afe29c6f..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MailTransport.php +++ /dev/null @@ -1,48 +0,0 @@ -createDependenciesFor('transport.mail') - ); - - $this->setExtraParams($extraParams); - } - - /** - * Create a new MailTransport instance. - * @param string $extraParams To be passed to mail() - * @return Swift_MailTransport - */ - public static function newInstance($extraParams = '-f%s') - { - return new self($extraParams); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer.php deleted file mode 100644 index c92feb41..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer.php +++ /dev/null @@ -1,173 +0,0 @@ -_transport = $transport; - } - - /** - * Create a new Mailer instance. - * - * @param Swift_Transport $transport - * @return Swift_Mailer - */ - public static function newInstance(Swift_Transport $transport) - { - return new self($transport); - } - - /** - * Send the given Message like it would be sent in a mail client. - * - * All recipients (with the exception of Bcc) will be able to see the other - * recipients this message was sent to. - * - * If you need to send to each recipient without disclosing details about the - * other recipients see {@link batchSend()}. - * - * Recipient/sender data will be retreived from the Message object. - * - * The return value is the number of recipients who were accepted for - * delivery. - * - * @param Swift_Mime_Message $message - * @param array &$failedRecipients, optional - * @return int - * @see batchSend() - */ - public function send(Swift_Mime_Message $message, &$failedRecipients = null) - { - $failedRecipients = (array) $failedRecipients; - - if (!$this->_transport->isStarted()) - { - $this->_transport->start(); - } - - return $this->_transport->send($message, $failedRecipients); - } - - /** - * Send the given Message to all recipients individually. - * - * This differs from {@link send()} in the way headers are presented to the - * recipient. The only recipient in the "To:" field will be the individual - * recipient it was sent to. - * - * If an iterator is provided, recipients will be read from the iterator - * one-by-one, otherwise recipient data will be retreived from the Message - * object. - * - * Sender information is always read from the Message object. - * - * The return value is the number of recipients who were accepted for - * delivery. - * - * @param Swift_Mime_Message $message - * @param array &$failedRecipients, optional - * @param Swift_Mailer_RecipientIterator $it, optional - * @return int - * @see send() - */ - public function batchSend(Swift_Mime_Message $message, - &$failedRecipients = null, - Swift_Mailer_RecipientIterator $it = null) - { - $failedRecipients = (array) $failedRecipients; - - $sent = 0; - $to = $message->getTo(); - $cc = $message->getCc(); - $bcc = $message->getBcc(); - - if (!empty($cc)) - { - $message->setCc(array()); - } - if (!empty($bcc)) - { - $message->setBcc(array()); - } - - //Use an iterator if set - if (isset($it)) - { - while ($it->hasNext()) - { - $message->setTo($it->nextRecipient()); - $sent += $this->send($message, $failedRecipients); - } - } - else - { - foreach ($to as $address => $name) - { - $message->setTo(array($address => $name)); - $sent += $this->send($message, $failedRecipients); - } - } - - $message->setTo($to); - - if (!empty($cc)) - { - $message->setCc($cc); - } - if (!empty($bcc)) - { - $message->setBcc($bcc); - } - - return $sent; - } - - /** - * Register a plugin using a known unique key (e.g. myPlugin). - * - * @param Swift_Events_EventListener $plugin - * @param string $key - */ - public function registerPlugin(Swift_Events_EventListener $plugin) - { - $this->_transport->registerPlugin($plugin); - } - - /** - * The Transport used to send messages. - * @return Swift_Transport - */ - public function getTransport() - { - return $this->_transport; - } -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/ArrayRecipientIterator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/ArrayRecipientIterator.php deleted file mode 100644 index 65d60c18..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/ArrayRecipientIterator.php +++ /dev/null @@ -1,59 +0,0 @@ -_recipients = $recipients; - } - - /** - * Returns true only if there are more recipients to send to. - * @return boolean - */ - public function hasNext() - { - return !empty($this->_recipients); - } - - /** - * Returns an array where the keys are the addresses of recipients and the - * values are the names. - * e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL) - * @return array - */ - public function nextRecipient() - { - return array_splice($this->_recipients, 0, 1); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/RecipientIterator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/RecipientIterator.php deleted file mode 100644 index 27138416..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mailer/RecipientIterator.php +++ /dev/null @@ -1,34 +0,0 @@ - 'Foo') or ('foo@bar' => NULL) - * @return array - */ - public function nextRecipient(); - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Message.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Message.php deleted file mode 100644 index e8183ea5..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Message.php +++ /dev/null @@ -1,82 +0,0 @@ -createDependenciesFor('mime.message') - ); - - if (!isset($charset)) - { - $charset = Swift_DependencyContainer::getInstance() - ->lookup('properties.charset'); - } - $this->setSubject($subject); - $this->setBody($body); - $this->setCharset($charset); - if ($contentType) - { - $this->setContentType($contentType); - } - } - - /** - * Create a new Message. - * @param string $subject - * @param string $body - * @param string $contentType - * @param string $charset - * @return Swift_Mime_Message - */ - public static function newInstance($subject = null, $body = null, - $contentType = null, $charset = null) - { - return new self($subject, $body, $contentType, $charset); - } - - /** - * Add a MimePart to this Message. - * @param string|Swift_OutputByteStream $body - * @param string $contentType - * @param string $charset - */ - public function addPart($body, $contentType = null, $charset = null) - { - return $this->attach(Swift_MimePart::newInstance( - $body, $contentType, $charset - )); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Attachment.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Attachment.php deleted file mode 100644 index 25ef68b3..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Attachment.php +++ /dev/null @@ -1,143 +0,0 @@ -setDisposition('attachment'); - $this->setContentType('application/octet-stream'); - $this->_mimeTypes = $mimeTypes; - } - - /** - * Get the nesting level used for this attachment. - * Always returns {@link LEVEL_MIXED}. - * @return int - */ - public function getNestingLevel() - { - return self::LEVEL_MIXED; - } - - /** - * Get the Content-Disposition of this attachment. - * By default attachments have a disposition of "attachment". - * @return string - */ - public function getDisposition() - { - return $this->_getHeaderFieldModel('Content-Disposition'); - } - - /** - * Set the Content-Disposition of this attachment. - * @param string $disposition - */ - public function setDisposition($disposition) - { - if (!$this->_setHeaderFieldModel('Content-Disposition', $disposition)) - { - $this->getHeaders()->addParameterizedHeader( - 'Content-Disposition', $disposition - ); - } - return $this; - } - - /** - * Get the filename of this attachment when downloaded. - * @return string - */ - public function getFilename() - { - return $this->_getHeaderParameter('Content-Disposition', 'filename'); - } - - /** - * Set the filename of this attachment. - * @param string $filename - */ - public function setFilename($filename) - { - $this->_setHeaderParameter('Content-Disposition', 'filename', $filename); - $this->_setHeaderParameter('Content-Type', 'name', $filename); - return $this; - } - - /** - * Get the file size of this attachment. - * @return int - */ - public function getSize() - { - return $this->_getHeaderParameter('Content-Disposition', 'size'); - } - - /** - * Set the file size of this attachment. - * @param int $size - */ - public function setSize($size) - { - $this->_setHeaderParameter('Content-Disposition', 'size', $size); - return $this; - } - - /** - * Set the file that this attachment is for. - * @param Swift_FileStream $file - * @param string $contentType optional - */ - public function setFile(Swift_FileStream $file, $contentType = null) - { - $this->setFilename(basename($file->getPath())); - $this->setBody($file, $contentType); - if (!isset($contentType)) - { - $extension = strtolower(substr( - $file->getPath(), strrpos($file->getPath(), '.') + 1 - )); - - if (array_key_exists($extension, $this->_mimeTypes)) - { - $this->setContentType($this->_mimeTypes[$extension]); - } - } - return $this; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/CharsetObserver.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/CharsetObserver.php deleted file mode 100644 index c26009f7..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/CharsetObserver.php +++ /dev/null @@ -1,26 +0,0 @@ -= $maxLineLength || 76 < $maxLineLength) - { - $maxLineLength = 76; - } - - $remainder = 0; - - while (false !== $bytes = $os->read(8190)) - { - $encoded = base64_encode($bytes); - $encodedTransformed = ''; - $thisMaxLineLength = $maxLineLength - $remainder - $firstLineOffset; - - while ($thisMaxLineLength < strlen($encoded)) - { - $encodedTransformed .= substr($encoded, 0, $thisMaxLineLength) . "\r\n"; - $firstLineOffset = 0; - $encoded = substr($encoded, $thisMaxLineLength); - $thisMaxLineLength = $maxLineLength; - $remainder = 0; - } - - if (0 < $remainingLength = strlen($encoded)) - { - $remainder += $remainingLength; - $encodedTransformed .= $encoded; - $encoded = null; - } - - $is->write($encodedTransformed); - } - } - - /** - * Get the name of this encoding scheme. - * Returns the string 'base64'. - * @return string - */ - public function getName() - { - return 'base64'; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php deleted file mode 100644 index 4a725d85..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php +++ /dev/null @@ -1,175 +0,0 @@ -_name = $name; - $this->_canonical = $canonical; - } - - /** - * Encode a given string to produce an encoded string. - * @param string $string - * @param int $firstLineOffset, ignored - * @param int $maxLineLength - 0 means no wrapping will occur - * @return string - */ - public function encodeString($string, $firstLineOffset = 0, - $maxLineLength = 0) - { - if ($this->_canonical) - { - $string = $this->_canonicalize($string); - } - return $this->_safeWordWrap($string, $maxLineLength, "\r\n"); - } - - /** - * Encode stream $in to stream $out. - * @param Swift_OutputByteStream $in - * @param Swift_InputByteStream $out - * @param int $firstLineOffset, ignored - * @param int $maxLineLength, optional, 0 means no wrapping will occur - */ - public function encodeByteStream( - Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, - $maxLineLength = 0) - { - $leftOver = ''; - while (false !== $bytes = $os->read(8192)) - { - $toencode = $leftOver . $bytes; - if ($this->_canonical) - { - $toencode = $this->_canonicalize($toencode); - } - $wrapped = $this->_safeWordWrap($toencode, $maxLineLength, "\r\n"); - $lastLinePos = strrpos($wrapped, "\r\n"); - $leftOver = substr($wrapped, $lastLinePos); - $wrapped = substr($wrapped, 0, $lastLinePos); - - $is->write($wrapped); - } - if (strlen($leftOver)) - { - $is->write($leftOver); - } - } - - /** - * Get the name of this encoding scheme. - * @return string - */ - public function getName() - { - return $this->_name; - } - - /** - * Not used. - */ - public function charsetChanged($charset) - { - } - - // -- Private methods - - /** - * A safer (but weaker) wordwrap for unicode. - * @param string $string - * @param int $length - * @param string $le - * @return string - * @access private - */ - private function _safeWordwrap($string, $length = 75, $le = "\r\n") - { - if (0 >= $length) - { - return $string; - } - - $originalLines = explode($le, $string); - - $lines = array(); - $lineCount = 0; - - foreach ($originalLines as $originalLine) - { - $lines[] = ''; - $currentLine =& $lines[$lineCount++]; - - //$chunks = preg_split('/(?<=[\ \t,\.!\?\-&\+\/])/', $originalLine); - $chunks = preg_split('/(?<=\s)/', $originalLine); - - foreach ($chunks as $chunk) - { - if (0 != strlen($currentLine) - && strlen($currentLine . $chunk) > $length) - { - $lines[] = ''; - $currentLine =& $lines[$lineCount++]; - } - $currentLine .= $chunk; - } - } - - return implode("\r\n", $lines); - } - - /** - * Canonicalize string input (fix CRLF). - * @param string $string - * @return string - * @access private - */ - private function _canonicalize($string) - { - return str_replace( - array("\r\n", "\r", "\n"), - array("\n", "\n", "\r\n"), - $string - ); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php deleted file mode 100644 index 3beeb635..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php +++ /dev/null @@ -1,117 +0,0 @@ - 76 || $maxLineLength <= 0) - { - $maxLineLength = 76; - } - - $thisLineLength = $maxLineLength - $firstLineOffset; - - $this->_charStream->flushContents(); - $this->_charStream->importByteStream($os); - - $currentLine = ''; - $prepend = ''; - $size=$lineLen=0; - - while (false !== $bytes = $this->_nextSequence()) - { - //If we're filtering the input - if (isset($this->_filter)) - { - //If we can't filter because we need more bytes - while ($this->_filter->shouldBuffer($bytes)) - { - //Then collect bytes into the buffer - if (false === $moreBytes = $this->_nextSequence(1)) - { - break; - } - - foreach ($moreBytes as $b) - { - $bytes[] = $b; - } - } - //And filter them - $bytes = $this->_filter->filter($bytes); - } - - $enc = $this->_encodeByteSequence($bytes, $size); - if ($currentLine && $lineLen+$size >= $thisLineLength) - { - $is->write($prepend . $this->_standardize($currentLine)); - $currentLine = ''; - $prepend = "=\r\n"; - $thisLineLength = $maxLineLength; - $lineLen=0; - } - $lineLen+=$size; - $currentLine .= $enc; - } - if (strlen($currentLine)) - { - $is->write($prepend . $this->_standardize($currentLine)); - } - } - - /** - * Get the name of this encoding scheme. - * Returns the string 'quoted-printable'. - * @return string - */ - public function getName() - { - return 'quoted-printable'; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EmbeddedFile.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EmbeddedFile.php deleted file mode 100644 index 983b78da..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EmbeddedFile.php +++ /dev/null @@ -1,51 +0,0 @@ -setDisposition('inline'); - $this->setId($this->getId()); - } - - /** - * Get the nesting level of this EmbeddedFile. - * Returns {@link LEVEL_RELATED}. - * @return int - */ - public function getNestingLevel() - { - return self::LEVEL_RELATED; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EncodingObserver.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EncodingObserver.php deleted file mode 100644 index 50472db6..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/EncodingObserver.php +++ /dev/null @@ -1,28 +0,0 @@ -clearCachedValueIf($charset != $this->_charset); - $this->_charset = $charset; - if (isset($this->_encoder)) - { - $this->_encoder->charsetChanged($charset); - } - } - - /** - * Get the character set used in this Header. - * @return string - */ - public function getCharset() - { - return $this->_charset; - } - - /** - * Set the language used in this Header. - * For example, for US English, 'en-us'. - * This can be unspecified. - * @param string $lang - */ - public function setLanguage($lang) - { - $this->clearCachedValueIf($this->_lang != $lang); - $this->_lang = $lang; - } - - /** - * Get the language used in this Header. - * @return string - */ - public function getLanguage() - { - return $this->_lang; - } - - /** - * Set the encoder used for encoding the header. - * @param Swift_Mime_HeaderEncoder $encoder - */ - public function setEncoder(Swift_Mime_HeaderEncoder $encoder) - { - $this->_encoder = $encoder; - $this->setCachedValue(null); - } - - /** - * Get the encoder used for encoding this Header. - * @return Swift_Mime_HeaderEncoder - */ - public function getEncoder() - { - return $this->_encoder; - } - - /** - * Get the name of this header (e.g. charset). - * @return string - */ - public function getFieldName() - { - return $this->_name; - } - - /** - * Set the maximum length of lines in the header (excluding EOL). - * @param int $lineLength - */ - public function setMaxLineLength($lineLength) - { - $this->clearCachedValueIf($this->_lineLength != $lineLength); - $this->_lineLength = $lineLength; - } - - /** - * Get the maximum permitted length of lines in this Header. - * @return int - */ - public function getMaxLineLength() - { - return $this->_lineLength; - } - - /** - * Get this Header rendered as a RFC 2822 compliant string. - * @return string - * @throws Swift_RfcComplianceException - */ - public function toString() - { - return $this->_tokensToString($this->toTokens()); - } - - /** - * Returns a string representation of this object. - * - * @return string - * - * @see toString() - */ - public function __toString() - { - return $this->toString(); - } - - // -- Points of extension - - /** - * Set the name of this Header field. - * @param string $name - * @access protected - */ - protected function setFieldName($name) - { - $this->_name = $name; - } - - /** - * Initialize some RFC 2822 (and friends) ABNF grammar definitions. - * @access protected - */ - protected function initializeGrammar() - { - $this->_specials = array( - '(', ')', '<', '>', '[', ']', - ':', ';', '@', ',', '.', '"' - ); - - /*** Refer to RFC 2822 for ABNF grammar ***/ - - //All basic building blocks - $this->_grammar['NO-WS-CTL'] = '[\x01-\x08\x0B\x0C\x0E-\x19\x7F]'; - $this->_grammar['WSP'] = '[ \t]'; - $this->_grammar['CRLF'] = '(?:\r\n)'; - $this->_grammar['FWS'] = '(?:(?:' . $this->_grammar['WSP'] . '*' . - $this->_grammar['CRLF'] . ')?' . $this->_grammar['WSP'] . ')'; - $this->_grammar['text'] = '[\x00-\x08\x0B\x0C\x0E-\x7F]'; - $this->_grammar['quoted-pair'] = '(?:\\\\' . $this->_grammar['text'] . ')'; - $this->_grammar['ctext'] = '(?:' . $this->_grammar['NO-WS-CTL'] . - '|[\x21-\x27\x2A-\x5B\x5D-\x7E])'; - //Uses recursive PCRE (?1) -- could be a weak point?? - $this->_grammar['ccontent'] = '(?:' . $this->_grammar['ctext'] . '|' . - $this->_grammar['quoted-pair'] . '|(?1))'; - $this->_grammar['comment'] = '(\((?:' . $this->_grammar['FWS'] . '|' . - $this->_grammar['ccontent']. ')*' . $this->_grammar['FWS'] . '?\))'; - $this->_grammar['CFWS'] = '(?:(?:' . $this->_grammar['FWS'] . '?' . - $this->_grammar['comment'] . ')*(?:(?:' . $this->_grammar['FWS'] . '?' . - $this->_grammar['comment'] . ')|' . $this->_grammar['FWS'] . '))'; - $this->_grammar['qtext'] = '(?:' . $this->_grammar['NO-WS-CTL'] . - '|[\x21\x23-\x5B\x5D-\x7E])'; - $this->_grammar['qcontent'] = '(?:' . $this->_grammar['qtext'] . '|' . - $this->_grammar['quoted-pair'] . ')'; - $this->_grammar['quoted-string'] = '(?:' . $this->_grammar['CFWS'] . '?"' . - '(' . $this->_grammar['FWS'] . '?' . $this->_grammar['qcontent'] . ')*' . - $this->_grammar['FWS'] . '?"' . $this->_grammar['CFWS'] . '?)'; - $this->_grammar['atext'] = '[a-zA-Z0-9!#\$%&\'\*\+\-\/=\?\^_`\{\}\|~]'; - $this->_grammar['atom'] = '(?:' . $this->_grammar['CFWS'] . '?' . - $this->_grammar['atext'] . '+' . $this->_grammar['CFWS'] . '?)'; - $this->_grammar['dot-atom-text'] = '(?:' . $this->_grammar['atext'] . '+' . - '(\.' . $this->_grammar['atext'] . '+)*)'; - $this->_grammar['dot-atom'] = '(?:' . $this->_grammar['CFWS'] . '?' . - $this->_grammar['dot-atom-text'] . '+' . $this->_grammar['CFWS'] . '?)'; - $this->_grammar['word'] = '(?:' . $this->_grammar['atom'] . '|' . - $this->_grammar['quoted-string'] . ')'; - $this->_grammar['phrase'] = '(?:' . $this->_grammar['word'] . '+?)'; - $this->_grammar['no-fold-quote'] = '(?:"(?:' . $this->_grammar['qtext'] . - '|' . $this->_grammar['quoted-pair'] . ')*")'; - $this->_grammar['dtext'] = '(?:' . $this->_grammar['NO-WS-CTL'] . - '|[\x21-\x5A\x5E-\x7E])'; - $this->_grammar['no-fold-literal'] = '(?:\[(?:' . $this->_grammar['dtext'] . - '|' . $this->_grammar['quoted-pair'] . ')*\])'; - - //Message IDs - $this->_grammar['id-left'] = '(?:' . $this->_grammar['dot-atom-text'] . '|' . - $this->_grammar['no-fold-quote'] . ')'; - $this->_grammar['id-right'] = '(?:' . $this->_grammar['dot-atom-text'] . '|' . - $this->_grammar['no-fold-literal'] . ')'; - - //Addresses, mailboxes and paths - $this->_grammar['local-part'] = '(?:' . $this->_grammar['dot-atom'] . '|' . - $this->_grammar['quoted-string'] . ')'; - $this->_grammar['dcontent'] = '(?:' . $this->_grammar['dtext'] . '|' . - $this->_grammar['quoted-pair'] . ')'; - $this->_grammar['domain-literal'] = '(?:' . $this->_grammar['CFWS'] . '?\[(' . - $this->_grammar['FWS'] . '?' . $this->_grammar['dcontent'] . ')*?' . - $this->_grammar['FWS'] . '?\]' . $this->_grammar['CFWS'] . '?)'; - $this->_grammar['domain'] = '(?:' . $this->_grammar['dot-atom'] . '|' . - $this->_grammar['domain-literal'] . ')'; - $this->_grammar['addr-spec'] = '(?:' . $this->_grammar['local-part'] . '@' . - $this->_grammar['domain'] . ')'; - } - - /** - * Get the grammar defined for $name token. - * @param string $name execatly as written in the RFC - * @return string - */ - protected function getGrammar($name) - { - if (array_key_exists($name, $this->_grammar)) - { - return $this->_grammar[$name]; - } - else - { - throw new Swift_RfcComplianceException( - "No such grammar '" . $name . "' defined." - ); - } - } - - /** - * Escape special characters in a string (convert to quoted-pairs). - * @param string $token - * @param string[] $include additonal chars to escape - * @param string[] $exclude chars from escaping - * @return string - */ - protected function escapeSpecials($token, $include = array(), - $exclude = array()) - { - foreach ( - array_merge(array('\\'), array_diff($this->_specials, $exclude), $include) as $char) - { - $token = str_replace($char, '\\' . $char, $token); - } - return $token; - } - - /** - * Produces a compliant, formatted RFC 2822 'phrase' based on the string given. - * @param Swift_Mime_Header $header - * @param string $string as displayed - * @param string $charset of the text - * @param Swift_Mime_HeaderEncoder $encoder - * @param boolean $shorten the first line to make remove for header name - * @return string - */ - protected function createPhrase(Swift_Mime_Header $header, $string, $charset, - Swift_Mime_HeaderEncoder $encoder = null, $shorten = false) - { - //Treat token as exactly what was given - $phraseStr = $string; - //If it's not valid - if (!preg_match('/^' . $this->_grammar['phrase'] . '$/D', $phraseStr)) - { - // .. but it is just ascii text, try escaping some characters - // and make it a quoted-string - if (preg_match('/^' . $this->_grammar['text'] . '*$/D', $phraseStr)) - { - $phraseStr = $this->escapeSpecials( - $phraseStr, array('"'), $this->_specials - ); - $phraseStr = '"' . $phraseStr . '"'; - } - else // ... otherwise it needs encoding - { - //Determine space remaining on line if first line - if ($shorten) - { - $usedLength = strlen($header->getFieldName() . ': '); - } - else - { - $usedLength = 0; - } - $phraseStr = $this->encodeWords($header, $string, $usedLength); - } - } - - return $phraseStr; - } - - /** - * Encode needed word tokens within a string of input. - * @param string $input - * @param string $usedLength, optional - * @return string - */ - protected function encodeWords(Swift_Mime_Header $header, $input, - $usedLength = -1) - { - $value = ''; - - $tokens = $this->getEncodableWordTokens($input); - - foreach ($tokens as $token) - { - //See RFC 2822, Sect 2.2 (really 2.2 ??) - if ($this->tokenNeedsEncoding($token)) - { - //Don't encode starting WSP - $firstChar = substr($token, 0, 1); - switch($firstChar) - { - case ' ': - case "\t": - $value .= $firstChar; - $token = substr($token, 1); - } - - if (-1 == $usedLength) - { - $usedLength = strlen($header->getFieldName() . ': ') + strlen($value); - } - $value .= $this->getTokenAsEncodedWord($token, $usedLength); - - $header->setMaxLineLength(76); //Forefully override - } - else - { - $value .= $token; - } - } - - return $value; - } - - /** - * Test if a token needs to be encoded or not. - * @param string $token - * @return boolean - */ - protected function tokenNeedsEncoding($token) - { - return preg_match('~[\x00-\x08\x10-\x19\x7F-\xFF\r\n]~', $token); - } - - /** - * Splits a string into tokens in blocks of words which can be encoded quickly. - * @param string $string - * @return string[] - */ - protected function getEncodableWordTokens($string) - { - $tokens = array(); - - $encodedToken = ''; - //Split at all whitespace boundaries - foreach (preg_split('~(?=[\t ])~', $string) as $token) - { - if ($this->tokenNeedsEncoding($token)) - { - $encodedToken .= $token; - } - else - { - if (strlen($encodedToken) > 0) - { - $tokens[] = $encodedToken; - $encodedToken = ''; - } - $tokens[] = $token; - } - } - if (strlen($encodedToken)) - { - $tokens[] = $encodedToken; - } - - return $tokens; - } - - /** - * Get a token as an encoded word for safe insertion into headers. - * @param string $token to encode - * @param int $firstLineOffset, optional - * @return string - */ - protected function getTokenAsEncodedWord($token, $firstLineOffset = 0) - { - //Adjust $firstLineOffset to account for space needed for syntax - $charsetDecl = $this->_charset; - if (isset($this->_lang)) - { - $charsetDecl .= '*' . $this->_lang; - } - $encodingWrapperLength = strlen( - '=?' . $charsetDecl . '?' . $this->_encoder->getName() . '??=' - ); - - if ($firstLineOffset >= 75) //Does this logic need to be here? - { - $firstLineOffset = 0; - } - - $encodedTextLines = explode("\r\n", - $this->_encoder->encodeString( - $token, $firstLineOffset, 75 - $encodingWrapperLength - ) - ); - - foreach ($encodedTextLines as $lineNum => $line) - { - $encodedTextLines[$lineNum] = '=?' . $charsetDecl . - '?' . $this->_encoder->getName() . - '?' . $line . '?='; - } - - return implode("\r\n ", $encodedTextLines); - } - - /** - * Generates tokens from the given string which include CRLF as individual tokens. - * @param string $token - * @return string[] - * @access protected - */ - protected function generateTokenLines($token) - { - return preg_split('~(\r\n)~', $token, -1, PREG_SPLIT_DELIM_CAPTURE); - } - - /** - * Set a value into the cache. - * @param string $value - * @access protected - */ - protected function setCachedValue($value) - { - $this->_cachedValue = $value; - } - - /** - * Get the value in the cache. - * @return string - * @access protected - */ - protected function getCachedValue() - { - return $this->_cachedValue; - } - - /** - * Clear the cached value if $condition is met. - * @param boolean $condition - * @access protected - */ - protected function clearCachedValueIf($condition) - { - if ($condition) - { - $this->setCachedValue(null); - } - } - - // -- Private methods - - /** - * Generate a list of all tokens in the final header. - * @param string $string input, optional - * @return string[] - * @access private - */ - protected function toTokens($string = null) - { - if (is_null($string)) - { - $string = $this->getFieldBody(); - } - - $tokens = array(); - - //Generate atoms; split at all invisible boundaries followed by WSP - foreach (preg_split('~(?=[ \t])~', $string) as $token) - { - $tokens = array_merge($tokens, $this->generateTokenLines($token)); - } - - return $tokens; - } - - /** - * Takes an array of tokens which appear in the header and turns them into - * an RFC 2822 compliant string, adding FWSP where needed. - * @param string[] $tokens - * @return string - * @access private - */ - private function _tokensToString(array $tokens) - { - $lineCount = 0; - $headerLines = array(); - $headerLines[] = $this->_name . ': '; - $currentLine =& $headerLines[$lineCount++]; - - //Build all tokens back into compliant header - foreach ($tokens as $i => $token) - { - //Line longer than specified maximum or token was just a new line - if (("\r\n" == $token) || - ($i > 0 && strlen($currentLine . $token) > $this->_lineLength) - && 0 < strlen($currentLine)) - { - $headerLines[] = ''; - $currentLine =& $headerLines[$lineCount++]; - } - - //Append token to the line - if ("\r\n" != $token) - { - $currentLine .= $token; - } - } - - //Implode with FWS (RFC 2822, 2.2.3) - return implode("\r\n", $headerLines) . "\r\n"; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/DateHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/DateHeader.php deleted file mode 100644 index 598c0c5a..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/DateHeader.php +++ /dev/null @@ -1,118 +0,0 @@ - - * - * - * @param string $name of Header - */ - public function __construct($name) - { - $this->setFieldName($name); - } - - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_DATE; - } - - /** - * Set the model for the field body. - * This method takes a UNIX timestamp. - * @param int $model - */ - public function setFieldBodyModel($model) - { - $this->setTimestamp($model); - } - - /** - * Get the model for the field body. - * This method returns a UNIX timestamp. - * @return mixed - */ - public function getFieldBodyModel() - { - return $this->getTimestamp(); - } - - /** - * Get the UNIX timestamp of the Date in this Header. - * @return int - */ - public function getTimestamp() - { - return $this->_timestamp; - } - - /** - * Set the UNIX timestamp of the Date in this Header. - * @param int $timestamp - */ - public function setTimestamp($timestamp) - { - if (!is_null($timestamp)) - { - $timestamp = (int) $timestamp; - } - $this->clearCachedValueIf($this->_timestamp != $timestamp); - $this->_timestamp = $timestamp; - } - - /** - * Get the string value of the body in this Header. - * This is not necessarily RFC 2822 compliant since folding white space will - * not be added at this stage (see {@link toString()} for that). - * @return string - * @see toString() - */ - public function getFieldBody() - { - if (!$this->getCachedValue()) - { - if (isset($this->_timestamp)) - { - $this->setCachedValue(date('r', $this->_timestamp)); - } - } - return $this->getCachedValue(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/IdentificationHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/IdentificationHeader.php deleted file mode 100644 index 55ff7373..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/IdentificationHeader.php +++ /dev/null @@ -1,161 +0,0 @@ -setFieldName($name); - $this->initializeGrammar(); - } - - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_ID; - } - - /** - * Set the model for the field body. - * This method takes a string ID, or an array of IDs - * @param mixed $model - * @throws Swift_RfcComplianceException - */ - public function setFieldBodyModel($model) - { - $this->setId($model); - } - - /** - * Get the model for the field body. - * This method returns an array of IDs - * @return array - */ - public function getFieldBodyModel() - { - return $this->getIds(); - } - - /** - * Set the ID used in the value of this header. - * @param string $id - * @throws Swift_RfcComplianceException - */ - public function setId($id) - { - return $this->setIds(array($id)); - } - - /** - * Get the ID used in the value of this Header. - * If multiple IDs are set only the first is returned. - * @return string - */ - public function getId() - { - if (count($this->_ids) > 0) - { - return $this->_ids[0]; - } - } - - /** - * Set a collection of IDs to use in the value of this Header. - * @param string[] $ids - * @throws Swift_RfcComplianceException - */ - public function setIds(array $ids) - { - $actualIds = array(); - - foreach ($ids as $k => $id) - { - if (preg_match( - '/^' . $this->getGrammar('id-left') . '@' . - $this->getGrammar('id-right') . '$/D', - $id - )) - { - $actualIds[] = $id; - } - else - { - throw new Swift_RfcComplianceException( - 'Invalid ID given <' . $id . '>' - ); - } - } - - $this->clearCachedValueIf($this->_ids != $actualIds); - $this->_ids = $actualIds; - } - - /** - * Get the list of IDs used in this Header. - * @return string[] - */ - public function getIds() - { - return $this->_ids; - } - - /** - * Get the string value of the body in this Header. - * This is not necessarily RFC 2822 compliant since folding white space will - * not be added at this stage (see {@link toString()} for that). - * @return string - * @see toString() - * @throws Swift_RfcComplianceException - */ - public function getFieldBody() - { - if (!$this->getCachedValue()) - { - $angleAddrs = array(); - - foreach ($this->_ids as $id) - { - $angleAddrs[] = '<' . $id . '>'; - } - - $this->setCachedValue(implode(' ', $angleAddrs)); - } - return $this->getCachedValue(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/MailboxHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/MailboxHeader.php deleted file mode 100644 index 77d3bba2..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/MailboxHeader.php +++ /dev/null @@ -1,316 +0,0 @@ -setFieldName($name); - $this->setEncoder($encoder); - $this->initializeGrammar(); - } - - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_MAILBOX; - } - - /** - * Set the model for the field body. - * This method takes a string, or an array of addresses. - * @param mixed $model - * @throws Swift_RfcComplianceException - */ - public function setFieldBodyModel($model) - { - $this->setNameAddresses($model); - } - - /** - * Get the model for the field body. - * This method returns an associative array like {@link getNameAddresses()} - * @return array - * @throws Swift_RfcComplianceException - */ - public function getFieldBodyModel() - { - return $this->getNameAddresses(); - } - - /** - * Set a list of mailboxes to be shown in this Header. - * The mailboxes can be a simple array of addresses, or an array of - * key=>value pairs where (email => personalName). - * Example: - * - * setNameAddresses(array( - * 'chris@swiftmailer.org' => 'Chris Corbyn', - * 'mark@swiftmailer.org' //No associated personal name - * )); - * ?> - * - * @param string|string[] $mailboxes - * @throws Swift_RfcComplianceException - * @see __construct() - * @see setAddresses() - * @see setValue() - */ - public function setNameAddresses($mailboxes) - { - $this->_mailboxes = $this->normalizeMailboxes((array) $mailboxes); - $this->setCachedValue(null); //Clear any cached value - } - - /** - * Get the full mailbox list of this Header as an array of valid RFC 2822 strings. - * Example: - * - * 'Chris Corbyn', - * 'mark@swiftmailer.org' => 'Mark Corbyn') - * ); - * print_r($header->getNameAddressStrings()); - * // array ( - * // 0 => Chris Corbyn , - * // 1 => Mark Corbyn - * // ) - * ?> - * - * @return string[] - * @throws Swift_RfcComplianceException - * @see getNameAddresses() - * @see toString() - */ - public function getNameAddressStrings() - { - return $this->_createNameAddressStrings($this->getNameAddresses()); - } - - /** - * Get all mailboxes in this Header as key=>value pairs. - * The key is the address and the value is the name (or null if none set). - * Example: - * - * 'Chris Corbyn', - * 'mark@swiftmailer.org' => 'Mark Corbyn') - * ); - * print_r($header->getNameAddresses()); - * // array ( - * // chris@swiftmailer.org => Chris Corbyn, - * // mark@swiftmailer.org => Mark Corbyn - * // ) - * ?> - * - * @return string[] - * @see getAddresses() - * @see getNameAddressStrings() - */ - public function getNameAddresses() - { - return $this->_mailboxes; - } - - /** - * Makes this Header represent a list of plain email addresses with no names. - * Example: - * - * setAddresses( - * array('one@domain.tld', 'two@domain.tld', 'three@domain.tld') - * ); - * ?> - * - * @param string[] $addresses - * @throws Swift_RfcComplianceException - * @see setNameAddresses() - * @see setValue() - */ - public function setAddresses($addresses) - { - return $this->setNameAddresses(array_values((array) $addresses)); - } - - /** - * Get all email addresses in this Header. - * @return string[] - * @see getNameAddresses() - */ - public function getAddresses() - { - return array_keys($this->_mailboxes); - } - - /** - * Remove one or more addresses from this Header. - * @param string|string[] $addresses - */ - public function removeAddresses($addresses) - { - $this->setCachedValue(null); - foreach ((array) $addresses as $address) - { - unset($this->_mailboxes[$address]); - } - } - - /** - * Get the string value of the body in this Header. - * This is not necessarily RFC 2822 compliant since folding white space will - * not be added at this stage (see {@link toString()} for that). - * @return string - * @throws Swift_RfcComplianceException - * @see toString() - */ - public function getFieldBody() - { - //Compute the string value of the header only if needed - if (is_null($this->getCachedValue())) - { - $this->setCachedValue($this->createMailboxListString($this->_mailboxes)); - } - return $this->getCachedValue(); - } - - // -- Points of extension - - /** - * Normalizes a user-input list of mailboxes into consistent key=>value pairs. - * @param string[] $mailboxes - * @return string[] - * @access protected - */ - protected function normalizeMailboxes(array $mailboxes) - { - $actualMailboxes = array(); - - foreach ($mailboxes as $key => $value) - { - if (is_string($key)) //key is email addr - { - $address = $key; - $name = $value; - } - else - { - $address = $value; - $name = null; - } - $this->_assertValidAddress($address); - $actualMailboxes[$address] = $name; - } - - return $actualMailboxes; - } - - /** - * Produces a compliant, formatted display-name based on the string given. - * @param string $displayName as displayed - * @param boolean $shorten the first line to make remove for header name - * @return string - * @access protected - */ - protected function createDisplayNameString($displayName, $shorten = false) - { - return $this->createPhrase($this, $displayName, - $this->getCharset(), $this->getEncoder(), $shorten - ); - } - - /** - * Creates a string form of all the mailboxes in the passed array. - * @param string[] $mailboxes - * @return string - * @throws Swift_RfcComplianceException - * @access protected - */ - protected function createMailboxListString(array $mailboxes) - { - return implode(', ', $this->_createNameAddressStrings($mailboxes)); - } - - // -- Private methods - - /** - * Return an array of strings conforming the the name-addr spec of RFC 2822. - * @param string[] $mailboxes - * @return string[] - * @access private - */ - private function _createNameAddressStrings(array $mailboxes) - { - $strings = array(); - - foreach ($mailboxes as $email => $name) - { - $mailboxStr = $email; - if (!is_null($name)) - { - $nameStr = $this->createDisplayNameString($name, empty($strings)); - $mailboxStr = $nameStr . ' <' . $mailboxStr . '>'; - } - $strings[] = $mailboxStr; - } - - return $strings; - } - - /** - * Throws an Exception if the address passed does not comply with RFC 2822. - * @param string $address - * @throws Exception If invalid. - * @access protected - */ - private function _assertValidAddress($address) - { - if (!preg_match('/^' . $this->getGrammar('addr-spec') . '$/D', - $address)) - { - throw new Swift_RfcComplianceException( - 'Address in mailbox given [' . $address . - '] does not comply with RFC 2822, 3.6.2.' - ); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/ParameterizedHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/ParameterizedHeader.php deleted file mode 100644 index 974b44e2..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/ParameterizedHeader.php +++ /dev/null @@ -1,274 +0,0 @@ -setFieldName($name); - $this->setEncoder($encoder); - $this->_paramEncoder = $paramEncoder; - $this->initializeGrammar(); - $this->_tokenRe = '(?:[\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7E]+)'; - } - - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_PARAMETERIZED; - } - - /** - * Set the character set used in this Header. - * @param string $charset - */ - public function setCharset($charset) - { - parent::setCharset($charset); - if (isset($this->_paramEncoder)) - { - $this->_paramEncoder->charsetChanged($charset); - } - } - - /** - * Set the value of $parameter. - * @param string $parameter - * @param string $value - */ - public function setParameter($parameter, $value) - { - $this->setParameters(array_merge($this->getParameters(), array($parameter => $value))); - } - - /** - * Get the value of $parameter. - * @return string - */ - public function getParameter($parameter) - { - $params = $this->getParameters(); - return array_key_exists($parameter, $params) - ? $params[$parameter] - : null; - } - - /** - * Set an associative array of parameter names mapped to values. - * @param string[] - */ - public function setParameters(array $parameters) - { - $this->clearCachedValueIf($this->_params != $parameters); - $this->_params = $parameters; - } - - /** - * Returns an associative array of parameter names mapped to values. - * @return string[] - */ - public function getParameters() - { - return $this->_params; - } - - /** - * Get the value of this header prepared for rendering. - * @return string - */ - public function getFieldBody() //TODO: Check caching here - { - $body = parent::getFieldBody(); - foreach ($this->_params as $name => $value) - { - if (!is_null($value)) - { - //Add the parameter - $body .= '; ' . $this->_createParameter($name, $value); - } - } - return $body; - } - - // -- Protected methods - - /** - * Generate a list of all tokens in the final header. - * This doesn't need to be overridden in theory, but it is for implementation - * reasons to prevent potential breakage of attributes. - * @return string[] - * @access protected - */ - protected function toTokens($string = null) - { - $tokens = parent::toTokens(parent::getFieldBody()); - - //Try creating any parameters - foreach ($this->_params as $name => $value) - { - if (!is_null($value)) - { - //Add the semi-colon separator - $tokens[count($tokens)-1] .= ';'; - $tokens = array_merge($tokens, $this->generateTokenLines( - ' ' . $this->_createParameter($name, $value) - )); - } - } - - return $tokens; - } - - // -- Private methods - - /** - * Render a RFC 2047 compliant header parameter from the $name and $value. - * @param string $name - * @param string $value - * @return string - * @access private - */ - private function _createParameter($name, $value) - { - $origValue = $value; - - $encoded = false; - //Allow room for parameter name, indices, "=" and DQUOTEs - $maxValueLength = $this->getMaxLineLength() - strlen($name . '=*N"";') - 1; - $firstLineOffset = 0; - - //If it's not already a valid parameter value... - if (!preg_match('/^' . $this->_tokenRe . '$/D', $value)) - { - //TODO: text, or something else?? - //... and it's not ascii - if (!preg_match('/^' . $this->getGrammar('text') . '*$/D', $value)) - { - $encoded = true; - //Allow space for the indices, charset and language - $maxValueLength = $this->getMaxLineLength() - strlen($name . '*N*="";') - 1; - $firstLineOffset = strlen( - $this->getCharset() . "'" . $this->getLanguage() . "'" - ); - } - } - - //Encode if we need to - if ($encoded || strlen($value) > $maxValueLength) - { - if (isset($this->_paramEncoder)) - { - $value = $this->_paramEncoder->encodeString( - $origValue, $firstLineOffset, $maxValueLength - ); - } - else //We have to go against RFC 2183/2231 in some areas for interoperability - { - $value = $this->getTokenAsEncodedWord($origValue); - $encoded = false; - } - } - - $valueLines = isset($this->_paramEncoder) ? explode("\r\n", $value) : array($value); - - //Need to add indices - if (count($valueLines) > 1) - { - $paramLines = array(); - foreach ($valueLines as $i => $line) - { - $paramLines[] = $name . '*' . $i . - $this->_getEndOfParameterValue($line, $encoded, $i == 0); - } - return implode(";\r\n ", $paramLines); - } - else - { - return $name . $this->_getEndOfParameterValue( - $valueLines[0], $encoded, true - ); - } - } - - /** - * Returns the parameter value from the "=" and beyond. - * @param string $value to append - * @param boolean $encoded - * @param boolean $firstLine - * @return string - * @access private - */ - private function _getEndOfParameterValue($value, $encoded = false, $firstLine = false) - { - if (!preg_match('/^' . $this->_tokenRe . '$/D', $value)) - { - $value = '"' . $value . '"'; - } - $prepend = '='; - if ($encoded) - { - $prepend = '*='; - if ($firstLine) - { - $prepend = '*=' . $this->getCharset() . "'" . $this->getLanguage() . - "'"; - } - } - return $prepend . $value; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/PathHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/PathHeader.php deleted file mode 100644 index 0a8a100a..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/PathHeader.php +++ /dev/null @@ -1,126 +0,0 @@ -setFieldName($name); - $this->initializeGrammar(); - } - - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_PATH; - } - - /** - * Set the model for the field body. - * This method takes a string for an address. - * @param string $model - * @throws Swift_RfcComplianceException - */ - public function setFieldBodyModel($model) - { - $this->setAddress($model); - } - - /** - * Get the model for the field body. - * This method returns a string email address. - * @return mixed - */ - public function getFieldBodyModel() - { - return $this->getAddress(); - } - - /** - * Set the Address which should appear in this Header. - * @param string $address - * @throws Swift_RfcComplianceException - */ - public function setAddress($address) - { - if (is_null($address)) - { - $this->_address = null; - } - elseif ('' == $address - || preg_match('/^' . $this->getGrammar('addr-spec') . '$/D', $address)) - { - $this->_address = $address; - } - else - { - throw new Swift_RfcComplianceException( - 'Address set in PathHeader does not comply with addr-spec of RFC 2822.' - ); - } - $this->setCachedValue(null); - } - - /** - * Get the address which is used in this Header (if any). - * Null is returned if no address is set. - * @return string - */ - public function getAddress() - { - return $this->_address; - } - - /** - * Get the string value of the body in this Header. - * This is not necessarily RFC 2822 compliant since folding white space will - * not be added at this stage (see {@link toString()} for that). - * @return string - * @see toString() - */ - public function getFieldBody() - { - if (!$this->getCachedValue()) - { - if (isset($this->_address)) - { - $this->setCachedValue('<' . $this->_address . '>'); - } - } - return $this->getCachedValue(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/UnstructuredHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/UnstructuredHeader.php deleted file mode 100644 index fdcc21ed..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Headers/UnstructuredHeader.php +++ /dev/null @@ -1,108 +0,0 @@ -setFieldName($name); - $this->setEncoder($encoder); - } - /** - * Get the type of Header that this instance represents. - * @return int - * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX - * @see TYPE_DATE, TYPE_ID, TYPE_PATH - */ - public function getFieldType() - { - return self::TYPE_TEXT; - } - - /** - * Set the model for the field body. - * This method takes a string for the field value. - * @param string $model - */ - public function setFieldBodyModel($model) - { - $this->setValue($model); - } - - /** - * Get the model for the field body. - * This method returns a string. - * @return string - */ - public function getFieldBodyModel() - { - return $this->getValue(); - } - - /** - * Get the (unencoded) value of this header. - * @return string - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the (unencoded) value of this header. - * @param string $value - */ - public function setValue($value) - { - $this->clearCachedValueIf($this->_value != $value); - $this->_value = $value; - } - - /** - * Get the value of this header prepared for rendering. - * @return string - */ - public function getFieldBody() - { - if (!$this->getCachedValue()) - { - $this->setCachedValue( - str_replace('\\', '\\\\', $this->encodeWords( - $this, $this->_value, -1, $this->getCharset(), $this->getEncoder() - )) - ); - } - return $this->getCachedValue(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Message.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Message.php deleted file mode 100644 index 0496c087..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/Message.php +++ /dev/null @@ -1,230 +0,0 @@ - 'Real Name'). - * - * If the second parameter is provided and the first is a string, then $name - * is associated with the address. - * - * @param mixed $address - * @param string $name optional - */ - public function setSender($address, $name = null); - - /** - * Get the sender address for this message. - * - * This has a higher significance than the From address. - * - * @return string - */ - public function getSender(); - - /** - * Set the From address of this message. - * - * It is permissible for multiple From addresses to be set using an array. - * - * If multiple From addresses are used, you SHOULD set the Sender address and - * according to RFC 2822, MUST set the sender address. - * - * An array can be used if display names are to be provided: i.e. - * array('email@address.com' => 'Real Name'). - * - * If the second parameter is provided and the first is a string, then $name - * is associated with the address. - * - * @param mixed $addresses - * @param string $name optional - */ - public function setFrom($addresses, $name = null); - - /** - * Get the From address(es) of this message. - * - * This method always returns an associative array where the keys are the - * addresses. - * - * @return string[] - */ - public function getFrom(); - - /** - * Set the Reply-To address(es). - * - * Any replies from the receiver will be sent to this address. - * - * It is permissible for multiple reply-to addresses to be set using an array. - * - * This method has the same synopsis as {@link setFrom()} and {@link setTo()}. - * - * If the second parameter is provided and the first is a string, then $name - * is associated with the address. - * - * @param mixed $addresses - * @param string $name optional - */ - public function setReplyTo($addresses, $name = null); - - /** - * Get the Reply-To addresses for this message. - * - * This method always returns an associative array where the keys provide the - * email addresses. - * - * @return string[] - */ - public function getReplyTo(); - - /** - * Set the To address(es). - * - * Recipients set in this field will receive a copy of this message. - * - * This method has the same synopsis as {@link setFrom()} and {@link setCc()}. - * - * If the second parameter is provided and the first is a string, then $name - * is associated with the address. - * - * @param mixed $addresses - * @param string $name optional - */ - public function setTo($addresses, $name = null); - - /** - * Get the To addresses for this message. - * - * This method always returns an associative array, whereby the keys provide - * the actual email addresses. - * - * @return string[] - */ - public function getTo(); - - /** - * Set the Cc address(es). - * - * Recipients set in this field will receive a 'carbon-copy' of this message. - * - * This method has the same synopsis as {@link setFrom()} and {@link setTo()}. - * - * @param mixed $addresses - * @param string $name optional - */ - public function setCc($addresses, $name = null); - - /** - * Get the Cc addresses for this message. - * - * This method always returns an associative array, whereby the keys provide - * the actual email addresses. - * - * @return string[] - */ - public function getCc(); - - /** - * Set the Bcc address(es). - * - * Recipients set in this field will receive a 'blind-carbon-copy' of this - * message. - * - * In other words, they will get the message, but any other recipients of the - * message will have no such knowledge of their receipt of it. - * - * This method has the same synopsis as {@link setFrom()} and {@link setTo()}. - * - * @param mixed $addresses - * @param string $name optional - */ - public function setBcc($addresses, $name = null); - - /** - * Get the Bcc addresses for this message. - * - * This method always returns an associative array, whereby the keys provide - * the actual email addresses. - * - * @return string[] - */ - public function getBcc(); - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/MimeEntity.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/MimeEntity.php deleted file mode 100644 index 2b08009d..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/MimeEntity.php +++ /dev/null @@ -1,108 +0,0 @@ -setContentType('text/plain'); - if (!is_null($charset)) - { - $this->setCharset($charset); - } - } - - /** - * Set the body of this entity, either as a string, or as an instance of - * {@link Swift_OutputByteStream}. - * - * @param mixed $body - * @param string $contentType optional - * @param string $charset optional - */ - public function setBody($body, $contentType = null, $charset = null) - { - parent::setBody($body, $contentType); - if (isset($charset)) - { - $this->setCharset($charset); - } - return $this; - } - - /** - * Get the character set of this entity. - * - * @return string - */ - public function getCharset() - { - return $this->_getHeaderParameter('Content-Type', 'charset'); - } - - /** - * Set the character set of this entity. - * - * @param string $charset - */ - public function setCharset($charset) - { - $this->_setHeaderParameter('Content-Type', 'charset', $charset); - if ($charset !== $this->_userCharset) - { - $this->_clearCache(); - } - $this->_userCharset = $charset; - parent::charsetChanged($charset); - return $this; - } - - /** - * Get the format of this entity (i.e. flowed or fixed). - * - * @return string - */ - public function getFormat() - { - return $this->_getHeaderParameter('Content-Type', 'format'); - } - - /** - * Set the format of this entity (flowed or fixed). - * - * @param string $format - */ - public function setFormat($format) - { - $this->_setHeaderParameter('Content-Type', 'format', $format); - $this->_userFormat = $format; - return $this; - } - - /** - * Test if delsp is being used for this entity. - * - * @return boolean - */ - public function getDelSp() - { - return ($this->_getHeaderParameter('Content-Type', 'delsp') == 'yes') - ? true - : false; - } - - /** - * Turn delsp on or off for this entity. - * - * @param boolean $delsp - */ - public function setDelSp($delsp = true) - { - $this->_setHeaderParameter('Content-Type', 'delsp', $delsp ? 'yes' : null); - $this->_userDelSp = $delsp; - return $this; - } - - /** - * Get the nesting level of this entity. - * - * @return int - * @see LEVEL_TOP, LEVEL_ALTERNATIVE, LEVEL_MIXED, LEVEL_RELATED - */ - public function getNestingLevel() - { - return $this->_nestingLevel; - } - - /** - * Receive notification that the charset has changed on this document, or a - * parent document. - * - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->setCharset($charset); - } - - // -- Protected methods - - /** Fix the content-type and encoding of this entity */ - protected function _fixHeaders() - { - parent::_fixHeaders(); - if (count($this->getChildren())) - { - $this->_setHeaderParameter('Content-Type', 'charset', null); - $this->_setHeaderParameter('Content-Type', 'format', null); - $this->_setHeaderParameter('Content-Type', 'delsp', null); - } - else - { - $this->setCharset($this->_userCharset); - $this->setFormat($this->_userFormat); - $this->setDelSp($this->_userDelSp); - } - } - - /** Set the nesting level of this entity */ - protected function _setNestingLevel($level) - { - $this->_nestingLevel = $level; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ParameterizedHeader.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ParameterizedHeader.php deleted file mode 100644 index da65ca98..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/ParameterizedHeader.php +++ /dev/null @@ -1,35 +0,0 @@ -_encoder = $encoder; - $this->_paramEncoder = $paramEncoder; - $this->_charset = $charset; - } - - /** - * Create a new Mailbox Header with a list of $addresses. - * @param string $name - * @param array|string $addresses - * @return Swift_Mime_Header - */ - public function createMailboxHeader($name, $addresses = null) - { - $header = new Swift_Mime_Headers_MailboxHeader($name, $this->_encoder); - if (isset($addresses)) - { - $header->setFieldBodyModel($addresses); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Create a new Date header using $timestamp (UNIX time). - * @param string $name - * @param int $timestamp - * @return Swift_Mime_Header - */ - public function createDateHeader($name, $timestamp = null) - { - $header = new Swift_Mime_Headers_DateHeader($name); - if (isset($timestamp)) - { - $header->setFieldBodyModel($timestamp); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Create a new basic text header with $name and $value. - * @param string $name - * @param string $value - * @return Swift_Mime_Header - */ - public function createTextHeader($name, $value = null) - { - $header = new Swift_Mime_Headers_UnstructuredHeader($name, $this->_encoder); - if (isset($value)) - { - $header->setFieldBodyModel($value); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Create a new ParameterizedHeader with $name, $value and $params. - * @param string $name - * @param string $value - * @param array $params - * @return Swift_Mime_ParameterizedHeader - */ - public function createParameterizedHeader($name, $value = null, - $params = array()) - { - $header = new Swift_Mime_Headers_ParameterizedHeader($name, - $this->_encoder, (strtolower($name) == 'content-disposition') - ? $this->_paramEncoder - : null - ); - if (isset($value)) - { - $header->setFieldBodyModel($value); - } - foreach ($params as $k => $v) - { - $header->setParameter($k, $v); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Create a new ID header for Message-ID or Content-ID. - * @param string $name - * @param string|array $ids - * @return Swift_Mime_Header - */ - public function createIdHeader($name, $ids = null) - { - $header = new Swift_Mime_Headers_IdentificationHeader($name); - if (isset($ids)) - { - $header->setFieldBodyModel($ids); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Create a new Path header with an address (path) in it. - * @param string $name - * @param string $path - * @return Swift_Mime_Header - */ - public function createPathHeader($name, $path = null) - { - $header = new Swift_Mime_Headers_PathHeader($name); - if (isset($path)) - { - $header->setFieldBodyModel($path); - } - $this->_setHeaderCharset($header); - return $header; - } - - /** - * Notify this observer that the entity's charset has changed. - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->_charset = $charset; - $this->_encoder->charsetChanged($charset); - $this->_paramEncoder->charsetChanged($charset); - } - - // -- Private methods - - /** Apply the charset to the Header */ - private function _setHeaderCharset(Swift_Mime_Header $header) - { - if (isset($this->_charset)) - { - $header->setCharset($this->_charset); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleHeaderSet.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleHeaderSet.php deleted file mode 100644 index eeb0221b..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleHeaderSet.php +++ /dev/null @@ -1,396 +0,0 @@ -_factory = $factory; - if (isset($charset)) - { - $this->setCharset($charset); - } - } - - /** - * Set the charset used by these headers. - * - * @param string $charset - */ - public function setCharset($charset) - { - $this->_charset = $charset; - $this->_factory->charsetChanged($charset); - $this->_notifyHeadersOfCharset($charset); - } - - /** - * Add a new Mailbox Header with a list of $addresses. - * - * @param string $name - * @param array|string $addresses - */ - public function addMailboxHeader($name, $addresses = null) - { - $this->_storeHeader($name, - $this->_factory->createMailboxHeader($name, $addresses)); - } - - /** - * Add a new Date header using $timestamp (UNIX time). - * - * @param string $name - * @param int $timestamp - */ - public function addDateHeader($name, $timestamp = null) - { - $this->_storeHeader($name, - $this->_factory->createDateHeader($name, $timestamp)); - } - - /** - * Add a new basic text header with $name and $value. - * - * @param string $name - * @param string $value - */ - public function addTextHeader($name, $value = null) - { - $this->_storeHeader($name, - $this->_factory->createTextHeader($name, $value)); - } - - /** - * Add a new ParameterizedHeader with $name, $value and $params. - * - * @param string $name - * @param string $value - * @param array $params - */ - public function addParameterizedHeader($name, $value = null, - $params = array()) - { - $this->_storeHeader($name, - $this->_factory->createParameterizedHeader($name, $value, - $params)); - } - - /** - * Add a new ID header for Message-ID or Content-ID. - * - * @param string $name - * @param string|array $ids - */ - public function addIdHeader($name, $ids = null) - { - $this->_storeHeader($name, $this->_factory->createIdHeader($name, $ids)); - } - - /** - * Add a new Path header with an address (path) in it. - * - * @param string $name - * @param string $path - */ - public function addPathHeader($name, $path = null) - { - $this->_storeHeader($name, $this->_factory->createPathHeader($name, $path)); - } - - /** - * Returns true if at least one header with the given $name exists. - * - * If multiple headers match, the actual one may be specified by $index. - * - * @param string $name - * @param int $index - * - * @return boolean - */ - public function has($name, $index = 0) - { - $lowerName = strtolower($name); - return array_key_exists($lowerName, $this->_headers) - && array_key_exists($index, $this->_headers[$lowerName]); - } - - /** - * Set a header in the HeaderSet. - * - * The header may be a previously fetched header via {@link get()} or it may - * be one that has been created separately. - * - * If $index is specified, the header will be inserted into the set at this - * offset. - * - * @param Swift_Mime_Header $header - * @param int $index - */ - public function set(Swift_Mime_Header $header, $index = 0) - { - $this->_storeHeader($header->getFieldName(), $header, $index); - } - - /** - * Get the header with the given $name. - * - * If multiple headers match, the actual one may be specified by $index. - * Returns NULL if none present. - * - * @param string $name - * @param int $index - * - * @return Swift_Mime_Header - */ - public function get($name, $index = 0) - { - if ($this->has($name, $index)) - { - $lowerName = strtolower($name); - return $this->_headers[$lowerName][$index]; - } - } - - /** - * Get all headers with the given $name. - * - * @param string $name - * - * @return array - */ - public function getAll($name = null) - { - if (!isset($name)) - { - $headers = array(); - foreach ($this->_headers as $collection) - { - $headers = array_merge($headers, $collection); - } - return $headers; - } - - $lowerName = strtolower($name); - if (!array_key_exists($lowerName, $this->_headers)) - { - return array(); - } - return $this->_headers[$lowerName]; - } - - /** - * Remove the header with the given $name if it's set. - * - * If multiple headers match, the actual one may be specified by $index. - * - * @param string $name - * @param int $index - */ - public function remove($name, $index = 0) - { - $lowerName = strtolower($name); - unset($this->_headers[$lowerName][$index]); - } - - /** - * Remove all headers with the given $name. - * - * @param string $name - */ - public function removeAll($name) - { - $lowerName = strtolower($name); - unset($this->_headers[$lowerName]); - } - - /** - * Create a new instance of this HeaderSet. - * - * @return Swift_Mime_HeaderSet - */ - public function newInstance() - { - return new self($this->_factory); - } - - /** - * Define a list of Header names as an array in the correct order. - * - * These Headers will be output in the given order where present. - * - * @param array $sequence - */ - public function defineOrdering(array $sequence) - { - $this->_order = array_flip(array_map('strtolower', $sequence)); - } - - /** - * Set a list of header names which must always be displayed when set. - * - * Usually headers without a field value won't be output unless set here. - * - * @param array $names - */ - public function setAlwaysDisplayed(array $names) - { - $this->_required = array_flip(array_map('strtolower', $names)); - } - - /** - * Notify this observer that the entity's charset has changed. - * - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->setCharset($charset); - } - - /** - * Returns a string with a representation of all headers. - * - * @return string - */ - public function toString() - { - $string = ''; - $headers = $this->_headers; - if ($this->_canSort()) - { - uksort($headers, array($this, '_sortHeaders')); - } - foreach ($headers as $collection) - { - foreach ($collection as $header) - { - if ($this->_isDisplayed($header) || $header->getFieldBody() != '') - { - $string .= $header->toString(); - } - } - } - return $string; - } - - /** - * Returns a string representation of this object. - * - * @return string - * - * @see toString() - */ - public function __toString() - { - return $this->toString(); - } - - // -- Private methods - - /** Save a Header to the internal collection */ - private function _storeHeader($name, Swift_Mime_Header $header, $offset = null) - { - if (!isset($this->_headers[strtolower($name)])) - { - $this->_headers[strtolower($name)] = array(); - } - if (!isset($offset)) - { - $this->_headers[strtolower($name)][] = $header; - } - else - { - $this->_headers[strtolower($name)][$offset] = $header; - } - } - - /** Test if the headers can be sorted */ - private function _canSort() - { - return count($this->_order) > 0; - } - - /** uksort() algorithm for Header ordering */ - private function _sortHeaders($a, $b) - { - $lowerA = strtolower($a); - $lowerB = strtolower($b); - $aPos = array_key_exists($lowerA, $this->_order) - ? $this->_order[$lowerA] - : -1; - $bPos = array_key_exists($lowerB, $this->_order) - ? $this->_order[$lowerB] - : -1; - - if ($aPos == -1) - { - return 1; - } - elseif ($bPos == -1) - { - return -1; - } - - return ($aPos < $bPos) ? -1 : 1; - } - - /** Test if the given Header is always displayed */ - private function _isDisplayed(Swift_Mime_Header $header) - { - return array_key_exists(strtolower($header->getFieldName()), $this->_required); - } - - /** Notify all Headers of the new charset */ - private function _notifyHeadersOfCharset($charset) - { - foreach ($this->_headers as $headerGroup) - { - foreach ($headerGroup as $header) - { - $header->setCharset($charset); - } - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMessage.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMessage.php deleted file mode 100644 index bbe1e8fc..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMessage.php +++ /dev/null @@ -1,609 +0,0 @@ -getHeaders()->defineOrdering(array( - 'Return-Path', - 'Sender', - 'Message-ID', - 'Date', - 'Subject', - 'From', - 'Reply-To', - 'To', - 'Cc', - 'Bcc', - 'MIME-Version', - 'Content-Type', - 'Content-Transfer-Encoding' - )); - $this->getHeaders()->setAlwaysDisplayed( - array('Date', 'Message-ID', 'From') - ); - $this->getHeaders()->addTextHeader('MIME-Version', '1.0'); - $this->setDate(time()); - $this->setId($this->getId()); - $this->getHeaders()->addMailboxHeader('From'); - } - - /** - * Always returns {@link LEVEL_TOP} for a message instance. - * @return int - */ - public function getNestingLevel() - { - return self::LEVEL_TOP; - } - - /** - * Set the subject of this message. - * @param string $subject - */ - public function setSubject($subject) - { - if (!$this->_setHeaderFieldModel('Subject', $subject)) - { - $this->getHeaders()->addTextHeader('Subject', $subject); - } - return $this; - } - - /** - * Get the subject of this message. - * @return string - */ - public function getSubject() - { - return $this->_getHeaderFieldModel('Subject'); - } - - /** - * Set the date at which this message was created. - * @param int $date - */ - public function setDate($date) - { - if (!$this->_setHeaderFieldModel('Date', $date)) - { - $this->getHeaders()->addDateHeader('Date', $date); - } - return $this; - } - - /** - * Get the date at which this message was created. - * @return int - */ - public function getDate() - { - return $this->_getHeaderFieldModel('Date'); - } - - /** - * Set the return-path (the bounce address) of this message. - * @param string $address - */ - public function setReturnPath($address) - { - if (!$this->_setHeaderFieldModel('Return-Path', $address)) - { - $this->getHeaders()->addPathHeader('Return-Path', $address); - } - return $this; - } - - /** - * Get the return-path (bounce address) of this message. - * @return string - */ - public function getReturnPath() - { - return $this->_getHeaderFieldModel('Return-Path'); - } - - /** - * Set the sender of this message. - * This does not override the From field, but it has a higher significance. - * @param string $sender - * @param string $name optional - */ - public function setSender($address, $name = null) - { - if (!is_array($address) && isset($name)) - { - $address = array($address => $name); - } - - if (!$this->_setHeaderFieldModel('Sender', (array) $address)) - { - $this->getHeaders()->addMailboxHeader('Sender', (array) $address); - } - return $this; - } - - /** - * Get the sender of this message. - * @return string - */ - public function getSender() - { - return $this->_getHeaderFieldModel('Sender'); - } - - /** - * Add a From: address to this message. - * - * If $name is passed this name will be associated with the address. - * - * @param string $address - * @param string $name optional - */ - public function addFrom($address, $name = null) - { - $current = $this->getFrom(); - $current[$address] = $name; - return $this->setFrom($current); - } - - /** - * Set the from address of this message. - * - * You may pass an array of addresses if this message is from multiple people. - * - * If $name is passed and the first parameter is a string, this name will be - * associated with the address. - * - * @param string $addresses - * @param string $name optional - */ - public function setFrom($addresses, $name = null) - { - if (!is_array($addresses) && isset($name)) - { - $addresses = array($addresses => $name); - } - - if (!$this->_setHeaderFieldModel('From', (array) $addresses)) - { - $this->getHeaders()->addMailboxHeader('From', (array) $addresses); - } - return $this; - } - - /** - * Get the from address of this message. - * - * @return string - */ - public function getFrom() - { - return $this->_getHeaderFieldModel('From'); - } - - /** - * Add a Reply-To: address to this message. - * - * If $name is passed this name will be associated with the address. - * - * @param string $address - * @param string $name optional - */ - public function addReplyTo($address, $name = null) - { - $current = $this->getReplyTo(); - $current[$address] = $name; - return $this->setReplyTo($current); - } - - /** - * Set the reply-to address of this message. - * - * You may pass an array of addresses if replies will go to multiple people. - * - * If $name is passed and the first parameter is a string, this name will be - * associated with the address. - * - * @param string $addresses - * @param string $name optional - */ - public function setReplyTo($addresses, $name = null) - { - if (!is_array($addresses) && isset($name)) - { - $addresses = array($addresses => $name); - } - - if (!$this->_setHeaderFieldModel('Reply-To', (array) $addresses)) - { - $this->getHeaders()->addMailboxHeader('Reply-To', (array) $addresses); - } - return $this; - } - - /** - * Get the reply-to address of this message. - * - * @return string - */ - public function getReplyTo() - { - return $this->_getHeaderFieldModel('Reply-To'); - } - - /** - * Add a To: address to this message. - * - * If $name is passed this name will be associated with the address. - * - * @param string $address - * @param string $name optional - */ - public function addTo($address, $name = null) - { - $current = $this->getTo(); - $current[$address] = $name; - return $this->setTo($current); - } - - /** - * Set the to addresses of this message. - * - * If multiple recipients will receive the message and array should be used. - * - * If $name is passed and the first parameter is a string, this name will be - * associated with the address. - * - * @param array $addresses - * @param string $name optional - */ - public function setTo($addresses, $name = null) - { - if (!is_array($addresses) && isset($name)) - { - $addresses = array($addresses => $name); - } - - if (!$this->_setHeaderFieldModel('To', (array) $addresses)) - { - $this->getHeaders()->addMailboxHeader('To', (array) $addresses); - } - return $this; - } - - /** - * Get the To addresses of this message. - * - * @return array - */ - public function getTo() - { - return $this->_getHeaderFieldModel('To'); - } - - /** - * Add a Cc: address to this message. - * - * If $name is passed this name will be associated with the address. - * - * @param string $address - * @param string $name optional - */ - public function addCc($address, $name = null) - { - $current = $this->getCc(); - $current[$address] = $name; - return $this->setCc($current); - } - - /** - * Set the Cc addresses of this message. - * - * If $name is passed and the first parameter is a string, this name will be - * associated with the address. - * - * @param array $addresses - * @param string $name optional - */ - public function setCc($addresses, $name = null) - { - if (!is_array($addresses) && isset($name)) - { - $addresses = array($addresses => $name); - } - - if (!$this->_setHeaderFieldModel('Cc', (array) $addresses)) - { - $this->getHeaders()->addMailboxHeader('Cc', (array) $addresses); - } - return $this; - } - - /** - * Get the Cc address of this message. - * - * @return array - */ - public function getCc() - { - return $this->_getHeaderFieldModel('Cc'); - } - - /** - * Add a Bcc: address to this message. - * - * If $name is passed this name will be associated with the address. - * - * @param string $address - * @param string $name optional - */ - public function addBcc($address, $name = null) - { - $current = $this->getBcc(); - $current[$address] = $name; - return $this->setBcc($current); - } - - /** - * Set the Bcc addresses of this message. - * - * If $name is passed and the first parameter is a string, this name will be - * associated with the address. - * - * @param array $addresses - * @param string $name optional - */ - public function setBcc($addresses, $name = null) - { - if (!is_array($addresses) && isset($name)) - { - $addresses = array($addresses => $name); - } - - if (!$this->_setHeaderFieldModel('Bcc', (array) $addresses)) - { - $this->getHeaders()->addMailboxHeader('Bcc', (array) $addresses); - } - return $this; - } - - /** - * Get the Bcc addresses of this message. - * - * @return array - */ - public function getBcc() - { - return $this->_getHeaderFieldModel('Bcc'); - } - - /** - * Set the priority of this message. - * The value is an integer where 1 is the highest priority and 5 is the lowest. - * @param int $priority - */ - public function setPriority($priority) - { - $priorityMap = array( - 1 => 'Highest', - 2 => 'High', - 3 => 'Normal', - 4 => 'Low', - 5 => 'Lowest' - ); - $pMapKeys = array_keys($priorityMap); - if ($priority > max($pMapKeys)) - { - $priority = max($pMapKeys); - } - elseif ($priority < min($pMapKeys)) - { - $priority = min($pMapKeys); - } - if (!$this->_setHeaderFieldModel('X-Priority', - sprintf('%d (%s)', $priority, $priorityMap[$priority]))) - { - $this->getHeaders()->addTextHeader('X-Priority', - sprintf('%d (%s)', $priority, $priorityMap[$priority])); - } - return $this; - } - - /** - * Get the priority of this message. - * The returned value is an integer where 1 is the highest priority and 5 - * is the lowest. - * @return int - */ - public function getPriority() - { - list($priority) = sscanf($this->_getHeaderFieldModel('X-Priority'), - '%[1-5]' - ); - return isset($priority) ? $priority : 3; - } - - /** - * Ask for a delivery receipt from the recipient to be sent to $addresses - * @param array $addresses - */ - public function setReadReceiptTo($addresses) - { - if (!$this->_setHeaderFieldModel('Disposition-Notification-To', $addresses)) - { - $this->getHeaders() - ->addMailboxHeader('Disposition-Notification-To', $addresses); - } - return $this; - } - - /** - * Get the addresses to which a read-receipt will be sent. - * @return string - */ - public function getReadReceiptTo() - { - return $this->_getHeaderFieldModel('Disposition-Notification-To'); - } - - /** - * Attach a {@link Swift_Mime_MimeEntity} such as an Attachment or MimePart. - * @param Swift_Mime_MimeEntity $entity - */ - public function attach(Swift_Mime_MimeEntity $entity) - { - $this->setChildren(array_merge($this->getChildren(), array($entity))); - return $this; - } - - /** - * Remove an already attached entity. - * @param Swift_Mime_MimeEntity $entity - */ - public function detach(Swift_Mime_MimeEntity $entity) - { - $newChildren = array(); - foreach ($this->getChildren() as $child) - { - if ($entity !== $child) - { - $newChildren[] = $child; - } - } - $this->setChildren($newChildren); - return $this; - } - - /** - * Attach a {@link Swift_Mime_MimeEntity} and return it's CID source. - * This method should be used when embedding images or other data in a message. - * @param Swift_Mime_MimeEntity $entity - * @return string - */ - public function embed(Swift_Mime_MimeEntity $entity) - { - $this->attach($entity); - return 'cid:' . $entity->getId(); - } - - /** - * Get this message as a complete string. - * @return string - */ - public function toString() - { - if (count($children = $this->getChildren()) > 0 && $this->getBody() != '') - { - $this->setChildren(array_merge(array($this->_becomeMimePart()), $children)); - $string = parent::toString(); - $this->setChildren($children); - } - else - { - $string = parent::toString(); - } - return $string; - } - - /** - * Returns a string representation of this object. - * - * @return string - * - * @see toString() - */ - public function __toString() - { - return $this->toString(); - } - - /** - * Write this message to a {@link Swift_InputByteStream}. - * @param Swift_InputByteStream $is - */ - public function toByteStream(Swift_InputByteStream $is) - { - if (count($children = $this->getChildren()) > 0 && $this->getBody() != '') - { - $this->setChildren(array_merge(array($this->_becomeMimePart()), $children)); - parent::toByteStream($is); - $this->setChildren($children); - } - else - { - parent::toByteStream($is); - } - } - - // -- Protected methods - - /** @see Swift_Mime_SimpleMimeEntity::_getIdField() */ - protected function _getIdField() - { - return 'Message-ID'; - } - - // -- Private methods - - /** Turn the body of this message into a child of itself if needed */ - private function _becomeMimePart() - { - $part = new parent($this->getHeaders()->newInstance(), $this->getEncoder(), - $this->_getCache(), $this->_userCharset - ); - $part->setContentType($this->_userContentType); - $part->setBody($this->getBody()); - $part->setFormat($this->_userFormat); - $part->setDelSp($this->_userDelSp); - $part->_setNestingLevel($this->_getTopNestingLevel()); - return $part; - } - - /** Get the highest nesting level nested inside this message */ - private function _getTopNestingLevel() - { - $highestLevel = $this->getNestingLevel(); - foreach ($this->getChildren() as $child) - { - $childLevel = $child->getNestingLevel(); - if ($highestLevel < $childLevel) - { - $highestLevel = $childLevel; - } - } - return $highestLevel; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMimeEntity.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMimeEntity.php deleted file mode 100644 index 16158225..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Mime/SimpleMimeEntity.php +++ /dev/null @@ -1,803 +0,0 @@ - array(self::LEVEL_TOP, self::LEVEL_MIXED), - 'multipart/alternative' => array(self::LEVEL_MIXED, self::LEVEL_ALTERNATIVE), - 'multipart/related' => array(self::LEVEL_ALTERNATIVE, self::LEVEL_RELATED) - ); - - /** A set of filter rules to define what level an entity should be nested at */ - private $_compoundLevelFilters = array(); - - /** The nesting level of this entity */ - private $_nestingLevel = self::LEVEL_ALTERNATIVE; - - /** A KeyCache instance used during encoding and streaming */ - private $_cache; - - /** Direct descendants of this entity */ - private $_immediateChildren = array(); - - /** All descendants of this entity */ - private $_children = array(); - - /** The maximum line length of the body of this entity */ - private $_maxLineLength = 78; - - /** The order in which alternative mime types should appear */ - private $_alternativePartOrder = array( - 'text/plain' => 1, - 'text/html' => 2, - 'multipart/related' => 3 - ); - - /** The CID of this entity */ - private $_id; - - /** The key used for accessing the cache */ - private $_cacheKey; - - protected $_userContentType; - - /** - * Create a new SimpleMimeEntity with $headers, $encoder and $cache. - * @param Swift_Mime_HeaderSet $headers - * @param Swift_Mime_ContentEncoder $encoder - * @param Swift_KeyCache $cache - */ - public function __construct(Swift_Mime_HeaderSet $headers, - Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache) - { - $this->_cacheKey = uniqid(); - $this->_cache = $cache; - $this->_headers = $headers; - $this->setEncoder($encoder); - $this->_headers->defineOrdering( - array('Content-Type', 'Content-Transfer-Encoding') - ); - - // This array specifies that, when the entire MIME document contains - // $compoundLevel, then for each child within $level, if its Content-Type - // is $contentType then it should be treated as if it's level is - // $neededLevel instead. I tried to write that unambiguously! :-\ - // Data Structure: - // array ( - // $compoundLevel => array( - // $level => array( - // $contentType => $neededLevel - // ) - // ) - // ) - - $this->_compoundLevelFilters = array( - (self::LEVEL_ALTERNATIVE + self::LEVEL_RELATED) => array( - self::LEVEL_ALTERNATIVE => array( - 'text/plain' => self::LEVEL_ALTERNATIVE, - 'text/html' => self::LEVEL_RELATED - ) - ) - ); - - $this->_id = $this->getRandomId(); - } - - /** - * Generate a new Content-ID or Message-ID for this MIME entity. - * @return string - */ - public function generateId() - { - $this->setId($this->getRandomId()); - return $this->_id; - } - - /** - * Get the {@link Swift_Mime_HeaderSet} for this entity. - * @return Swift_Mime_HeaderSet - */ - public function getHeaders() - { - return $this->_headers; - } - - /** - * Get the nesting level of this entity. - * @return int - * @see LEVEL_TOP, LEVEL_MIXED, LEVEL_RELATED, LEVEL_ALTERNATIVE - */ - public function getNestingLevel() - { - return $this->_nestingLevel; - } - - /** - * Get the Content-type of this entity. - * @return string - */ - public function getContentType() - { - return $this->_getHeaderFieldModel('Content-Type'); - } - - /** - * Set the Content-type of this entity. - * @param string $type - */ - public function setContentType($type) - { - $this->_setContentTypeInHeaders($type); - // Keep track of the value so that if the content-type changes automatically - // due to added child entities, it can be restored if they are later removed - $this->_userContentType = $type; - return $this; - } - - /** - * Get the CID of this entity. - * The CID will only be present in headers if a Content-ID header is present. - * @return string - */ - public function getId() - { - return $this->_headers->has($this->_getIdField()) - ? current((array) $this->_getHeaderFieldModel($this->_getIdField())) - : $this->_id; - } - - /** - * Set the CID of this entity. - * @param string $id - */ - public function setId($id) - { - if (!$this->_setHeaderFieldModel($this->_getIdField(), $id)) - { - $this->_headers->addIdHeader($this->_getIdField(), $id); - } - $this->_id = $id; - return $this; - } - - /** - * Get the description of this entity. - * This value comes from the Content-Description header if set. - * @return string - */ - public function getDescription() - { - return $this->_getHeaderFieldModel('Content-Description'); - } - - /** - * Set the description of this entity. - * This method sets a value in the Content-ID header. - * @param string $description - */ - public function setDescription($description) - { - if (!$this->_setHeaderFieldModel('Content-Description', $description)) - { - $this->_headers->addTextHeader('Content-Description', $description); - } - return $this; - } - - /** - * Get the maximum line length of the body of this entity. - * @return int - */ - public function getMaxLineLength() - { - return $this->_maxLineLength; - } - - /** - * Set the maximum line length of lines in this body. - * Though not enforced by the library, lines should not exceed 1000 chars. - * @param int $length - */ - public function setMaxLineLength($length) - { - $this->_maxLineLength = $length; - return $this; - } - - /** - * Get all children added to this entity. - * @return array of Swift_Mime_Entity - */ - public function getChildren() - { - return $this->_children; - } - - /** - * Set all children of this entity. - * @param array $children Swiift_Mime_Entity instances - * @param int $compoundLevel For internal use only - */ - public function setChildren(array $children, $compoundLevel = null) - { - //TODO: Try to refactor this logic - - $compoundLevel = isset($compoundLevel) - ? $compoundLevel - : $this->_getCompoundLevel($children) - ; - - $immediateChildren = array(); - $grandchildren = array(); - $newContentType = $this->_userContentType; - - foreach ($children as $child) - { - $level = $this->_getNeededChildLevel($child, $compoundLevel); - if (empty($immediateChildren)) //first iteration - { - $immediateChildren = array($child); - } - else - { - $nextLevel = $this->_getNeededChildLevel($immediateChildren[0], $compoundLevel); - if ($nextLevel == $level) - { - $immediateChildren[] = $child; - } - elseif ($level < $nextLevel) - { - //Re-assign immediateChildren to grandchilden - $grandchildren = array_merge($grandchildren, $immediateChildren); - //Set new children - $immediateChildren = array($child); - } - else - { - $grandchildren[] = $child; - } - } - } - - if (!empty($immediateChildren)) - { - $lowestLevel = $this->_getNeededChildLevel($immediateChildren[0], $compoundLevel); - - //Determine which composite media type is needed to accomodate the - // immediate children - foreach ($this->_compositeRanges as $mediaType => $range) - { - if ($lowestLevel > $range[0] - && $lowestLevel <= $range[1]) - { - $newContentType = $mediaType; - break; - } - } - - //Put any grandchildren in a subpart - if (!empty($grandchildren)) - { - $subentity = $this->_createChild(); - $subentity->_setNestingLevel($lowestLevel); - $subentity->setChildren($grandchildren, $compoundLevel); - array_unshift($immediateChildren, $subentity); - } - } - - $this->_immediateChildren = $immediateChildren; - $this->_children = $children; - $this->_setContentTypeInHeaders($newContentType); - $this->_fixHeaders(); - $this->_sortChildren(); - - return $this; - } - - /** - * Get the body of this entity as a string. - * @return string - */ - public function getBody() - { - return ($this->_body instanceof Swift_OutputByteStream) - ? $this->_readStream($this->_body) - : $this->_body; - } - - /** - * Set the body of this entity, either as a string, or as an instance of - * {@link Swift_OutputByteStream}. - * @param mixed $body - * @param string $contentType optional - */ - public function setBody($body, $contentType = null) - { - if ($body !== $this->_body) - { - $this->_clearCache(); - } - - $this->_body = $body; - if (isset($contentType)) - { - $this->setContentType($contentType); - } - return $this; - } - - /** - * Get the encoder used for the body of this entity. - * @return Swift_Mime_ContentEncoder - */ - public function getEncoder() - { - return $this->_encoder; - } - - /** - * Set the encoder used for the body of this entity. - * @param Swift_Mime_ContentEncoder $encoder - */ - public function setEncoder(Swift_Mime_ContentEncoder $encoder) - { - if ($encoder !== $this->_encoder) - { - $this->_clearCache(); - } - - $this->_encoder = $encoder; - $this->_setEncoding($encoder->getName()); - $this->_notifyEncoderChanged($encoder); - return $this; - } - - /** - * Get the boundary used to separate children in this entity. - * @return string - */ - public function getBoundary() - { - if (!isset($this->_boundary)) - { - $this->_boundary = '_=_swift_v4_' . time() . uniqid() . '_=_'; - } - return $this->_boundary; - } - - /** - * Set the boundary used to separate children in this entity. - * @param string $boundary - * @throws Swift_RfcComplianceException - */ - public function setBoundary($boundary) - { - $this->_assertValidBoundary($boundary); - $this->_boundary = $boundary; - return $this; - } - - /** - * Receive notification that the charset of this entity, or a parent entity - * has changed. - * @param string $charset - */ - public function charsetChanged($charset) - { - $this->_notifyCharsetChanged($charset); - } - - /** - * Receive notification that the encoder of this entity or a parent entity - * has changed. - * @param Swift_Mime_ContentEncoder $encoder - */ - public function encoderChanged(Swift_Mime_ContentEncoder $encoder) - { - $this->_notifyEncoderChanged($encoder); - } - - /** - * Get this entire entity as a string. - * @return string - */ - public function toString() - { - $string = $this->_headers->toString(); - if (isset($this->_body) && empty($this->_immediateChildren)) - { - if ($this->_cache->hasKey($this->_cacheKey, 'body')) - { - $body = $this->_cache->getString($this->_cacheKey, 'body'); - } - else - { - $body = "\r\n" . $this->_encoder->encodeString($this->getBody(), 0, - $this->getMaxLineLength() - ); - $this->_cache->setString($this->_cacheKey, 'body', $body, - Swift_KeyCache::MODE_WRITE - ); - } - $string .= $body; - } - - if (!empty($this->_immediateChildren)) - { - foreach ($this->_immediateChildren as $child) - { - $string .= "\r\n\r\n--" . $this->getBoundary() . "\r\n"; - $string .= $child->toString(); - } - $string .= "\r\n\r\n--" . $this->getBoundary() . "--\r\n"; - } - - return $string; - } - - /** - * Returns a string representation of this object. - * - * @return string - * - * @see toString() - */ - public function __toString() - { - return $this->toString(); - } - - /** - * Write this entire entity to a {@link Swift_InputByteStream}. - * @param Swift_InputByteStream - */ - public function toByteStream(Swift_InputByteStream $is) - { - $is->write($this->_headers->toString()); - $is->commit(); - - if (empty($this->_immediateChildren)) - { - if (isset($this->_body)) - { - if ($this->_cache->hasKey($this->_cacheKey, 'body')) - { - $this->_cache->exportToByteStream($this->_cacheKey, 'body', $is); - } - else - { - $cacheIs = $this->_cache->getInputByteStream($this->_cacheKey, 'body'); - if ($cacheIs) - { - $is->bind($cacheIs); - } - - $is->write("\r\n"); - - if ($this->_body instanceof Swift_OutputByteStream) - { - $this->_body->setReadPointer(0); - - $this->_encoder->encodeByteStream($this->_body, $is, 0, - $this->getMaxLineLength() - ); - } - else - { - $is->write($this->_encoder->encodeString( - $this->getBody(), 0, $this->getMaxLineLength() - )); - } - - if ($cacheIs) - { - $is->unbind($cacheIs); - } - } - } - } - - if (!empty($this->_immediateChildren)) - { - foreach ($this->_immediateChildren as $child) - { - $is->write("\r\n\r\n--" . $this->getBoundary() . "\r\n"); - $child->toByteStream($is); - } - $is->write("\r\n\r\n--" . $this->getBoundary() . "--\r\n"); - } - } - - // -- Protected methods - - /** - * Get the name of the header that provides the ID of this entity */ - protected function _getIdField() - { - return 'Content-ID'; - } - - /** - * Get the model data (usually an array or a string) for $field. - */ - protected function _getHeaderFieldModel($field) - { - if ($this->_headers->has($field)) - { - return $this->_headers->get($field)->getFieldBodyModel(); - } - } - - /** - * Set the model data for $field. - */ - protected function _setHeaderFieldModel($field, $model) - { - if ($this->_headers->has($field)) - { - $this->_headers->get($field)->setFieldBodyModel($model); - return true; - } - else - { - return false; - } - } - - /** - * Get the parameter value of $parameter on $field header. - */ - protected function _getHeaderParameter($field, $parameter) - { - if ($this->_headers->has($field)) - { - return $this->_headers->get($field)->getParameter($parameter); - } - } - - /** - * Set the parameter value of $parameter on $field header. - */ - protected function _setHeaderParameter($field, $parameter, $value) - { - if ($this->_headers->has($field)) - { - $this->_headers->get($field)->setParameter($parameter, $value); - return true; - } - else - { - return false; - } - } - - /** - * Re-evaluate what content type and encoding should be used on this entity. - */ - protected function _fixHeaders() - { - if (count($this->_immediateChildren)) - { - $this->_setHeaderParameter('Content-Type', 'boundary', - $this->getBoundary() - ); - $this->_headers->remove('Content-Transfer-Encoding'); - } - else - { - $this->_setHeaderParameter('Content-Type', 'boundary', null); - $this->_setEncoding($this->_encoder->getName()); - } - } - - /** - * Get the KeyCache used in this entity. - */ - protected function _getCache() - { - return $this->_cache; - } - - /** - * Empty the KeyCache for this entity. - */ - protected function _clearCache() - { - $this->_cache->clearKey($this->_cacheKey, 'body'); - } - - /** - * Returns a random Content-ID or Message-ID. - * @return string - */ - protected function getRandomId() - { - $idLeft = time() . '.' . uniqid(); - $idRight = !empty($_SERVER['SERVER_NAME']) - ? $_SERVER['SERVER_NAME'] - : 'swift.generated'; - return $idLeft . '@' . $idRight; - } - - // -- Private methods - - private function _readStream(Swift_OutputByteStream $os) - { - $string = ''; - while (false !== $bytes = $os->read(8192)) - { - $string .= $bytes; - } - return $string; - } - - private function _setEncoding($encoding) - { - if (!$this->_setHeaderFieldModel('Content-Transfer-Encoding', $encoding)) - { - $this->_headers->addTextHeader('Content-Transfer-Encoding', $encoding); - } - } - - private function _assertValidBoundary($boundary) - { - if (!preg_match( - '/^[a-z0-9\'\(\)\+_\-,\.\/:=\?\ ]{0,69}[a-z0-9\'\(\)\+_\-,\.\/:=\?]$/Di', - $boundary)) - { - throw new Swift_RfcComplianceException('Mime boundary set is not RFC 2046 compliant.'); - } - } - - private function _setContentTypeInHeaders($type) - { - if (!$this->_setHeaderFieldModel('Content-Type', $type)) - { - $this->_headers->addParameterizedHeader('Content-Type', $type); - } - } - - private function _setNestingLevel($level) - { - $this->_nestingLevel = $level; - } - - private function _getCompoundLevel($children) - { - $level = 0; - foreach ($children as $child) - { - $level |= $child->getNestingLevel(); - } - return $level; - } - - private function _getNeededChildLevel($child, $compoundLevel) - { - $filter = array(); - foreach ($this->_compoundLevelFilters as $bitmask => $rules) - { - if (($compoundLevel & $bitmask) === $bitmask) - { - $filter = $rules + $filter; - } - } - - $realLevel = $child->getNestingLevel(); - $lowercaseType = strtolower($child->getContentType()); - - if (isset($filter[$realLevel]) - && isset($filter[$realLevel][$lowercaseType])) - { - return $filter[$realLevel][$lowercaseType]; - } - else - { - return $realLevel; - } - } - - private function _createChild() - { - return new self($this->_headers->newInstance(), - $this->_encoder, $this->_cache); - } - - private function _notifyEncoderChanged(Swift_Mime_ContentEncoder $encoder) - { - foreach ($this->_immediateChildren as $child) - { - $child->encoderChanged($encoder); - } - } - - private function _notifyCharsetChanged($charset) - { - $this->_encoder->charsetChanged($charset); - $this->_headers->charsetChanged($charset); - foreach ($this->_immediateChildren as $child) - { - $child->charsetChanged($charset); - } - } - - private function _sortChildren() - { - $shouldSort = false; - foreach ($this->_immediateChildren as $child) - { - //NOTE: This include alternative parts moved into a related part - if ($child->getNestingLevel() == self::LEVEL_ALTERNATIVE) - { - $shouldSort = true; - break; - } - } - - //Sort in order of preference, if there is one - if ($shouldSort) - { - usort($this->_immediateChildren, array($this, '_childSortAlgorithm')); - } - } - - private function _childSortAlgorithm($a, $b) - { - $typePrefs = array(); - $types = array( - strtolower($a->getContentType()), - strtolower($b->getContentType()) - ); - foreach ($types as $type) - { - $typePrefs[] = (array_key_exists($type, $this->_alternativePartOrder)) - ? $this->_alternativePartOrder[$type] - : (max($this->_alternativePartOrder) + 1); - } - return ($typePrefs[0] >= $typePrefs[1]) ? 1 : -1; - } - - // -- Destructor - - /** - * Empties it's own contents from the cache. - */ - public function __destruct() - { - $this->_cache->clearAll($this->_cacheKey); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MimePart.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MimePart.php deleted file mode 100644 index 60b6d569..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/MimePart.php +++ /dev/null @@ -1,65 +0,0 @@ -createDependenciesFor('mime.part') - ); - - if (!isset($charset)) - { - $charset = Swift_DependencyContainer::getInstance() - ->lookup('properties.charset'); - } - $this->setBody($body); - $this->setCharset($charset); - if ($contentType) - { - $this->setContentType($contentType); - } - } - - /** - * Create a new MimePart. - * @param string $body - * @param string $contentType - * @param string $charset - * @return Swift_Mime_MimePart - */ - public static function newInstance($body = null, $contentType = null, - $charset = null) - { - return new self($body, $contentType, $charset); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/OutputByteStream.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/OutputByteStream.php deleted file mode 100644 index 951b8383..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/OutputByteStream.php +++ /dev/null @@ -1,41 +0,0 @@ -setThreshold($threshold); - $this->setSleepTime($sleep); - $this->_sleeper = $sleeper; - } - - /** - * Set the number of emails to send before restarting. - * @param int $threshold - */ - public function setThreshold($threshold) - { - $this->_threshold = $threshold; - } - - /** - * Get the number of emails to send before restarting. - * @return int - */ - public function getThreshold() - { - return $this->_threshold; - } - - /** - * Set the number of seconds to sleep for during a restart. - * @param int $sleep time - */ - public function setSleepTime($sleep) - { - $this->_sleep = $sleep; - } - - /** - * Get the number of seconds to sleep for during a restart. - * @return int - */ - public function getSleepTime() - { - return $this->_sleep; - } - - /** - * Invoked immediately before the Message is sent. - * @param Swift_Events_SendEvent $evt - */ - public function beforeSendPerformed(Swift_Events_SendEvent $evt) - { - } - - /** - * Invoked immediately after the Message is sent. - * @param Swift_Events_SendEvent $evt - */ - public function sendPerformed(Swift_Events_SendEvent $evt) - { - ++$this->_counter; - if ($this->_counter >= $this->_threshold) - { - $transport = $evt->getTransport(); - $transport->stop(); - if ($this->_sleep) - { - $this->sleep($this->_sleep); - } - $transport->start(); - $this->_counter = 0; - } - } - - /** - * Sleep for $seconds. - * @param int $seconds - */ - public function sleep($seconds) - { - if (isset($this->_sleeper)) - { - $this->_sleeper->sleep($seconds); - } - else - { - sleep($seconds); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/BandwidthMonitorPlugin.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/BandwidthMonitorPlugin.php deleted file mode 100644 index 501cd809..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/BandwidthMonitorPlugin.php +++ /dev/null @@ -1,173 +0,0 @@ -getMessage(); - $message->toByteStream($this); - } - - /** - * Invoked immediately following a command being sent. - * @param Swift_Events_ResponseEvent $evt - */ - public function commandSent(Swift_Events_CommandEvent $evt) - { - $command = $evt->getCommand(); - $this->_out += strlen($command); - } - - /** - * Invoked immediately following a response coming back. - * @param Swift_Events_ResponseEvent $evt - */ - public function responseReceived(Swift_Events_ResponseEvent $evt) - { - $response = $evt->getResponse(); - $this->_in += strlen($response); - } - - /** - * Called when a message is sent so that the outgoing counter can be increased. - * @param string $bytes - */ - public function write($bytes) - { - $this->_out += strlen($bytes); - foreach ($this->_mirrors as $stream) - { - $stream->write($bytes); - } - } - - /** - * Not used. - */ - public function commit() - { - } - - /** - * Attach $is to this stream. - * The stream acts as an observer, receiving all data that is written. - * All {@link write()} and {@link flushBuffers()} operations will be mirrored. - * - * @param Swift_InputByteStream $is - */ - public function bind(Swift_InputByteStream $is) - { - $this->_mirrors[] = $is; - } - - /** - * Remove an already bound stream. - * If $is is not bound, no errors will be raised. - * If the stream currently has any buffered data it will be written to $is - * before unbinding occurs. - * - * @param Swift_InputByteStream $is - */ - public function unbind(Swift_InputByteStream $is) - { - foreach ($this->_mirrors as $k => $stream) - { - if ($is === $stream) - { - unset($this->_mirrors[$k]); - } - } - } - - /** - * Not used. - */ - public function flushBuffers() - { - foreach ($this->_mirrors as $stream) - { - $stream->flushBuffers(); - } - } - - /** - * Get the total number of bytes sent to the server. - * @return int - */ - public function getBytesOut() - { - return $this->_out; - } - - /** - * Get the total number of bytes received from the server. - * @return int - */ - public function getBytesIn() - { - return $this->_in; - } - - /** - * Reset the internal counters to zero. - */ - public function reset() - { - $this->_out = 0; - $this->_in = 0; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Decorator/Replacements.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Decorator/Replacements.php deleted file mode 100644 index 9735d0a0..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Decorator/Replacements.php +++ /dev/null @@ -1,36 +0,0 @@ - - * $replacements = array( - * "address1@domain.tld" => array("{a}" => "b", "{c}" => "d"), - * "address2@domain.tld" => array("{a}" => "x", "{c}" => "y") - * ) - * - * - * When using an instance of {@link Swift_Plugins_Decorator_Replacements}, - * the object should return just the array of replacements for the address - * given to {@link Swift_Plugins_Decorator_Replacements::getReplacementsFor()}. - * - * @param mixed $replacements - */ - public function __construct($replacements) - { - if (!($replacements instanceof Swift_Plugins_Decorator_Replacements)) - { - $this->_replacements = (array) $replacements; - } - else - { - $this->_replacements = $replacements; - } - } - - /** - * Invoked immediately before the Message is sent. - * - * @param Swift_Events_SendEvent $evt - */ - public function beforeSendPerformed(Swift_Events_SendEvent $evt) - { - $message = $evt->getMessage(); - $this->_restoreMessage($message); - $to = array_keys($message->getTo()); - $address = array_shift($to); - if ($replacements = $this->getReplacementsFor($address)) - { - $body = $message->getBody(); - $search = array_keys($replacements); - $replace = array_values($replacements); - $bodyReplaced = str_replace( - $search, $replace, $body - ); - if ($body != $bodyReplaced) - { - $this->_originalBody = $body; - $message->setBody($bodyReplaced); - } - $subject = $message->getSubject(); - $subjectReplaced = str_replace( - $search, $replace, $subject - ); - if ($subject != $subjectReplaced) - { - $this->_originalSubject = $subject; - $message->setSubject($subjectReplaced); - } - $children = (array) $message->getChildren(); - foreach ($children as $child) - { - list($type, ) = sscanf($child->getContentType(), '%[^/]/%s'); - if ('text' == $type) - { - $body = $child->getBody(); - $bodyReplaced = str_replace( - $search, $replace, $body - ); - if ($body != $bodyReplaced) - { - $child->setBody($bodyReplaced); - $this->_originalChildBodies[$child->getId()] = $body; - } - } - } - $this->_lastMessage = $message; - } - } - - /** - * Find a map of replacements for the address. - * - * If this plugin was provided with a delegate instance of - * {@link Swift_Plugins_Decorator_Replacements} then the call will be - * delegated to it. Otherwise, it will attempt to find the replacements - * from the array provided in the constructor. - * - * If no replacements can be found, an empty value (NULL) is returned. - * - * @param string $address - * - * @return array - */ - public function getReplacementsFor($address) - { - if ($this->_replacements instanceof Swift_Plugins_Decorator_Replacements) - { - return $this->_replacements->getReplacementsFor($address); - } - else - { - return isset($this->_replacements[$address]) - ? $this->_replacements[$address] - : null - ; - } - } - - /** - * Invoked immediately after the Message is sent. - * - * @param Swift_Events_SendEvent $evt - */ - public function sendPerformed(Swift_Events_SendEvent $evt) - { - $this->_restoreMessage($evt->getMessage()); - } - - // -- Private methods - - /** Restore a changed message back to its original state */ - private function _restoreMessage(Swift_Mime_Message $message) - { - if ($this->_lastMessage === $message) - { - if (isset($this->_originalBody)) - { - $message->setBody($this->_originalBody); - $this->_originalBody = null; - } - if (isset($this->_originalSubject)) - { - $message->setSubject($this->_originalSubject); - $this->_originalSubject = null; - } - if (!empty($this->_originalChildBodies)) - { - $children = (array) $message->getChildren(); - foreach ($children as $child) - { - $id = $child->getId(); - if (array_key_exists($id, $this->_originalChildBodies)) - { - $child->setBody($this->_originalChildBodies[$id]); - } - } - $this->_originalChildBodies = array(); - } - $this->_lastMessage = null; - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Logger.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Logger.php deleted file mode 100644 index 9864da0d..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Logger.php +++ /dev/null @@ -1,37 +0,0 @@ -_logger = $logger; - } - - /** - * Add a log entry. - * - * @param string $entry - */ - public function add($entry) - { - $this->_logger->add($entry); - } - - /** - * Clear the log contents. - */ - public function clear() - { - $this->_logger->clear(); - } - - /** - * Get this log as a string. - * - * @return string - */ - public function dump() - { - return $this->_logger->dump(); - } - - /** - * Invoked immediately following a command being sent. - * - * @param Swift_Events_ResponseEvent $evt - */ - public function commandSent(Swift_Events_CommandEvent $evt) - { - $command = $evt->getCommand(); - $this->_logger->add(sprintf(">> %s", $command)); - } - - /** - * Invoked immediately following a response coming back. - * - * @param Swift_Events_ResponseEvent $evt - */ - public function responseReceived(Swift_Events_ResponseEvent $evt) - { - $response = $evt->getResponse(); - $this->_logger->add(sprintf("<< %s", $response)); - } - - /** - * Invoked just before a Transport is started. - * - * @param Swift_Events_TransportChangeEvent $evt - */ - public function beforeTransportStarted(Swift_Events_TransportChangeEvent $evt) - { - $transportName = get_class($evt->getSource()); - $this->_logger->add(sprintf("++ Starting %s", $transportName)); - } - - /** - * Invoked immediately after the Transport is started. - * - * @param Swift_Events_TransportChangeEvent $evt - */ - public function transportStarted(Swift_Events_TransportChangeEvent $evt) - { - $transportName = get_class($evt->getSource()); - $this->_logger->add(sprintf("++ %s started", $transportName)); - } - - /** - * Invoked just before a Transport is stopped. - * - * @param Swift_Events_TransportChangeEvent $evt - */ - public function beforeTransportStopped(Swift_Events_TransportChangeEvent $evt) - { - $transportName = get_class($evt->getSource()); - $this->_logger->add(sprintf("++ Stopping %s", $transportName)); - } - - /** - * Invoked immediately after the Transport is stopped. - * - * @param Swift_Events_TransportChangeEvent $evt - */ - public function transportStopped(Swift_Events_TransportChangeEvent $evt) - { - $transportName = get_class($evt->getSource()); - $this->_logger->add(sprintf("++ %s stopped", $transportName)); - } - - /** - * Invoked as a TransportException is thrown in the Transport system. - * - * @param Swift_Events_TransportExceptionEvent $evt - */ - public function exceptionThrown(Swift_Events_TransportExceptionEvent $evt) - { - $e = $evt->getException(); - $message = $e->getMessage(); - $this->_logger->add(sprintf("!! %s", $message)); - $message .= PHP_EOL; - $message .= 'Log data:' . PHP_EOL; - $message .= $this->_logger->dump(); - $evt->cancelBubble(); - throw new Swift_TransportException($message); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/ArrayLogger.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/ArrayLogger.php deleted file mode 100644 index 930eca25..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/ArrayLogger.php +++ /dev/null @@ -1,73 +0,0 @@ -_size = $size; - } - - /** - * Add a log entry. - * @param string $entry - */ - public function add($entry) - { - $this->_log[] = $entry; - while (count($this->_log) > $this->_size) - { - array_shift($this->_log); - } - } - - /** - * Clear the log contents. - */ - public function clear() - { - $this->_log = array(); - } - - /** - * Get this log as a string. - * @return string - */ - public function dump() - { - return implode(PHP_EOL, $this->_log); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/EchoLogger.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/EchoLogger.php deleted file mode 100644 index 83dd54b5..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Loggers/EchoLogger.php +++ /dev/null @@ -1,64 +0,0 @@ -_isHtml = $isHtml; - } - - /** - * Add a log entry. - * @param string $entry - */ - public function add($entry) - { - if ($this->_isHtml) - { - printf('%s%s%s', htmlspecialchars($entry, ENT_QUOTES), '
', PHP_EOL); - } - else - { - printf('%s%s', $entry, PHP_EOL); - } - } - - /** - * Not implemented. - */ - public function clear() - { - } - - /** - * Not implemented. - */ - public function dump() - { - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Pop/Pop3Connection.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Pop/Pop3Connection.php deleted file mode 100644 index 1c96dcfa..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Pop/Pop3Connection.php +++ /dev/null @@ -1,36 +0,0 @@ -_host = $host; - $this->_port = $port; - $this->_crypto = $crypto; - } - - /** - * Create a new PopBeforeSmtpPlugin for $host and $port. - * - * @param string $host - * @param int $port - * @param string $cypto as "tls" or "ssl" - * - * @return Swift_Plugins_PopBeforeSmtpPlugin - */ - public static function newInstance($host, $port = 110, $crypto = null) - { - return new self($host, $port, $crypto); - } - - /** - * Set a Pop3Connection to delegate to instead of connecting directly. - * - * @param Swift_Plugins_Pop_Pop3Connection $connection - */ - public function setConnection(Swift_Plugins_Pop_Pop3Connection $connection) - { - $this->_connection = $connection; - return $this; - } - - /** - * Bind this plugin to a specific SMTP transport instance. - * - * @param Swift_Transport - */ - public function bindSmtp(Swift_Transport $smtp) - { - $this->_transport = $smtp; - } - - /** - * Set the connection timeout in seconds (default 10). - * - * @param int $timeout - */ - public function setTimeout($timeout) - { - $this->_timeout = (int) $timeout; - return $this; - } - - /** - * Set the username to use when connecting (if needed). - * - * @param string $username - */ - public function setUsername($username) - { - $this->_username = $username; - return $this; - } - - /** - * Set the password to use when connecting (if needed). - * - * @param string $password - */ - public function setPassword($password) - { - $this->_password = $password; - return $this; - } - - /** - * Connect to the POP3 host and authenticate. - * - * @throws Swift_Plugins_Pop_Pop3Exception if connection fails - */ - public function connect() - { - if (isset($this->_connection)) - { - $this->_connection->connect(); - } - else - { - if (!isset($this->_socket)) - { - if (!$socket = fsockopen( - $this->_getHostString(), $this->_port, $errno, $errstr, $this->_timeout)) - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('Failed to connect to POP3 host [%s]: %s', $this->_host, $errstr) - ); - } - $this->_socket = $socket; - - if (false === $greeting = fgets($this->_socket)) - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('Failed to connect to POP3 host [%s]', trim($greeting)) - ); - } - - $this->_assertOk($greeting); - - if ($this->_username) - { - $this->_command(sprintf("USER %s\r\n", $this->_username)); - $this->_command(sprintf("PASS %s\r\n", $this->_password)); - } - } - } - } - - /** - * Disconnect from the POP3 host. - */ - public function disconnect() - { - if (isset($this->_connection)) - { - $this->_connection->disconnect(); - } - else - { - $this->_command("QUIT\r\n"); - if (!fclose($this->_socket)) - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('POP3 host [%s] connection could not be stopped', $this->_host) - ); - } - $this->_socket = null; - } - } - - /** - * Invoked just before a Transport is started. - * - * @param Swift_Events_TransportChangeEvent $evt - */ - public function beforeTransportStarted(Swift_Events_TransportChangeEvent $evt) - { - if (isset($this->_transport)) - { - if ($this->_transport !== $evt->getTransport()) - { - return; - } - } - - $this->connect(); - $this->disconnect(); - } - - /** - * Not used. - */ - public function transportStarted(Swift_Events_TransportChangeEvent $evt) - { - } - - /** - * Not used. - */ - public function beforeTransportStopped(Swift_Events_TransportChangeEvent $evt) - { - } - - /** - * Not used. - */ - public function transportStopped(Swift_Events_TransportChangeEvent $evt) - { - } - - // -- Private Methods - - private function _command($command) - { - if (!fwrite($this->_socket, $command)) - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('Failed to write command [%s] to POP3 host', trim($command)) - ); - } - - if (false === $response = fgets($this->_socket)) - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('Failed to read from POP3 host after command [%s]', trim($command)) - ); - } - - $this->_assertOk($response); - - return $response; - } - - private function _assertOk($response) - { - if (substr($response, 0, 3) != '+OK') - { - throw new Swift_Plugins_Pop_Pop3Exception( - sprintf('POP3 command failed [%s]', trim($response)) - ); - } - } - - private function _getHostString() - { - $host = $this->_host; - switch (strtolower($this->_crypto)) - { - case 'ssl': - $host = 'ssl://' . $host; - break; - - case 'tls': - $host = 'tls://' . $host; - break; - } - return $host; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporter.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporter.php deleted file mode 100644 index 00d5765d..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporter.php +++ /dev/null @@ -1,36 +0,0 @@ -_reporter = $reporter; - } - - /** - * Not used. - */ - public function beforeSendPerformed(Swift_Events_SendEvent $evt) - { - } - - /** - * Invoked immediately after the Message is sent. - * @param Swift_Events_SendEvent $evt - */ - public function sendPerformed(Swift_Events_SendEvent $evt) - { - $message = $evt->getMessage(); - $failures = array_flip($evt->getFailedRecipients()); - foreach ((array) $message->getTo() as $address => $null) - { - $this->_reporter->notify( - $message, $address, (array_key_exists($address, $failures) - ? Swift_Plugins_Reporter::RESULT_FAIL - : Swift_Plugins_Reporter::RESULT_PASS) - ); - } - foreach ((array) $message->getCc() as $address => $null) - { - $this->_reporter->notify( - $message, $address, (array_key_exists($address, $failures) - ? Swift_Plugins_Reporter::RESULT_FAIL - : Swift_Plugins_Reporter::RESULT_PASS) - ); - } - foreach ((array) $message->getBcc() as $address => $null) - { - $this->_reporter->notify( - $message, $address, (array_key_exists($address, $failures) - ? Swift_Plugins_Reporter::RESULT_FAIL - : Swift_Plugins_Reporter::RESULT_PASS) - ); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HitReporter.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HitReporter.php deleted file mode 100644 index 0022f5e6..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HitReporter.php +++ /dev/null @@ -1,63 +0,0 @@ -_failures_cache[$address])) - { - $this->_failures[] = $address; - $this->_failures_cache[$address] = true; - } - } - - /** - * Get an array of addresses for which delivery failed. - * @return array - */ - public function getFailedRecipients() - { - return $this->_failures; - } - - /** - * Clear the buffer (empty the list). - */ - public function clear() - { - $this->_failures = $this->_failures_cache = array(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HtmlReporter.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HtmlReporter.php deleted file mode 100644 index 73700780..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Reporters/HtmlReporter.php +++ /dev/null @@ -1,47 +0,0 @@ -" . PHP_EOL; - echo "PASS " . $address . PHP_EOL; - echo "" . PHP_EOL; - flush(); - } - else - { - echo "
" . PHP_EOL; - echo "FAIL " . $address . PHP_EOL; - echo "
" . PHP_EOL; - flush(); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Sleeper.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Sleeper.php deleted file mode 100644 index 148cbd3e..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Sleeper.php +++ /dev/null @@ -1,26 +0,0 @@ -_rate = $rate; - $this->_mode = $mode; - $this->_sleeper = $sleeper; - $this->_timer = $timer; - } - - /** - * Invoked immediately before the Message is sent. - * @param Swift_Events_SendEvent $evt - */ - public function beforeSendPerformed(Swift_Events_SendEvent $evt) - { - $time = $this->getTimestamp(); - if (!isset($this->_start)) - { - $this->_start = $time; - } - $duration = $time - $this->_start; - - if (self::BYTES_PER_MINUTE == $this->_mode) - { - $sleep = $this->_throttleBytesPerMinute($duration); - } - else - { - $sleep = $this->_throttleMessagesPerMinute($duration); - } - - if ($sleep > 0) - { - $this->sleep($sleep); - } - } - - /** - * Invoked when a Message is sent. - * @param Swift_Events_SendEvent $evt - */ - public function sendPerformed(Swift_Events_SendEvent $evt) - { - parent::sendPerformed($evt); - ++$this->_messages; - } - - /** - * Sleep for $seconds. - * @param int $seconds - */ - public function sleep($seconds) - { - if (isset($this->_sleeper)) - { - $this->_sleeper->sleep($seconds); - } - else - { - sleep($seconds); - } - } - - /** - * Get the current UNIX timestamp - * @return int - */ - public function getTimestamp() - { - if (isset($this->_timer)) - { - return $this->_timer->getTimestamp(); - } - else - { - return time(); - } - } - - // -- Private methods - - /** - * Get a number of seconds to sleep for. - * @param int $timePassed - * @return int - * @access private - */ - private function _throttleBytesPerMinute($timePassed) - { - $expectedDuration = $this->getBytesOut() / ($this->_rate / 60); - return (int) ceil($expectedDuration - $timePassed); - } - - /** - * Get a number of seconds to sleep for. - * @param int $timePassed - * @return int - * @access private - */ - private function _throttleMessagesPerMinute($timePassed) - { - $expectedDuration = $this->_messages / ($this->_rate / 60); - return (int) ceil($expectedDuration - $timePassed); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Timer.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Timer.php deleted file mode 100644 index 92207bff..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Plugins/Timer.php +++ /dev/null @@ -1,26 +0,0 @@ -register('properties.charset')->asValue($charset); - return $this; - } - - /** - * Set the directory where temporary files can be saved. - * @param string $dir - * @return Swift_Preferences - */ - public function setTempDir($dir) - { - Swift_DependencyContainer::getInstance() - ->register('tempdir')->asValue($dir); - return $this; - } - - /** - * Set the type of cache to use (i.e. "disk" or "array"). - * @param string $type - * @return Swift_Preferences - */ - public function setCacheType($type) - { - Swift_DependencyContainer::getInstance() - ->register('cache')->asAliasOf(sprintf('cache.%s', $type)); - return $this; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ReplacementFilterFactory.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ReplacementFilterFactory.php deleted file mode 100644 index db29e6db..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/ReplacementFilterFactory.php +++ /dev/null @@ -1,27 +0,0 @@ -createDependenciesFor('transport.sendmail') - ); - - $this->setCommand($command); - } - - /** - * Create a new SendmailTransport instance. - * @param string $command - * @return Swift_SendmailTransport - */ - public static function newInstance($command = '/usr/sbin/sendmail -bs') - { - return new self($command); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SmtpTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SmtpTransport.php deleted file mode 100644 index 65180d58..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SmtpTransport.php +++ /dev/null @@ -1,56 +0,0 @@ -createDependenciesFor('transport.smtp') - ); - - $this->setHost($host); - $this->setPort($port); - $this->setEncryption($security); - } - - /** - * Create a new SmtpTransport instance. - * @param string $host - * @param int $port - * @param int $security - * @return Swift_SmtpTransport - */ - public static function newInstance($host = 'localhost', $port = 25, - $security = null) - { - return new self($host, $port, $security); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilter.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilter.php deleted file mode 100644 index 6c262ce3..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilter.php +++ /dev/null @@ -1,33 +0,0 @@ -_search = $search; - $this->_index = array(); - $this->_tree = array(); - $this->_replace = array(); - $this->_repSize = array(); - - $tree = null; - $i = null; - $last_size = $size = 0; - foreach ($search as $i => $search_element) - { - if ($tree !== null) - { - $tree[-1] = min (count($replace) - 1, $i - 1); - $tree[-2] = $last_size; - } - $tree = &$this->_tree; - if (is_array ($search_element)) - { - foreach ($search_element as $k => $char) - { - $this->_index[$char] = true; - if (!isset($tree[$char])) - { - $tree[$char] = array(); - } - $tree = &$tree[$char]; - } - $last_size = $k+1; - $size = max($size, $last_size); - } - else - { - $last_size = 1; - if (!isset($tree[$search_element])) - { - $tree[$search_element] = array(); - } - $tree = &$tree[$search_element]; - $size = max($last_size, $size); - $this->_index[$search_element] = true; - } - } - if ($i !== null) - { - $tree[-1] = min (count ($replace) - 1, $i); - $tree[-2] = $last_size; - $this->_treeMaxLen = $size; - } - foreach ($replace as $rep) - { - if (!is_array($rep)) - { - $rep = array ($rep); - } - $this->_replace[] = $rep; - } - for ($i = count($this->_replace) - 1; $i >= 0; --$i) - { - $this->_replace[$i] = $rep = $this->filter($this->_replace[$i], $i); - $this->_repSize[$i] = count($rep); - } - } - - /** - * Returns true if based on the buffer passed more bytes should be buffered. - * @param array $buffer - * @return boolean - */ - public function shouldBuffer($buffer) - { - $endOfBuffer = end($buffer); - return isset ($this->_index[$endOfBuffer]); - } - - /** - * Perform the actual replacements on $buffer and return the result. - * @param array $buffer - * @return array - */ - public function filter($buffer, $_minReplaces = -1) - { - if ($this->_treeMaxLen == 0) - { - return $buffer; - } - - $newBuffer = array(); - $buf_size = count($buffer); - for ($i = 0; $i < $buf_size; ++$i) - { - $search_pos = $this->_tree; - $last_found = PHP_INT_MAX; - // We try to find if the next byte is part of a search pattern - for ($j = 0; $j <= $this->_treeMaxLen; ++$j) - { - // We have a new byte for a search pattern - if (isset ($buffer [$p = $i + $j]) && isset($search_pos[$buffer[$p]])) - { - $search_pos = $search_pos[$buffer[$p]]; - // We have a complete pattern, save, in case we don't find a better match later - if (isset($search_pos[- 1]) && $search_pos[-1] < $last_found - && $search_pos[-1] > $_minReplaces) - { - $last_found = $search_pos[-1]; - $last_size = $search_pos[-2]; - } - } - // We got a complete pattern - elseif ($last_found !== PHP_INT_MAX) - { - // Adding replacement datas to output buffer - $rep_size = $this->_repSize[$last_found]; - for ($j = 0; $j < $rep_size; ++$j) - { - $newBuffer[] = $this->_replace[$last_found][$j]; - } - // We Move cursor forward - $i += $last_size - 1; - // Edge Case, last position in buffer - if ($i >= $buf_size) - { - $newBuffer[] = $buffer[$i]; - } - - // We start the next loop - continue 2; - } - else - { - // this byte is not in a pattern and we haven't found another pattern - break; - } - } - // Normal byte, move it to output buffer - $newBuffer[] = $buffer[$i]; - } - - return $newBuffer; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilter.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilter.php deleted file mode 100644 index 9ab6c308..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilter.php +++ /dev/null @@ -1,66 +0,0 @@ -_search = $search; - $this->_replace = $replace; - } - - /** - * Returns true if based on the buffer passed more bytes should be buffered. - * @param string $buffer - * @return boolean - */ - public function shouldBuffer($buffer) - { - $endOfBuffer = substr($buffer, -1); - foreach ((array) $this->_search as $needle) - { - if (false !== strpos($needle, $endOfBuffer)) - { - return true; - } - } - return false; - } - - /** - * Perform the actual replacements on $buffer and return the result. - * @param string $buffer - * @return string - */ - public function filter($buffer) - { - return str_replace($this->_search, $this->_replace, $buffer); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilterFactory.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilterFactory.php deleted file mode 100644 index fcd4b830..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/StreamFilters/StringReplacementFilterFactory.php +++ /dev/null @@ -1,53 +0,0 @@ -_filters[$search][$replace])) - { - if (!isset($this->_filters[$search])) - { - $this->_filters[$search] = array(); - } - - if (!isset($this->_filters[$search][$replace])) - { - $this->_filters[$search][$replace] = array(); - } - - $this->_filters[$search][$replace] - = new Swift_StreamFilters_StringReplacementFilter($search, $replace); - } - - return $this->_filters[$search][$replace]; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SwiftException.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SwiftException.php deleted file mode 100644 index bd3b656a..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/SwiftException.php +++ /dev/null @@ -1,28 +0,0 @@ -_eventDispatcher = $dispatcher; - $this->_buffer = $buf; - $this->_lookupHostname(); - } - - /** - * Set the name of the local domain which Swift will identify itself as. - * This should be a fully-qualified domain name and should be truly the domain - * you're using. If your server doesn't have a domain name, use the IP in square - * brackets (i.e. [127.0.0.1]). - * - * @param string $domain - */ - public function setLocalDomain($domain) - { - $this->_domain = $domain; - return $this; - } - - /** - * Get the name of the domain Swift will identify as. - * - * @return string - */ - public function getLocalDomain() - { - return $this->_domain; - } - - /** - * Start the SMTP connection. - */ - public function start() - { - if (!$this->_started) - { - if ($evt = $this->_eventDispatcher->createTransportChangeEvent($this)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'beforeTransportStarted'); - if ($evt->bubbleCancelled()) - { - return; - } - } - - try - { - $this->_buffer->initialize($this->_getBufferParams()); - } - catch (Swift_TransportException $e) - { - $this->_throwException($e); - } - $this->_readGreeting(); - $this->_doHeloCommand(); - - if ($evt) - { - $this->_eventDispatcher->dispatchEvent($evt, 'transportStarted'); - } - - $this->_started = true; - } - } - - /** - * Test if an SMTP connection has been established. - * - * @return boolean - */ - public function isStarted() - { - return $this->_started; - } - - /** - * Send the given Message. - * - * Recipient/sender data will be retreived from the Message API. - * The return value is the number of recipients who were accepted for delivery. - * - * @param Swift_Mime_Message $message - * @param string[] &$failedRecipients to collect failures by-reference - * @return int - */ - public function send(Swift_Mime_Message $message, &$failedRecipients = null) - { - $sent = 0; - $failedRecipients = (array) $failedRecipients; - - if (!$reversePath = $this->_getReversePath($message)) - { - throw new Swift_TransportException( - 'Cannot send message without a sender address' - ); - } - - if ($evt = $this->_eventDispatcher->createSendEvent($this, $message)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'beforeSendPerformed'); - if ($evt->bubbleCancelled()) - { - return 0; - } - } - - $to = (array) $message->getTo(); - $cc = (array) $message->getCc(); - $bcc = (array) $message->getBcc(); - - $message->setBcc(array()); - - try - { - $sent += $this->_sendTo($message, $reversePath, $to, $failedRecipients); - $sent += $this->_sendCc($message, $reversePath, $cc, $failedRecipients); - $sent += $this->_sendBcc($message, $reversePath, $bcc, $failedRecipients); - } - catch (Exception $e) - { - $message->setBcc($bcc); - throw $e; - } - - $message->setBcc($bcc); - - if ($evt) - { - if ($sent == count($to) + count($cc) + count($bcc)) - { - $evt->setResult(Swift_Events_SendEvent::RESULT_SUCCESS); - } - elseif ($sent > 0) - { - $evt->setResult(Swift_Events_SendEvent::RESULT_TENTATIVE); - } - else - { - $evt->setResult(Swift_Events_SendEvent::RESULT_FAILED); - } - $evt->setFailedRecipients($failedRecipients); - $this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed'); - } - - $message->generateId(); //Make sure a new Message ID is used - - return $sent; - } - - /** - * Stop the SMTP connection. - */ - public function stop() - { - if ($this->_started) - { - if ($evt = $this->_eventDispatcher->createTransportChangeEvent($this)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'beforeTransportStopped'); - if ($evt->bubbleCancelled()) - { - return; - } - } - - try - { - $this->executeCommand("QUIT\r\n", array(221)); - } - catch (Swift_TransportException $e) {} - - try - { - $this->_buffer->terminate(); - - if ($evt) - { - $this->_eventDispatcher->dispatchEvent($evt, 'transportStopped'); - } - } - catch (Swift_TransportException $e) - { - $this->_throwException($e); - } - } - $this->_started = false; - } - - /** - * Register a plugin. - * - * @param Swift_Events_EventListener $plugin - */ - public function registerPlugin(Swift_Events_EventListener $plugin) - { - $this->_eventDispatcher->bindEventListener($plugin); - } - - /** - * Reset the current mail transaction. - */ - public function reset() - { - $this->executeCommand("RSET\r\n", array(250)); - } - - /** - * Get the IoBuffer where read/writes are occurring. - * - * @return Swift_Transport_IoBuffer - */ - public function getBuffer() - { - return $this->_buffer; - } - - /** - * Run a command against the buffer, expecting the given response codes. - * - * If no response codes are given, the response will not be validated. - * If codes are given, an exception will be thrown on an invalid response. - * - * @param string $command - * @param int[] $codes - * @param string[] &$failures - * @return string - */ - public function executeCommand($command, $codes = array(), &$failures = null) - { - $failures = (array) $failures; - $seq = $this->_buffer->write($command); - $response = $this->_getFullResponse($seq); - if ($evt = $this->_eventDispatcher->createCommandEvent($this, $command, $codes)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'commandSent'); - } - $this->_assertResponseCode($response, $codes); - return $response; - } - - // -- Protected methods - - /** Read the opening SMTP greeting */ - protected function _readGreeting() - { - $this->_assertResponseCode($this->_getFullResponse(0), array(220)); - } - - /** Send the HELO welcome */ - protected function _doHeloCommand() - { - $this->executeCommand( - sprintf("HELO %s\r\n", $this->_domain), array(250) - ); - } - - /** Send the MAIL FROM command */ - protected function _doMailFromCommand($address) - { - $this->executeCommand( - sprintf("MAIL FROM: <%s>\r\n", $address), array(250) - ); - } - - /** Send the RCPT TO command */ - protected function _doRcptToCommand($address) - { - $this->executeCommand( - sprintf("RCPT TO: <%s>\r\n", $address), array(250, 251, 252) - ); - } - - /** Send the DATA command */ - protected function _doDataCommand() - { - $this->executeCommand("DATA\r\n", array(354)); - } - - /** Stream the contents of the message over the buffer */ - protected function _streamMessage(Swift_Mime_Message $message) - { - $this->_buffer->setWriteTranslations(array("\r\n." => "\r\n..")); - try - { - $message->toByteStream($this->_buffer); - $this->_buffer->flushBuffers(); - } - catch (Swift_TransportException $e) - { - $this->_throwException($e); - } - $this->_buffer->setWriteTranslations(array()); - $this->executeCommand("\r\n.\r\n", array(250)); - } - - /** Determine the best-use reverse path for this message */ - protected function _getReversePath(Swift_Mime_Message $message) - { - $return = $message->getReturnPath(); - $sender = $message->getSender(); - $from = $message->getFrom(); - $path = null; - if (!empty($return)) - { - $path = $return; - } - elseif (!empty($sender)) - { - // Don't use array_keys - reset($sender); // Reset Pointer to first pos - $path = key($sender); // Get key - } - elseif (!empty($from)) - { - reset($from); // Reset Pointer to first pos - $path = key($from); // Get key - } - return $path; - } - - /** Throw a TransportException, first sending it to any listeners */ - protected function _throwException(Swift_TransportException $e) - { - if ($evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); - if (!$evt->bubbleCancelled()) - { - throw $e; - } - } - else - { - throw $e; - } - } - - /** Throws an Exception if a response code is incorrect */ - protected function _assertResponseCode($response, $wanted) - { - list($code, $separator, $text) = sscanf($response, '%3d%[ -]%s'); - $valid = (empty($wanted) || in_array($code, $wanted)); - - if ($evt = $this->_eventDispatcher->createResponseEvent($this, $response, - $valid)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'responseReceived'); - } - - if (!$valid) - { - $this->_throwException( - new Swift_TransportException( - 'Expected response code ' . implode('/', $wanted) . ' but got code ' . - '"' . $code . '", with message "' . $response . '"' - ) - ); - } - } - - /** Get an entire multi-line response using its sequence number */ - protected function _getFullResponse($seq) - { - $response = ''; - try - { - do - { - $line = $this->_buffer->readLine($seq); - $response .= $line; - } - while (null !== $line && false !== $line && ' ' != $line{3}); - } - catch (Swift_TransportException $e) - { - $this->_throwException($e); - } - return $response; - } - - // -- Private methods - - /** Send an email to the given recipients from the given reverse path */ - private function _doMailTransaction($message, $reversePath, - array $recipients, array &$failedRecipients) - { - $sent = 0; - $this->_doMailFromCommand($reversePath); - foreach ($recipients as $forwardPath) - { - try - { - $this->_doRcptToCommand($forwardPath); - $sent++; - } - catch (Swift_TransportException $e) - { - $failedRecipients[] = $forwardPath; - } - } - - if ($sent != 0) - { - $this->_doDataCommand(); - $this->_streamMessage($message); - } - else - { - $this->reset(); - } - - return $sent; - } - - /** Send a message to the given To: recipients */ - private function _sendTo(Swift_Mime_Message $message, $reversePath, - array $to, array &$failedRecipients) - { - if (empty($to)) - { - return 0; - } - return $this->_doMailTransaction($message, $reversePath, array_keys($to), - $failedRecipients); - } - - /** Send a message to the given Cc: recipients */ - private function _sendCc(Swift_Mime_Message $message, $reversePath, - array $cc, array &$failedRecipients) - { - if (empty($cc)) - { - return 0; - } - return $this->_doMailTransaction($message, $reversePath, array_keys($cc), - $failedRecipients); - } - - /** Send a message to all Bcc: recipients */ - private function _sendBcc(Swift_Mime_Message $message, $reversePath, - array $bcc, array &$failedRecipients) - { - $sent = 0; - foreach ($bcc as $forwardPath => $name) - { - $message->setBcc(array($forwardPath => $name)); - $sent += $this->_doMailTransaction( - $message, $reversePath, array($forwardPath), $failedRecipients - ); - } - return $sent; - } - - /** Try to determine the hostname of the server this is run on */ - private function _lookupHostname() - { - if (!empty($_SERVER['SERVER_NAME']) - && $this->_isFqdn($_SERVER['SERVER_NAME'])) - { - $this->_domain = $_SERVER['SERVER_NAME']; - } - elseif (!empty($_SERVER['SERVER_ADDR'])) - { - $this->_domain = sprintf('[%s]', $_SERVER['SERVER_ADDR']); - } - } - - /** Determine is the $hostname is a fully-qualified name */ - private function _isFqdn($hostname) - { - //We could do a really thorough check, but there's really no point - if (false !== $dotPos = strpos($hostname, '.')) - { - return ($dotPos > 0) && ($dotPos != strlen($hostname) - 1); - } - else - { - return false; - } - } - - /** - * Destructor. - */ - public function __destruct() - { - $this->stop(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php deleted file mode 100644 index 4c7e0f2e..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php +++ /dev/null @@ -1,88 +0,0 @@ -executeCommand("AUTH CRAM-MD5\r\n", array(334)); - $challenge = base64_decode(substr($challenge, 4)); - $message = base64_encode( - $username . ' ' . $this->_getResponse($password, $challenge) - ); - $agent->executeCommand(sprintf("%s\r\n", $message), array(235)); - return true; - } - catch (Swift_TransportException $e) - { - $agent->executeCommand("RSET\r\n", array(250)); - return false; - } - } - - /** - * Generate a CRAM-MD5 response from a server challenge. - * @param string $secret - * @param string $challenge - * @return string - */ - private function _getResponse($secret, $challenge) - { - if (strlen($secret) > 64) - { - $secret = pack('H32', md5($secret)); - } - - if (strlen($secret) < 64) - { - $secret = str_pad($secret, 64, chr(0)); - } - - $k_ipad = substr($secret, 0, 64) ^ str_repeat(chr(0x36), 64); - $k_opad = substr($secret, 0, 64) ^ str_repeat(chr(0x5C), 64); - - $inner = pack('H32', md5($k_ipad . $challenge)); - $digest = md5($k_opad . $inner); - - return $digest; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php deleted file mode 100644 index bd226174..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php +++ /dev/null @@ -1,58 +0,0 @@ -executeCommand("AUTH LOGIN\r\n", array(334)); - $agent->executeCommand(sprintf("%s\r\n", base64_encode($username)), array(334)); - $agent->executeCommand(sprintf("%s\r\n", base64_encode($password)), array(235)); - return true; - } - catch (Swift_TransportException $e) - { - $agent->executeCommand("RSET\r\n", array(250)); - return false; - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php deleted file mode 100644 index ddd80942..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php +++ /dev/null @@ -1,57 +0,0 @@ -executeCommand(sprintf("AUTH PLAIN %s\r\n", $message), array(235)); - return true; - } - catch (Swift_TransportException $e) - { - $agent->executeCommand("RSET\r\n", array(250)); - return false; - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/AuthHandler.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/AuthHandler.php deleted file mode 100644 index a223169b..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/AuthHandler.php +++ /dev/null @@ -1,262 +0,0 @@ -setAuthenticators($authenticators); - } - - /** - * Set the Authenticators which can process a login request. - * @param Swift_Transport_Esmtp_Authenticator[] $authenticators - */ - public function setAuthenticators(array $authenticators) - { - $this->_authenticators = $authenticators; - } - - /** - * Get the Authenticators which can process a login request. - * @return Swift_Transport_Esmtp_Authenticator[] - */ - public function getAuthenticators() - { - return $this->_authenticators; - } - - /** - * Set the username to authenticate with. - * @param string $username - */ - public function setUsername($username) - { - $this->_username = $username; - } - - /** - * Get the username to authenticate with. - * @return string - */ - public function getUsername() - { - return $this->_username; - } - - /** - * Set the password to authenticate with. - * @param string $password - */ - public function setPassword($password) - { - $this->_password = $password; - } - - /** - * Get the password to authenticate with. - * @return string - */ - public function getPassword() - { - return $this->_password; - } - - /** - * Set the auth mode to use to authenticate. - * @param string $mode - */ - public function setAuthMode($mode) - { - $this->_auth_mode = $mode; - } - - /** - * Get the auth mode to use to authenticate. - * @return string - */ - public function getAuthMode() - { - return $this->_auth_mode; - } - - /** - * Get the name of the ESMTP extension this handles. - * @return boolean - */ - public function getHandledKeyword() - { - return 'AUTH'; - } - - /** - * Set the parameters which the EHLO greeting indicated. - * @param string[] $parameters - */ - public function setKeywordParams(array $parameters) - { - $this->_esmtpParams = $parameters; - } - - /** - * Runs immediately after a EHLO has been issued. - * @param Swift_Transport_SmtpAgent $agent to read/write - */ - public function afterEhlo(Swift_Transport_SmtpAgent $agent) - { - if ($this->_username) - { - $count = 0; - foreach ($this->_getAuthenticatorsForAgent() as $authenticator) - { - if (in_array(strtolower($authenticator->getAuthKeyword()), - array_map('strtolower', $this->_esmtpParams))) - { - $count++; - if ($authenticator->authenticate($agent, $this->_username, $this->_password)) - { - return; - } - } - } - throw new Swift_TransportException( - 'Failed to authenticate on SMTP server with username "' . - $this->_username . '" using ' . $count . ' possible authenticators' - ); - } - } - - /** - * Not used. - */ - public function getMailParams() - { - return array(); - } - - /** - * Not used. - */ - public function getRcptParams() - { - return array(); - } - - /** - * Not used. - */ - public function onCommand(Swift_Transport_SmtpAgent $agent, - $command, $codes = array(), &$failedRecipients = null, &$stop = false) - { - } - - /** - * Returns +1, -1 or 0 according to the rules for usort(). - * This method is called to ensure extensions can be execute in an appropriate order. - * @param string $esmtpKeyword to compare with - * @return int - */ - public function getPriorityOver($esmtpKeyword) - { - return 0; - } - - /** - * Returns an array of method names which are exposed to the Esmtp class. - * @return string[] - */ - public function exposeMixinMethods() - { - return array('setUsername', 'getUsername', 'setPassword', 'getPassword', 'setAuthMode', 'getAuthMode'); - } - - /** - * Not used. - */ - public function resetState() - { - } - - // -- Protected methods - - /** - * Returns the authenticator list for the given agent. - * @param Swift_Transport_SmtpAgent $agent - * @return array - * @access protected - */ - protected function _getAuthenticatorsForAgent() - { - if (!$mode = strtolower($this->_auth_mode)) - { - return $this->_authenticators; - } - - foreach ($this->_authenticators as $authenticator) - { - if (strtolower($authenticator->getAuthKeyword()) == $mode) - { - return array($authenticator); - } - } - - throw new Swift_TransportException('Auth mode '.$mode.' is invalid'); - } -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Authenticator.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Authenticator.php deleted file mode 100644 index bf166d32..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/Esmtp/Authenticator.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * @return string[] - */ - public function getMailParams(); - - /** - * Get params which are appended to RCPT TO:<>. - * @return string[] - */ - public function getRcptParams(); - - /** - * Runs when a command is due to be sent. - * @param Swift_Transport_SmtpAgent $agent to read/write - * @param string $command to send - * @param int[] $codes expected in response - * @param string[] &$failedRecipients - * @param boolean &$stop to be set true if the command is now sent - */ - public function onCommand(Swift_Transport_SmtpAgent $agent, - $command, $codes = array(), &$failedRecipients = null, &$stop = false); - - /** - * Returns +1, -1 or 0 according to the rules for usort(). - * This method is called to ensure extensions can be execute in an appropriate order. - * @param string $esmtpKeyword to compare with - * @return int - */ - public function getPriorityOver($esmtpKeyword); - - /** - * Returns an array of method names which are exposed to the Esmtp class. - * @return string[] - */ - public function exposeMixinMethods(); - - /** - * Tells this handler to clear any buffers and reset its state. - */ - public function resetState(); - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/EsmtpTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/EsmtpTransport.php deleted file mode 100644 index c7833c34..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/EsmtpTransport.php +++ /dev/null @@ -1,340 +0,0 @@ - 'tcp', - 'host' => 'localhost', - 'port' => 25, - 'timeout' => 30, - 'blocking' => 1, - 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET - ); - - /** - * Creates a new EsmtpTransport using the given I/O buffer. - * @param Swift_Transport_IoBuffer $buf - * @param Swift_Transport_EsmtpHandler[] $extensionHandlers - * @param Swift_Events_EventDispatcher $dispatcher - */ - public function __construct(Swift_Transport_IoBuffer $buf, - array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher) - { - parent::__construct($buf, $dispatcher); - $this->setExtensionHandlers($extensionHandlers); - } - - /** - * Set the host to connect to. - * @param string $host - */ - public function setHost($host) - { - $this->_params['host'] = $host; - return $this; - } - - /** - * Get the host to connect to. - * @return string - */ - public function getHost() - { - return $this->_params['host']; - } - - /** - * Set the port to connect to. - * @param int $port - */ - public function setPort($port) - { - $this->_params['port'] = (int) $port; - return $this; - } - - /** - * Get the port to connect to. - * @return int - */ - public function getPort() - { - return $this->_params['port']; - } - - /** - * Set the connection timeout. - * @param int $timeout seconds - */ - public function setTimeout($timeout) - { - $this->_params['timeout'] = (int) $timeout; - return $this; - } - - /** - * Get the connection timeout. - * @return int - */ - public function getTimeout() - { - return $this->_params['timeout']; - } - - /** - * Set the encryption type (tls or ssl) - * @param string $encryption - */ - public function setEncryption($enc) - { - $this->_params['protocol'] = $enc; - return $this; - } - - /** - * Get the encryption type. - * @return string - */ - public function getEncryption() - { - return $this->_params['protocol']; - } - - /** - * Set ESMTP extension handlers. - * @param Swift_Transport_EsmtpHandler[] $handlers - */ - public function setExtensionHandlers(array $handlers) - { - $assoc = array(); - foreach ($handlers as $handler) - { - $assoc[$handler->getHandledKeyword()] = $handler; - } - uasort($assoc, array($this, '_sortHandlers')); - $this->_handlers = $assoc; - $this->_setHandlerParams(); - return $this; - } - - /** - * Get ESMTP extension handlers. - * @return Swift_Transport_EsmtpHandler[] - */ - public function getExtensionHandlers() - { - return array_values($this->_handlers); - } - - /** - * Run a command against the buffer, expecting the given response codes. - * If no response codes are given, the response will not be validated. - * If codes are given, an exception will be thrown on an invalid response. - * @param string $command - * @param int[] $codes - * @param string[] &$failures - * @return string - */ - public function executeCommand($command, $codes = array(), &$failures = null) - { - $failures = (array) $failures; - $stopSignal = false; - $response = null; - foreach ($this->_getActiveHandlers() as $handler) - { - $response = $handler->onCommand( - $this, $command, $codes, $failures, $stopSignal - ); - if ($stopSignal) - { - return $response; - } - } - return parent::executeCommand($command, $codes, $failures); - } - - // -- Mixin invocation code - - /** Mixin handling method for ESMTP handlers */ - public function __call($method, $args) - { - foreach ($this->_handlers as $handler) - { - if (in_array(strtolower($method), - array_map('strtolower', (array) $handler->exposeMixinMethods()) - )) - { - $return = call_user_func_array(array($handler, $method), $args); - //Allow fluid method calls - if (is_null($return) && substr($method, 0, 3) == 'set') - { - return $this; - } - else - { - return $return; - } - } - } - trigger_error('Call to undefined method ' . $method, E_USER_ERROR); - } - - // -- Protected methods - - /** Get the params to initialize the buffer */ - protected function _getBufferParams() - { - return $this->_params; - } - - /** Overridden to perform EHLO instead */ - protected function _doHeloCommand() - { - try - { - $response = $this->executeCommand( - sprintf("EHLO %s\r\n", $this->_domain), array(250) - ); - } - catch (Swift_TransportException $e) - { - return parent::_doHeloCommand(); - } - - $this->_capabilities = $this->_getCapabilities($response); - $this->_setHandlerParams(); - foreach ($this->_getActiveHandlers() as $handler) - { - $handler->afterEhlo($this); - } - } - - /** Overridden to add Extension support */ - protected function _doMailFromCommand($address) - { - $handlers = $this->_getActiveHandlers(); - $params = array(); - foreach ($handlers as $handler) - { - $params = array_merge($params, (array) $handler->getMailParams()); - } - $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; - $this->executeCommand( - sprintf("MAIL FROM: <%s>%s\r\n", $address, $paramStr), array(250) - ); - } - - /** Overridden to add Extension support */ - protected function _doRcptToCommand($address) - { - $handlers = $this->_getActiveHandlers(); - $params = array(); - foreach ($handlers as $handler) - { - $params = array_merge($params, (array) $handler->getRcptParams()); - } - $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; - $this->executeCommand( - sprintf("RCPT TO: <%s>%s\r\n", $address, $paramStr), array(250, 251, 252) - ); - } - - // -- Private methods - - /** Determine ESMTP capabilities by function group */ - private function _getCapabilities($ehloResponse) - { - $capabilities = array(); - $ehloResponse = trim($ehloResponse); - $lines = explode("\r\n", $ehloResponse); - array_shift($lines); - foreach ($lines as $line) - { - if (preg_match('/^[0-9]{3}[ -]([A-Z0-9-]+)((?:[ =].*)?)$/Di', $line, $matches)) - { - $keyword = strtoupper($matches[1]); - $paramStr = strtoupper(ltrim($matches[2], ' =')); - $params = !empty($paramStr) ? explode(' ', $paramStr) : array(); - $capabilities[$keyword] = $params; - } - } - return $capabilities; - } - - /** Set parameters which are used by each extension handler */ - private function _setHandlerParams() - { - foreach ($this->_handlers as $keyword => $handler) - { - if (array_key_exists($keyword, $this->_capabilities)) - { - $handler->setKeywordParams($this->_capabilities[$keyword]); - } - } - } - - /** Get ESMTP handlers which are currently ok to use */ - private function _getActiveHandlers() - { - $handlers = array(); - foreach ($this->_handlers as $keyword => $handler) - { - if (array_key_exists($keyword, $this->_capabilities)) - { - $handlers[] = $handler; - } - } - return $handlers; - } - - /** Custom sort for extension handler ordering */ - private function _sortHandlers($a, $b) - { - return $a->getPriorityOver($b->getHandledKeyword()); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/FailoverTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/FailoverTransport.php deleted file mode 100644 index e62491c2..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/FailoverTransport.php +++ /dev/null @@ -1,97 +0,0 @@ -_transports); - $sent = 0; - - for ($i = 0; $i < $maxTransports - && $transport = $this->_getNextTransport(); ++$i) - { - try - { - if (!$transport->isStarted()) - { - $transport->start(); - } - - return $transport->send($message, $failedRecipients); - } - catch (Swift_TransportException $e) - { - $this->_killCurrentTransport(); - } - } - - if (count($this->_transports) == 0) - { - throw new Swift_TransportException( - 'All Transports in FailoverTransport failed, or no Transports available' - ); - } - - return $sent; - } - - // -- Protected methods - - protected function _getNextTransport() - { - if (!isset($this->_currentTransport)) - { - $this->_currentTransport = parent::_getNextTransport(); - } - return $this->_currentTransport; - } - - protected function _killCurrentTransport() - { - $this->_currentTransport = null; - parent::_killCurrentTransport(); - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/IoBuffer.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/IoBuffer.php deleted file mode 100644 index ac66ef03..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/IoBuffer.php +++ /dev/null @@ -1,65 +0,0 @@ -_transports = $transports; - $this->_deadTransports = array(); - } - - /** - * Get $transports to delegate to. - * - * @return array Swift_Transport - */ - public function getTransports(array $transports) - { - return array_merge($this->_transports, $this->_deadTransports); - } - - /** - * Test if this Transport mechanism has started. - * - * @return boolean - */ - public function isStarted() - { - return count($this->_transports) > 0; - } - - /** - * Start this Transport mechanism. - */ - public function start() - { - $this->_transports = array_merge($this->_transports, $this->_deadTransports); - } - - /** - * Stop this Transport mechanism. - */ - public function stop() - { - foreach ($this->_transports as $transport) - { - $transport->stop(); - } - } - - /** - * Send the given Message. - * - * Recipient/sender data will be retreived from the Message API. - * The return value is the number of recipients who were accepted for delivery. - * - * @param Swift_Mime_Message $message - * @param string[] &$failedRecipients to collect failures by-reference - * @return int - */ - public function send(Swift_Mime_Message $message, &$failedRecipients = null) - { - $maxTransports = count($this->_transports); - $sent = 0; - - for ($i = 0; $i < $maxTransports - && $transport = $this->_getNextTransport(); ++$i) - { - try - { - if (!$transport->isStarted()) - { - $transport->start(); - } - if ($sent = $transport->send($message, $failedRecipients)) - { - break; - } - } - catch (Swift_TransportException $e) - { - $this->_killCurrentTransport(); - } - } - - if (count($this->_transports) == 0) - { - throw new Swift_TransportException( - 'All Transports in LoadBalancedTransport failed, or no Transports available' - ); - } - - return $sent; - } - - /** - * Register a plugin. - * - * @param Swift_Events_EventListener $plugin - */ - public function registerPlugin(Swift_Events_EventListener $plugin) - { - foreach ($this->_transports as $transport) - { - $transport->registerPlugin($plugin); - } - } - - // -- Protected methods - - /** - * Rotates the transport list around and returns the first instance. - * - * @return Swift_Transport - * @access protected - */ - protected function _getNextTransport() - { - if ($next = array_shift($this->_transports)) - { - $this->_transports[] = $next; - } - return $next; - } - - /** - * Tag the currently used (top of stack) transport as dead/useless. - * - * @access protected - */ - protected function _killCurrentTransport() - { - if ($transport = array_pop($this->_transports)) - { - try - { - $transport->stop(); - } - catch (Exception $e) - { - } - $this->_deadTransports[] = $transport; - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/MailInvoker.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/MailInvoker.php deleted file mode 100644 index dda882fd..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/MailInvoker.php +++ /dev/null @@ -1,36 +0,0 @@ -_invoker = $invoker; - $this->_eventDispatcher = $eventDispatcher; - } - - /** - * Not used. - */ - public function isStarted() - { - return false; - } - - /** - * Not used. - */ - public function start() - { - } - - /** - * Not used. - */ - public function stop() - { - } - - /** - * Set the additional parameters used on the mail() function. - * - * This string is formatted for sprintf() where %s is the sender address. - * - * @param string $params - */ - public function setExtraParams($params) - { - $this->_extraParams = $params; - return $this; - } - - /** - * Get the additional parameters used on the mail() function. - * - * This string is formatted for sprintf() where %s is the sender address. - * - * @return string - */ - public function getExtraParams() - { - return $this->_extraParams; - } - - /** - * Send the given Message. - * - * Recipient/sender data will be retreived from the Message API. - * The return value is the number of recipients who were accepted for delivery. - * - * @param Swift_Mime_Message $message - * @param string[] &$failedRecipients to collect failures by-reference - * @return int - */ - public function send(Swift_Mime_Message $message, &$failedRecipients = null) - { - $failedRecipients = (array) $failedRecipients; - - if ($evt = $this->_eventDispatcher->createSendEvent($this, $message)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'beforeSendPerformed'); - if ($evt->bubbleCancelled()) - { - return 0; - } - } - - $count = ( - count((array) $message->getTo()) - + count((array) $message->getCc()) - + count((array) $message->getBcc()) - ); - - $toHeader = $message->getHeaders()->get('To'); - $subjectHeader = $message->getHeaders()->get('Subject'); - - $to = $toHeader->getFieldBody(); - $subject = $subjectHeader->getFieldBody(); - - $reversePath = $this->_getReversePath($message); - - //Remove headers that would otherwise be duplicated - $message->getHeaders()->remove('To'); - $message->getHeaders()->remove('Subject'); - - $messageStr = $message->toString(); - - $message->getHeaders()->set($toHeader); - $message->getHeaders()->set($subjectHeader); - - //Separate headers from body - if (false !== $endHeaders = strpos($messageStr, "\r\n\r\n")) - { - $headers = substr($messageStr, 0, $endHeaders) . "\r\n"; //Keep last EOL - $body = substr($messageStr, $endHeaders + 4); - } - else - { - $headers = $messageStr . "\r\n"; - $body = ''; - } - - unset($messageStr); - - if ("\r\n" != PHP_EOL) //Non-windows (not using SMTP) - { - $headers = str_replace("\r\n", PHP_EOL, $headers); - $body = str_replace("\r\n", PHP_EOL, $body); - } - else //Windows, using SMTP - { - $headers = str_replace("\r\n.", "\r\n..", $headers); - $body = str_replace("\r\n.", "\r\n..", $body); - } - - if ($this->_invoker->mail($to, $subject, $body, $headers, - sprintf($this->_extraParams, $reversePath))) - { - if ($evt) - { - $evt->setResult(Swift_Events_SendEvent::RESULT_SUCCESS); - $evt->setFailedRecipients($failedRecipients); - $this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed'); - } - } - else - { - $failedRecipients = array_merge( - $failedRecipients, - array_keys((array) $message->getTo()), - array_keys((array) $message->getCc()), - array_keys((array) $message->getBcc()) - ); - - if ($evt) - { - $evt->setResult(Swift_Events_SendEvent::RESULT_FAILED); - $evt->setFailedRecipients($failedRecipients); - $this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed'); - } - - $message->generateId(); - - $count = 0; - } - - return $count; - } - - /** - * Register a plugin. - * - * @param Swift_Events_EventListener $plugin - */ - public function registerPlugin(Swift_Events_EventListener $plugin) - { - $this->_eventDispatcher->bindEventListener($plugin); - } - - // -- Private methods - - /** Determine the best-use reverse path for this message */ - private function _getReversePath(Swift_Mime_Message $message) - { - $return = $message->getReturnPath(); - $sender = $message->getSender(); - $from = $message->getFrom(); - $path = null; - if (!empty($return)) - { - $path = $return; - } - elseif (!empty($sender)) - { - $keys = array_keys($sender); - $path = array_shift($keys); - } - elseif (!empty($from)) - { - $keys = array_keys($from); - $path = array_shift($keys); - } - return $path; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SendmailTransport.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SendmailTransport.php deleted file mode 100644 index aae8bde4..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SendmailTransport.php +++ /dev/null @@ -1,173 +0,0 @@ - 30, - 'blocking' => 1, - 'command' => '/usr/sbin/sendmail -bs', - 'type' => Swift_Transport_IoBuffer::TYPE_PROCESS - ); - - /** - * Create a new SendmailTransport with $buf for I/O. - * @param Swift_Transport_IoBuffer $buf - * @param Swift_Events_EventDispatcher $dispatcher - */ - public function __construct(Swift_Transport_IoBuffer $buf, - Swift_Events_EventDispatcher $dispatcher) - { - parent::__construct($buf, $dispatcher); - } - - /** - * Start the standalone SMTP session if running in -bs mode. - */ - public function start() - { - if (false !== strpos($this->getCommand(), ' -bs')) - { - parent::start(); - } - } - - /** - * Set the command to invoke. - * If using -t mode you are strongly advised to include -oi or -i in the - * flags. For example: /usr/sbin/sendmail -oi -t - * Swift will append a -f flag if one is not present. - * The recommended mode is "-bs" since it is interactive and failure notifications - * are hence possible. - * @param string $command - */ - public function setCommand($command) - { - $this->_params['command'] = $command; - return $this; - } - - /** - * Get the sendmail command which will be invoked. - * @return string - */ - public function getCommand() - { - return $this->_params['command']; - } - - /** - * Send the given Message. - * Recipient/sender data will be retreived from the Message API. - * The return value is the number of recipients who were accepted for delivery. - * NOTE: If using 'sendmail -t' you will not be aware of any failures until - * they bounce (i.e. send() will always return 100% success). - * @param Swift_Mime_Message $message - * @param string[] &$failedRecipients to collect failures by-reference - * @return int - */ - public function send(Swift_Mime_Message $message, &$failedRecipients = null) - { - $failedRecipients = (array) $failedRecipients; - $command = $this->getCommand(); - $buffer = $this->getBuffer(); - - if (false !== strpos($command, ' -t')) - { - if ($evt = $this->_eventDispatcher->createSendEvent($this, $message)) - { - $this->_eventDispatcher->dispatchEvent($evt, 'beforeSendPerformed'); - if ($evt->bubbleCancelled()) - { - return 0; - } - } - - if (false === strpos($command, ' -f')) - { - $command .= ' -f' . $this->_getReversePath($message); - } - - $buffer->initialize(array_merge($this->_params, array('command' => $command))); - - if (false === strpos($command, ' -i') && false === strpos($command, ' -oi')) - { - $buffer->setWriteTranslations(array("\r\n" => "\n", "\n." => "\n..")); - } - else - { - $buffer->setWriteTranslations(array("\r\n"=>"\n")); - } - - $count = count((array) $message->getTo()) - + count((array) $message->getCc()) - + count((array) $message->getBcc()) - ; - $message->toByteStream($buffer); - $buffer->flushBuffers(); - $buffer->setWriteTranslations(array()); - $buffer->terminate(); - - if ($evt) - { - $evt->setResult(Swift_Events_SendEvent::RESULT_SUCCESS); - $evt->setFailedRecipients($failedRecipients); - $this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed'); - } - - $message->generateId(); - } - elseif (false !== strpos($command, ' -bs')) - { - $count = parent::send($message, $failedRecipients); - } - else - { - $this->_throwException(new Swift_TransportException( - 'Unsupported sendmail command flags [' . $command . ']. ' . - 'Must be one of "-bs" or "-t" but can include additional flags.' - )); - } - - return $count; - } - - // -- Protected methods - - /** Get the params to initialize the buffer */ - protected function _getBufferParams() - { - return $this->_params; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SimpleMailInvoker.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SimpleMailInvoker.php deleted file mode 100644 index 271ba848..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SimpleMailInvoker.php +++ /dev/null @@ -1,58 +0,0 @@ -. - - */ - -//@require 'Swift/Transport/MailInvoker.php'; - -/** - * This is the implementation class for {@link Swift_Transport_MailInvoker}. - * - * @package Swift - * @subpackage Transport - * @author Chris Corbyn - */ -class Swift_Transport_SimpleMailInvoker implements Swift_Transport_MailInvoker -{ - - /** - * Send mail via the mail() function. - * - * This method takes the same arguments as PHP mail(). - * - * @param string $to - * @param string $subject - * @param string $body - * @param string $headers - * @param string $extraParams - * - * @return boolean - */ - public function mail($to, $subject, $body, $headers = null, $extraParams = null) - { - if (!ini_get('safe_mode')) - { - return mail($to, $subject, $body, $headers, $extraParams); - } - else - { - return mail($to, $subject, $body, $headers); - } - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SmtpAgent.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SmtpAgent.php deleted file mode 100644 index ee9b8ed5..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/Transport/SmtpAgent.php +++ /dev/null @@ -1,36 +0,0 @@ -_replacementFactory = $replacementFactory; - } - - /** - * Perform any initialization needed, using the given $params. - * Parameters will vary depending upon the type of IoBuffer used. - * @param array $params - */ - public function initialize(array $params) - { - $this->_params = $params; - switch ($params['type']) - { - case self::TYPE_PROCESS: - $this->_establishProcessConnection(); - break; - case self::TYPE_SOCKET: - default: - $this->_establishSocketConnection(); - break; - } - } - - /** - * Set an individual param on the buffer (e.g. switching to SSL). - * @param string $param - * @param mixed $value - */ - public function setParam($param, $value) - { - if (isset($this->_stream)) - { - switch ($param) - { - case 'protocol': - if (!array_key_exists('protocol', $this->_params) - || $value != $this->_params['protocol']) - { - if ('tls' == $value) - { - stream_socket_enable_crypto( - $this->_stream, true, STREAM_CRYPTO_METHOD_TLS_CLIENT - ); - } - } - break; - } - } - $this->_params[$param] = $value; - } - - /** - * Perform any shutdown logic needed. - */ - public function terminate() - { - if (isset($this->_stream)) - { - switch ($this->_params['type']) - { - case self::TYPE_PROCESS: - fclose($this->_in); - fclose($this->_out); - proc_close($this->_stream); - break; - case self::TYPE_SOCKET: - default: - fclose($this->_stream); - break; - } - } - $this->_stream = null; - $this->_out = null; - $this->_in = null; - } - - /** - * Set an array of string replacements which should be made on data written - * to the buffer. This could replace LF with CRLF for example. - * @param string[] $replacements - */ - public function setWriteTranslations(array $replacements) - { - foreach ($this->_translations as $search => $replace) - { - if (!isset($replacements[$search])) - { - $this->removeFilter($search); - unset($this->_translations[$search]); - } - } - - foreach ($replacements as $search => $replace) - { - if (!isset($this->_translations[$search])) - { - $this->addFilter( - $this->_replacementFactory->createFilter($search, $replace), $search - ); - $this->_translations[$search] = true; - } - } - } - - /** - * Get a line of output (including any CRLF). - * The $sequence number comes from any writes and may or may not be used - * depending upon the implementation. - * @param int $sequence of last write to scan from - * @return string - */ - public function readLine($sequence) - { - if (isset($this->_out) && !feof($this->_out)) - { - $line = fgets($this->_out); - return $line; - } - } - - /** - * Reads $length bytes from the stream into a string and moves the pointer - * through the stream by $length. If less bytes exist than are requested the - * remaining bytes are given instead. If no bytes are remaining at all, boolean - * false is returned. - * @param int $length - * @return string - */ - public function read($length) - { - if (isset($this->_out) && !feof($this->_out)) - { - $ret = fread($this->_out, $length); - return $ret; - } - } - - /** Not implemented */ - public function setReadPointer($byteOffset) - { - } - - // -- Protected methods - - /** Flush the stream contents */ - protected function _flush() - { - if (isset($this->_in)) - { - fflush($this->_in); - } - } - - /** Write this bytes to the stream */ - protected function _commit($bytes) - { - if (isset($this->_in) - && fwrite($this->_in, $bytes)) - { - return ++$this->_sequence; - } - } - - // -- Private methods - - /** - * Establishes a connection to a remote server. - * @access private - */ - private function _establishSocketConnection() - { - $host = $this->_params['host']; - if (!empty($this->_params['protocol'])) - { - $host = $this->_params['protocol'] . '://' . $host; - } - $timeout = 15; - if (!empty($this->_params['timeout'])) - { - $timeout = $this->_params['timeout']; - } - if (!$this->_stream = fsockopen($host, $this->_params['port'], $errno, $errstr, $timeout)) - { - throw new Swift_TransportException( - 'Connection could not be established with host ' . $this->_params['host'] . - ' [' . $errstr . ' #' . $errno . ']' - ); - } - if (!empty($this->_params['blocking'])) - { - stream_set_blocking($this->_stream, 1); - } - else - { - stream_set_blocking($this->_stream, 0); - } - $this->_in =& $this->_stream; - $this->_out =& $this->_stream; - } - - /** - * Opens a process for input/output. - * @access private - */ - private function _establishProcessConnection() - { - $command = $this->_params['command']; - $descriptorSpec = array( - 0 => array('pipe', 'r'), - 1 => array('pipe', 'w'), - 2 => array('pipe', 'w') - ); - $this->_stream = proc_open($command, $descriptorSpec, $pipes); - stream_set_blocking($pipes[2], 0); - if ($err = stream_get_contents($pipes[2])) - { - throw new Swift_TransportException( - 'Process could not be started [' . $err . ']' - ); - } - $this->_in =& $pipes[0]; - $this->_out =& $pipes[1]; - } - -} diff --git a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/TransportException.php b/includes/kohana/modules/khemail/vendor/swift/classes/Swift/TransportException.php deleted file mode 100644 index b7cd6589..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/classes/Swift/TransportException.php +++ /dev/null @@ -1,31 +0,0 @@ - register('cache') - -> asAliasOf('cache.array') - - -> register('tempdir') - -> asValue('/tmp') - - -> register('cache.null') - -> asSharedInstanceOf('Swift_KeyCache_NullKeyCache') - - -> register('cache.array') - -> asSharedInstanceOf('Swift_KeyCache_ArrayKeyCache') - -> withDependencies(array('cache.inputstream')) - - -> register('cache.disk') - -> asSharedInstanceOf('Swift_KeyCache_DiskKeyCache') - -> withDependencies(array('cache.inputstream', 'tempdir')) - - -> register('cache.inputstream') - -> asNewInstanceOf('Swift_KeyCache_SimpleKeyCacheInputStream') - - ; diff --git a/includes/kohana/modules/khemail/vendor/swift/dependency_maps/mime_deps.php b/includes/kohana/modules/khemail/vendor/swift/dependency_maps/mime_deps.php deleted file mode 100644 index e03927a3..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/dependency_maps/mime_deps.php +++ /dev/null @@ -1,97 +0,0 @@ - register('properties.charset') - -> asValue('utf-8') - - -> register('mime.message') - -> asNewInstanceOf('Swift_Mime_SimpleMessage') - -> withDependencies(array( - 'mime.headerset', - 'mime.qpcontentencoder', - 'cache', - 'properties.charset' - )) - - -> register('mime.part') - -> asNewInstanceOf('Swift_Mime_MimePart') - -> withDependencies(array( - 'mime.headerset', - 'mime.qpcontentencoder', - 'cache', - 'properties.charset' - )) - - -> register('mime.attachment') - -> asNewInstanceOf('Swift_Mime_Attachment') - -> withDependencies(array( - 'mime.headerset', - 'mime.base64contentencoder', - 'cache' - )) - -> addConstructorValue($swift_mime_types) - - -> register('mime.embeddedfile') - -> asNewInstanceOf('Swift_Mime_EmbeddedFile') - -> withDependencies(array( - 'mime.headerset', - 'mime.base64contentencoder', - 'cache' - )) - -> addConstructorValue($swift_mime_types) - - -> register('mime.headerfactory') - -> asNewInstanceOf('Swift_Mime_SimpleHeaderFactory') - -> withDependencies(array( - 'mime.qpheaderencoder', - 'mime.rfc2231encoder', - 'properties.charset' - )) - - -> register('mime.headerset') - -> asNewInstanceOf('Swift_Mime_SimpleHeaderSet') - -> withDependencies(array('mime.headerfactory', 'properties.charset')) - - -> register('mime.qpheaderencoder') - -> asNewInstanceOf('Swift_Mime_HeaderEncoder_QpHeaderEncoder') - -> withDependencies(array('mime.charstream')) - - -> register('mime.charstream') - -> asNewInstanceOf('Swift_CharacterStream_NgCharacterStream') - -> withDependencies(array('mime.characterreaderfactory', 'properties.charset')) - - -> register('mime.bytecanonicalizer') - -> asSharedInstanceOf('Swift_StreamFilters_ByteArrayReplacementFilter') - -> addConstructorValue(array(array(0x0D, 0x0A), array(0x0D), array(0x0A))) - -> addConstructorValue(array(array(0x0A), array(0x0A), array(0x0D, 0x0A))) - - -> register('mime.characterreaderfactory') - -> asSharedInstanceOf('Swift_CharacterReaderFactory_SimpleCharacterReaderFactory') - - -> register('mime.qpcontentencoder') - -> asNewInstanceOf('Swift_Mime_ContentEncoder_QpContentEncoder') - -> withDependencies(array('mime.charstream', 'mime.bytecanonicalizer')) - - -> register('mime.7bitcontentencoder') - -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder') - -> addConstructorValue('7bit') - -> addConstructorValue(true) - - -> register('mime.8bitcontentencoder') - -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder') - -> addConstructorValue('8bit') - -> addConstructorValue(true) - - -> register('mime.base64contentencoder') - -> asSharedInstanceOf('Swift_Mime_ContentEncoder_Base64ContentEncoder') - - -> register('mime.rfc2231encoder') - -> asNewInstanceOf('Swift_Encoder_Rfc2231Encoder') - -> withDependencies(array('mime.charstream')) - - ; - -unset($swift_mime_types); diff --git a/includes/kohana/modules/khemail/vendor/swift/dependency_maps/transport_deps.php b/includes/kohana/modules/khemail/vendor/swift/dependency_maps/transport_deps.php deleted file mode 100644 index 32881d67..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/dependency_maps/transport_deps.php +++ /dev/null @@ -1,62 +0,0 @@ - register('transport.smtp') - -> asNewInstanceOf('Swift_Transport_EsmtpTransport') - -> withDependencies(array( - 'transport.buffer', - array('transport.authhandler'), - 'transport.eventdispatcher' - )) - - -> register('transport.sendmail') - -> asNewInstanceOf('Swift_Transport_SendmailTransport') - -> withDependencies(array( - 'transport.buffer', - 'transport.eventdispatcher' - )) - - -> register('transport.mail') - -> asNewInstanceOf('Swift_Transport_MailTransport') - -> withDependencies(array('transport.mailinvoker', 'transport.eventdispatcher')) - - -> register('transport.loadbalanced') - -> asNewInstanceOf('Swift_Transport_LoadBalancedTransport') - - -> register('transport.failover') - -> asNewInstanceOf('Swift_Transport_FailoverTransport') - - -> register('transport.mailinvoker') - -> asSharedInstanceOf('Swift_Transport_SimpleMailInvoker') - - -> register('transport.buffer') - -> asNewInstanceOf('Swift_Transport_StreamBuffer') - -> withDependencies(array('transport.replacementfactory')) - - -> register('transport.authhandler') - -> asNewInstanceOf('Swift_Transport_Esmtp_AuthHandler') - -> withDependencies(array( - array( - 'transport.crammd5auth', - 'transport.loginauth', - 'transport.plainauth' - ) - )) - - -> register('transport.crammd5auth') - -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_CramMd5Authenticator') - - -> register('transport.loginauth') - -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_LoginAuthenticator') - - -> register('transport.plainauth') - -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_PlainAuthenticator') - - -> register('transport.eventdispatcher') - -> asNewInstanceOf('Swift_Events_SimpleEventDispatcher') - - -> register('transport.replacementfactory') - -> asSharedInstanceOf('Swift_StreamFilters_StringReplacementFilterFactory') - - ; diff --git a/includes/kohana/modules/khemail/vendor/swift/mime_types.php b/includes/kohana/modules/khemail/vendor/swift/mime_types.php deleted file mode 100644 index 65c9aa07..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/mime_types.php +++ /dev/null @@ -1,76 +0,0 @@ - 'audio/x-aiff', - 'aiff' => 'audio/x-aiff', - 'avi' => 'video/avi', - 'bmp' => 'image/bmp', - 'bz2' => 'application/x-bz2', - 'csv' => 'text/csv', - 'dmg' => 'application/x-apple-diskimage', - 'doc' => 'application/msword', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'eml' => 'message/rfc822', - 'aps' => 'application/postscript', - 'exe' => 'application/x-ms-dos-executable', - 'flv' => 'video/x-flv', - 'gif' => 'image/gif', - 'gz' => 'application/x-gzip', - 'hqx' => 'application/stuffit', - 'htm' => 'text/html', - 'html' => 'text/html', - 'jar' => 'application/x-java-archive', - 'jpeg' => 'image/jpeg', - 'jpg' => 'image/jpeg', - 'm3u' => 'audio/x-mpegurl', - 'm4a' => 'audio/mp4', - 'mdb' => 'application/x-msaccess', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mov' => 'video/quicktime', - 'mp3' => 'audio/mpeg', - 'mp4' => 'video/mp4', - 'mpeg' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'odg' => 'vnd.oasis.opendocument.graphics', - 'odp' => 'vnd.oasis.opendocument.presentation', - 'odt' => 'vnd.oasis.opendocument.text', - 'ods' => 'vnd.oasis.opendocument.spreadsheet', - 'ogg' => 'audio/ogg', - 'pdf' => 'application/pdf', - 'png' => 'image/png', - 'ppt' => 'application/vnd.ms-powerpoint', - 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'ps' => 'application/postscript', - 'rar' => 'application/x-rar-compressed', - 'rtf' => 'application/rtf', - 'tar' => 'application/x-tar', - 'sit' => 'application/x-stuffit', - 'svg' => 'image/svg+xml', - 'tif' => 'image/tiff', - 'tiff' => 'image/tiff', - 'ttf' => 'application/x-font-truetype', - 'txt' => 'text/plain', - 'vcf' => 'text/x-vcard', - 'wav' => 'audio/wav', - 'wma' => 'audio/x-ms-wma', - 'wmv' => 'audio/x-ms-wmv', - 'xls' => 'application/excel', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'xml' => 'application/xml', - 'zip' => 'application/zip' -); diff --git a/includes/kohana/modules/khemail/vendor/swift/preferences.php b/includes/kohana/modules/khemail/vendor/swift/preferences.php deleted file mode 100644 index 0b9e4b1f..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/preferences.php +++ /dev/null @@ -1,20 +0,0 @@ -setCharset('utf-8'); - -// Without these lines the default caching mechanism is "array" but this uses -// a lot of memory. -// If possible, use a disk cache to enable attaching large attachments etc -if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir())) -{ - Swift_Preferences::getInstance() - -> setTempDir(sys_get_temp_dir()) - -> setCacheType('disk'); -} diff --git a/includes/kohana/modules/khemail/vendor/swift/swift_init.php b/includes/kohana/modules/khemail/vendor/swift/swift_init.php deleted file mode 100644 index fe624a9d..00000000 --- a/includes/kohana/modules/khemail/vendor/swift/swift_init.php +++ /dev/null @@ -1,21 +0,0 @@ - '0;30', - 'dark_gray' => '1;30', - 'blue' => '0;34', - 'light_blue' => '1;34', - 'green' => '0;32', - 'light_green' => '1;32', - 'cyan' => '0;36', - 'light_cyan' => '1;36', - 'red' => '0;31', - 'light_red' => '1;31', - 'purple' => '0;35', - 'light_purple' => '1;35', - 'brown' => '0;33', - 'yellow' => '1;33', - 'light_gray' => '0;37', - 'white' => '1;37', - ); - protected static $background_colors = array( - 'black' => '40', - 'red' => '41', - 'green' => '42', - 'yellow' => '43', - 'blue' => '44', - 'magenta' => '45', - 'cyan' => '46', - 'light_gray' => '47', - ); - - /** - * Returns one or more command-line options. Options are specified using - * standard CLI syntax: - * - * php index.php --username=john.smith --password=secret --var="some value with spaces" - * - * // Get the values of "username" and "password" - * $auth = Minion_CLI::options('username', 'password'); - * - * @param string $options,... option name - * @return array - */ - public static function options($options = NULL) - { - // Get all of the requested options - $options = func_get_args(); - - // Found option values - $values = array(); - - // Skip the first option, it is always the file executed - for ($i = 1; $i < $_SERVER['argc']; $i++) - { - if ( ! isset($_SERVER['argv'][$i])) - { - // No more args left - break; - } - - // Get the option - $opt = $_SERVER['argv'][$i]; - - if (substr($opt, 0, 2) !== '--') - { - // This is a positional argument - $values[] = $opt; - continue; - } - - // Remove the "--" prefix - $opt = substr($opt, 2); - - if (strpos($opt, '=')) - { - // Separate the name and value - list ($opt, $value) = explode('=', $opt, 2); - } - else - { - $value = NULL; - } - - $values[$opt] = $value; - } - - if ($options) - { - foreach ($values as $opt => $value) - { - if ( ! in_array($opt, $options, TRUE)) - { - // Set the given value - unset($values[$opt]); - } - } - } - - return count($options) == 1 ? array_pop($values) : $values; - } - - /** - * Reads input from the user. This can have either 1 or 2 arguments. - * - * Usage: - * - * // Waits for any key press - * Minion_CLI::read(); - * - * // Takes any input - * $color = Minion_CLI::read('What is your favorite color?'); - * - * // Will only accept the options in the array - * $ready = Minion_CLI::read('Are you ready?', array('y','n')); - * - * @param string $text text to show user before waiting for input - * @param array $options array of options the user is shown - * @return string the user input - */ - public static function read($text = '', array $options = NULL) - { - // If a question has been asked with the read - $options_output = ''; - if ( ! empty($options)) - { - $options_output = ' [ '.implode(', ', $options).' ]'; - } - - fwrite(STDOUT, $text.$options_output.': '); - - // Read the input from keyboard. - $input = trim(fgets(STDIN)); - - // If options are provided and the choice is not in the array, tell them to try again - if ( ! empty($options) && ! in_array($input, $options)) - { - Minion_CLI::write('This is not a valid option. Please try again.'); - - $input = Minion_CLI::read($text, $options); - } - - // Read the input - return $input; - } - - /** - * Experimental feature. - * - * Reads hidden input from the user - * - * Usage: - * - * $password = Minion_CLI::password('Enter your password'); - * - * @author Mathew Davies. - * @return string - */ - public static function password($text = '') - { - $text .= ': '; - - if (Kohana::$is_windows) - { - $vbscript = sys_get_temp_dir().'Minion_CLI_Password.vbs'; - - // Create temporary file - file_put_contents($vbscript, 'wscript.echo(InputBox("'.addslashes($text).'"))'); - - $password = shell_exec('cscript //nologo '.escapeshellarg($command)); - - // Remove temporary file. - unlink($vbscript); - } - else - { - $password = shell_exec('/usr/bin/env bash -c \'read -s -p "'.escapeshellcmd($text).'" var && echo $var\''); - } - - Minion_CLI::write(); - - return trim($password); - } - - /** - * Outputs a string to the cli. If you send an array it will implode them - * with a line break. - * - * @param string|array $text the text to output, or array of lines - */ - public static function write($text = '') - { - if (is_array($text)) - { - foreach ($text as $line) - { - Minion_CLI::write($line); - } - } - else - { - fwrite(STDOUT, $text.PHP_EOL); - } - } - - /** - * Outputs a replacable line to the cli. You can continue replacing the - * line until `TRUE` is passed as the second parameter in order to indicate - * you are done modifying the line. - * - * // Sample progress indicator - * Minion_CLI::write_replace('0%'); - * Minion_CLI::write_replace('25%'); - * Minion_CLI::write_replace('50%'); - * Minion_CLI::write_replace('75%'); - * // Done writing this line - * Minion_CLI::write_replace('100%', TRUE); - * - * @param string $text the text to output - * @param boolean $end_line whether the line is done being replaced - */ - public static function write_replace($text = '', $end_line = FALSE) - { - // Append a newline if $end_line is TRUE - $text = $end_line ? $text.PHP_EOL : $text; - fwrite(STDOUT, "\r\033[K".$text); - } - - /** - * Waits a certain number of seconds, optionally showing a wait message and - * waiting for a key press. - * - * @author Fuel Development Team - * @license MIT License - * @copyright 2010 - 2011 Fuel Development Team - * @link http://fuelphp.com - * @param int $seconds number of seconds - * @param bool $countdown show a countdown or not - */ - public static function wait($seconds = 0, $countdown = false) - { - if ($countdown === true) - { - $time = $seconds; - - while ($time > 0) - { - fwrite(STDOUT, $time.'... '); - sleep(1); - $time--; - } - - Minion_CLI::write(); - } - else - { - if ($seconds > 0) - { - sleep($seconds); - } - else - { - Minion_CLI::write(Minion_CLI::$wait_msg); - Minion_CLI::read(); - } - } - } - - /** - * Returns the given text with the correct color codes for a foreground and - * optionally a background color. - * - * @author Fuel Development Team - * @license MIT License - * @copyright 2010 - 2011 Fuel Development Team - * @link http://fuelphp.com - * @param string $text the text to color - * @param atring $foreground the foreground color - * @param string $background the background color - * @return string the color coded string - */ - public static function color($text, $foreground, $background = null) - { - - if (Kohana::$is_windows) - { - return $text; - } - - if (!array_key_exists($foreground, Minion_CLI::$foreground_colors)) - { - throw new Kohana_Exception('Invalid CLI foreground color: '.$foreground); - } - - if ($background !== null and !array_key_exists($background, Minion_CLI::$background_colors)) - { - throw new Kohana_Exception('Invalid CLI background color: '.$background); - } - - $string = "\033[".Minion_CLI::$foreground_colors[$foreground]."m"; - - if ($background !== null) - { - $string .= "\033[".Minion_CLI::$background_colors[$background]."m"; - } - - $string .= $text."\033[0m"; - - return $string; - } - -} diff --git a/includes/kohana/modules/minion/classes/Kohana/Minion/Exception.php b/includes/kohana/modules/minion/classes/Kohana/Minion/Exception.php deleted file mode 100644 index 442e82d7..00000000 --- a/includes/kohana/modules/minion/classes/Kohana/Minion/Exception.php +++ /dev/null @@ -1,64 +0,0 @@ -format_for_cli(); - } - else - { - echo Kohana_Exception::text($e); - } - - $exit_code = $e->getCode(); - - // Never exit "0" after an exception. - if ($exit_code == 0) - { - $exit_code = 1; - } - - exit($exit_code); - } - catch (Exception $e) - { - // Clean the output buffer if one exists - ob_get_level() and ob_clean(); - - // Display the exception text - echo Kohana_Exception::text($e), "\n"; - - // Exit with an error status - exit(1); - } - } - - public function format_for_cli() - { - return Kohana_Exception::text($e); - } -} diff --git a/includes/kohana/modules/minion/classes/Kohana/Minion/Exception/InvalidTask.php b/includes/kohana/modules/minion/classes/Kohana/Minion/Exception/InvalidTask.php deleted file mode 100644 index db8ead4c..00000000 --- a/includes/kohana/modules/minion/classes/Kohana/Minion/Exception/InvalidTask.php +++ /dev/null @@ -1,18 +0,0 @@ -getMessage().PHP_EOL; - } - -} diff --git a/includes/kohana/modules/minion/classes/Kohana/Minion/Task.php b/includes/kohana/modules/minion/classes/Kohana/Minion/Task.php deleted file mode 100644 index be4fcc0e..00000000 --- a/includes/kohana/modules/minion/classes/Kohana/Minion/Task.php +++ /dev/null @@ -1,364 +0,0 @@ - $class) - ); - } - - $class = new $class; - - if ( ! $class instanceof Minion_Task) - { - throw new Minion_Exception_InvalidTask( - "Task ':task' is not a valid minion task", - array(':task' => $class) - ); - } - - $class->set_options($options); - - // Show the help page for this task if requested - if (array_key_exists('help', $options)) - { - $class->_method = '_help'; - } - - return $class; - } - - /** - * The list of options this task accepts and their default values. - * - * protected $_options = array( - * 'limit' => 4, - * 'table' => NULL, - * ); - * - * @var array - */ - protected $_options = array(); - - /** - * Populated with the accepted options for this task. - * This array is automatically populated based on $_options. - * - * @var array - */ - protected $_accepted_options = array(); - - protected $_method = '_execute'; - - protected function __construct() - { - // Populate $_accepted_options based on keys from $_options - $this->_accepted_options = array_keys($this->_options); - } - - /** - * The file that get's passes to Validation::errors() when validation fails - * @var string|NULL - */ - protected $_errors_file = 'validation'; - - /** - * Gets the task name for the task - * - * @return string - */ - public function __toString() - { - static $task_name = NULL; - - if ($task_name === NULL) - { - $task_name = Minion_Task::convert_class_to_task($this); - } - - return $task_name; - } - - /** - * Sets options for this task - * - * $param array the array of options to set - * @return this - */ - public function set_options(array $options) - { - foreach ($options as $key => $value) - { - $this->_options[$key] = $value; - } - - return $this; - } - - /** - * Get the options that were passed into this task with their defaults - * - * @return array - */ - public function get_options() - { - return (array) $this->_options; - } - - /** - * Get a set of options that this task can accept - * - * @return array - */ - public function get_accepted_options() - { - return (array) $this->_accepted_options; - } - - /** - * Adds any validation rules/labels for validating _options - * - * public function build_validation(Validation $validation) - * { - * return parent::build_validation($validation) - * ->rule('paramname', 'not_empty'); // Require this param - * } - * - * @param Validation the validation object to add rules to - * - * @return Validation - */ - public function build_validation(Validation $validation) - { - // Add a rule to each key making sure it's in the task - foreach ($validation->as_array() as $key => $value) - { - $validation->rule($key, array($this, 'valid_option'), array(':validation', ':field')); - } - - return $validation; - } - - /** - * Returns $_errors_file - * - * @return string - */ - public function get_errors_file() - { - return $this->_errors_file; - } - - /** - * Execute the task with the specified set of options - * - * @return null - */ - public function execute() - { - $options = $this->get_options(); - - // Validate $options - $validation = Validation::factory($options); - $validation = $this->build_validation($validation); - - if ( $this->_method != '_help' AND ! $validation->check()) - { - echo View::factory('minion/error/validation') - ->set('task', Minion_Task::convert_class_to_task($this)) - ->set('errors', $validation->errors($this->get_errors_file())); - } - else - { - // Finally, run the task - $method = $this->_method; - echo $this->{$method}($options); - } - } - - abstract protected function _execute(array $params); - - /** - * Outputs help for this task - * - * @return null - */ - protected function _help(array $params) - { - $tasks = $this->_compile_task_list(Kohana::list_files('classes/task')); - - $inspector = new ReflectionClass($this); - - list($description, $tags) = $this->_parse_doccomment($inspector->getDocComment()); - - $view = View::factory('minion/help/task') - ->set('description', $description) - ->set('tags', (array) $tags) - ->set('task', Minion_Task::convert_class_to_task($this)); - - echo $view; - } - - - public function valid_option(Validation $validation, $option) - { - if ( ! in_array($option, $this->_accepted_options)) - { - $validation->error($option, 'minion_option'); - } - } - - /** - * Parses a doccomment, extracting both the comment and any tags associated - * - * Based on the code in Kodoc::parse() - * - * @param string The comment to parse - * @return array First element is the comment, second is an array of tags - */ - protected function _parse_doccomment($comment) - { - // Normalize all new lines to \n - $comment = str_replace(array("\r\n", "\n"), "\n", $comment); - - // Remove the phpdoc open/close tags and split - $comment = array_slice(explode("\n", $comment), 1, -1); - - // Tag content - $tags = array(); - - foreach ($comment as $i => $line) - { - // Remove all leading whitespace - $line = preg_replace('/^\s*\* ?/m', '', $line); - - // Search this line for a tag - if (preg_match('/^@(\S+)(?:\s*(.+))?$/', $line, $matches)) - { - // This is a tag line - unset($comment[$i]); - - $name = $matches[1]; - $text = isset($matches[2]) ? $matches[2] : ''; - - $tags[$name] = $text; - } - else - { - $comment[$i] = (string) $line; - } - } - - $comment = trim(implode("\n", $comment)); - - return array($comment, $tags); - } - - /** - * Compiles a list of available tasks from a directory structure - * - * @param array Directory structure of tasks - * @param string prefix - * @return array Compiled tasks - */ - protected function _compile_task_list(array $files, $prefix = '') - { - $output = array(); - - foreach ($files as $file => $path) - { - $file = substr($file, strrpos($file, DIRECTORY_SEPARATOR) + 1); - - if (is_array($path) AND count($path)) - { - $task = $this->_compile_task_list($path, $prefix.$file.Minion_Task::$task_separator); - - if ($task) - { - $output = array_merge($output, $task); - } - } - else - { - $output[] = strtolower($prefix.substr($file, 0, -strlen(EXT))); - } - } - - return $output; - } -} diff --git a/includes/kohana/modules/minion/classes/Minion/CLI.php b/includes/kohana/modules/minion/classes/Minion/CLI.php deleted file mode 100644 index d9987669..00000000 --- a/includes/kohana/modules/minion/classes/Minion/CLI.php +++ /dev/null @@ -1,3 +0,0 @@ -_compile_task_list(Kohana::list_files('classes/Task')); - - $view = new View('minion/help/list'); - - $view->tasks = $tasks; - - echo $view; - } -} diff --git a/includes/kohana/modules/minion/config/userguide.php b/includes/kohana/modules/minion/config/userguide.php deleted file mode 100644 index 1bb7093d..00000000 --- a/includes/kohana/modules/minion/config/userguide.php +++ /dev/null @@ -1,13 +0,0 @@ - array( - 'minion' => array( - 'enabled' => TRUE, - 'name' => 'Minion', - 'description' => 'Minion is a simple command line task runner', - 'copyright' => '© 2009-2011 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/modules/minion/guide/minion/index.md b/includes/kohana/modules/minion/guide/minion/index.md deleted file mode 100644 index 5c3be5bf..00000000 --- a/includes/kohana/modules/minion/guide/minion/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# Minion - -Minion is a simple command line task runner. \ No newline at end of file diff --git a/includes/kohana/modules/minion/guide/minion/menu.md b/includes/kohana/modules/minion/guide/minion/menu.md deleted file mode 100644 index 9c22809e..00000000 --- a/includes/kohana/modules/minion/guide/minion/menu.md +++ /dev/null @@ -1,3 +0,0 @@ -## [Minion]() - - [Setup](setup) - - [Writing a Task](tasks) \ No newline at end of file diff --git a/includes/kohana/modules/minion/guide/minion/setup.md b/includes/kohana/modules/minion/guide/minion/setup.md deleted file mode 100644 index 11e6256d..00000000 --- a/includes/kohana/modules/minion/guide/minion/setup.md +++ /dev/null @@ -1,32 +0,0 @@ -# Minion Setup - -To use minion, you'll need to make a small change to your index.php file: - - -/** - - * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. - - * If no source is specified, the URI will be automatically detected. - - */ - -echo Request::factory() - - ->execute() - - ->send_headers(TRUE) - - ->body(); - +if (PHP_SAPI == 'cli') // Try and load minion - +{ - + class_exists('Minion_Task') OR die('minion required!'); - + set_exception_handler(array('Kohana_Minion_Exception_Handler', 'handler')); - + - + Minion_Task::factory(Minion_CLI::options())->execute(); - +} - +else - +{ - + /** - + * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. - + * If no source is specified, the URI will be automatically detected. - + */ - + echo Request::factory() - + ->execute() - + ->send_headers(TRUE) - + ->body(); - +} - -This will short-circuit your index file to intercept any cli calls, and route them to the minion module. \ No newline at end of file diff --git a/includes/kohana/modules/minion/guide/minion/tasks.md b/includes/kohana/modules/minion/guide/minion/tasks.md deleted file mode 100644 index 4bda3ef2..00000000 --- a/includes/kohana/modules/minion/guide/minion/tasks.md +++ /dev/null @@ -1,71 +0,0 @@ -# Writing Tasks - -Writing a task in minion is very easy. Simply create a new class called `Task_` and put it inside `classes/task/.php`. - - NULL, - ); - - /** - * This is a demo task - * - * @return null - */ - protected function _execute(array $params) - { - var_dump($params); - echo 'foobar'; - } - } - -You'll notice a few things here: - - - You need a main `_execute()` method. It should take one array parameter. - - This parameter contains any command line options passed to the task. - - For example, if you call the task above with `./minion --task=demo --foo=foobar` then `$params` will contain: `array('foo' => 'foobar', 'bar' => NULL)` - - It needs to have a `protected $_defaults` array. This is a list of parameters you want to accept for this task. Any parameters passed to the task not in this list will be rejected. - -## Namespacing Tasks - -You can "namespace" tasks by placing them all in a subdirectory: `classes/task/database/generate.php`. This task will be named `database:generate` and can be called with this task name. - -# Parameter Validations - -To add validations to your command line options, simply overload the `build_validation()` method in your task: - - public function build_validation(Validation $validation) - { - return parent::build_validation($validation) - ->rule('foo', 'not_empty') // Require this param - ->rule('bar', 'numeric'); // This param should be numeric - } - -These validations will run for every task call unless `--help` is passed to the task. - -# Task Help - -Tasks can have built-in help. Minion will read class docblocks that you specify: - - ':field is not a valid option for this task!', -); \ No newline at end of file diff --git a/includes/kohana/modules/minion/minion b/includes/kohana/modules/minion/minion deleted file mode 100644 index dc4f755f..00000000 --- a/includes/kohana/modules/minion/minion +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env php - /dev/null 2>&1 - then - start_daemon - fi -done \ No newline at end of file diff --git a/includes/kohana/modules/minion/tests/minion/task.php b/includes/kohana/modules/minion/tests/minion/task.php deleted file mode 100644 index e7918a01..00000000 --- a/includes/kohana/modules/minion/tests/minion/task.php +++ /dev/null @@ -1,70 +0,0 @@ -assertSame($expected, Minion_Task::convert_task_to_class_name($task_name)); - } - - /** - * Provides test data for test_convert_class_to_task() - * - * @return array - */ - public function provider_convert_class_to_task() - { - return array( - array('db:migrate', 'Task_Db_Migrate'), - ); - } - - /** - * Tests that the task name can be found from a class name / object - * - * @test - * @covers Minion_Task::convert_class_to_task - * @dataProvider provider_convert_class_to_task - * @param string Expected task name - * @param mixed Input class - */ - public function test_convert_class_to_task($expected, $class) - { - $this->assertSame($expected, Minion_Task::convert_class_to_task($class)); - } -} diff --git a/includes/kohana/modules/minion/views/minion/error/validation.php b/includes/kohana/modules/minion/views/minion/error/validation.php deleted file mode 100644 index a65758a7..00000000 --- a/includes/kohana/modules/minion/views/minion/error/validation.php +++ /dev/null @@ -1,10 +0,0 @@ -Parameter Errors: - $error): ?> - - - - -Run - - php index.php --task= --help - -for more help \ No newline at end of file diff --git a/includes/kohana/modules/minion/views/minion/help/error.php b/includes/kohana/modules/minion/views/minion/help/error.php deleted file mode 100644 index 504115de..00000000 --- a/includes/kohana/modules/minion/views/minion/help/error.php +++ /dev/null @@ -1,7 +0,0 @@ - - -Run - - index.php --uri=minion - -for more help diff --git a/includes/kohana/modules/minion/views/minion/help/list.php b/includes/kohana/modules/minion/views/minion/help/list.php deleted file mode 100644 index eeb06ef4..00000000 --- a/includes/kohana/modules/minion/views/minion/help/list.php +++ /dev/null @@ -1,17 +0,0 @@ -Minion is a cli tool for performing tasks - -Usage - - {task} --task=[options] - -Where {task} is one of the following: - - - * - - - -For more information on what a task does and usage details execute - - --task={task} --help - diff --git a/includes/kohana/modules/minion/views/minion/help/task.php b/includes/kohana/modules/minion/views/minion/help/task.php deleted file mode 100644 index 8f2fcd76..00000000 --- a/includes/kohana/modules/minion/views/minion/help/task.php +++ /dev/null @@ -1,17 +0,0 @@ - -Usage -======= -php minion.php --task= [--option1=value1] [--option2=value2] - -Details -======= - $tag_content): ?> -: - - - -Description -=========== - - - diff --git a/includes/kohana/modules/orm/auth-schema-mysql.sql b/includes/kohana/modules/orm/auth-schema-mysql.sql deleted file mode 100644 index 61a803ac..00000000 --- a/includes/kohana/modules/orm/auth-schema-mysql.sql +++ /dev/null @@ -1,49 +0,0 @@ -CREATE TABLE IF NOT EXISTS `roles` ( - `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `name` varchar(32) NOT NULL, - `description` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `uniq_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -INSERT INTO `roles` (`id`, `name`, `description`) VALUES(1, 'login', 'Login privileges, granted after account confirmation'); -INSERT INTO `roles` (`id`, `name`, `description`) VALUES(2, 'admin', 'Administrative user, has access to everything.'); - -CREATE TABLE IF NOT EXISTS `roles_users` ( - `user_id` int(10) UNSIGNED NOT NULL, - `role_id` int(10) UNSIGNED NOT NULL, - PRIMARY KEY (`user_id`,`role_id`), - KEY `fk_role_id` (`role_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `users` ( - `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `email` varchar(254) NOT NULL, - `username` varchar(32) NOT NULL DEFAULT '', - `password` varchar(64) NOT NULL, - `logins` int(10) UNSIGNED NOT NULL DEFAULT '0', - `last_login` int(10) UNSIGNED, - PRIMARY KEY (`id`), - UNIQUE KEY `uniq_username` (`username`), - UNIQUE KEY `uniq_email` (`email`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `user_tokens` ( - `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `user_id` int(11) UNSIGNED NOT NULL, - `user_agent` varchar(40) NOT NULL, - `token` varchar(40) NOT NULL, - `created` int(10) UNSIGNED NOT NULL, - `expires` int(10) UNSIGNED NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `uniq_token` (`token`), - KEY `fk_user_id` (`user_id`), - KEY `expires` (`expires`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -ALTER TABLE `roles_users` - ADD CONSTRAINT `roles_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE, - ADD CONSTRAINT `roles_users_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; - -ALTER TABLE `user_tokens` - ADD CONSTRAINT `user_tokens_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; diff --git a/includes/kohana/modules/orm/auth-schema-postgresql.sql b/includes/kohana/modules/orm/auth-schema-postgresql.sql deleted file mode 100644 index ce82ed12..00000000 --- a/includes/kohana/modules/orm/auth-schema-postgresql.sql +++ /dev/null @@ -1,53 +0,0 @@ -CREATE TABLE roles -( - id serial, - "name" varchar(32) NOT NULL, - description text NOT NULL, - CONSTRAINT roles_id_pkey PRIMARY KEY (id), - CONSTRAINT roles_name_key UNIQUE (name) -); - -CREATE TABLE roles_users -( - user_id integer, - role_id integer -); - -CREATE TABLE users -( - id serial, - email varchar(254) NOT NULL, - username varchar(32) NOT NULL, - "password" varchar(64) NOT NULL, - logins integer NOT NULL DEFAULT 0, - last_login integer, - CONSTRAINT users_id_pkey PRIMARY KEY (id), - CONSTRAINT users_username_key UNIQUE (username), - CONSTRAINT users_email_key UNIQUE (email), - CONSTRAINT users_logins_check CHECK (logins >= 0) -); - -CREATE TABLE user_tokens -( - id serial, - user_id integer NOT NULL, - user_agent varchar(40) NOT NULL, - token character varying(32) NOT NULL, - created integer NOT NULL, - expires integer NOT NULL, - CONSTRAINT user_tokens_id_pkey PRIMARY KEY (id), - CONSTRAINT user_tokens_token_key UNIQUE (token) -); - -CREATE INDEX user_id_idx ON roles_users (user_id); -CREATE INDEX role_id_idx ON roles_users (role_id); - -ALTER TABLE roles_users - ADD CONSTRAINT user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, - ADD CONSTRAINT role_id_fkey FOREIGN KEY (role_id) REFERENCES roles(id) ON DELETE CASCADE; - -ALTER TABLE user_tokens - ADD CONSTRAINT user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; - -INSERT INTO roles (name, description) VALUES ('login', 'Login privileges, granted after account confirmation'); -INSERT INTO roles (name, description) VALUES ('admin', 'Administrative user, has access to everything.'); diff --git a/includes/kohana/modules/orm/classes/Auth/ORM.php b/includes/kohana/modules/orm/classes/Auth/ORM.php deleted file mode 100644 index 590bef19..00000000 --- a/includes/kohana/modules/orm/classes/Auth/ORM.php +++ /dev/null @@ -1,3 +0,0 @@ -get_user(); - - if ( ! $user) - return FALSE; - - if ($user instanceof Model_User AND $user->loaded()) - { - // If we don't have a roll no further checking is needed - if ( ! $role) - return TRUE; - - if (is_array($role)) - { - // Get all the roles - $roles = ORM::factory('Role') - ->where('name', 'IN', $role) - ->find_all() - ->as_array(NULL, 'id'); - - // Make sure all the roles are valid ones - if (count($roles) !== count($role)) - return FALSE; - } - else - { - if ( ! is_object($role)) - { - // Load the role - $roles = ORM::factory('Role', array('name' => $role)); - - if ( ! $roles->loaded()) - return FALSE; - } - } - - return $user->has('roles', $roles); - } - } - - /** - * Logs a user in. - * - * @param string $username - * @param string $password - * @param boolean $remember enable autologin - * @return boolean - */ - protected function _login($user, $password, $remember) - { - if ( ! is_object($user)) - { - $username = $user; - - // Load the user - $user = ORM::factory('User'); - $user->where($user->unique_key($username), '=', $username)->find(); - } - - if (is_string($password)) - { - // Create a hashed password - $password = $this->hash($password); - } - - // If the passwords match, perform a login - if ($user->has('roles', ORM::factory('Role', array('name' => 'login'))) AND $user->password === $password) - { - if ($remember === TRUE) - { - // Token data - $data = array( - 'user_id' => $user->pk(), - 'expires' => time() + $this->_config['lifetime'], - 'user_agent' => sha1(Request::$user_agent), - ); - - // Create a new autologin token - $token = ORM::factory('User_Token') - ->values($data) - ->create(); - - // Set the autologin cookie - Cookie::set('authautologin', $token->token, $this->_config['lifetime']); - } - - // Finish the login - $this->complete_login($user); - - return TRUE; - } - - // Login failed - return FALSE; - } - - /** - * Forces a user to be logged in, without specifying a password. - * - * @param mixed $user username string, or user ORM object - * @param boolean $mark_session_as_forced mark the session as forced - * @return boolean - */ - public function force_login($user, $mark_session_as_forced = FALSE) - { - if ( ! is_object($user)) - { - $username = $user; - - // Load the user - $user = ORM::factory('User'); - $user->where($user->unique_key($username), '=', $username)->find(); - } - - if ($mark_session_as_forced === TRUE) - { - // Mark the session as forced, to prevent users from changing account information - $this->_session->set('auth_forced', TRUE); - } - - // Run the standard completion - $this->complete_login($user); - } - - /** - * Logs a user in, based on the authautologin cookie. - * - * @return mixed - */ - public function auto_login() - { - if ($token = Cookie::get('authautologin')) - { - // Load the token and user - $token = ORM::factory('User_Token', array('token' => $token)); - - if ($token->loaded() AND $token->user->loaded()) - { - if ($token->user_agent === sha1(Request::$user_agent)) - { - // Save the token to create a new unique token - $token->save(); - - // Set the new token - Cookie::set('authautologin', $token->token, $token->expires - time()); - - // Complete the login with the found data - $this->complete_login($token->user); - - // Automatic login was successful - return $token->user; - } - - // Token is invalid - $token->delete(); - } - } - - return FALSE; - } - - /** - * Gets the currently logged in user from the session (with auto_login check). - * Returns $default if no user is currently logged in. - * - * @param mixed $default to return in case user isn't logged in - * @return mixed - */ - public function get_user($default = NULL) - { - $user = parent::get_user($default); - - if ($user === $default) - { - // check for "remembered" login - if (($user = $this->auto_login()) === FALSE) - return $default; - } - - return $user; - } - - /** - * Log a user out and remove any autologin cookies. - * - * @param boolean $destroy completely destroy the session - * @param boolean $logout_all remove all tokens for user - * @return boolean - */ - public function logout($destroy = FALSE, $logout_all = FALSE) - { - // Set by force_login() - $this->_session->delete('auth_forced'); - - if ($token = Cookie::get('authautologin')) - { - // Delete the autologin cookie to prevent re-login - Cookie::delete('authautologin'); - - // Clear the autologin token from the database - $token = ORM::factory('User_Token', array('token' => $token)); - - if ($token->loaded() AND $logout_all) - { - // Delete all user tokens. This isn't the most elegant solution but does the job - $tokens = ORM::factory('User_Token')->where('user_id','=',$token->user_id)->find_all(); - - foreach ($tokens as $_token) - { - $_token->delete(); - } - } - elseif ($token->loaded()) - { - $token->delete(); - } - } - - return parent::logout($destroy); - } - - /** - * Get the stored password for a username. - * - * @param mixed $user username string, or user ORM object - * @return string - */ - public function password($user) - { - if ( ! is_object($user)) - { - $username = $user; - - // Load the user - $user = ORM::factory('User'); - $user->where($user->unique_key($username), '=', $username)->find(); - } - - return $user->password; - } - - /** - * Complete the login for a user by incrementing the logins and setting - * session data: user_id, username, roles. - * - * @param object $user user ORM object - * @return void - */ - protected function complete_login($user) - { - $user->complete_login(); - - return parent::complete_login($user); - } - - /** - * Compare password with original (hashed). Works for current (logged in) user - * - * @param string $password - * @return boolean - */ - public function check_password($password) - { - $user = $this->get_user(); - - if ( ! $user) - return FALSE; - - return ($this->hash($password) === $user->password); - } - -} // End Auth ORM diff --git a/includes/kohana/modules/orm/classes/Kohana/ORM.php b/includes/kohana/modules/orm/classes/Kohana/ORM.php deleted file mode 100644 index 666af8a4..00000000 --- a/includes/kohana/modules/orm/classes/Kohana/ORM.php +++ /dev/null @@ -1,2404 +0,0 @@ -.* - protected $_disable_wild_select = FALSE; - - // Suppress ORMs inclusion of . to column joins - protected $_disable_join_table_name = FALSE; - - // Suppress ORMs use of limit - protected $_disable_limit = FALSE; - - /** - * Model configuration, reload on wakeup? - * @var bool - */ - protected $_reload_on_wakeup = TRUE; - - /** - * Database Object - * @var Database - */ - protected $_db = NULL; - - /** - * Database config group - * @var String - */ - protected $_db_group = NULL; - - /** - * Database methods applied - * @var array - */ - protected $_db_applied = array(); - - /** - * Database methods pending - * @var array - */ - protected $_db_pending = array(); - - /** - * Reset builder - * @var bool - */ - protected $_db_reset = TRUE; - - /** - * Database query builder - * @var Database_Query_Builder_Select - */ - protected $_db_builder; - - /** - * With calls already applied - * @var array - */ - protected $_with_applied = array(); - - /** - * Data to be loaded into the model from a database call cast - * @var array - */ - protected $_cast_data = array(); - - /** - * The message filename used for validation errors. - * Defaults to ORM::$_object_name - * @var string - */ - protected $_errors_filename = NULL; - - /** - * Constructs a new model and loads a record if given - * - * @param mixed $id Parameter for find or object to load - */ - public function __construct($id = NULL) - { - $this->_initialize(); - - if ($id !== NULL) - { - if (is_array($id)) - { - foreach ($id as $column => $value) - { - // Passing an array of column => values - $this->where($column, '=', $value); - } - - $this->find(); - } - else - { - // Passing the primary key - $this->where(($this->_disable_join_table_name ? '' : $this->_object_name.'.').$this->_primary_key, '=', $id)->find(); - } - } - elseif ( ! empty($this->_cast_data)) - { - // Load preloaded data from a database call cast - $this->_load_values($this->_cast_data); - - $this->_cast_data = array(); - } - } - - /** - * Prepares the model database connection, determines the table name, - * and loads column information. - * - * @return void - */ - protected function _initialize() - { - // Set the object name and plural name - $this->_object_name = strtolower(substr(get_class($this), 6)); - - // Check if this model has already been initialized - if ( ! $init = Arr::get(ORM::$_init_cache, $this->_object_name, FALSE)) - { - $init = array( - '_belongs_to' => array(), - '_has_one' => array(), - '_has_many' => array(), - ); - - // Set the object plural name if none predefined - if ( ! isset($this->_object_plural)) - { - $init['_object_plural'] = Inflector::plural($this->_object_name); - } - - if ( ! $this->_errors_filename) - { - $init['_errors_filename'] = $this->_object_name; - } - - if ( ! is_object($this->_db)) - { - // Get database instance - $init['_db'] = Database::instance($this->_db_group); - } - - if (empty($this->_table_name)) - { - // Table name is the same as the object name - $init['_table_name'] = $this->_object_name; - - if ($this->_table_names_plural === TRUE) - { - // Make the table name plural - $init['_table_name'] = Arr::get($init, '_object_plural', $this->_object_plural); - } - } - - $defaults = array(); - - foreach ($this->_belongs_to as $alias => $details) - { - if ( ! isset($details['model'])) - { - $defaults['model'] = str_replace(' ', '_', ucwords(str_replace('_', ' ', $alias))); - } - - $defaults['foreign_key'] = $alias.$this->_foreign_key_suffix; - - $init['_belongs_to'][$alias] = array_merge($defaults, $details); - } - - foreach ($this->_has_one as $alias => $details) - { - if ( ! isset($details['model'])) - { - $defaults['model'] = str_replace(' ', '_', ucwords(str_replace('_', ' ', $alias))); - } - - $defaults['foreign_key'] = $this->_object_name.$this->_foreign_key_suffix; - $defaults['far_key'] = Inflector::singular($alias).$this->_foreign_key_suffix; - - $init['_has_one'][$alias] = array_merge($defaults, $details); - } - - foreach ($this->_has_many as $alias => $details) - { - if ( ! isset($details['model'])) - { - $defaults['model'] = str_replace(' ', '_', ucwords(str_replace('_', ' ', ($this->_model_names_plural ? Inflector::singular($alias) : $alias)))); - } - - $defaults['foreign_key'] = $this->_object_name.$this->_foreign_key_suffix; - $defaults['through'] = NULL; - - if ( ! isset($details['far_key'])) - { - $defaults['far_key'] = Inflector::singular($alias).$this->_foreign_key_suffix; - } - - $init['_has_many'][$alias] = array_merge($defaults, $details); - } - - ORM::$_init_cache[$this->_object_name] = $init; - } - - // Assign initialized properties to the current object - foreach ($init as $property => $value) - { - $this->{$property} = $value; - } - - // Load column information - $this->reload_columns(); - - // Clear initial model state - $this->clear(); - } - - /** - * Initializes validation rules, and labels - * - * @return void - */ - protected function _validation() - { - // Build the validation object with its rules - $this->_validation = Validation::factory($this->_object) - ->bind(':model', $this) - ->bind(':original_values', $this->_original_values) - ->bind(':changed', $this->_changed); - - foreach ($this->rules() as $field => $rules) - { - $this->_validation->rules($field, $rules); - } - - // Use column names by default for labels - $columns = array_keys($this->_table_columns); - - // Merge user-defined labels - $labels = array_merge(array_combine($columns, $columns), $this->labels()); - - foreach ($labels as $field => $label) - { - $this->_validation->label($field, $label); - } - } - - /** - * Reload column definitions. - * - * @chainable - * @param boolean $force Force reloading - * @return ORM - */ - public function reload_columns($force = FALSE) - { - if ($force === TRUE OR empty($this->_table_columns)) - { - if (isset(ORM::$_column_cache[$this->_object_name])) - { - // Use cached column information - $this->_table_columns = ORM::$_column_cache[$this->_object_name]; - } - else - { - // Grab column information from database - $this->_table_columns = $this->list_columns(); - - // Load column cache - ORM::$_column_cache[$this->_object_name] = $this->_table_columns; - } - } - - return $this; - } - - /** - * Unloads the current object and clears the status. - * - * @chainable - * @return ORM - */ - public function clear() - { - // Create an array with all the columns set to NULL - $values = array_combine(array_keys($this->_table_columns), array_fill(0, count($this->_table_columns), NULL)); - - // Replace the object and reset the object status - $this->_object = $this->_changed = $this->_related = $this->_original_values = array(); - - // Replace the current object with an empty one - $this->_load_values($values); - - // Reset primary key - $this->_primary_key_value = NULL; - - // Reset the loaded state - $this->_loaded = FALSE; - - $this->reset(); - - return $this; - } - - /** - * Reloads the current object from the database. - * - * @chainable - * @return ORM - */ - public function reload() - { - $primary_key = $this->pk(); - - // Replace the object and reset the object status - $this->_object = $this->_changed = $this->_related = $this->_original_values = array(); - - // Only reload the object if we have one to reload - if ($this->_loaded) - return $this->clear() - ->where($this->_object_name.'.'.$this->_primary_key, '=', $primary_key) - ->find(); - else - return $this->clear(); - } - - /** - * Checks if object data is set. - * - * @param string $column Column name - * @return boolean - */ - public function __isset($column) - { - return (isset($this->_object[$column]) OR - isset($this->_related[$column]) OR - isset($this->_has_one[$column]) OR - isset($this->_belongs_to[$column]) OR - isset($this->_has_many[$column])); - } - - /** - * Unsets object data. - * - * @param string $column Column name - * @return void - */ - public function __unset($column) - { - unset($this->_object[$column], $this->_changed[$column], $this->_related[$column]); - } - - /** - * Displays the primary key of a model when it is converted to a string. - * - * @return string - */ - public function __toString() - { - return (string) $this->pk(); - } - - /** - * Allows serialization of only the object data and state, to prevent - * "stale" objects being unserialized, which also requires less memory. - * - * @return string - */ - public function serialize() - { - // Store only information about the object - foreach (array('_primary_key_value', '_object', '_changed', '_loaded', '_saved', '_sorting', '_original_values') as $var) - { - $data[$var] = $this->{$var}; - } - - return serialize($data); - } - - /** - * Check whether the model data has been modified. - * If $field is specified, checks whether that field was modified. - * - * @param string $field field to check for changes - * @return bool Whether or not the field has changed - */ - public function changed($field = NULL) - { - return ($field === NULL) - ? $this->_changed - : Arr::get($this->_changed, $field); - } - - /** - * Prepares the database connection and reloads the object. - * - * @param string $data String for unserialization - * @return void - */ - public function unserialize($data) - { - // Initialize model - $this->_initialize(); - - foreach (unserialize($data) as $name => $var) - { - $this->{$name} = $var; - } - - if ($this->_reload_on_wakeup === TRUE) - { - // Reload the object - $this->reload(); - } - } - - /** - * Handles retrieval of all model values, relationships, and metadata. - * [!!] This should not be overridden. - * - * @param string $column Column name - * @return mixed - */ - public function __get($column) - { - return $this->get($column); - } - - /** - * Handles getting of column - * Override this method to add custom get behavior - * - * @param string $column Column name - * @throws Kohana_Exception - * @return mixed - */ - public function get($column) - { - if (array_key_exists($column, $this->_object)) - { - return (in_array($column, $this->_serialize_columns)) - ? $this->_unserialize_value($this->_object[$column]) - : $this->_object[$column]; - } - elseif (isset($this->_related[$column])) - { - // Return related model that has already been fetched - return $this->_related[$column]; - } - elseif (isset($this->_belongs_to[$column])) - { - $model = $this->_related($column); - - // Use this model's column and foreign model's primary key - $col = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$model->_primary_key; - $val = $this->_object[$this->_belongs_to[$column]['foreign_key']]; - - // Make sure we don't run WHERE "AUTO_INCREMENT column" = NULL queries. This would - // return the last inserted record instead of an empty result. - // See: http://mysql.localhost.net.ar/doc/refman/5.1/en/server-session-variables.html#sysvar_sql_auto_is_null - if ($val !== NULL) - { - $model->where($col, '=', $val)->find(); - } - - return $this->_related[$column] = $model; - } - elseif (isset($this->_has_one[$column])) - { - $model = $this->_related($column); - - if (! is_array($this->_has_one[$column]['foreign_key'])) - { - // Use this model's primary key value and foreign model's column - $col = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$this->_has_one[$column]['foreign_key']; - $val = $this->_object[$this->_has_one[$column]['far_key']]; - } - else - { - foreach ($this->_has_one[$column]['foreign_key'] as $fk) - { - // Simple has_many relationship, search where target model's foreign key is this model's primary key - $col = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$fk; - $val = $this->_object[$fk]; - - $model = $model->where($col, '=', $val); - } - } - - $model->where($col, '=', $val)->find(); - - return $this->_related[$column] = $model; - } - elseif (isset($this->_has_many[$column])) - { - $model = ORM::factory($this->_has_many[$column]['model']); - - if (! is_array($this->_has_many[$column]['foreign_key'])) - { - if (isset($this->_has_many[$column]['through'])) - { - // Grab has_many "through" relationship table - $through = $this->_has_many[$column]['through']; - - // Join on through model's target foreign key (far_key) and target model's primary key - $join_col1 = ($this->_disable_join_table_name ? '' : $through.'.').$this->_has_many[$column]['far_key']; - $join_col2 = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$model->_primary_key; - - $model->join($through)->on($join_col1, '=', $join_col2) - ->on(($this->_disable_join_table_name ? '' : $through.'.').'site_id', '=', ($this->_disable_join_table_name ? '' : $model->_object_name.'.').'site_id'); - - // Through table's source foreign key (foreign_key) should be this model's primary key - $col = ($this->_disable_join_table_name ? '' : $through.'.').$this->_has_many[$column]['foreign_key']; - $val = $this->pk(); - } - else - { - // Simple has_many relationship, search where target model's foreign key is this model's primary key - $col = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$this->_has_many[$column]['foreign_key']; - $val = $this->_object[$this->_has_many[$column]['far_key']]; - } - - return $model->where($col, '=', $val); - } - else - { - foreach ($this->_has_many[$column]['foreign_key'] as $mk => $fk) - { - if (isset($this->_has_many[$column]['through'])) - { - throw new Kohana_Exception('This code hasnt been written yet!'); - } - else - { - // Simple has_many relationship, search where target model's foreign key is this model's primary key - $col = ($this->_disable_join_table_name ? '' : $model->_object_name.'.').$fk; - $val = $this->_object[$mk]; - } - - $model = $model->where($col, '=', $val); - } - - return $model; - } - } - else - { - throw new Kohana_Exception('The :property property does not exist in the :class class', - array(':property' => $column, ':class' => get_class($this))); - } - } - - /** - * Base set method. - * [!!] This should not be overridden. - * - * @param string $column Column name - * @param mixed $value Column value - * @return void - */ - public function __set($column, $value) - { - $this->set($column, $value); - } - - /** - * Handles setting of columns - * Override this method to add custom set behavior - * - * @param string $column Column name - * @param mixed $value Column value - * @throws Kohana_Exception - * @return ORM - */ - public function set($column, $value) - { - if ( ! isset($this->_object_name)) - { - // Object not yet constructed, so we're loading data from a database call cast - $this->_cast_data[$column] = $value; - - return $this; - } - - if (in_array($column, $this->_serialize_columns)) - { - $value = $this->_serialize_value($value); - } - - if (array_key_exists($column, $this->_object)) - { - // Filter the data - $value = $this->run_filter($column, $value); - - // See if the data really changed - if ($value !== $this->_object[$column]) - { - $this->_object[$column] = $value; - - // Data has changed - $this->_changed[$column] = $column; - - // Object is no longer saved or valid - $this->_saved = $this->_valid = FALSE; - } - } - elseif (isset($this->_belongs_to[$column])) - { - // Update related object itself - $this->_related[$column] = $value; - - // Update the foreign key of this model - $this->_object[$this->_belongs_to[$column]['foreign_key']] = ($value instanceof ORM) - ? $value->pk() - : NULL; - - $this->_changed[$column] = $this->_belongs_to[$column]['foreign_key']; - } - else - { - throw new Kohana_Exception('The :property: property does not exist in the :class: class', - array(':property:' => $column, ':class:' => get_class($this))); - } - - return $this; - } - - /** - * Set values from an array with support for one-one relationships. This method should be used - * for loading in post data, etc. - * - * @param array $values Array of column => val - * @param array $expected Array of keys to take from $values - * @return ORM - */ - public function values(array $values, array $expected = NULL) - { - // Default to expecting everything except the primary key - if ($expected === NULL) - { - $expected = array_keys($this->_table_columns); - - // Don't set the primary key by default - unset($values[$this->_primary_key]); - } - - foreach ($expected as $key => $column) - { - if (is_string($key)) - { - // isset() fails when the value is NULL (we want it to pass) - if ( ! array_key_exists($key, $values)) - continue; - - // Try to set values to a related model - $this->{$key}->values($values[$key], $column); - } - else - { - // isset() fails when the value is NULL (we want it to pass) - if ( ! array_key_exists($column, $values)) - continue; - - // Update the column, respects __set() - $this->$column = $values[$column]; - } - } - - return $this; - } - - /** - * Returns the values of this object as an array, including any related one-one - * models that have already been loaded using with() - * - * @return array - */ - public function as_array() - { - $object = array(); - - foreach ($this->_object as $column => $value) - { - // Call __get for any user processing - $object[$column] = $this->__get($column); - } - - foreach ($this->_related as $column => $model) - { - // Include any related objects that are already loaded - $object[$column] = $model->as_array(); - } - - return $object; - } - - /** - * Binds another one-to-one object to this model. One-to-one objects - * can be nested using 'object1:object2' syntax - * - * @param string $target_path Target model to bind to - * @return ORM - */ - public function with($target_path) - { - if (isset($this->_with_applied[$target_path])) - { - // Don't join anything already joined - return $this; - } - - // Split object parts - $aliases = explode(':', $target_path); - $target = $this; - foreach ($aliases as $alias) - { - // Go down the line of objects to find the given target - $parent = $target; - $target = $parent->_related($alias); - - if ( ! $target) - { - // Can't find related object - return $this; - } - } - - // Target alias is at the end - $target_alias = $alias; - - // Pop-off top alias to get the parent path (user:photo:tag becomes user:photo - the parent table prefix) - array_pop($aliases); - $parent_path = implode(':', $aliases); - - if (empty($parent_path)) - { - // Use this table name itself for the parent path - $parent_path = $this->_object_name; - } - else - { - if ( ! isset($this->_with_applied[$parent_path])) - { - // If the parent path hasn't been joined yet, do it first (otherwise LEFT JOINs fail) - $this->with($parent_path); - } - } - - // Add to with_applied to prevent duplicate joins - $this->_with_applied[$target_path] = TRUE; - - // Use the keys of the empty object to determine the columns - foreach (array_keys($target->_object) as $column) - { - $name = $target_path.'.'.$column; - $alias = $target_path.':'.$column; - - // Add the prefix so that load_result can determine the relationship - $this->select(array($name, $alias)); - } - - if (isset($parent->_belongs_to[$target_alias])) - { - // Parent belongs_to target, use target's primary key and parent's foreign key - $join_col1 = $target_path.'.'.$target->_primary_key; - $join_col2 = $parent_path.'.'.$parent->_belongs_to[$target_alias]['foreign_key']; - } - else - { - // Parent has_one target, use parent's primary key as target's foreign key - $join_col1 = $parent_path.'.'.$parent->_primary_key; - $join_col2 = $target_path.'.'.$parent->_has_one[$target_alias]['foreign_key']; - } - - // Join the related object into the result - $this->join(array($target->_table_name, $target_path), 'LEFT')->on($join_col1, '=', $join_col2); - - return $this; - } - - /** - * Initializes the Database Builder to given query type - * - * @param integer $type Type of Database query - * @return ORM - */ - protected function _build($type) - { - // Construct new builder object based on query type - switch ($type) - { - case Database::SELECT: - $this->_db_builder = DB::select(); - break; - case Database::UPDATE: - $this->_db_builder = DB::update(array($this->_table_name, $this->_object_name)); - break; - case Database::DELETE: - // Cannot use an alias for DELETE queries - $this->_db_builder = DB::delete($this->_table_name); - } - - // Process pending database method calls - foreach ($this->_db_pending as $method) - { - $name = $method['name']; - $args = $method['args']; - - $this->_db_applied[$name] = $name; - - call_user_func_array(array($this->_db_builder, $name), $args); - } - - return $this; - } - - /** - * Finds and loads a single database row into the object. - * - * @chainable - * @throws Kohana_Exception - * @return ORM - */ - public function find() - { - if ($this->_loaded) - throw new Kohana_Exception('Method find() cannot be called on loaded objects'); - - if ( ! empty($this->_load_with)) - { - foreach ($this->_load_with as $alias) - { - // Bind auto relationships - $this->with($alias); - } - } - - $this->_build(Database::SELECT); - - return $this->_load_result(FALSE); - } - - /** - * Finds multiple database rows and returns an iterator of the rows found. - * - * @throws Kohana_Exception - * @return Database_Result - */ - public function find_all() - { - if ($this->_loaded) - throw new Kohana_Exception('Method find_all() cannot be called on loaded objects'); - - if ( ! empty($this->_load_with)) - { - foreach ($this->_load_with as $alias) - { - // Bind auto relationships - $this->with($alias); - } - } - - $this->_build(Database::SELECT); - - return $this->_load_result(TRUE); - } - - /** - * Returns an array of columns to include in the select query. This method - * can be overridden to change the default select behavior. - * - * @return array Columns to select - */ - protected function _build_select() - { - $columns = array(); - - foreach ($this->_table_columns as $column => $_) - { - $columns[] = array($this->_object_name.'.'.$column, $column); - } - - return $columns; - } - - /** - * Loads a database result, either as a new record for this model, or as - * an iterator for multiple rows. - * - * @chainable - * @param bool $multiple Return an iterator or load a single row - * @return ORM|Database_Result - */ - protected function _load_result($multiple = FALSE) - { - $this->_db_builder->from(array($this->_table_name, $this->_object_name)); - - if ($multiple === FALSE AND ! $this->_disable_limit) - { - // Only fetch 1 record - $this->_db_builder->limit(1); - } - - // Select all columns by default - if (! $this->_disable_wild_select) - $this->_db_builder->select_array($this->_build_select()); - - if ( ! isset($this->_db_applied['order_by']) AND ! empty($this->_sorting)) - { - foreach ($this->_sorting as $column => $direction) - { - if (strpos($column, '.') === FALSE) - { - // Sorting column for use in JOINs - $column = ($this->_disable_join_table_name ? '' : $this->_object_name.'.').$column; - } - - $this->_db_builder->order_by($column, $direction); - } - } - - if ($multiple === TRUE) - { - // Return database iterator casting to this object type - $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); - - $this->reset(); - - return $result; - } - else - { - // Load the result as an associative array - $result = $this->_db_builder->as_assoc()->execute($this->_db); - - $this->reset(); - - if ($result->count() === 1) - { - // Load object values - $this->_load_values($result->current()); - } - else - { - // Clear the object, nothing was found - $this->clear(); - } - - return $this; - } - } - - /** - * Loads an array of values into into the current object. - * - * @chainable - * @param array $values Values to load - * @return ORM - */ - protected function _load_values(array $values) - { - if (array_key_exists($this->_primary_key, $values)) - { - if ($values[$this->_primary_key] !== NULL) - { - // Flag as loaded and valid - $this->_loaded = $this->_valid = TRUE; - - // Store primary key - $this->_primary_key_value = $values[$this->_primary_key]; - } - else - { - // Not loaded or valid - $this->_loaded = $this->_valid = FALSE; - } - } - - // Related objects - $related = array(); - - foreach ($values as $column => $value) - { - if (strpos($column, ':') === FALSE) - { - // Load the value to this model - $this->_object[$column] = $value; - } - else - { - // Column belongs to a related model - list ($prefix, $column) = explode(':', $column, 2); - - $related[$prefix][$column] = $value; - } - } - - if ( ! empty($related)) - { - foreach ($related as $object => $values) - { - // Load the related objects with the values in the result - $this->_related($object)->_load_values($values); - } - } - - if ($this->_loaded) - { - // Store the object in its original state - $this->_original_values = $this->_object; - } - - return $this; - } - - /** - * Rule definitions for validation - * - * @return array - */ - public function rules() - { - return array(); - } - - /** - * Filters a value for a specific column - * - * @param string $field The column name - * @param string $value The value to filter - * @return string - */ - protected function run_filter($field, $value, $filters=NULL) - { - if (is_null($filters)) - $filters = $this->filters(); - - // Get the filters for this column - $wildcards = empty($filters[TRUE]) ? array() : $filters[TRUE]; - - // Merge in the wildcards - $filters = empty($filters[$field]) ? $wildcards : array_merge($wildcards, $filters[$field]); - - // Bind the field name and model so they can be used in the filter method - $_bound = array - ( - ':field' => $field, - ':model' => $this, - ); - - foreach ($filters as $array) - { - // Value needs to be bound inside the loop so we are always using the - // version that was modified by the filters that already ran - $_bound[':value'] = $value; - - // Filters are defined as array($filter, $params) - $filter = $array[0]; - $params = Arr::get($array, 1, array(':value')); - - foreach ($params as $key => $param) - { - if (is_string($param) AND array_key_exists($param, $_bound)) - { - // Replace with bound value - $params[$key] = $_bound[$param]; - } - } - - if (is_array($filter) OR ! is_string($filter)) - { - // This is either a callback as an array or a lambda - $value = call_user_func_array($filter, $params); - } - elseif (strpos($filter, '::') === FALSE) - { - // Use a function call - $function = new ReflectionFunction($filter); - - // Call $function($this[$field], $param, ...) with Reflection - $value = $function->invokeArgs($params); - } - else - { - // Split the class and method of the rule - list($class, $method) = explode('::', $filter, 2); - - // Use a static method call - $method = new ReflectionMethod($class, $method); - - // Call $Class::$method($this[$field], $param, ...) with Reflection - $value = $method->invokeArgs(NULL, $params); - } - } - - return $value; - } - - /** - * Filter definitions for validation - * - * @return array - */ - public function filters() - { - return array(); - } - - /** - * Label definitions for validation - * - * @return array - */ - public function labels() - { - return array(); - } - - /** - * Validates the current model's data - * - * @param Validation $extra_validation Validation object - * @throws ORM_Validation_Exception - * @return ORM - */ - public function check(Validation $extra_validation = NULL) - { - // Determine if any external validation failed - $extra_errors = ($extra_validation AND ! $extra_validation->check()); - - // Always build a new validation object - $this->_validation(); - - $array = $this->_validation; - - if (($this->_valid = $array->check()) === FALSE OR $extra_errors) - { - $exception = new ORM_Validation_Exception($this->errors_filename(), $array); - - if ($extra_errors) - { - // Merge any possible errors from the external object - $exception->add_object('_external', $extra_validation); - } - throw $exception; - } - - return $this; - } - - /** - * Insert a new object to the database - * @param Validation $validation Validation object - * @throws Kohana_Exception - * @return ORM - */ - public function create(Validation $validation = NULL) - { - if ($this->_loaded) - throw new Kohana_Exception('Cannot create :model model because it is already loaded.', array(':model' => $this->_object_name)); - - // Require model validation before saving - if ( ! $this->_valid OR $validation) - { - $this->check($validation); - } - - $data = array(); - foreach ($this->_changed as $column) - { - // Generate list of column => values - $data[$column] = $this->_object[$column]; - } - - if (is_array($this->_created_column)) - { - // Fill the created column - $column = $this->_created_column['column']; - $format = $this->_created_column['format']; - - $data[$column] = $this->_object[$column] = ($format === TRUE) ? time() : date($format); - } - - $result = DB::insert($this->_table_name) - ->columns(array_keys($data)) - ->values(array_values($data)) - ->execute($this->_db); - - if ( ! array_key_exists($this->_primary_key, $data)) - { - // Load the insert id as the primary key if it was left out - $this->_object[$this->_primary_key] = $this->_primary_key_value = $result[0]; - } - else - { - $this->_primary_key_value = $this->_object[$this->_primary_key]; - } - - // Object is now loaded and saved - $this->_loaded = $this->_saved = TRUE; - - // All changes have been saved - $this->_changed = array(); - $this->_original_values = $this->_object; - - return $this; - } - - /** - * Updates a single record or multiple records - * - * @chainable - * @param Validation $validation Validation object - * @throws Kohana_Exception - * @return ORM - */ - public function update(Validation $validation = NULL) - { - if ( ! $this->_loaded) - throw new Kohana_Exception('Cannot update :model model because it is not loaded.', array(':model' => $this->_object_name)); - - // Run validation if the model isn't valid or we have additional validation rules. - if ( ! $this->_valid OR $validation) - { - $this->check($validation); - } - - if (empty($this->_changed)) - { - // Nothing to update - return $this; - } - - $data = array(); - foreach ($this->_changed as $column) - { - // Compile changed data - $data[$column] = $this->_object[$column]; - } - - if (is_array($this->_updated_column)) - { - // Fill the updated column - $column = $this->_updated_column['column']; - $format = $this->_updated_column['format']; - - $data[$column] = $this->_object[$column] = ($format === TRUE) ? time() : date($format); - } - - // Use primary key value - $id = $this->pk(); - - // Update a single record - DB::update($this->_table_name) - ->set($data) - ->where($this->_primary_key, '=', $id) - ->execute($this->_db); - - if (isset($data[$this->_primary_key])) - { - // Primary key was changed, reflect it - $this->_primary_key_value = $data[$this->_primary_key]; - } - - // Object has been saved - $this->_saved = TRUE; - - // All changes have been saved - $this->_changed = array(); - $this->_original_values = $this->_object; - - return $this; - } - - /** - * Updates or Creates the record depending on loaded() - * - * @chainable - * @param Validation $validation Validation object - * @return ORM - */ - public function save(Validation $validation = NULL) - { - return $this->loaded() ? $this->update($validation) : $this->create($validation); - } - - /** - * Deletes a single record while ignoring relationships. - * - * @chainable - * @throws Kohana_Exception - * @return ORM - */ - public function delete() - { - if ( ! $this->_loaded) - throw new Kohana_Exception('Cannot delete :model model because it is not loaded.', array(':model' => $this->_object_name)); - - // Use primary key value - $id = $this->pk(); - - // Delete the object - DB::delete($this->_table_name) - ->where($this->_primary_key, '=', $id) - ->execute($this->_db); - - return $this->clear(); - } - - /** - * Tests if this object has a relationship to a different model, - * or an array of different models. When providing far keys, the number - * of relations must equal the number of keys. - * - * - * // Check if $model has the login role - * $model->has('roles', ORM::factory('role', array('name' => 'login'))); - * // Check for the login role if you know the roles.id is 5 - * $model->has('roles', 5); - * // Check for all of the following roles - * $model->has('roles', array(1, 2, 3, 4)); - * // Check if $model has any roles - * $model->has('roles') - * - * @param string $alias Alias of the has_many "through" relationship - * @param mixed $far_keys Related model, primary key, or an array of primary keys - * @return boolean - */ - public function has($alias, $far_keys = NULL) - { - $count = $this->count_relations($alias, $far_keys); - if ($far_keys === NULL) - { - return (bool) $count; - } - else - { - return $count === count($far_keys); - } - - } - - /** - * Tests if this object has a relationship to a different model, - * or an array of different models. When providing far keys, this function - * only checks that at least one of the relationships is satisfied. - * - * // Check if $model has the login role - * $model->has('roles', ORM::factory('role', array('name' => 'login'))); - * // Check for the login role if you know the roles.id is 5 - * $model->has('roles', 5); - * // Check for any of the following roles - * $model->has('roles', array(1, 2, 3, 4)); - * // Check if $model has any roles - * $model->has('roles') - * - * @param string $alias Alias of the has_many "through" relationship - * @param mixed $far_keys Related model, primary key, or an array of primary keys - * @return boolean - */ - public function has_any($alias, $far_keys = NULL) - { - return (bool) $this->count_relations($alias, $far_keys); - } - - /** - * Returns the number of relationships - * - * // Counts the number of times the login role is attached to $model - * $model->has('roles', ORM::factory('role', array('name' => 'login'))); - * // Counts the number of times role 5 is attached to $model - * $model->has('roles', 5); - * // Counts the number of times any of roles 1, 2, 3, or 4 are attached to - * // $model - * $model->has('roles', array(1, 2, 3, 4)); - * // Counts the number roles attached to $model - * $model->has('roles') - * - * @param string $alias Alias of the has_many "through" relationship - * @param mixed $far_keys Related model, primary key, or an array of primary keys - * @return integer - */ - public function count_relations($alias, $far_keys = NULL) - { - if ($far_keys === NULL) - { - return (int) DB::select(array(DB::expr('COUNT(*)'), 'records_found')) - ->from($this->_has_many[$alias]['through']) - ->where($this->_has_many[$alias]['foreign_key'], '=', $this->pk()) - ->execute($this->_db)->get('records_found'); - } - - $far_keys = ($far_keys instanceof ORM) ? $far_keys->pk() : $far_keys; - - // We need an array to simplify the logic - $far_keys = (array) $far_keys; - - // Nothing to check if the model isn't loaded or we don't have any far_keys - if ( ! $far_keys OR ! $this->_loaded) - return 0; - - $count = (int) DB::select(array(DB::expr('COUNT(*)'), 'records_found')) - ->from($this->_has_many[$alias]['through']) - ->where($this->_has_many[$alias]['foreign_key'], '=', $this->pk()) - ->where($this->_has_many[$alias]['far_key'], 'IN', $far_keys) - ->execute($this->_db)->get('records_found'); - - // Rows found need to match the rows searched - return (int) $count; - } - - /** - * Adds a new relationship to between this model and another. - * - * // Add the login role using a model instance - * $model->add('roles', ORM::factory('role', array('name' => 'login'))); - * // Add the login role if you know the roles.id is 5 - * $model->add('roles', 5); - * // Add multiple roles (for example, from checkboxes on a form) - * $model->add('roles', array(1, 2, 3, 4)); - * - * @param string $alias Alias of the has_many "through" relationship - * @param mixed $far_keys Related model, primary key, or an array of primary keys - * @return ORM - */ - public function add($alias, $far_keys) - { - $far_keys = ($far_keys instanceof ORM) ? $far_keys->pk() : $far_keys; - - $columns = array($this->_has_many[$alias]['foreign_key'], $this->_has_many[$alias]['far_key']); - $foreign_key = $this->pk(); - - $query = DB::insert($this->_has_many[$alias]['through'], $columns); - - foreach ( (array) $far_keys as $key) - { - $query->values(array($foreign_key, $key)); - } - - $query->execute($this->_db); - - return $this; - } - - /** - * Removes a relationship between this model and another. - * - * // Remove a role using a model instance - * $model->remove('roles', ORM::factory('role', array('name' => 'login'))); - * // Remove the role knowing the primary key - * $model->remove('roles', 5); - * // Remove multiple roles (for example, from checkboxes on a form) - * $model->remove('roles', array(1, 2, 3, 4)); - * // Remove all related roles - * $model->remove('roles'); - * - * @param string $alias Alias of the has_many "through" relationship - * @param mixed $far_keys Related model, primary key, or an array of primary keys - * @return ORM - */ - public function remove($alias, $far_keys = NULL) - { - $far_keys = ($far_keys instanceof ORM) ? $far_keys->pk() : $far_keys; - - $query = DB::delete($this->_has_many[$alias]['through']) - ->where($this->_has_many[$alias]['foreign_key'], '=', $this->pk()); - - if ($far_keys !== NULL) - { - // Remove all the relationships in the array - $query->where($this->_has_many[$alias]['far_key'], 'IN', (array) $far_keys); - } - - $query->execute($this->_db); - - return $this; - } - - /** - * Count the number of records in the table. - * - * @return integer - */ - public function count_all() - { - $selects = array(); - - foreach ($this->_db_pending as $key => $method) - { - if ($method['name'] == 'select') - { - // Ignore any selected columns for now - $selects[] = $method; - unset($this->_db_pending[$key]); - } - } - - if ( ! empty($this->_load_with)) - { - foreach ($this->_load_with as $alias) - { - // Bind relationship - $this->with($alias); - } - } - - $this->_build(Database::SELECT); - - $records = $this->_db_builder->from(array($this->_table_name, $this->_object_name)) - ->select(array(DB::expr('COUNT(*)'), 'records_found')) - ->execute($this->_db) - ->get('records_found'); - - // Add back in selected columns - $this->_db_pending += $selects; - - $this->reset(); - - // Return the total number of records in a table - return $records; - } - - /** - * Proxy method to Database list_columns. - * - * @return array - */ - public function list_columns() - { - // Proxy to database - return $this->_db->list_columns($this->_table_name); - } - - /** - * Returns an ORM model for the given one-one related alias - * - * @param string $alias Alias name - * @return ORM - */ - protected function _related($alias) - { - if (isset($this->_related[$alias])) - { - return $this->_related[$alias]; - } - elseif (isset($this->_has_one[$alias])) - { - return $this->_related[$alias] = ORM::factory($this->_has_one[$alias]['model']); - } - elseif (isset($this->_belongs_to[$alias])) - { - return $this->_related[$alias] = ORM::factory($this->_belongs_to[$alias]['model']); - } - else - { - return FALSE; - } - } - - /** - * Returns the value of the primary key - * - * @return mixed Primary key - */ - public function pk() - { - return $this->_primary_key_value; - } - - /** - * Returns last executed query - * - * @return string - */ - public function last_query() - { - return $this->_db->last_query; - } - - /** - * Clears query builder. Passing FALSE is useful to keep the existing - * query conditions for another query. - * - * @param bool $next Pass FALSE to avoid resetting on the next call - * @return ORM - */ - public function reset($next = TRUE) - { - if ($next AND $this->_db_reset) - { - $this->_db_pending = array(); - $this->_db_applied = array(); - $this->_db_builder = NULL; - $this->_with_applied = array(); - } - - // Reset on the next call? - $this->_db_reset = $next; - - return $this; - } - - protected function _serialize_value($value) - { - return json_encode($value); - } - - protected function _unserialize_value($value) - { - return json_decode($value, TRUE); - } - - public function object_name() - { - return $this->_object_name; - } - - public function object_plural() - { - return $this->_object_plural; - } - - public function loaded() - { - return $this->_loaded; - } - - public function saved() - { - return $this->_saved; - } - - public function primary_key() - { - return $this->_primary_key; - } - - public function table_name() - { - return $this->_table_name; - } - - public function table_columns() - { - return $this->_table_columns; - } - - public function has_one() - { - return $this->_has_one; - } - - public function belongs_to() - { - return $this->_belongs_to; - } - - public function has_many() - { - return $this->_has_many; - } - - public function load_with() - { - return $this->_load_with; - } - - public function original_values() - { - return $this->_original_values; - } - - public function created_column() - { - return $this->_created_column; - } - - public function updated_column() - { - return $this->_updated_column; - } - - public function validation() - { - if ( ! isset($this->_validation)) - { - // Initialize the validation object - $this->_validation(); - } - - return $this->_validation; - } - - public function object() - { - return $this->_object; - } - - public function errors_filename() - { - return $this->_errors_filename; - } - - /** - * Alias of and_where() - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function where($column, $op, $value) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'where', - 'args' => array($column, $op, $value), - ); - - return $this; - } - - /** - * Creates a new "AND WHERE" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function and_where($column, $op, $value) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_where', - 'args' => array($column, $op, $value), - ); - - return $this; - } - - /** - * Creates a new "OR WHERE" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function or_where($column, $op, $value) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_where', - 'args' => array($column, $op, $value), - ); - - return $this; - } - - /** - * Alias of and_where_open() - * - * @return $this - */ - public function where_open() - { - return $this->and_where_open(); - } - - /** - * Opens a new "AND WHERE (...)" grouping. - * - * @return $this - */ - public function and_where_open() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_where_open', - 'args' => array(), - ); - - return $this; - } - - /** - * Opens a new "OR WHERE (...)" grouping. - * - * @return $this - */ - public function or_where_open() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_where_open', - 'args' => array(), - ); - - return $this; - } - - /** - * Closes an open "AND WHERE (...)" grouping. - * - * @return $this - */ - public function where_close() - { - return $this->and_where_close(); - } - - /** - * Closes an open "AND WHERE (...)" grouping. - * - * @return $this - */ - public function and_where_close() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_where_close', - 'args' => array(), - ); - - return $this; - } - - /** - * Closes an open "OR WHERE (...)" grouping. - * - * @return $this - */ - public function or_where_close() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_where_close', - 'args' => array(), - ); - - return $this; - } - - /** - * Applies sorting with "ORDER BY ..." - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $direction direction of sorting - * @return $this - */ - public function order_by($column, $direction = NULL) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'order_by', - 'args' => array($column, $direction), - ); - - return $this; - } - - /** - * Return up to "LIMIT ..." results - * - * @param integer $number maximum results to return - * @return $this - */ - public function limit($number) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'limit', - 'args' => array($number), - ); - - return $this; - } - - /** - * Enables or disables selecting only unique columns using "SELECT DISTINCT" - * - * @param boolean $value enable or disable distinct columns - * @return $this - */ - public function distinct($value) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'distinct', - 'args' => array($value), - ); - - return $this; - } - - /** - * Choose the columns to select from. - * - * @param mixed $columns column name or array($column, $alias) or object - * @param ... - * @return $this - */ - public function select($columns = NULL) - { - $columns = func_get_args(); - - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'select', - 'args' => $columns, - ); - - return $this; - } - - /** - * Choose the tables to select "FROM ..." - * - * @param mixed $tables table name or array($table, $alias) or object - * @param ... - * @return $this - */ - public function from($tables) - { - $tables = func_get_args(); - - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'from', - 'args' => $tables, - ); - - return $this; - } - - /** - * Adds addition tables to "JOIN ...". - * - * @param mixed $table column name or array($column, $alias) or object - * @param string $type join type (LEFT, RIGHT, INNER, etc) - * @return $this - */ - public function join($table, $type = NULL) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'join', - 'args' => array($table, $type), - ); - - return $this; - } - - /** - * Adds "ON ..." conditions for the last created JOIN statement. - * - * @param mixed $c1 column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $c2 column name or array($column, $alias) or object - * @return $this - */ - public function on($c1, $op, $c2) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'on', - 'args' => array($c1, $op, $c2), - ); - - return $this; - } - - /** - * Creates a "GROUP BY ..." filter. - * - * @param mixed $columns column name or array($column, $alias) or object - * @param ... - * @return $this - */ - public function group_by($columns) - { - $columns = func_get_args(); - - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'group_by', - 'args' => $columns, - ); - - return $this; - } - - /** - * Alias of and_having() - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function having($column, $op, $value = NULL) - { - return $this->and_having($column, $op, $value); - } - - /** - * Creates a new "AND HAVING" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function and_having($column, $op, $value = NULL) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_having', - 'args' => array($column, $op, $value), - ); - - return $this; - } - - /** - * Creates a new "OR HAVING" condition for the query. - * - * @param mixed $column column name or array($column, $alias) or object - * @param string $op logic operator - * @param mixed $value column value - * @return $this - */ - public function or_having($column, $op, $value = NULL) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_having', - 'args' => array($column, $op, $value), - ); - - return $this; - } - - /** - * Alias of and_having_open() - * - * @return $this - */ - public function having_open() - { - return $this->and_having_open(); - } - - /** - * Opens a new "AND HAVING (...)" grouping. - * - * @return $this - */ - public function and_having_open() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_having_open', - 'args' => array(), - ); - - return $this; - } - - /** - * Opens a new "OR HAVING (...)" grouping. - * - * @return $this - */ - public function or_having_open() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_having_open', - 'args' => array(), - ); - - return $this; - } - - /** - * Closes an open "AND HAVING (...)" grouping. - * - * @return $this - */ - public function having_close() - { - return $this->and_having_close(); - } - - /** - * Closes an open "AND HAVING (...)" grouping. - * - * @return $this - */ - public function and_having_close() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'and_having_close', - 'args' => array(), - ); - - return $this; - } - - /** - * Closes an open "OR HAVING (...)" grouping. - * - * @return $this - */ - public function or_having_close() - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'or_having_close', - 'args' => array(), - ); - - return $this; - } - - /** - * Start returning results after "OFFSET ..." - * - * @param integer $number starting result number - * @return $this - */ - public function offset($number) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'offset', - 'args' => array($number), - ); - - return $this; - } - - /** - * Enables the query to be cached for a specified amount of time. - * - * @param integer $lifetime number of seconds to cache - * @return $this - * @uses Kohana::$cache_life - */ - public function cached($lifetime = NULL) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'cached', - 'args' => array($lifetime), - ); - - return $this; - } - - /** - * Set the value of a parameter in the query. - * - * @param string $param parameter key to replace - * @param mixed $value value to use - * @return $this - */ - public function param($param, $value) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'param', - 'args' => array($param, $value), - ); - - return $this; - } - - /** - * Adds "USING ..." conditions for the last created JOIN statement. - * - * @param string $columns column name - * @return $this - */ - public function using($columns) - { - // Add pending database call which is executed after query type is determined - $this->_db_pending[] = array( - 'name' => 'using', - 'args' => array($columns), - ); - - return $this; - } - - /** - * Checks whether a column value is unique. - * Excludes itself if loaded. - * - * @param string $field the field to check for uniqueness - * @param mixed $value the value to check for uniqueness - * @return bool whteher the value is unique - */ - public function unique($field, $value) - { - $model = ORM::factory($this->object_name()) - ->where($field, '=', $value) - ->find(); - - if ($this->loaded()) - { - return ( ! ($model->loaded() AND $model->pk() != $this->pk())); - } - - return ( ! $model->loaded()); - } -} // End ORM diff --git a/includes/kohana/modules/orm/classes/Kohana/ORM/Validation/Exception.php b/includes/kohana/modules/orm/classes/Kohana/ORM/Validation/Exception.php deleted file mode 100644 index d88fcd1f..00000000 --- a/includes/kohana/modules/orm/classes/Kohana/ORM/Validation/Exception.php +++ /dev/null @@ -1,198 +0,0 @@ -_alias = $alias; - $this->_objects['_object'] = $object; - $this->_objects['_has_many'] = FALSE; - - parent::__construct($message, $values, $code, $previous); - } - - /** - * Adds a Validation object to this exception - * - * // The following will add a validation object for a profile model - * // inside the exception for a user model. - * $e->add_object('profile', $validation); - * // The errors array will now look something like this - * // array - * // ( - * // 'username' => 'This field is required', - * // 'profile' => array - * // ( - * // 'first_name' => 'This field is required', - * // ), - * // ); - * - * @param string $alias The relationship alias from the model - * @param Validation $object The Validation object to merge - * @param mixed $has_many The array key to use if this exception can be merged multiple times - * @return ORM_Validation_Exception - */ - public function add_object($alias, Validation $object, $has_many = FALSE) - { - // We will need this when generating errors - $this->_objects[$alias]['_has_many'] = ($has_many !== FALSE); - - if ($has_many === TRUE) - { - // This is most likely a has_many relationship - $this->_objects[$alias][]['_object'] = $object; - } - elseif ($has_many) - { - // This is most likely a has_many relationship - $this->_objects[$alias][$has_many]['_object'] = $object; - } - else - { - $this->_objects[$alias]['_object'] = $object; - } - - return $this; - } - - /** - * Merges an ORM_Validation_Exception object into the current exception - * Useful when you want to combine errors into one array - * - * @param ORM_Validation_Exception $object The exception to merge - * @param mixed $has_many The array key to use if this exception can be merged multiple times - * @return ORM_Validation_Exception - */ - public function merge(ORM_Validation_Exception $object, $has_many = FALSE) - { - $alias = $object->alias(); - - // We will need this when generating errors - $this->_objects[$alias]['_has_many'] = ($has_many !== FALSE); - - if ($has_many === TRUE) - { - // This is most likely a has_many relationship - $this->_objects[$alias][] = $object->objects(); - } - elseif ($has_many) - { - // This is most likely a has_many relationship - $this->_objects[$alias][$has_many] = $object->objects(); - } - else - { - $this->_objects[$alias] = $object->objects(); - } - - return $this; - } - - /** - * Returns a merged array of the errors from all the Validation objects in this exception - * - * // Will load Model_User errors from messages/orm-validation/user.php - * $e->errors('orm-validation'); - * - * @param string $directory Directory to load error messages from - * @param mixed $translate Translate the message - * @return array - * @see generate_errors() - */ - public function errors($directory = NULL, $translate = TRUE) - { - return $this->generate_errors($this->_alias, $this->_objects, $directory, $translate); - } - - /** - * Recursive method to fetch all the errors in this exception - * - * @param string $alias Alias to use for messages file - * @param array $array Array of Validation objects to get errors from - * @param string $directory Directory to load error messages from - * @param mixed $translate Translate the message - * @return array - */ - protected function generate_errors($alias, array $array, $directory, $translate) - { - $errors = array(); - - foreach ($array as $key => $object) - { - if (is_array($object)) - { - $errors[$key] = ($key === '_external') - // Search for errors in $alias/_external.php - ? $this->generate_errors($alias.'/'.$key, $object, $directory, $translate) - // Regular models get their own file not nested within $alias - : $this->generate_errors($key, $object, $directory, $translate); - } - elseif ($object instanceof Validation) - { - if ($directory === NULL) - { - // Return the raw errors - $file = NULL; - } - else - { - $file = trim($directory.'/'.$alias, '/'); - } - - // Merge in this array of errors - $errors += $object->errors($file, $translate); - } - } - - return $errors; - } - - /** - * Returns the protected _objects property from this exception - * - * @return array - */ - public function objects() - { - return $this->_objects; - } - - /** - * Returns the protected _alias property from this exception - * - * @return string - */ - public function alias() - { - return $this->_alias; - } -} // End Kohana_ORM_Validation_Exception diff --git a/includes/kohana/modules/orm/classes/Model/Auth/Role.php b/includes/kohana/modules/orm/classes/Model/Auth/Role.php deleted file mode 100644 index 5a12764f..00000000 --- a/includes/kohana/modules/orm/classes/Model/Auth/Role.php +++ /dev/null @@ -1,31 +0,0 @@ - array('model' => 'User','through' => 'roles_users'), - ); - - public function rules() - { - return array( - 'name' => array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 32)), - ), - 'description' => array( - array('max_length', array(':value', 255)), - ) - ); - } - -} // End Auth Role Model diff --git a/includes/kohana/modules/orm/classes/Model/Auth/User.php b/includes/kohana/modules/orm/classes/Model/Auth/User.php deleted file mode 100644 index d86fae41..00000000 --- a/includes/kohana/modules/orm/classes/Model/Auth/User.php +++ /dev/null @@ -1,204 +0,0 @@ - array('model' => 'User_Token'), - 'roles' => array('model' => 'Role', 'through' => 'roles_users'), - ); - - /** - * Rules for the user model. Because the password is _always_ a hash - * when it's set,you need to run an additional not_empty rule in your controller - * to make sure you didn't hash an empty string. The password rules - * should be enforced outside the model or with a model helper method. - * - * @return array Rules - */ - public function rules() - { - return array( - 'username' => array( - array('not_empty'), - array('max_length', array(':value', 32)), - array(array($this, 'unique'), array('username', ':value')), - ), - 'password' => array( - array('not_empty'), - ), - 'email' => array( - array('not_empty'), - array('email'), - array(array($this, 'unique'), array('email', ':value')), - ), - ); - } - - /** - * Filters to run when data is set in this model. The password filter - * automatically hashes the password when it's set in the model. - * - * @return array Filters - */ - public function filters() - { - return array( - 'password' => array( - array(array(Auth::instance(), 'hash')) - ) - ); - } - - /** - * Labels for fields in this model - * - * @return array Labels - */ - public function labels() - { - return array( - 'username' => 'username', - 'email' => 'email address', - 'password' => 'password', - ); - } - - /** - * Complete the login for a user by incrementing the logins and saving login timestamp - * - * @return void - */ - public function complete_login() - { - if ($this->_loaded) - { - // Update the number of logins - $this->logins = new Database_Expression('logins + 1'); - - // Set the last login date - $this->last_login = time(); - - // Save the user - $this->update(); - } - } - - /** - * Tests if a unique key value exists in the database. - * - * @param mixed the value to test - * @param string field name - * @return boolean - */ - public function unique_key_exists($value, $field = NULL) - { - if ($field === NULL) - { - // Automatically determine field by looking at the value - $field = $this->unique_key($value); - } - - return (bool) DB::select(array(DB::expr('COUNT(*)'), 'total_count')) - ->from($this->_table_name) - ->where($field, '=', $value) - ->where($this->_primary_key, '!=', $this->pk()) - ->execute($this->_db) - ->get('total_count'); - } - - /** - * Allows a model use both email and username as unique identifiers for login - * - * @param string unique value - * @return string field name - */ - public function unique_key($value) - { - return Valid::email($value) ? 'email' : 'username'; - } - - /** - * Password validation for plain passwords. - * - * @param array $values - * @return Validation - */ - public static function get_password_validation($values) - { - return Validation::factory($values) - ->rule('password', 'min_length', array(':value', 8)) - ->rule('password_confirm', 'matches', array(':validation', ':field', 'password')); - } - - /** - * Create a new user - * - * Example usage: - * ~~~ - * $user = ORM::factory('User')->create_user($_POST, array( - * 'username', - * 'password', - * 'email', - * ); - * ~~~ - * - * @param array $values - * @param array $expected - * @throws ORM_Validation_Exception - */ - public function create_user($values, $expected) - { - // Validation for passwords - $extra_validation = Model_User::get_password_validation($values) - ->rule('password', 'not_empty'); - - return $this->values($values, $expected)->create($extra_validation); - } - - /** - * Update an existing user - * - * [!!] We make the assumption that if a user does not supply a password, that they do not wish to update their password. - * - * Example usage: - * ~~~ - * $user = ORM::factory('User') - * ->where('username', '=', 'kiall') - * ->find() - * ->update_user($_POST, array( - * 'username', - * 'password', - * 'email', - * ); - * ~~~ - * - * @param array $values - * @param array $expected - * @throws ORM_Validation_Exception - */ - public function update_user($values, $expected = NULL) - { - if (empty($values['password'])) - { - unset($values['password'], $values['password_confirm']); - } - - // Validation for passwords - $extra_validation = Model_User::get_password_validation($values); - - return $this->values($values, $expected)->update($extra_validation); - } - -} // End Auth User Model diff --git a/includes/kohana/modules/orm/classes/Model/Auth/User/Token.php b/includes/kohana/modules/orm/classes/Model/Auth/User/Token.php deleted file mode 100644 index 3c69ead7..00000000 --- a/includes/kohana/modules/orm/classes/Model/Auth/User/Token.php +++ /dev/null @@ -1,77 +0,0 @@ - array('model' => 'User'), - ); - - protected $_created_column = array( - 'column' => 'created', - 'format' => TRUE, - ); - - /** - * Handles garbage collection and deleting of expired objects. - * - * @return void - */ - public function __construct($id = NULL) - { - parent::__construct($id); - - if (mt_rand(1, 100) === 1) - { - // Do garbage collection - $this->delete_expired(); - } - - if ($this->expires < time() AND $this->_loaded) - { - // This object has expired - $this->delete(); - } - } - - /** - * Deletes all expired tokens. - * - * @return ORM - */ - public function delete_expired() - { - // Delete all expired tokens - DB::delete($this->_table_name) - ->where('expires', '<', time()) - ->execute($this->_db); - - return $this; - } - - public function create(Validation $validation = NULL) - { - $this->token = $this->create_token(); - - return parent::create($validation); - } - - protected function create_token() - { - do - { - $token = sha1(uniqid(Text::random('alnum', 32), TRUE)); - } - while (ORM::factory('User_Token', array('token' => $token))->loaded()); - - return $token; - } - -} // End Auth User Token Model diff --git a/includes/kohana/modules/orm/classes/Model/Role.php b/includes/kohana/modules/orm/classes/Model/Role.php deleted file mode 100644 index b1ead06d..00000000 --- a/includes/kohana/modules/orm/classes/Model/Role.php +++ /dev/null @@ -1,7 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'orm' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'ORM', - - // A short description of this module, shown on the index page - 'description' => 'Official ORM module, a modeling library for object relational mapping.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); diff --git a/includes/kohana/modules/orm/guide/orm/examples.md b/includes/kohana/modules/orm/guide/orm/examples.md deleted file mode 100644 index 5c21dd4f..00000000 --- a/includes/kohana/modules/orm/guide/orm/examples.md +++ /dev/null @@ -1,13 +0,0 @@ -# Examples - -- [Simple](examples/simple): Basic, one table model examples. -- [Validation](examples/validation): Full example of creating a user account and handling validation errors. - -## @TODO: - -The following is a sample list of examples that might be useful. Don't feel limited by this list, or consider these required. Items on the list can be combined, split up, removed or added to. All contribution are appreciated. - -- Examples of changing things like $_table_name, $_labels, with, etc. -- Example of a one to one relationship. -- Example of one to many -- Example of many to many. diff --git a/includes/kohana/modules/orm/guide/orm/examples/simple.md b/includes/kohana/modules/orm/guide/orm/examples/simple.md deleted file mode 100644 index b8abe928..00000000 --- a/includes/kohana/modules/orm/guide/orm/examples/simple.md +++ /dev/null @@ -1,119 +0,0 @@ -# Simple Examples - -This is a simple example of a single ORM model, that has no relationships, but uses validation on the fields. - -## SQL schema - - CREATE TABLE IF NOT EXISTS `members` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `username` varchar(32) NOT NULL, - `first_name` varchar(32) NOT NULL, - `last_name` varchar(32) NOT NULL, - `email` varchar(127) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; - -## Model - - array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 32)), - array('regex', array(':value', '/^[-\pL\pN_.]++$/uD')), - ), - 'first_name' => array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 32)), - array('regex', array(':value', '/^[-\pL\pN_.]++$/uD')), - ), - 'last_name' => array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 32)), - array('regex', array(':value', '/^[-\pL\pN_.]++$/uD')), - ), - 'email' => array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 127)), - array('email'), - ), - ); - } - } - -[!!] The array returned by `ORM::rules()` will be passed to a [Validation] object and tested when you call `ORM::save()`. - -[!!] Please notice that defining the primary key "id" in the model is not necessary. Also the table name in the database is plural and the model name is singular. - -## Controller - - where('first_name', '=', 'Peter')->find_all(); - - // Count records in the $members object - $members->count_all(); - - /** - * Example 2 - */ - - // Create an instance of a model - $member = ORM::factory('Member'); - - // Get a member with the user name "bongo" find() means - // we only want the first record matching the query. - $member->where('username', '=', 'bongo')->find(); - - /** - * Example 3 - */ - - // Create an instance of a model - $member = ORM::factory('Member'); - - // Do an INSERT query - $member->username = 'bongo'; - $member->first_name = 'Peter'; - $member->last_name = 'Smith'; - $member->save(); - - /** - * Example 4 - */ - - // Create an instance of a model where the - // table field "id" is "1" - $member = ORM::factory('Member', 1); - - // Do an UPDATE query - $member->username = 'bongo'; - $member->first_name = 'Peter'; - $member->last_name = 'Smith'; - $member->save(); - } - } - -[!!] $member will be a PHP object where you can access the values from the query e.g. echo $member->first_name diff --git a/includes/kohana/modules/orm/guide/orm/examples/validation.md b/includes/kohana/modules/orm/guide/orm/examples/validation.md deleted file mode 100644 index 0510a453..00000000 --- a/includes/kohana/modules/orm/guide/orm/examples/validation.md +++ /dev/null @@ -1,137 +0,0 @@ -# Validation Example - -This example will create user accounts and demonstrate how to handle model and controller validation. We will create a form, process it, and display any errors to the user. We will be assuming that the Model_User class contains a method called `hash_password` that is used to turn the plaintext passwords into some kind of hash. The implementation of the hashing methods are beyond the scope of this example and should be provided with the Authentication library you decide to use. - -## SQL schema - - CREATE TABLE IF NOT EXISTS `members` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `username` varchar(32) NOT NULL, - `password` varchar(100) NOT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; - -## Model - - array( - array('not_empty'), - array('min_length', array(':value', 4)), - array('max_length', array(':value', 32)), - array(array($this, 'username_available')), - ), - 'password' => array( - array('not_empty'), - ), - ); - } - - public function filters() - { - return array( - 'password' => array( - array(array($this, 'hash_password')), - ), - ); - } - - public function username_available($username) - { - // There are simpler ways to do this, but I will use ORM for the sake of the example - return ORM::factory('Member', array('username' => $username))->loaded(); - } - - public function hash_password($password) - { - // Do something to hash the password - } - } - -## HTML Form - -Please forgive my slightly ugly form. I am trying not to use any modules or unrelated magic. :) - -
- - -
diff --git a/includes/kohana/modules/pagination/views/pagination/floating.php b/includes/kohana/modules/pagination/views/pagination/floating.php deleted file mode 100644 index 52e3fc2b..00000000 --- a/includes/kohana/modules/pagination/views/pagination/floating.php +++ /dev/null @@ -1,94 +0,0 @@ -total_pages()); - -// Ending group of pages: $n7...$n8 -$n7 = max(1, $page->total_pages() - $count_out + 1); -$n8 = $page->total_pages(); - -// Middle group of pages: $n4...$n5 -$n4 = max($n2 + 1, $page->current_page() - $count_in); -$n5 = min($n7 - 1, $page->current_page() + $count_in); -$use_middle = ($n5 >= $n4); - -// Point $n3 between $n2 and $n4 -$n3 = (int) (($n2 + $n4) / 2); -$use_n3 = ($use_middle && (($n4 - $n2) > 1)); - -// Point $n6 between $n5 and $n7 -$n6 = (int) (($n5 + $n7) / 2); -$use_n6 = ($use_middle && (($n7 - $n5) > 1)); - -// Links to display as array(page => content) -$links = array(); - -// Generate links data in accordance with calculated numbers -for ($i = $n1; $i <= $n2; $i++) -{ - $links[$i] = $i; -} -if ($use_n3) -{ - $links[$n3] = '…'; -} -for ($i = $n4; $i <= $n5; $i++) -{ - $links[$i] = $i; -} -if ($use_n6) -{ - $links[$n6] = '…'; -} -for ($i = $n7; $i <= $n8; $i++) -{ - $links[$i] = $i; -} - -?> -

- - first_page() !== FALSE): ?> - - - - - - previous_page() !== FALSE): ?> - - - - - - $content): ?> - - current_page()): ?> - - - - - - - - next_page() !== FALSE): ?> - - - - - - last_page() !== FALSE): ?> - - - - - -

diff --git a/includes/kohana/modules/simplehtmldom/classes/simple_html_dom.php b/includes/kohana/modules/simplehtmldom/classes/simple_html_dom.php deleted file mode 100644 index fbe43df5..00000000 --- a/includes/kohana/modules/simplehtmldom/classes/simple_html_dom.php +++ /dev/null @@ -1,975 +0,0 @@ - -Acknowledge: Jose Solorzano (https://sourceforge.net/projects/php-html/) -Contributions by: - Yousuke Kumakura (Attribute filters) - Vadim Voituk (Negative indexes supports of "find" method) - Antcs (Constructor with automatically load contents either text or file/url) -Licensed under The MIT License -Redistributions of files must retain the above copyright notice. -*******************************************************************************/ - -define('HDOM_TYPE_ELEMENT', 1); -define('HDOM_TYPE_COMMENT', 2); -define('HDOM_TYPE_TEXT', 3); -define('HDOM_TYPE_ENDTAG', 4); -define('HDOM_TYPE_ROOT', 5); -define('HDOM_TYPE_UNKNOWN', 6); -define('HDOM_QUOTE_DOUBLE', 0); -define('HDOM_QUOTE_SINGLE', 1); -define('HDOM_QUOTE_NO', 3); -define('HDOM_INFO_BEGIN', 0); -define('HDOM_INFO_END', 1); -define('HDOM_INFO_QUOTE', 2); -define('HDOM_INFO_SPACE', 3); -define('HDOM_INFO_TEXT', 4); -define('HDOM_INFO_INNER', 5); -define('HDOM_INFO_OUTER', 6); -define('HDOM_INFO_ENDSPACE',7); - -// helper functions -// ----------------------------------------------------------------------------- -// get html dom form file -function file_get_html() { - $dom = new simple_html_dom; - $args = func_get_args(); - $dom->load(call_user_func_array('file_get_contents', $args), true); - return $dom; -} - -// get html dom form string -function str_get_html($str, $lowercase=true) { - $dom = new simple_html_dom; - $dom->load($str, $lowercase); - return $dom; -} - -// dump html dom tree -function dump_html_tree($node, $show_attr=true, $deep=0) { - $lead = str_repeat(' ', $deep); - echo $lead.$node->tag; - if ($show_attr && count($node->attr)>0) { - echo '('; - foreach($node->attr as $k=>$v) - echo "[$k]=>\"".$node->$k.'", '; - echo ')'; - } - echo "\n"; - - foreach($node->nodes as $c) - dump_html_tree($c, $show_attr, $deep+1); -} - -// get dom form file (deprecated) -function file_get_dom() { - $dom = new simple_html_dom; - $args = func_get_args(); - $dom->load(call_user_func_array('file_get_contents', $args), true); - return $dom; -} - -// get dom form string (deprecated) -function str_get_dom($str, $lowercase=true) { - $dom = new simple_html_dom; - $dom->load($str, $lowercase); - return $dom; -} - -// simple html dom node -// ----------------------------------------------------------------------------- -class simple_html_dom_node { - public $nodetype = HDOM_TYPE_TEXT; - public $tag = 'text'; - public $attr = array(); - public $children = array(); - public $nodes = array(); - public $parent = null; - public $_ = array(); - private $dom = null; - - function __construct($dom) { - $this->dom = $dom; - $dom->nodes[] = $this; - } - - function __destruct() { - $this->clear(); - } - - function __toString() { - return $this->outertext(); - } - - // clean up memory due to php5 circular references memory leak... - function clear() { - $this->dom = null; - $this->nodes = null; - $this->parent = null; - $this->children = null; - } - - // dump node's tree - function dump($show_attr=true) { - dump_html_tree($this, $show_attr); - } - - // returns the parent of node - function parent() { - return $this->parent; - } - - // returns children of node - function children($idx=-1) { - if ($idx===-1) return $this->children; - if (isset($this->children[$idx])) return $this->children[$idx]; - return null; - } - - // returns the first child of node - function first_child() { - if (count($this->children)>0) return $this->children[0]; - return null; - } - - // returns the last child of node - function last_child() { - if (($count=count($this->children))>0) return $this->children[$count-1]; - return null; - } - - // returns the next sibling of node - function next_sibling() { - if ($this->parent===null) return null; - $idx = 0; - $count = count($this->parent->children); - while ($idx<$count && $this!==$this->parent->children[$idx]) - ++$idx; - if (++$idx>=$count) return null; - return $this->parent->children[$idx]; - } - - // returns the previous sibling of node - function prev_sibling() { - if ($this->parent===null) return null; - $idx = 0; - $count = count($this->parent->children); - while ($idx<$count && $this!==$this->parent->children[$idx]) - ++$idx; - if (--$idx<0) return null; - return $this->parent->children[$idx]; - } - - // get dom node's inner html - function innertext() { - if (isset($this->_[HDOM_INFO_INNER])) return $this->_[HDOM_INFO_INNER]; - if (isset($this->_[HDOM_INFO_TEXT])) return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); - - $ret = ''; - foreach($this->nodes as $n) - $ret .= $n->outertext(); - return $ret; - } - - // get dom node's outer text (with tag) - function outertext() { - if ($this->tag==='root') return $this->innertext(); - - // trigger callback - if ($this->dom->callback!==null) - call_user_func_array($this->dom->callback, array($this)); - - if (isset($this->_[HDOM_INFO_OUTER])) return $this->_[HDOM_INFO_OUTER]; - if (isset($this->_[HDOM_INFO_TEXT])) return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); - - // render begin tag - $ret = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup(); - - // render inner text - if (isset($this->_[HDOM_INFO_INNER])) - $ret .= $this->_[HDOM_INFO_INNER]; - else { - foreach($this->nodes as $n) - $ret .= $n->outertext(); - } - - // render end tag - if(isset($this->_[HDOM_INFO_END]) && $this->_[HDOM_INFO_END]!=0) - $ret .= 'tag.'>'; - return $ret; - } - - // get dom node's plain text - function text() { - if (isset($this->_[HDOM_INFO_INNER])) return $this->_[HDOM_INFO_INNER]; - switch ($this->nodetype) { - case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); - case HDOM_TYPE_COMMENT: return ''; - case HDOM_TYPE_UNKNOWN: return ''; - } - if (strcasecmp($this->tag, 'script')===0) return ''; - if (strcasecmp($this->tag, 'style')===0) return ''; - - $ret = ''; - foreach($this->nodes as $n) - $ret .= $n->text(); - return $ret; - } - - function xmltext() { - $ret = $this->innertext(); - $ret = str_ireplace('', '', $ret); - return $ret; - } - - // build node's text with tag - function makeup() { - // text, comment, unknown - if (isset($this->_[HDOM_INFO_TEXT])) return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); - - $ret = '<'.$this->tag; - $i = -1; - - foreach($this->attr as $key=>$val) { - ++$i; - - // skip removed attribute - if ($val===null || $val===false) - continue; - - $ret .= $this->_[HDOM_INFO_SPACE][$i][0]; - //no value attr: nowrap, checked selected... - if ($val===true) - $ret .= $key; - else { - switch($this->_[HDOM_INFO_QUOTE][$i]) { - case HDOM_QUOTE_DOUBLE: $quote = '"'; break; - case HDOM_QUOTE_SINGLE: $quote = '\''; break; - default: $quote = ''; - } - $ret .= $key.$this->_[HDOM_INFO_SPACE][$i][1].'='.$this->_[HDOM_INFO_SPACE][$i][2].$quote.$val.$quote; - } - } - $ret = $this->dom->restore_noise($ret); - return $ret . $this->_[HDOM_INFO_ENDSPACE] . '>'; - } - - // find elements by css selector - function find($selector, $idx=null) { - $selectors = $this->parse_selector($selector); - if (($count=count($selectors))===0) return array(); - $found_keys = array(); - - // find each selector - for ($c=0; $c<$count; ++$c) { - if (($levle=count($selectors[0]))===0) return array(); - if (!isset($this->_[HDOM_INFO_BEGIN])) return array(); - - $head = array($this->_[HDOM_INFO_BEGIN]=>1); - - // handle descendant selectors, no recursive! - for ($l=0; $l<$levle; ++$l) { - $ret = array(); - foreach($head as $k=>$v) { - $n = ($k===-1) ? $this->dom->root : $this->dom->nodes[$k]; - $n->seek($selectors[$c][$l], $ret); - } - $head = $ret; - } - - foreach($head as $k=>$v) { - if (!isset($found_keys[$k])) - $found_keys[$k] = 1; - } - } - - // sort keys - ksort($found_keys); - - $found = array(); - foreach($found_keys as $k=>$v) - $found[] = $this->dom->nodes[$k]; - - // return nth-element or array - if (is_null($idx)) return $found; - else if ($idx<0) $idx = count($found) + $idx; - return (isset($found[$idx])) ? $found[$idx] : null; - } - - // seek for given conditions - protected function seek($selector, &$ret) { - list($tag, $key, $val, $exp, $no_key) = $selector; - - // xpath index - if ($tag && $key && is_numeric($key)) { - $count = 0; - foreach ($this->children as $c) { - if ($tag==='*' || $tag===$c->tag) { - if (++$count==$key) { - $ret[$c->_[HDOM_INFO_BEGIN]] = 1; - return; - } - } - } - return; - } - - $end = (!empty($this->_[HDOM_INFO_END])) ? $this->_[HDOM_INFO_END] : 0; - if ($end==0) { - $parent = $this->parent; - while (!isset($parent->_[HDOM_INFO_END]) && $parent!==null) { - $end -= 1; - $parent = $parent->parent; - } - $end += $parent->_[HDOM_INFO_END]; - } - - for($i=$this->_[HDOM_INFO_BEGIN]+1; $i<$end; ++$i) { - $node = $this->dom->nodes[$i]; - $pass = true; - - if ($tag==='*' && !$key) { - if (in_array($node, $this->children, true)) - $ret[$i] = 1; - continue; - } - - // compare tag - if ($tag && $tag!=$node->tag && $tag!=='*') {$pass=false;} - // compare key - if ($pass && $key) { - if ($no_key) { - if (isset($node->attr[$key])) $pass=false; - } - else if (!isset($node->attr[$key])) $pass=false; - } - // compare value - if ($pass && $key && $val && $val!=='*') { - $check = $this->match($exp, $val, $node->attr[$key]); - // handle multiple class - if (!$check && strcasecmp($key, 'class')===0) { - foreach(explode(' ',$node->attr[$key]) as $k) { - $check = $this->match($exp, $val, $k); - if ($check) break; - } - } - if (!$check) $pass = false; - } - if ($pass) $ret[$i] = 1; - unset($node); - } - } - - protected function match($exp, $pattern, $value) { - switch ($exp) { - case '=': - return ($value===$pattern); - case '!=': - return ($value!==$pattern); - case '^=': - return preg_match("/^".preg_quote($pattern,'/')."/", $value); - case '$=': - return preg_match("/".preg_quote($pattern,'/')."$/", $value); - case '*=': - if ($pattern[0]=='/') - return preg_match($pattern, $value); - return preg_match("/".$pattern."/i", $value); - } - return false; - } - - protected function parse_selector($selector_string) { - // pattern of CSS selectors, modified from mootools - $pattern = "/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is"; - preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER); - $selectors = array(); - $result = array(); - //print_r($matches); - - foreach ($matches as $m) { - $m[0] = trim($m[0]); - if ($m[0]==='' || $m[0]==='/' || $m[0]==='//') continue; - // for borwser grnreated xpath - if ($m[1]==='tbody') continue; - - list($tag, $key, $val, $exp, $no_key) = array($m[1], null, null, '=', false); - if(!empty($m[2])) {$key='id'; $val=$m[2];} - if(!empty($m[3])) {$key='class'; $val=$m[3];} - if(!empty($m[4])) {$key=$m[4];} - if(!empty($m[5])) {$exp=$m[5];} - if(!empty($m[6])) {$val=$m[6];} - - // convert to lowercase - if ($this->dom->lowercase) {$tag=strtolower($tag); $key=strtolower($key);} - //elements that do NOT have the specified attribute - if (isset($key[0]) && $key[0]==='!') {$key=substr($key, 1); $no_key=true;} - - $result[] = array($tag, $key, $val, $exp, $no_key); - if (trim($m[7])===',') { - $selectors[] = $result; - $result = array(); - } - } - if (count($result)>0) - $selectors[] = $result; - return $selectors; - } - - function __get($name) { - if (isset($this->attr[$name])) return $this->attr[$name]; - switch($name) { - case 'outertext': return $this->outertext(); - case 'innertext': return $this->innertext(); - case 'plaintext': return $this->text(); - case 'xmltext': return $this->xmltext(); - default: return array_key_exists($name, $this->attr); - } - } - - function __set($name, $value) { - switch($name) { - case 'outertext': return $this->_[HDOM_INFO_OUTER] = $value; - case 'innertext': - if (isset($this->_[HDOM_INFO_TEXT])) return $this->_[HDOM_INFO_TEXT] = $value; - return $this->_[HDOM_INFO_INNER] = $value; - } - if (!isset($this->attr[$name])) { - $this->_[HDOM_INFO_SPACE][] = array(' ', '', ''); - $this->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_DOUBLE; - } - $this->attr[$name] = $value; - } - - function __isset($name) { - switch($name) { - case 'outertext': return true; - case 'innertext': return true; - case 'plaintext': return true; - } - //no value attr: nowrap, checked selected... - return (array_key_exists($name, $this->attr)) ? true : isset($this->attr[$name]); - } - - function __unset($name) { - if (isset($this->attr[$name])) - unset($this->attr[$name]); - } - - // camel naming conventions - function getAllAttributes() {return $this->attr;} - function getAttribute($name) {return $this->__get($name);} - function setAttribute($name, $value) {$this->__set($name, $value);} - function hasAttribute($name) {return $this->__isset($name);} - function removeAttribute($name) {$this->__set($name, null);} - function getElementById($id) {return $this->find("#$id", 0);} - function getElementsById($id, $idx=null) {return $this->find("#$id", $idx);} - function getElementByTagName($name) {return $this->find($name, 0);} - function getElementsByTagName($name, $idx=null) {return $this->find($name, $idx);} - function parentNode() {return $this->parent();} - function childNodes($idx=-1) {return $this->children($idx);} - function firstChild() {return $this->first_child();} - function lastChild() {return $this->last_child();} - function nextSibling() {return $this->next_sibling();} - function previousSibling() {return $this->prev_sibling();} -} - -// simple html dom parser -// ----------------------------------------------------------------------------- -class simple_html_dom { - public $root = null; - public $nodes = array(); - public $callback = null; - public $lowercase = false; - protected $pos; - protected $doc; - protected $char; - protected $size; - protected $cursor; - protected $parent; - protected $noise = array(); - protected $token_blank = " \t\r\n"; - protected $token_equal = ' =/>'; - protected $token_slash = " />\r\n\t"; - protected $token_attr = ' >'; - // use isset instead of in_array, performance boost about 30%... - protected $self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1); - protected $block_tags = array('root'=>1, 'body'=>1, 'form'=>1, 'div'=>1, 'span'=>1, 'table'=>1); - protected $optional_closing_tags = array( - 'tr'=>array('tr'=>1, 'td'=>1, 'th'=>1), - 'th'=>array('th'=>1), - 'td'=>array('td'=>1), - 'li'=>array('li'=>1), - 'dt'=>array('dt'=>1, 'dd'=>1), - 'dd'=>array('dd'=>1, 'dt'=>1), - 'dl'=>array('dd'=>1, 'dt'=>1), - 'p'=>array('p'=>1), - 'nobr'=>array('nobr'=>1), - ); - - function __construct($str=null) { - if ($str) { - if (preg_match("/^http:\/\//i",$str) || is_file($str)) - $this->load_file($str); - else - $this->load($str); - } - } - - function __destruct() { - $this->clear(); - } - - // load html from string - function load($str, $lowercase=true) { - // prepare - $this->prepare($str, $lowercase); - // strip out comments - $this->remove_noise("''is"); - // strip out cdata - $this->remove_noise("''is", true); - // strip out - -
-

Kohana_View_Exception [ 0 ]: The requested view site could not be found

-
-

SYSPATH/classes/kohana/view.php [ 215 ]

-
210 	 */
-
-211 	public function set_filename($file)
-212 	{
-213 		if (($path = Kohana::find_file('views', $file)) === FALSE)
-214 		{
-215 			throw new Kohana_View_Exception('The requested view :file could not be found', array(
-216 				':file' => $file,
-
-217 			));
-218 		}
-219 
-220 		// Store the file path locally
-
    -
  1. -

    - - - SYSPATH/classes/kohana/view.php [ 115 ] - - » - Kohana_View->set_filename(arguments) -

    - - - -
  2. - -
  3. -

    - - SYSPATH/classes/kohana/view.php [ 26 ] - - » - Kohana_View->__construct(arguments) -

    - - - -
  4. -
  5. -

    - - - SYSPATH/classes/kohana/controller/template.php [ 32 ] - - » - Kohana_View::factory(arguments) -

    - - - -
  6. -
  7. -

    - - {PHP internal call} - - » - Kohana_Controller_Template->before() -

    - -
  8. -
  9. -

    - - SYSPATH/classes/kohana/request.php [ 840 ] - - » - ReflectionMethod->invoke(arguments) -

    - - - -
  10. -
  11. -

    - - APPPATH/bootstrap.php [ 76 ] - - - » - Kohana_Request->execute() -

    - -
  12. -
  13. -

    - - DOCROOT/index.php [ 106 ] - - » - require(arguments) -

    - - - -
  14. -
-
-

Environment

- -
diff --git a/includes/kohana/modules/userguide/views/userguide/index.php b/includes/kohana/modules/userguide/views/userguide/index.php deleted file mode 100644 index 5764fcba..00000000 --- a/includes/kohana/modules/userguide/views/userguide/index.php +++ /dev/null @@ -1,20 +0,0 @@ -

User Guide

- -

The following modules have userguide pages:

- - - - $options): ?> - -

- uri(array('module' => $url)), $options['name'], NULL, NULL, TRUE) ?> - - -

- - - - - -

I couldn't find any modules with userguide pages.

- - \ No newline at end of file diff --git a/includes/kohana/modules/userguide/views/userguide/menu.php b/includes/kohana/modules/userguide/views/userguide/menu.php deleted file mode 100644 index e6537c94..00000000 --- a/includes/kohana/modules/userguide/views/userguide/menu.php +++ /dev/null @@ -1,17 +0,0 @@ -

Modules

- - - -
    - $options): ?> - -
  • uri(array('module' => $url)), $options['name'], NULL, NULL, TRUE) ?>
  • - - -
- - - -

No modules.

- - \ No newline at end of file diff --git a/includes/kohana/modules/userguide/views/userguide/page-toc.php b/includes/kohana/modules/userguide/views/userguide/page-toc.php deleted file mode 100644 index 4eefcc23..00000000 --- a/includes/kohana/modules/userguide/views/userguide/page-toc.php +++ /dev/null @@ -1,10 +0,0 @@ - -
- - 1): ?> - - -
- -
- diff --git a/includes/kohana/modules/userguide/views/userguide/template.php b/includes/kohana/modules/userguide/views/userguide/template.php deleted file mode 100644 index d94efc4e..00000000 --- a/includes/kohana/modules/userguide/views/userguide/template.php +++ /dev/null @@ -1,110 +0,0 @@ - - - - - -<?php echo $title ?> | Kohana <?php echo 'User Guide'; ?> - - $media) echo HTML::style($style, array('media' => $media), NULL, TRUE), "\n" ?> - - - - - - - -
-
- -
- -
-
-
- -
-
-
-
-
    - $title): ?> - -
  • - -
  • - - -
-
-
-
- -
-
-
- - - -
- - - Documentation comments powered by Disqus - -
-
-
-
- - - - - - - - diff --git a/includes/kohana/modules/xml/LICENSE b/includes/kohana/modules/xml/LICENSE deleted file mode 100644 index 82b7457f..00000000 --- a/includes/kohana/modules/xml/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2010 Cédric de Saint Léger - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/includes/kohana/modules/xml/README.md b/includes/kohana/modules/xml/README.md deleted file mode 100644 index c4b5dcb2..00000000 --- a/includes/kohana/modules/xml/README.md +++ /dev/null @@ -1,31 +0,0 @@ -Kohana_XML is a XML modules to generate and read XML documents in Kohana. -It is build for KO3, but there are barely one or two lines that makes it KO3 specific, -so I guess it should work for KO2.x without much trouble. - -## Notable Features - -* **Extendible, configurable drivers** — You can use the XML class to write simple XML, -or use the Atom driver to generate Atom compliant XML, or write your own driver (extending XML -or another driver) to generate XML compliant to any specs you want. Driver support initial -configuration, which will be used when using native functions, and your own function. -Namespaces and prefix, value filters, default attributes, node name abstraction are all part -of driver configuration and are then used as such by native functions, so they are dealt with -on the fly. But you can also write your own function very easily in your drivers, and writing -an add_author($user_model) function in the Atom driver would take a second. - -* **Dealing with objects of the same class whatever function you use** – $xml→add_node(“testâ€); -generates another XML instance of the same driver you can add nodes to, import array or XML files -to, search in, modify, export, combine… The whole XML document becomes modular, easy to read and -to modify, and to run through with method chaining. Just play Lego with your XML. - -* **Magic get and get()** — allows to easily run through the document. For instance -$atom→author→name will return an atom document author’s name, this regardless of your driver -configuration. As another example of node name abstraction, if you’ve decided to abstract “pubDate†-with “updated†in your RSS2 driver configuration and “published†with “updated†in you Atom driver, -then $atom→updated will give you the same result as $rss→updated. - -* **Jelly-style driver configuration** — I liked the way Jelly initializes its models, so you can -configure yours just the same way. Driver configuration then goes into a static meta class, which -improves performance. - -* You can still use **DOM functions** if you wish and reintegrate in Kohana_XML \ No newline at end of file diff --git a/includes/kohana/modules/xml/classes/xml.php b/includes/kohana/modules/xml/classes/xml.php deleted file mode 100644 index c4c3cd1a..00000000 --- a/includes/kohana/modules/xml/classes/xml.php +++ /dev/null @@ -1,13 +0,0 @@ - - * - * Description: - * XML class. Use this class to override XML_Core. - * Extend this class to make your own XML based driver (Atom, XRDS, GData, RSS, PodCast RSS, or your own brewed XML format) - */ - - class XML extends XML_Core - {} \ No newline at end of file diff --git a/includes/kohana/modules/xml/classes/xml/core.php b/includes/kohana/modules/xml/classes/xml/core.php deleted file mode 100644 index 1432e051..00000000 --- a/includes/kohana/modules/xml/classes/xml/core.php +++ /dev/null @@ -1,732 +0,0 @@ - - * - * Description: - * XML_Core class. - */ - - class XML_Core - { - /** - * @var string XML document version - */ - public static $xml_version = "1.0"; - - /** - * @var string Root Node name - */ - public $root_node; - - /** - * The DOM_Element corresponding to this XML instance - * This is made public to use DOM functions directly if desired. - * @var DOM_Element XML instance DOM node. - */ - public $dom_node; - - /** - * Basically a handy shortcut of $this->dom_node->ownerDocument - * All XML instance belonging to the same document will have this attribute in common - * @var DOM_Document XML instance DOM document, owner of dom_node - */ - public $dom_doc; - - /** - * @var array Array of XML_Meta, containing metadata about XML drivers config - */ - protected static $_metas = array(); - - - /** - * This creates an XML object from the specified driver. - * Specify the driver name, or if there is no specific driver, the root node name - * @param string $driver [optional] Driver Name - * @param string $root_node [optional] Root Node name. Force the root node name. Must be used if no driver nor element is specified. - * @param string $element [optional] XML string or file to generate XML from. Must be used if no driver nor root_node is specified. - * @return XML XML object - */ - public static function factory($driver = NULL, $root_node = NULL, $element = NULL) - { - if ($driver) - { - // Let's attempt to generate a new instance of the subclass corresponding to the driver provided - $class = 'XML_Driver_'.ucfirst($driver); - - // Register a new meta object - XML::$_metas[strtolower($class)] = $meta = new XML_Meta; - - // Override the meta with driver-specific attributes - call_user_func(array($class, "initialize"), $meta); - - // Set content type to default if it is not already set, and report it as initialized - $meta->content_type("text/xml")->set_initialized(); - - return new $class($element, $root_node); - } - else - { - // Register a new meta object in the root node - XML::$_metas["xml"] = $meta = new XML_Meta; - - // Set content type to default if it is not already set, and report it as initialized - $meta->content_type("text/xml")->set_initialized(); - - return new XML($element, $root_node); - } - } - - - /** - * Class constructor. You should use the factory instead. - * @param string $element [optional] What to construct from. Could be some xml string, a file name, or a DOMNode - * @param string $root_node [optional] The root node name. To be specified if no driver are used. - * @return XML XML object instance - */ - public function __construct($element = NULL, $root_node = NULL) - { - // Create the initial DOMDocument - $this->dom_doc = new DOMDocument(XML::$xml_version, Kohana::$charset); - - if ($root_node) - { - // If a root node is specified, overwrite the current_one - $this->root_node = $root_node; - } - - // Initialize the document with the given element - if (is_string($element)) - { - if (is_file($element) OR Valid::url($element)) - { - // Generate XML from a file - $this->dom_doc->load($element); - } - else - { - // Generate XML from a string - $this->dom_doc->loadXML($element); - } - // Node is the root node of the document, containing the whole tree - $this->dom_node = $this->dom_doc->documentElement; - } - elseif ($element instanceof DOMNode) - { - // This is called from another XML instance ( through add_node, or else...) - // Let's add that node to the new object node - $this->dom_node = $element; - - // And overwrite the document with that node's owner document - $this->dom_doc = $this->dom_node->ownerDocument; - } - elseif ( ! is_null($this->root_node)) - { - // Create the Root Element from the driver attributes - if ($this->meta()->get("namespace", $this->root_node)) - { - $root_node_name = $this->meta()->get("prefix", $this->root_node) ? $this->meta()->get("prefix", $this->root_node).":$this->root_node" : $this->root_node; - - // Create the root node in its prefixed namespace - $root_node = $this->dom_doc->createElementNS($this->meta()->get("namespace", $this->root_node), $root_node_name); - } - else - { - // Create the root node - $root_node = $this->dom_doc->createElement($this->root_node); - } - - // Append the root node to the object DOMDocument, and set the resulting DOMNode as it's node - $this->dom_node = $this->dom_doc->appendChild($root_node); - - // Add other attributes - $this->add_attributes($this->dom_node); - } - else - { - throw new Kohana_Exception("You have to specify a root_node, either in your driver or in the constructor if you're not using any."); - } - } - - - /** - * Adds a node to the document - * @param string $name Name of the node. Prefixed namespaces are handled automatically. - * @param value $value [optional] value of the node (will be filtered). If value is not valid CDATA, - * it will be wrapped into a CDATA section - * @param array $attributes [optional] array of attributes. Prefixed namespaces are handled automatically. - * @return XML instance for the node that's been added. - */ - public function add_node($name, $value = NULL, $attributes = array()) - { - // Trim the name - $name = trim($name); - - // Create the element - $node = $this->create_element($name); - - // Add the attributes - $this->add_attributes($node, $attributes); - - // Add the value if provided - if ($value !== NULL) - { - $value = strval($this->filter($name, $value, $node)); - - if (str_replace(array('<', '>', '&'), "", $value) === $value) - { - // Value is valid CDATA, let's add it as a new text node - $value = $this->dom_doc->createTextNode($value); - } - else - { - // We shall create a CDATA section to wrap the text provided - $value = $this->dom_doc->createCDATASection($value); - } - $node->appendChild($value); - } - - // return a new XML instance of the same class from the child node - $class = get_class($this); - return new $class($this->dom_node->appendChild($node)); - } - - - - /** - * Magic get returns the first child node matching the value - * @param string $node_name - * @return mixed If trying to get a node: - * NULL will be return if nothing is matched, - * A string value is returned if it a text/cdata node is matched - * An XML instance is returned otherwise, allowing chaining. - */ - public function __get($value) - { - if ( ! isset($this->$value)) - { - $node = current($this->get($value)); - - if ($node instanceof XML) - { - // Return the whole XML document - return $node; - } - // We did not match any child nodes - return NULL; - } - parent::__get($value); - } - - - - /** - * Gets all nodes matching a name and returns them as an array. - * Can also be used to get a pointer to a particular node and then deal with that node as an XML instance. - * @param string $value name of the nodes desired - * @param bool $as_array [optional] whether or not the nodes should be returned as an array - * @return array Multi-dimensional array or array of XML instances - */ - public function get($value, $as_array = FALSE) - { - $return = array(); - - $value = $this->meta()->alias($value); - - foreach ($this->dom_node->getElementsByTagName($value) as $item) - { - if ($as_array) - { - // Return as array but ignore root node - $array = $this->_as_array($item); - foreach ($array as $val) - { - $return[] = $val; - } - } - else - { - $class = get_class($this); - $return[] = new $class($item); - } - } - return $return; - } - - - /** - * Queries the document with an XPath query - * @param string $query XPath query - * @param bool $as_array [optional] whether or not the nodes should be returned as an array - * @return array Multi-dimensional array or array of XML instances - */ - public function xpath($query, $as_array = TRUE) - { - $return = array(); - - $xpath = new DOMXPath($this->dom_doc); - - foreach ($xpath->query($query) as $item) - { - if ($as_array) - { - $array = $this->_as_array($item); - foreach ($array as $val) - { - $return[] = $val; - } - } - else - { - $class = get_class($this); - $return[] = new $class($item); - } - } - return $return; - } - - - - /** - * Exports the document as a multi-dimensional array. - * Handles element with the same name. - * - * Root node is ignored, as it is known and available in the driver. - * Example : - * - * - * value1 - * - * - * value2 - * - * - * - * Here's the resulting array structure : - * array ("node_name" => array( - * // array of nodes called "node_name" - * 0 => array( - * // Attributes of that node - * "xml_attributes" => array( - * "attr_name" => "val", - * ) - * // node contents - * "child_node_name" => array( - * // array of nodes called "child_node_name" - * 0 => value1, - * 1 => value2, - * ) - * The output is retro-actively convertible to XML using from_array(). - * @return array - */ - public function as_array() - { - $dom_element = $this->dom_node; - - $return = array(); - - // This function is run on a whole XML document and this is the root node. - // That root node shall be ignored in the array as it driven by the driver and handles document namespaces. - foreach($dom_element->childNodes as $dom_child) - { - if ($dom_child->nodeType == XML_ELEMENT_NODE) - { - // Let's run through the child nodes - $child = $this->_as_array($dom_child); - - foreach ($child as $key => $val) - { - $return[$key][]=$val; - } - } - } - - return $return; - } - - - - /** - * Recursive as_array for child nodes - * @param DOMNode $dom_node - * @return Array - */ - private function _as_array(DOMNode $dom_node) - { - // All other nodes shall be parsed normally : attributes then text value and child nodes, running through the XML tree - $object_element = array(); - - // Get the desired node name for this node - $node_name = $this->meta()->key($dom_node->tagName); - - // Get children, run through XML tree - if ($dom_node->hasChildNodes()) - { - if (!$dom_node->firstChild->hasChildNodes()) - { - // Get text value - $object_element[$node_name] = trim($dom_node->firstChild->nodeValue); - } - - foreach($dom_node->childNodes as $dom_child) - { - if ($dom_child->nodeType === XML_ELEMENT_NODE) - { - $child = $this->_as_array($dom_child); - - foreach ($child as $key=>$val) - { - $object_element[$node_name][$key][]=$val; - } - } - } - } - - // Get attributes - if ($dom_node->hasAttributes()) - { - $object_element[$dom_node->nodeName]['xml_attributes'] = array(); - foreach($dom_node->attributes as $att_name => $dom_attribute) - { - // Get the desired name for this attribute - $att_name = $this->meta()->key($att_name); - $object_element[$node_name]['xml_attributes'][$att_name] = $dom_attribute->value; - } - } - return $object_element; - } - - - /** - * Converts an array to XML. Expected structure is given in as_array(). - * However, from_array() is essentially more flexible regarding to the input array structure, - * as we don't have to bother about nodes having the same name. - * Try something logical, that should work as expected. - * @param object $mixed - * @return XML - */ - public function from_array($array) - { - $this->_from_array($array, $this->dom_node); - - return $this; - } - - - /** - * Array shall be like : array('element_name' => array( 0 => text, 'xml_attributes' => array())); - * @param object $mixed - * @param DOMElement $dom_element - * @return - */ - protected function _from_array($mixed, DOMElement $dom_element) - { - if (is_array($mixed)) - { - foreach( $mixed as $index => $mixed_element ) - { - if ( is_numeric($index) ) - { - // If we have numeric keys, we're having multiple children of the same node. - // Append the new node to the current node's parent - // If this is the first node to add, $node = $dom_element - $node = $dom_element; - if ( $index != 0 ) - { - // If not, lets create a copy of the node with the same name - $node = $this->create_element($dom_element->tagName); - // And append it to the parent node - $node = $dom_element->parentNode->appendChild($node); - } - $this->_from_array($mixed_element, $node); - } - elseif ($index == "xml_attributes") - { - // Add attributes to the node - $this->add_attributes($dom_element, $mixed_element); - } - else - { - // Create a new element with the key as the element name. - // Create the element corresponding to the key - $node = $this->create_element($index); - - // Add the driver attributes - $this->add_attributes($node); - - // Append it - $dom_element->appendChild($node); - - // Treat the array by recursion - $this->_from_array($mixed_element, $node); - } - } - } - elseif ($mixed) - { - // This is a string value that shall be appended as such - $mixed = $this->filter($dom_element->tagName, $mixed, $dom_element); - $dom_element->appendChild($this->dom_doc->createTextNode($mixed)); - } - } - - - /** - * This function is used to import another XML instance, or whatever we can construct XML from (string, filename, DOMNode...) - * - * $xml1 = XML::factory("atom", "bla"); - * $xml2 = XML::factory("rss", ""); - * $node_xml2 = $xml2->add_node("key"); - * - * // outputs "bla" - * $node_xml2->import($xml1)->render(); - * - * // outputs "blabla" - * $xml1->import($xml2->get("key"))->render(); - * - * @param object $xml XML instance or DOMNode - * @return object $this Chainable function - */ - public function import($xml) - { - if (! $xml instanceof XML) - { - // Attempt to construct XML from the input - $class = get_class($this); - $xml = new $class($xml); - } - // Import the node, and all its children, to the document - $node = $this->dom_doc->importNode($xml->dom_node, TRUE); - $this->dom_node->appendChild($node); - - return $this; - } - - - /** - * Creates an element, sorts out namespaces (default / prefixed) - * @param string $name element name - * @return DOMElement - */ - private function create_element($name) - { - $name = $this->meta()->alias($name); - - // Let's check if the element name has a namespace, and if this prefix is defined in our driver - if ($namespace_uri = $this->meta()->get("namespace", $name)) - { - if (stristr($name, ":")) - { - // Separate the namespace prefix and the name - list($prefix, $name) = explode(":", $name); - - // Register the prefixed namespace in the document root - $this->dom_doc->documentElement->setAttributeNS("http://www.w3.org/2000/xmlns/" ,"xmlns:".$prefix, $namespace_uri); - - // Create the prefixed element within that namespace - $node = $this->dom_doc->createElementNS($namespace_uri, $prefix.":".$name); - } - else - { - // Create the element normally - $node = $this->dom_doc->createElement($name); - - // Add the new default namespace as an attribute. - $node->setAttribute("xmlns", $namespace_uri); - } - } - else - { - // Simply create the element - $node = $this->dom_doc->createElement($name); - } - return $node; - } - - - /** - * Applies attributes to a node - * @param DOMNode $node - * @param array $attributes as key => value - * @return DOMNode - */ - private function add_attributes(DOMNode $node, $attributes = array()) - { - $node_name = $this->meta()->alias($node->tagName); - - if ($this->meta()->get("attributes", $node_name)) - { - $attributes = array_merge($this->meta()->get("attributes", $node_name), $attributes); - } - - foreach ($attributes as $key => $val) - { - // Trim elements - $key = $this->meta()->alias(trim($key)); - $val = $this->filter($key, trim($val), $node); - - // Set the attribute - // Let's check if the attribute name has a namespace prefix, and if this prefix is defined in our driver - if ($namespace_uri = $this->meta()->get("namespace", $key) - AND stristr($name, ":")) - { - // Separate the namespace prefix and the name - list($prefix, $name) = explode(":", $name); - - // Register the prefixed namespace - $this->dom_node->setAttributeNS("http://www.w3.org/2000/xmlns/" ,"xmlns:".$prefix, $namespace_uri); - - // Add the prefixed attribute within that namespace - $node->setAttributeNS($namespace_uri, $key, $val); - } - else - { - // Simply add the attribute - $node->setAttribute($key, $val); - } - } - return $node; - } - - - /** - * Applies filter on a value. - * These filters are callbacks usually defined in the driver. - * They allow to format dates, links, standard stuff, and play - * as you wish with the value before it is added to the document. - * - * You could even extend it and modify the node name. - * - * @param string $name - * @param string $value - * @return string $value formatted value - */ - protected function filter($name, $value, &$node) - { - $name = $this->meta()->alias($name); - - if ($this->meta()->get("filter", $name)) - { - return call_user_func(array($this, $this->meta()->get("filter", $name)), $value, $node); - } - return $value; - } - - - /** - * This is a classic filter that takes a uri and makes a proper link - * @param object $value - * @return $value - */ - public function normalize_uri($value, $node) - { - if (strpos($value, '://') === FALSE) - { - if (strlen(URL::base()) > 1 AND stristr($value, URL::base())) - { - // Make sure the path is not base related - $value = str_replace(URL::base(), '', $value); - } - // Convert URIs to URLs - $value = URL::site($value, TRUE); - } - return $value; - } - - - /** - * Another classic filter to deal with boolean - * @param boolean $value - * @return string $value, true or false - */ - public function normalize_bool($value) - { - return $value ? "true" : "false"; - } - - - /** - * Returns this drivers XML metadata - * @return XML_Meta - */ - public function meta() - { - return XML::$_metas[strtolower(get_class($this))]; - } - - - /** - * Outputs nicely formatted XML when converting as string - * @return string - */ - public function __toString() - { - return $this->render(TRUE); - } - - - /** - * Render the XML. - * @param boolean $formatted [optional] Should the output be formatted and indented ? - * @return string - */ - public function render($formatted = FALSE) - { - $this->dom_doc->formatOutput = $formatted; - return $this->dom_doc->saveXML(); - } - - - /** - * Outputs the XML in a file - * @param string filename - * @return - */ - public function export($file) - { - return $this->dom_doc->save($file); - } - - - /** - * Returns this instance node value, if the dom_node is a text node - * - * @return string - */ - public function value() - { - if ($this->dom_node->hasChildNodes() AND $this->dom_node->firstChild->nodeType === XML_TEXT_NODE) - { - return $this->dom_node->nodeValue; - } - return NULL; - } - - - /** - * Returns this instance node value - * - * @return string|array attributes as array of attribute value if a name is specified - */ - public function attributes($attribute_name = NULL) - { - if ($attribute_name === NULL) - { - // Return an array of attributes - $attributes = array(); - - if ($this->dom_node->hasAttributes()) - { - foreach ($this->dom_node->attributes as $attribute) - { - $attributes[$attribute->name] = $attribute->value; - } - } - return $attributes; - } - - // Simply return the attribute value - return $this->dom_node->getAttribute($attribute_name); - } -} // End XML_Core diff --git a/includes/kohana/modules/xml/classes/xml/driver/atom.php b/includes/kohana/modules/xml/classes/xml/driver/atom.php deleted file mode 100644 index 40989648..00000000 --- a/includes/kohana/modules/xml/classes/xml/driver/atom.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * Description: - * Atom driver - */ - -class XML_Driver_Atom extends XML -{ - public $root_node = 'feed'; - - - protected static function initialize(XML_Meta $meta) - { - $meta ->content_type("application/atom+xml") - ->nodes ( - array( - "feed" => array("namespace" => "http://www.w3.org/2005/Atom"), - // "entry" => array("namespace" => "http://www.w3.org/2005/Atom"), - "href" => array("filter" => "normalize_uri"), - "link" => array("filter" => "normalize_uri"), - "logo" => array("filter" => "normalize_uri"), - "icon" => array("filter" => "normalize_uri"), - "id" => array("filter" => "normalize_uri"), - "updated" => array("filter" => "normalize_datetime"), - "published" => array("filter" => "normalize_datetime"), - "startDate" => array("filter" => "normalize_date"), - 'endDate' => array("filter" => "normalize_date"), - "summary" => array("filter" => "normalize_text"), - "subtitle" => array("filter" => "normalize_text"), - "title" => array("filter" => "normalize_text"), - "content" => array("filter" => "normalize_text") - ) - ); - } - - - public function add_person($type, $name, $email = NULL, $uri = NULL) - { - $author = $this->add_node($type); - $author->add_node("name", $name); - if ($email) - { - $author->add_node("email", $email); - } - if ($uri) - { - $author->add_node("uri", $uri); - } - return $this; - } - - - public function add_content(XML $xml_document) - { - $this->add_node("content", NULL, array("type" => $xml_document->meta()->content_type()))->import($xml_document); - return $this; - } - - - public function normalize_text($value, $node) - { - if (strpos($value, "<") >= 0 AND strpos($value, ">") > 0) - { - // Assume type = html - $node->setAttribute("type", "html"); - } - else - { - $node->setAttribute("type", "text"); - } - return $value; - } - - - public function normalize_datetime($value) - { - if ( ! is_numeric($value)) - { - $value = strtotime($value); - } - - // Convert timestamps to RFC 3339 formatted datetime - return date(DATE_RFC3339, $value); - } - - - public function normalize_date($value) - { - if ( ! is_numeric($value)) - { - $value = strtotime($value); - } - - // Convert timestamps to RFC 3339 formatted dates - return date("Y-m-d", $value); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/xml/classes/xml/driver/rss2.php b/includes/kohana/modules/xml/classes/xml/driver/rss2.php deleted file mode 100644 index b5217631..00000000 --- a/includes/kohana/modules/xml/classes/xml/driver/rss2.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * Description: - * RSS2 driver - */ - -class XML_Driver_Rss2 extends XML -{ - public $root_node = 'rss'; - - protected static function initialize(XML_Meta $meta) - { - $meta ->content_type("application/rss+xml") - ->nodes ( - array( - "rss" => array("attributes" => array("version" => "2.0")), - "title" => array("filter" => "normalize_text"), - "description" => array("filter" => "normalize_text"), - "link" => array("filter" => "normalize_uri"), - "atom:link" => array("attributes" => array( - "rel" => "self", - "type" => "application/rss+xml", - // "href" => URL::site(Request::initial()->uri(), TRUE) - ), - "namespace" => "http://www.w3.org/2005/Atom"), - "href" => array("filter" => "normalize_uri"), - "docs" => array("filter" => "normalize_uri"), - "guid" => array("filter" => "normalize_uri"), - "pubDate" => array("filter" => "normalize_date"), - "lastBuildDate" => array("filter" => "normalize_date") - ) - ); - } - - - public function normalize_date($value) - { - if ( ! is_numeric($value)) - { - $value = strtotime($value); - } - - // Convert timestamps to RFC 822 formatted dates, with 4 digits year - return date(DATE_RSS, $value); - } - - - public function normalize_text($value) - { - // Strip HTML tags - return strip_tags($value); - } -} \ No newline at end of file diff --git a/includes/kohana/modules/xml/classes/xml/driver/xrds.php b/includes/kohana/modules/xml/classes/xml/driver/xrds.php deleted file mode 100644 index 2f536d2b..00000000 --- a/includes/kohana/modules/xml/classes/xml/driver/xrds.php +++ /dev/null @@ -1,55 +0,0 @@ - - * - * Description: - * XRDS driver. For Service Discovery. - */ - -class XML_Driver_XRDS extends XML -{ - public $root_node = 'xrds:XRDS'; - - protected static function initialize(XML_Meta $meta) - { - $meta ->content_type("application/xrds+xml") - ->nodes ( - array( - "xrds:XRDS" => array("namespace" => 'xri://$xrds', "attributes" => array("xmlns" => 'xri://$xrd*($v*2.0)')), - "LocalID" => array("filter" => "normalize_uri"), - "openid:Delegate" => array("filter" => "normalize_uri", "namespace" => "http://openid.net/xmlns/1.0"), - "URI" => array("filter" => "normalize_uri"), - ) - ); - } - - - public function add_service($type, $uri, $priority = NULL) - { - if (! is_null($priority)) - { - $priority = array("priority" => $priority); - } - else - { - $priority = array(); - } - - $service_node = $this->add_node("Service", NULL, $priority); - - if (! is_array($type)) - { - $type = array($type); - } - - foreach ($type as $t) - { - $service_node->add_node("Type", $t); - } - $service_node->add_node("URI", $uri); - - return $service_node; - } -} \ No newline at end of file diff --git a/includes/kohana/modules/xml/classes/xml/meta.php b/includes/kohana/modules/xml/classes/xml/meta.php deleted file mode 100644 index 35df69dc..00000000 --- a/includes/kohana/modules/xml/classes/xml/meta.php +++ /dev/null @@ -1,12 +0,0 @@ - - * - * Description: - * XML_Meta class. Use this to override XML_Meta_Core - */ - - class XML_Meta extends XML_Meta_Core - {} diff --git a/includes/kohana/modules/xml/classes/xml/meta/core.php b/includes/kohana/modules/xml/classes/xml/meta/core.php deleted file mode 100644 index 93f699a7..00000000 --- a/includes/kohana/modules/xml/classes/xml/meta/core.php +++ /dev/null @@ -1,187 +0,0 @@ - - * - * Description: - * XML_Meta_Core class. This class contains XML drivers metadata - */ - - class XML_Meta_Core - { - /** - * @var array assoc array alias => $node_name - * This is used to abstract the node names - */ - protected $nodes = array(); - - /** - * @var array whole node configuration array - * array("node_name" => array( - * // Effective node name in the XML document. - * // This name is abstracted and "node_name" is always used when dealing with the object. - * "node" => "effective_node_name", - * // Defines a namespace URI for this node - * "namespace" => "http://www.namespace.uri", - * // Defines a prefix for the namespace above. If not defined, namespace is interpreted as a default namespace - * "prefix" => "ns", - * // Defines a callback function to filter/normalize the value - * "filter" => "filter_function_name", - * // Array of attributes - * "attributes" => array("default_attribute1" => "value") - * ), - * "alias" => "node_name", - * ) - */ - protected $nodes_config = array(); - - /** - * @var string content type for HTML headers - */ - protected $content_type; - - /** - * @var boolean whether the object is initialized - */ - protected $_initialized = FALSE; - - - /** - * Returns the name of a node, sort out aliases - * @param string $name - * @return string $node_name - */ - public function alias($name) - { - if (isset($this->nodes_config[$name])) - { - if ( ! is_array($this->nodes_config[$name])) - { - $name = $this->nodes_config[$name]; - } - } - - return Arr::get($this->nodes, $name, $name); - } - - /** - * Returns the value of a meta key for a given node name - * exemple $this->get('attributes', 'feed') will return all the attributes set up in the meta - * for the node feed. - * @param object $key meta key - * @param object $name node name - * @return meta value or NULL if not set - */ - public function get($key, $name) - { - $name = $this->alias($name); - - if (isset($this->nodes_config[$name]) AND is_array($this->nodes_config[$name]) AND array_key_exists($key, $this->nodes_config[$name])) - { - return $this->nodes_config[$name][$key]; - } - return NULL; - } - - - /** - * Set nodes config attribute - * Use it this way : - * nodes(array("node_name" => array("namespace" => "http://www.namespace.uri", "prefix" => "ns", "filter" => "filter_function_name", "attributes" => array("default_attribute1" => "value")))), - * OR to set up node alias names : - * nodes(array("alias" => "node_name")); - * - * @param array $nodes array formatted as mentionned above - * @param bool $overwrite [optional] Overwrite current values if they are set ? - * @return object $this - */ - public function nodes(Array $nodes) - { - $this->nodes_config = $this->_initialized ? - array_merge($nodes, $this->nodes_config) : - array_merge($this->nodes_config, $nodes); - - $this->generate_nodes_map(); - - return $this; - } - - - /** - * Sets the content type for headers - * @param string $type - * @return object $this - */ - public function content_type($type = NULL) - { - if ($type) - { - $this->content_type = $this->_initialized ? - $type : - $this->content_type ? - $this->content_type : - $type; - } - else - { - return $this->content_type; - } - - return $this; - } - - - /** - * Returns the key name corresponding to a node name - * This is used when using as_array(), to return array keys corresponding to the node names - * @param object $node_name - * @return - */ - public function key($node_name) - { - // Extract the name if it is prefixed - $expl = explode(":", $node_name); - $node_name = count($expl) > 1 ? end($expl) : current($expl); - - if (in_array($node_name, $this->nodes)) - { - return current(array_keys($this->nodes, $node_name)); - } - return $node_name; - } - - - /** - * Generates - or re-generates the node map - * @return object $this - */ - public function generate_nodes_map() - { - $map = array(); - foreach ($this->nodes_config as $key => $config) - { - if (is_array($config)) - { - if (isset ($config["node"])) - { - $map[$key] = $config["node"]; - } - } - } - $this->nodes = $map; - return $this; - } - - /** - * Reports the Meta as initialized. - * This basically allows Meta methods to overwrite existing value, if they are called explicitely - * @return object $this - */ - public function set_initialized() - { - $this->_initialized = TRUE; - return $this; - } - -} \ No newline at end of file diff --git a/includes/kohana/system/classes/Arr.php b/includes/kohana/system/classes/Arr.php deleted file mode 100644 index 376cb97f..00000000 --- a/includes/kohana/system/classes/Arr.php +++ /dev/null @@ -1,3 +0,0 @@ - 'john.doe')); - * - * // Returns FALSE - * Arr::is_assoc('foo', 'bar'); - * - * @param array $array array to check - * @return boolean - */ - public static function is_assoc(array $array) - { - // Keys of the array - $keys = array_keys($array); - - // If the array keys of the keys match the keys, then the array must - // not be associative (e.g. the keys array looked like {0:0, 1:1...}). - return array_keys($keys) !== $keys; - } - - /** - * Test if a value is an array with an additional check for array-like objects. - * - * // Returns TRUE - * Arr::is_array(array()); - * Arr::is_array(new ArrayObject); - * - * // Returns FALSE - * Arr::is_array(FALSE); - * Arr::is_array('not an array!'); - * Arr::is_array(Database::instance()); - * - * @param mixed $value value to check - * @return boolean - */ - public static function is_array($value) - { - if (is_array($value)) - { - // Definitely an array - return TRUE; - } - else - { - // Possibly a Traversable object, functionally the same as an array - return (is_object($value) AND $value instanceof Traversable); - } - } - - /** - * Gets a value from an array using a dot separated path. - * - * // Get the value of $array['foo']['bar'] - * $value = Arr::path($array, 'foo.bar'); - * - * Using a wildcard "*" will search intermediate arrays and return an array. - * - * // Get the values of "color" in theme - * $colors = Arr::path($array, 'theme.*.color'); - * - * // Using an array of keys - * $colors = Arr::path($array, array('theme', '*', 'color')); - * - * @param array $array array to search - * @param mixed $path key path string (delimiter separated) or array of keys - * @param mixed $default default value if the path is not set - * @param string $delimiter key path delimiter - * @return mixed - */ - public static function path($array, $path, $default = NULL, $delimiter = NULL) - { - if ( ! Arr::is_array($array)) - { - // This is not an array! - return $default; - } - - if (is_array($path)) - { - // The path has already been separated into keys - $keys = $path; - } - else - { - if (array_key_exists($path, $array)) - { - // No need to do extra processing - return $array[$path]; - } - - if ($delimiter === NULL) - { - // Use the default delimiter - $delimiter = Arr::$delimiter; - } - - // Remove starting delimiters and spaces - $path = ltrim($path, "{$delimiter} "); - - // Remove ending delimiters, spaces, and wildcards - $path = rtrim($path, "{$delimiter} *"); - - // Split the keys by delimiter - $keys = explode($delimiter, $path); - } - - do - { - $key = array_shift($keys); - - if (ctype_digit($key)) - { - // Make the key an integer - $key = (int) $key; - } - - if (isset($array[$key])) - { - if ($keys) - { - if (Arr::is_array($array[$key])) - { - // Dig down into the next part of the path - $array = $array[$key]; - } - else - { - // Unable to dig deeper - break; - } - } - else - { - // Found the path requested - return $array[$key]; - } - } - elseif ($key === '*') - { - // Handle wildcards - - $values = array(); - foreach ($array as $arr) - { - if ($value = Arr::path($arr, implode('.', $keys))) - { - $values[] = $value; - } - } - - if ($values) - { - // Found the values requested - return $values; - } - else - { - // Unable to dig deeper - break; - } - } - else - { - // Unable to dig deeper - break; - } - } - while ($keys); - - // Unable to find the value requested - return $default; - } - - /** - * Set a value on an array by path. - * - * @see Arr::path() - * @param array $array Array to update - * @param string $path Path - * @param mixed $value Value to set - * @param string $delimiter Path delimiter - */ - public static function set_path( & $array, $path, $value, $delimiter = NULL) - { - if ( ! $delimiter) - { - // Use the default delimiter - $delimiter = Arr::$delimiter; - } - - // Split the keys by delimiter - $keys = explode($delimiter, $path); - - // Set current $array to inner-most array path - while (count($keys) > 1) - { - $key = array_shift($keys); - - if (ctype_digit($key)) - { - // Make the key an integer - $key = (int) $key; - } - - if ( ! isset($array[$key])) - { - $array[$key] = array(); - } - - $array = & $array[$key]; - } - - // Set key on inner-most array - $array[array_shift($keys)] = $value; - } - - /** - * Fill an array with a range of numbers. - * - * // Fill an array with values 5, 10, 15, 20 - * $values = Arr::range(5, 20); - * - * @param integer $step stepping - * @param integer $max ending number - * @return array - */ - public static function range($step = 10, $max = 100) - { - if ($step < 1) - return array(); - - $array = array(); - for ($i = $step; $i <= $max; $i += $step) - { - $array[$i] = $i; - } - - return $array; - } - - /** - * Retrieve a single key from an array. If the key does not exist in the - * array, the default value will be returned instead. - * - * // Get the value "username" from $_POST, if it exists - * $username = Arr::get($_POST, 'username'); - * - * // Get the value "sorting" from $_GET, if it exists - * $sorting = Arr::get($_GET, 'sorting'); - * - * @param array $array array to extract from - * @param string $key key name - * @param mixed $default default value - * @return mixed - */ - public static function get($array, $key, $default = NULL) - { - return isset($array[$key]) ? $array[$key] : $default; - } - - /** - * Retrieves multiple paths from an array. If the path does not exist in the - * array, the default value will be added instead. - * - * // Get the values "username", "password" from $_POST - * $auth = Arr::extract($_POST, array('username', 'password')); - * - * // Get the value "level1.level2a" from $data - * $data = array('level1' => array('level2a' => 'value 1', 'level2b' => 'value 2')); - * Arr::extract($data, array('level1.level2a', 'password')); - * - * @param array $array array to extract paths from - * @param array $paths list of path - * @param mixed $default default value - * @return array - */ - public static function extract($array, array $paths, $default = NULL) - { - $found = array(); - foreach ($paths as $path) - { - Arr::set_path($found, $path, Arr::path($array, $path, $default)); - } - - return $found; - } - - /** - * Retrieves muliple single-key values from a list of arrays. - * - * // Get all of the "id" values from a result - * $ids = Arr::pluck($result, 'id'); - * - * [!!] A list of arrays is an array that contains arrays, eg: array(array $a, array $b, array $c, ...) - * - * @param array $array list of arrays to check - * @param string $key key to pluck - * @return array - */ - public static function pluck($array, $key) - { - $values = array(); - - foreach ($array as $row) - { - if (isset($row[$key])) - { - // Found a value in this row - $values[] = $row[$key]; - } - } - - return $values; - } - - /** - * Adds a value to the beginning of an associative array. - * - * // Add an empty value to the start of a select list - * Arr::unshift($array, 'none', 'Select a value'); - * - * @param array $array array to modify - * @param string $key array key name - * @param mixed $val array value - * @return array - */ - public static function unshift( array & $array, $key, $val) - { - $array = array_reverse($array, TRUE); - $array[$key] = $val; - $array = array_reverse($array, TRUE); - - return $array; - } - - /** - * Recursive version of [array_map](http://php.net/array_map), applies one or more - * callbacks to all elements in an array, including sub-arrays. - * - * // Apply "strip_tags" to every element in the array - * $array = Arr::map('strip_tags', $array); - * - * // Apply $this->filter to every element in the array - * $array = Arr::map(array(array($this,'filter')), $array); - * - * // Apply strip_tags and $this->filter to every element - * $array = Arr::map(array('strip_tags',array($this,'filter')), $array); - * - * [!!] Because you can pass an array of callbacks, if you wish to use an array-form callback - * you must nest it in an additional array as above. Calling Arr::map(array($this,'filter'), $array) - * will cause an error. - * [!!] Unlike `array_map`, this method requires a callback and will only map - * a single array. - * - * @param mixed $callbacks array of callbacks to apply to every element in the array - * @param array $array array to map - * @param array $keys array of keys to apply to - * @return array - */ - public static function map($callbacks, $array, $keys = NULL) - { - foreach ($array as $key => $val) - { - if (is_array($val)) - { - $array[$key] = Arr::map($callbacks, $array[$key]); - } - elseif ( ! is_array($keys) OR in_array($key, $keys)) - { - if (is_array($callbacks)) - { - foreach ($callbacks as $cb) - { - $array[$key] = call_user_func($cb, $array[$key]); - } - } - else - { - $array[$key] = call_user_func($callbacks, $array[$key]); - } - } - } - - return $array; - } - - /** - * Recursively merge two or more arrays. Values in an associative array - * overwrite previous values with the same key. Values in an indexed array - * are appended, but only when they do not already exist in the result. - * - * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! - * - * $john = array('name' => 'john', 'children' => array('fred', 'paul', 'sally', 'jane')); - * $mary = array('name' => 'mary', 'children' => array('jane')); - * - * // John and Mary are married, merge them together - * $john = Arr::merge($john, $mary); - * - * // The output of $john will now be: - * array('name' => 'mary', 'children' => array('fred', 'paul', 'sally', 'jane')) - * - * @param array $array1 initial array - * @param array $array2,... array to merge - * @return array - */ - public static function merge($array1, $array2) - { - if (Arr::is_assoc($array2)) - { - foreach ($array2 as $key => $value) - { - if (is_array($value) - AND isset($array1[$key]) - AND is_array($array1[$key]) - ) - { - $array1[$key] = Arr::merge($array1[$key], $value); - } - else - { - $array1[$key] = $value; - } - } - } - else - { - foreach ($array2 as $value) - { - if ( ! in_array($value, $array1, TRUE)) - { - $array1[] = $value; - } - } - } - - if (func_num_args() > 2) - { - foreach (array_slice(func_get_args(), 2) as $array2) - { - if (Arr::is_assoc($array2)) - { - foreach ($array2 as $key => $value) - { - if (is_array($value) - AND isset($array1[$key]) - AND is_array($array1[$key]) - ) - { - $array1[$key] = Arr::merge($array1[$key], $value); - } - else - { - $array1[$key] = $value; - } - } - } - else - { - foreach ($array2 as $value) - { - if ( ! in_array($value, $array1, TRUE)) - { - $array1[] = $value; - } - } - } - } - } - - return $array1; - } - - /** - * Overwrites an array with values from input arrays. - * Keys that do not exist in the first array will not be added! - * - * $a1 = array('name' => 'john', 'mood' => 'happy', 'food' => 'bacon'); - * $a2 = array('name' => 'jack', 'food' => 'tacos', 'drink' => 'beer'); - * - * // Overwrite the values of $a1 with $a2 - * $array = Arr::overwrite($a1, $a2); - * - * // The output of $array will now be: - * array('name' => 'jack', 'mood' => 'happy', 'food' => 'tacos') - * - * @param array $array1 master array - * @param array $array2 input arrays that will overwrite existing values - * @return array - */ - public static function overwrite($array1, $array2) - { - foreach (array_intersect_key($array2, $array1) as $key => $value) - { - $array1[$key] = $value; - } - - if (func_num_args() > 2) - { - foreach (array_slice(func_get_args(), 2) as $array2) - { - foreach (array_intersect_key($array2, $array1) as $key => $value) - { - $array1[$key] = $value; - } - } - } - - return $array1; - } - - /** - * Creates a callable function and parameter list from a string representation. - * Note that this function does not validate the callback string. - * - * // Get the callback function and parameters - * list($func, $params) = Arr::callback('Foo::bar(apple,orange)'); - * - * // Get the result of the callback - * $result = call_user_func_array($func, $params); - * - * @param string $str callback string - * @return array function, params - */ - public static function callback($str) - { - // Overloaded as parts are found - $command = $params = NULL; - - // command[param,param] - if (preg_match('/^([^\(]*+)\((.*)\)$/', $str, $match)) - { - // command - $command = $match[1]; - - if ($match[2] !== '') - { - // param,param - $params = preg_split('/(? array('one' => 'something'), 'two' => 'other'); - * - * // Flatten the array - * $array = Arr::flatten($array); - * - * // The array will now be - * array('one' => 'something', 'two' => 'other'); - * - * [!!] The keys of array values will be discarded. - * - * @param array $array array to flatten - * @return array - * @since 3.0.6 - */ - public static function flatten($array) - { - $is_assoc = Arr::is_assoc($array); - - $flat = array(); - foreach ($array as $key => $value) - { - if (is_array($value)) - { - $flat = array_merge($flat, Arr::flatten($value)); - } - else - { - if ($is_assoc) - { - $flat[$key] = $value; - } - else - { - $flat[] = $value; - } - } - } - return $flat; - } - -} // End arr diff --git a/includes/kohana/system/classes/Kohana/Config.php b/includes/kohana/system/classes/Kohana/Config.php deleted file mode 100644 index 8a9798d5..00000000 --- a/includes/kohana/system/classes/Kohana/Config.php +++ /dev/null @@ -1,192 +0,0 @@ -attach($reader); // Try first - * $config->attach($reader, FALSE); // Try last - * - * @param Kohana_Config_Source $source instance - * @param boolean $first add the reader as the first used object - * @return $this - */ - public function attach(Kohana_Config_Source $source, $first = TRUE) - { - if ($first === TRUE) - { - // Place the log reader at the top of the stack - array_unshift($this->_sources, $source); - } - else - { - // Place the reader at the bottom of the stack - $this->_sources[] = $source; - } - - // Clear any cached _groups - $this->_groups = array(); - - return $this; - } - - /** - * Detach a configuration reader. - * - * $config->detach($reader); - * - * @param Kohana_Config_Source $source instance - * @return $this - */ - public function detach(Kohana_Config_Source $source) - { - if (($key = array_search($source, $this->_sources)) !== FALSE) - { - // Remove the writer - unset($this->_sources[$key]); - } - - return $this; - } - - /** - * Load a configuration group. Searches all the config sources, merging all the - * directives found into a single config group. Any changes made to the config - * in this group will be mirrored across all writable sources. - * - * $array = $config->load($name); - * - * See [Kohana_Config_Group] for more info - * - * @param string $group configuration group name - * @return Kohana_Config_Group - * @throws Kohana_Exception - */ - public function load($group) - { - if ( ! count($this->_sources)) - { - throw new Kohana_Exception('No configuration sources attached'); - } - - if (empty($group)) - { - throw new Kohana_Exception("Need to specify a config group"); - } - - if ( ! is_string($group)) - { - throw new Kohana_Exception("Config group must be a string"); - } - - if (strpos($group, '.') !== FALSE) - { - // Split the config group and path - list($group, $path) = explode('.', $group, 2); - } - - if (isset($this->_groups[$group])) - { - if (isset($path)) - { - return Arr::path($this->_groups[$group], $path, NULL, '.'); - } - return $this->_groups[$group]; - } - - $config = array(); - - // We search from the "lowest" source and work our way up - $sources = array_reverse($this->_sources); - - foreach ($sources as $source) - { - if ($source instanceof Kohana_Config_Reader) - { - if ($source_config = $source->load($group)) - { - $config = Arr::merge($config, $source_config); - } - } - } - - $this->_groups[$group] = new Config_Group($this, $group, $config); - - if (isset($path)) - { - return Arr::path($config, $path, NULL, '.'); - } - - return $this->_groups[$group]; - } - - /** - * Copy one configuration group to all of the other writers. - * - * $config->copy($name); - * - * @param string $group configuration group name - * @return $this - */ - public function copy($group) - { - // Load the configuration group - $config = $this->load($group); - - foreach ($config->as_array() as $key => $value) - { - $this->_write_config($group, $key, $value); - } - - return $this; - } - - /** - * Callback used by the config group to store changes made to configuration - * - * @param string $group Group name - * @param string $key Variable name - * @param mixed $value The new value - * @return Kohana_Config Chainable instance - */ - public function _write_config($group, $key, $value) - { - foreach ($this->_sources as $source) - { - if ( ! ($source instanceof Kohana_Config_Writer)) - { - continue; - } - - // Copy each value in the config - $source->write($group, $key, $value); - } - - return $this; - } - -} // End Kohana_Config diff --git a/includes/kohana/system/classes/Kohana/Config/File.php b/includes/kohana/system/classes/Kohana/Config/File.php deleted file mode 100644 index 8d514f69..00000000 --- a/includes/kohana/system/classes/Kohana/Config/File.php +++ /dev/null @@ -1,15 +0,0 @@ -_directory = trim($directory, '/'); - } - - /** - * Load and merge all of the configuration files in this group. - * - * $config->load($name); - * - * @param string $group configuration group name - * @return $this current object - * @uses Kohana::load - */ - public function load($group) - { - $config = array(); - - if ($files = Kohana::find_file($this->_directory, $group, NULL, TRUE)) - { - foreach ($files as $file) - { - // Merge each file to the configuration array - $config = Arr::merge($config, Kohana::load($file)); - } - } - - return $config; - } - -} // End Kohana_Config diff --git a/includes/kohana/system/classes/Kohana/Config/Group.php b/includes/kohana/system/classes/Kohana/Config/Group.php deleted file mode 100644 index ad32cf8d..00000000 --- a/includes/kohana/system/classes/Kohana/Config/Group.php +++ /dev/null @@ -1,130 +0,0 @@ -_parent_instance = $instance; - $this->_group_name = $group; - - parent::__construct($config, ArrayObject::ARRAY_AS_PROPS); - } - - /** - * Return the current group in serialized form. - * - * echo $config; - * - * @return string - */ - public function __toString() - { - return serialize($this->getArrayCopy()); - } - - /** - * Alias for getArrayCopy() - * - * @return array Array copy of the group's config - */ - public function as_array() - { - return $this->getArrayCopy(); - } - - /** - * Returns the config group's name - * - * @return string The group name - */ - public function group_name() - { - return $this->_group_name; - } - - /** - * Get a variable from the configuration or return the default value. - * - * $value = $config->get($key); - * - * @param string $key array key - * @param mixed $default default value - * @return mixed - */ - public function get($key, $default = NULL) - { - return $this->offsetExists($key) ? $this->offsetGet($key) : $default; - } - - /** - * Sets a value in the configuration array. - * - * $config->set($key, $new_value); - * - * @param string $key array key - * @param mixed $value array value - * @return $this - */ - public function set($key, $value) - { - $this->offsetSet($key, $value); - - return $this; - } - - /** - * Overrides ArrayObject::offsetSet() - * This method is called when config is changed via - * - * $config->var = 'asd'; - * - * // OR - * - * $config['var'] = 'asd'; - * - * @param string $key The key of the config item we're changing - * @param mixed $value The new array value - */ - public function offsetSet($key, $value) - { - $this->_parent_instance->_write_config($this->_group_name, $key, $value); - - return parent::offsetSet($key, $value); - } -} diff --git a/includes/kohana/system/classes/Kohana/Config/Reader.php b/includes/kohana/system/classes/Kohana/Config/Reader.php deleted file mode 100644 index 6b08a3b9..00000000 --- a/includes/kohana/system/classes/Kohana/Config/Reader.php +++ /dev/null @@ -1,25 +0,0 @@ -before(); - * $controller->action_bar(); - * $controller->after(); - * - * The controller action should add the output it creates to - * `$this->response->body($output)`, typically in the form of a [View], during the - * "action" part of execution. - * - * @package Kohana - * @category Controller - * @author Kohana Team - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -abstract class Kohana_Controller { - - /** - * @var Request Request that created the controller - */ - public $request; - - /** - * @var Response The response that will be returned from controller - */ - public $response; - - /** - * Creates a new controller instance. Each controller must be constructed - * with the request object that created it. - * - * @param Request $request Request that created the controller - * @param Response $response The request's response - * @return void - */ - public function __construct(Request $request, Response $response) - { - // Assign the request to the controller - $this->request = $request; - - // Assign a response to the controller - $this->response = $response; - } - - /** - * Executes the given action and calls the [Controller::before] and [Controller::after] methods. - * - * Can also be used to catch exceptions from actions in a single place. - * - * 1. Before the controller action is called, the [Controller::before] method - * will be called. - * 2. Next the controller action will be called. - * 3. After the controller action is called, the [Controller::after] method - * will be called. - * - * @throws HTTP_Exception_404 - * @return Response - */ - public function execute() - { - // Execute the "before action" method - $this->before(); - - // Determine the action to use - $action = 'action_'.$this->request->action(); - - // If the action doesn't exist, it's a 404 - if ( ! method_exists($this, $action)) - { - throw HTTP_Exception::factory(404, - 'The requested URL :uri was not found on this server.', - array(':uri' => $this->request->uri()) - )->request($this->request); - } - - // Execute the action itself - $this->{$action}(); - - // Execute the "after action" method - $this->after(); - - // Return the response - return $this->response; - } - - /** - * Automatically executed before the controller action. Can be used to set - * class properties, do authorization checks, and execute other custom code. - * - * @return void - */ - public function before() - { - // Nothing by default - } - - /** - * Automatically executed after the controller action. Can be used to apply - * transformation to the response, add extra output, and execute - * other custom code. - * - * @return void - */ - public function after() - { - // Nothing by default - } - - /** - * Issues a HTTP redirect. - * - * Proxies to the [HTTP::redirect] method. - * - * @param string $uri URI to redirect to - * @param int $code HTTP Status code to use for the redirect - * @throws HTTP_Exception - */ - public static function redirect($uri = '', $code = 302) - { - return HTTP::redirect($uri, $code); - } - - /** - * Checks the browser cache to see the response needs to be returned, - * execution will halt and a 304 Not Modified will be sent if the - * browser cache is up to date. - * - * $this->check_cache(sha1($content)); - * - * @param string $etag Resource Etag - * @return Response - */ - protected function check_cache($etag = NULL) - { - return HTTP::check_cache($this->request, $this->response, $etag); - } - -} // End Controller \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/Controller/Template.php b/includes/kohana/system/classes/Kohana/Controller/Template.php deleted file mode 100644 index e0917574..00000000 --- a/includes/kohana/system/classes/Kohana/Controller/Template.php +++ /dev/null @@ -1,50 +0,0 @@ -auto_render === TRUE) - { - // Load the template - $this->template = View::factory($this->template); - } - } - - /** - * Assigns the template [View] as the request response. - */ - public function after() - { - if ($this->auto_render === TRUE) - { - $this->response->body($this->template->render()); - } - - parent::after(); - } - -} // End Controller_Template diff --git a/includes/kohana/system/classes/Kohana/Cookie.php b/includes/kohana/system/classes/Kohana/Cookie.php deleted file mode 100644 index 239d8c81..00000000 --- a/includes/kohana/system/classes/Kohana/Cookie.php +++ /dev/null @@ -1,161 +0,0 @@ -
Recommended setting: `TRUE` while developing, `FALSE` on production servers. | `TRUE` - * `boolean` | profile | Whether to enable the [Profiler](kohana/profiling).

Recommended setting: `TRUE` while developing, `FALSE` on production servers. | `TRUE` - * `boolean` | caching | Cache file locations to speed up [Kohana::find_file]. This has nothing to do with [Kohana::cache], [Fragments](kohana/fragments) or the [Cache module](cache).

Recommended setting: `FALSE` while developing, `TRUE` on production servers. | `FALSE` - * `boolean` | expose | Set the X-Powered-By header - * - * @throws Kohana_Exception - * @param array $settings Array of settings. See above. - * @return void - * @uses Kohana::globals - * @uses Kohana::sanitize - * @uses Kohana::cache - * @uses Profiler - */ - public static function init(array $settings = NULL) - { - if (Kohana::$_init) - { - // Do not allow execution twice - return; - } - - // Kohana is now initialized - Kohana::$_init = TRUE; - - if (isset($settings['profile'])) - { - // Enable profiling - Kohana::$profiling = (bool) $settings['profile']; - } - - // Start an output buffer - ob_start(); - - if (isset($settings['errors'])) - { - // Enable error handling - Kohana::$errors = (bool) $settings['errors']; - } - - if (Kohana::$errors === TRUE) - { - // Enable Kohana exception handling, adds stack traces and error source. - set_exception_handler(array('Kohana_Exception', 'handler')); - - // Enable Kohana error handling, converts all PHP errors to exceptions. - set_error_handler(array('Kohana', 'error_handler')); - } - - /** - * Enable xdebug parameter collection in development mode to improve fatal stack traces. - */ - if (Kohana::$environment == Kohana::DEVELOPMENT AND extension_loaded('xdebug')) - { - ini_set('xdebug.collect_params', 3); - } - - // Enable the Kohana shutdown handler, which catches E_FATAL errors. - register_shutdown_function(array('Kohana', 'shutdown_handler')); - - if (ini_get('register_globals')) - { - // Reverse the effects of register_globals - Kohana::globals(); - } - - if (isset($settings['expose'])) - { - Kohana::$expose = (bool) $settings['expose']; - } - - // Determine if we are running in a Windows environment - Kohana::$is_windows = (DIRECTORY_SEPARATOR === '\\'); - - // Determine if we are running in safe mode - Kohana::$safe_mode = (bool) ini_get('safe_mode'); - - if (isset($settings['cache_dir'])) - { - if ( ! is_dir($settings['cache_dir'])) - { - try - { - // Create the cache directory - mkdir($settings['cache_dir'], 0755, TRUE); - - // Set permissions (must be manually set to fix umask issues) - chmod($settings['cache_dir'], 0755); - } - catch (Exception $e) - { - throw new Kohana_Exception('Could not create cache directory :dir', - array(':dir' => Debug::path($settings['cache_dir']))); - } - } - - // Set the cache directory path - Kohana::$cache_dir = realpath($settings['cache_dir']); - } - else - { - // Use the default cache directory - Kohana::$cache_dir = APPPATH.'cache'; - } - - if ( ! is_writable(Kohana::$cache_dir)) - { - throw new Kohana_Exception('Directory :dir must be writable', - array(':dir' => Debug::path(Kohana::$cache_dir))); - } - - if (isset($settings['cache_life'])) - { - // Set the default cache lifetime - Kohana::$cache_life = (int) $settings['cache_life']; - } - - if (isset($settings['caching'])) - { - // Enable or disable internal caching - Kohana::$caching = (bool) $settings['caching']; - } - - if (Kohana::$caching === TRUE) - { - // Load the file path cache - Kohana::$_files = Kohana::cache('Kohana::find_file()'); - } - - if (isset($settings['charset'])) - { - // Set the system character set - Kohana::$charset = strtolower($settings['charset']); - } - - if (function_exists('mb_internal_encoding')) - { - // Set the MB extension encoding to the same character set - mb_internal_encoding(Kohana::$charset); - } - - if (isset($settings['base_url'])) - { - // Set the base URL - Kohana::$base_url = rtrim($settings['base_url'], '/').'/'; - } - - if (isset($settings['index_file'])) - { - // Set the index file - Kohana::$index_file = trim($settings['index_file'], '/'); - } - - // Determine if the extremely evil magic quotes are enabled - Kohana::$magic_quotes = (version_compare(PHP_VERSION, '5.4') < 0 AND get_magic_quotes_gpc()); - - // Sanitize all request variables - $_GET = Kohana::sanitize($_GET); - $_POST = Kohana::sanitize($_POST); - $_COOKIE = Kohana::sanitize($_COOKIE); - - // Load the logger if one doesn't already exist - if ( ! Kohana::$log instanceof Log) - { - Kohana::$log = Log::instance(); - } - - // Load the config if one doesn't already exist - if ( ! Kohana::$config instanceof Config) - { - Kohana::$config = new Config; - } - } - - /** - * Cleans up the environment: - * - * - Restore the previous error and exception handlers - * - Destroy the Kohana::$log and Kohana::$config objects - * - * @return void - */ - public static function deinit() - { - if (Kohana::$_init) - { - // Removed the autoloader - spl_autoload_unregister(array('Kohana', 'auto_load')); - - if (Kohana::$errors) - { - // Go back to the previous error handler - restore_error_handler(); - - // Go back to the previous exception handler - restore_exception_handler(); - } - - // Destroy objects created by init - Kohana::$log = Kohana::$config = NULL; - - // Reset internal storage - Kohana::$_modules = Kohana::$_files = array(); - Kohana::$_paths = array(APPPATH, SYSPATH); - - // Reset file cache status - Kohana::$_files_changed = FALSE; - - // Kohana is no longer initialized - Kohana::$_init = FALSE; - } - } - - /** - * Reverts the effects of the `register_globals` PHP setting by unsetting - * all global varibles except for the default super globals (GPCS, etc), - * which is a [potential security hole.][ref-wikibooks] - * - * This is called automatically by [Kohana::init] if `register_globals` is - * on. - * - * - * [ref-wikibooks]: http://en.wikibooks.org/wiki/PHP_Programming/Register_Globals - * - * @return void - */ - public static function globals() - { - if (isset($_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS'])) - { - // Prevent malicious GLOBALS overload attack - echo "Global variable overload attack detected! Request aborted.\n"; - - // Exit with an error status - exit(1); - } - - // Get the variable names of all globals - $global_variables = array_keys($GLOBALS); - - // Remove the standard global variables from the list - $global_variables = array_diff($global_variables, array( - '_COOKIE', - '_ENV', - '_GET', - '_FILES', - '_POST', - '_REQUEST', - '_SERVER', - '_SESSION', - 'GLOBALS', - )); - - foreach ($global_variables as $name) - { - // Unset the global variable, effectively disabling register_globals - unset($GLOBALS[$name]); - } - } - - /** - * Recursively sanitizes an input variable: - * - * - Strips slashes if magic quotes are enabled - * - Normalizes all newlines to LF - * - * @param mixed $value any variable - * @return mixed sanitized variable - */ - public static function sanitize($value) - { - if (is_array($value) OR is_object($value)) - { - foreach ($value as $key => $val) - { - // Recursively clean each value - $value[$key] = Kohana::sanitize($val); - } - } - elseif (is_string($value)) - { - if (Kohana::$magic_quotes === TRUE) - { - // Remove slashes added by magic quotes - $value = stripslashes($value); - } - - if (strpos($value, "\r") !== FALSE) - { - // Standardize newlines - $value = str_replace(array("\r\n", "\r"), "\n", $value); - } - } - - return $value; - } - - /** - * Provides auto-loading support of classes that follow Kohana's [class - * naming conventions](kohana/conventions#class-names-and-file-location). - * See [Loading Classes](kohana/autoloading) for more information. - * - * // Loads classes/My/Class/Name.php - * Kohana::auto_load('My_Class_Name'); - * - * or with a custom directory: - * - * // Loads vendor/My/Class/Name.php - * Kohana::auto_load('My_Class_Name', 'vendor'); - * - * You should never have to call this function, as simply calling a class - * will cause it to be called. - * - * This function must be enabled as an autoloader in the bootstrap: - * - * spl_autoload_register(array('Kohana', 'auto_load')); - * - * @param string $class Class name - * @param string $directory Directory to load from - * @return boolean - */ - public static function auto_load($class, $directory = 'classes') - { - // Transform the class name according to PSR-0 - $class = ltrim($class, '\\'); - $file = ''; - $namespace = ''; - - if ($last_namespace_position = strripos($class, '\\')) - { - $namespace = substr($class, 0, $last_namespace_position); - $class = substr($class, $last_namespace_position + 1); - $file = str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR; - } - - $file .= str_replace('_', DIRECTORY_SEPARATOR, $class); - - if ($path = Kohana::find_file($directory, $file)) - { - // Load the class file - require $path; - - // Class has been found - return TRUE; - } - - // Class is not in the filesystem - return FALSE; - } - - /** - * Provides auto-loading support of classes that follow Kohana's old class - * naming conventions. - * - * This is included for compatibility purposes with older modules. - * - * @param string $class Class name - * @param string $directory Directory to load from - * @return boolean - */ - public static function auto_load_lowercase($class, $directory = 'classes') - { - // Transform the class name into a path - $file = str_replace('_', DIRECTORY_SEPARATOR, strtolower($class)); - - if ($path = Kohana::find_file($directory, $file)) - { - // Load the class file - require $path; - - // Class has been found - return TRUE; - } - - // Class is not in the filesystem - return FALSE; - } - - /** - * Changes the currently enabled modules. Module paths may be relative - * or absolute, but must point to a directory: - * - * Kohana::modules(array('modules/foo', MODPATH.'bar')); - * - * @param array $modules list of module paths - * @return array enabled modules - */ - public static function modules(array $modules = NULL) - { - if ($modules === NULL) - { - // Not changing modules, just return the current set - return Kohana::$_modules; - } - - // Start a new list of include paths, APPPATH first - $paths = array(APPPATH); - - foreach ($modules as $name => $path) - { - if (is_dir($path)) - { - // Add the module to include paths - $paths[] = $modules[$name] = realpath($path).DIRECTORY_SEPARATOR; - } - else - { - // This module is invalid, remove it - throw new Kohana_Exception('Attempted to load an invalid or missing module \':module\' at \':path\'', array( - ':module' => $name, - ':path' => Debug::path($path), - )); - } - } - - // Finish the include paths by adding SYSPATH - $paths[] = SYSPATH; - - // Set the new include paths - Kohana::$_paths = $paths; - - // Set the current module list - Kohana::$_modules = $modules; - - foreach (Kohana::$_modules as $path) - { - $init = $path.'init'.EXT; - - if (is_file($init)) - { - // Include the module initialization file once - require_once $init; - } - } - - return Kohana::$_modules; - } - - /** - * Returns the the currently active include paths, including the - * application, system, and each module's path. - * - * @return array - */ - public static function include_paths() - { - return Kohana::$_paths; - } - - /** - * Searches for a file in the [Cascading Filesystem](kohana/files), and - * returns the path to the file that has the highest precedence, so that it - * can be included. - * - * When searching the "config", "messages", or "i18n" directories, or when - * the `$array` flag is set to true, an array of all the files that match - * that path in the [Cascading Filesystem](kohana/files) will be returned. - * These files will return arrays which must be merged together. - * - * If no extension is given, the default extension (`EXT` set in - * `index.php`) will be used. - * - * // Returns an absolute path to views/template.php - * Kohana::find_file('views', 'template'); - * - * // Returns an absolute path to media/css/style.css - * Kohana::find_file('media', 'css/style', 'css'); - * - * // Returns an array of all the "mimes" configuration files - * Kohana::find_file('config', 'mimes'); - * - * @param string $dir directory name (views, i18n, classes, extensions, etc.) - * @param string $file filename with subdirectory - * @param string $ext extension to search for - * @param boolean $array return an array of files? - * @return array a list of files when $array is TRUE - * @return string single file path - */ - public static function find_file($dir, $file, $ext = NULL, $array = FALSE) - { - if ($ext === NULL) - { - // Use the default extension - $ext = EXT; - } - elseif ($ext) - { - // Prefix the extension with a period - $ext = ".{$ext}"; - } - else - { - // Use no extension - $ext = ''; - } - - // Create a partial path of the filename - $path = $dir.DIRECTORY_SEPARATOR.$file.$ext; - - if (Kohana::$caching === TRUE AND isset(Kohana::$_files[$path.($array ? '_array' : '_path')])) - { - // This path has been cached - return Kohana::$_files[$path.($array ? '_array' : '_path')]; - } - - if (Kohana::$profiling === TRUE AND class_exists('Profiler', FALSE)) - { - // Start a new benchmark - $benchmark = Profiler::start('Kohana', __FUNCTION__); - } - - if ($array OR $dir === 'config' OR $dir === 'i18n' OR $dir === 'messages') - { - // Include paths must be searched in reverse - $paths = array_reverse(Kohana::$_paths); - - // Array of files that have been found - $found = array(); - - foreach ($paths as $dir) - { - if (is_file($dir.$path)) - { - // This path has a file, add it to the list - $found[] = $dir.$path; - } - } - } - else - { - // The file has not been found yet - $found = FALSE; - - foreach (Kohana::$_paths as $dir) - { - if (is_file($dir.$path)) - { - // A path has been found - $found = $dir.$path; - - // Stop searching - break; - } - } - } - - if (Kohana::$caching === TRUE) - { - // Add the path to the cache - Kohana::$_files[$path.($array ? '_array' : '_path')] = $found; - - // Files have been changed - Kohana::$_files_changed = TRUE; - } - - if (isset($benchmark)) - { - // Stop the benchmark - Profiler::stop($benchmark); - } - - return $found; - } - - /** - * Recursively finds all of the files in the specified directory at any - * location in the [Cascading Filesystem](kohana/files), and returns an - * array of all the files found, sorted alphabetically. - * - * // Find all view files. - * $views = Kohana::list_files('views'); - * - * @param string $directory directory name - * @param array $paths list of paths to search - * @return array - */ - public static function list_files($directory = NULL, array $paths = NULL) - { - if ($directory !== NULL) - { - // Add the directory separator - $directory .= DIRECTORY_SEPARATOR; - } - - if ($paths === NULL) - { - // Use the default paths - $paths = Kohana::$_paths; - } - - // Create an array for the files - $found = array(); - - foreach ($paths as $path) - { - if (is_dir($path.$directory)) - { - // Create a new directory iterator - $dir = new DirectoryIterator($path.$directory); - - foreach ($dir as $file) - { - // Get the file name - $filename = $file->getFilename(); - - if ($filename[0] === '.' OR $filename[strlen($filename)-1] === '~') - { - // Skip all hidden files and UNIX backup files - continue; - } - - // Relative filename is the array key - $key = $directory.$filename; - - if ($file->isDir()) - { - if ($sub_dir = Kohana::list_files($key, $paths)) - { - if (isset($found[$key])) - { - // Append the sub-directory list - $found[$key] += $sub_dir; - } - else - { - // Create a new sub-directory list - $found[$key] = $sub_dir; - } - } - } - else - { - if ( ! isset($found[$key])) - { - // Add new files to the list - $found[$key] = realpath($file->getPathName()); - } - } - } - } - } - - // Sort the results alphabetically - ksort($found); - - return $found; - } - - /** - * Loads a file within a totally empty scope and returns the output: - * - * $foo = Kohana::load('foo.php'); - * - * @param string $file - * @return mixed - */ - public static function load($file) - { - return include $file; - } - - /** - * Provides simple file-based caching for strings and arrays: - * - * // Set the "foo" cache - * Kohana::cache('foo', 'hello, world'); - * - * // Get the "foo" cache - * $foo = Kohana::cache('foo'); - * - * All caches are stored as PHP code, generated with [var_export][ref-var]. - * Caching objects may not work as expected. Storing references or an - * object or array that has recursion will cause an E_FATAL. - * - * The cache directory and default cache lifetime is set by [Kohana::init] - * - * [ref-var]: http://php.net/var_export - * - * @throws Kohana_Exception - * @param string $name name of the cache - * @param mixed $data data to cache - * @param integer $lifetime number of seconds the cache is valid for - * @return mixed for getting - * @return boolean for setting - */ - public static function cache($name, $data = NULL, $lifetime = NULL) - { - // Cache file is a hash of the name - $file = sha1($name).'.txt'; - - // Cache directories are split by keys to prevent filesystem overload - $dir = Kohana::$cache_dir.DIRECTORY_SEPARATOR.$file[0].$file[1].DIRECTORY_SEPARATOR; - - if ($lifetime === NULL) - { - // Use the default lifetime - $lifetime = Kohana::$cache_life; - } - - if ($data === NULL) - { - if (is_file($dir.$file)) - { - if ((time() - filemtime($dir.$file)) < $lifetime) - { - // Return the cache - try - { - return unserialize(file_get_contents($dir.$file)); - } - catch (Exception $e) - { - // Cache is corrupt, let return happen normally. - } - } - else - { - try - { - // Cache has expired - unlink($dir.$file); - } - catch (Exception $e) - { - // Cache has mostly likely already been deleted, - // let return happen normally. - } - } - } - - // Cache not found - return NULL; - } - - if ( ! is_dir($dir)) - { - // Create the cache directory - mkdir($dir, 0777, TRUE); - - // Set permissions (must be manually set to fix umask issues) - chmod($dir, 0777); - } - - // Force the data to be a string - $data = serialize($data); - - try - { - // Write the cache - return (bool) file_put_contents($dir.$file, $data, LOCK_EX); - } - catch (Exception $e) - { - // Failed to write cache - return FALSE; - } - } - - /** - * Get a message from a file. Messages are arbitary strings that are stored - * in the `messages/` directory and reference by a key. Translation is not - * performed on the returned values. See [message files](kohana/files/messages) - * for more information. - * - * // Get "username" from messages/text.php - * $username = Kohana::message('text', 'username'); - * - * @param string $file file name - * @param string $path key path to get - * @param mixed $default default value if the path does not exist - * @return string message string for the given path - * @return array complete message list, when no path is specified - * @uses Arr::merge - * @uses Arr::path - */ - public static function message($file, $path = NULL, $default = NULL) - { - static $messages; - - if ( ! isset($messages[$file])) - { - // Create a new message list - $messages[$file] = array(); - - if ($files = Kohana::find_file('messages', $file)) - { - foreach ($files as $f) - { - // Combine all the messages recursively - $messages[$file] = Arr::merge($messages[$file], Kohana::load($f)); - } - } - } - - if ($path === NULL) - { - // Return all of the messages - return $messages[$file]; - } - else - { - // Get a message using the path - return Arr::path($messages[$file], $path, $default); - } - } - - /** - * PHP error handler, converts all errors into ErrorExceptions. This handler - * respects error_reporting settings. - * - * @throws ErrorException - * @return TRUE - */ - public static function error_handler($code, $error, $file = NULL, $line = NULL) - { - if (error_reporting() & $code) - { - // This error is not suppressed by current error reporting settings - // Convert the error into an ErrorException - throw new ErrorException($error, $code, 0, $file, $line); - } - - // Do not execute the PHP error handler - return TRUE; - } - - /** - * Catches errors that are not caught by the error handler, such as E_PARSE. - * - * @uses Kohana_Exception::handler - * @return void - */ - public static function shutdown_handler() - { - if ( ! Kohana::$_init) - { - // Do not execute when not active - return; - } - - try - { - if (Kohana::$caching === TRUE AND Kohana::$_files_changed === TRUE) - { - // Write the file path cache - Kohana::cache('Kohana::find_file()', Kohana::$_files); - } - } - catch (Exception $e) - { - // Pass the exception to the handler - Kohana_Exception::handler($e); - } - - if (Kohana::$errors AND $error = error_get_last() AND in_array($error['type'], Kohana::$shutdown_errors)) - { - // Clean the output buffer - ob_get_level() AND ob_clean(); - - // Fake an exception for nice debugging - Kohana_Exception::handler(new ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line'])); - - // Shutdown now to avoid a "death loop" - exit(1); - } - } - - /** - * Generates a version string based on the variables defined above. - * - * @return string - */ - public static function version() - { - return 'Kohana Framework '.Kohana::VERSION.' ('.Kohana::CODENAME.')'; - } - -} // End Kohana diff --git a/includes/kohana/system/classes/Kohana/Date.php b/includes/kohana/system/classes/Kohana/Date.php deleted file mode 100644 index 2c2ce397..00000000 --- a/includes/kohana/system/classes/Kohana/Date.php +++ /dev/null @@ -1,603 +0,0 @@ -. - * - * @param string $remote timezone that to find the offset of - * @param string $local timezone used as the baseline - * @param mixed $now UNIX timestamp or date string - * @return integer - */ - public static function offset($remote, $local = NULL, $now = NULL) - { - if ($local === NULL) - { - // Use the default timezone - $local = date_default_timezone_get(); - } - - if (is_int($now)) - { - // Convert the timestamp into a string - $now = date(DateTime::RFC2822, $now); - } - - // Create timezone objects - $zone_remote = new DateTimeZone($remote); - $zone_local = new DateTimeZone($local); - - // Create date objects from timezones - $time_remote = new DateTime($now, $zone_remote); - $time_local = new DateTime($now, $zone_local); - - // Find the offset - $offset = $zone_remote->getOffset($time_remote) - $zone_local->getOffset($time_local); - - return $offset; - } - - /** - * Number of seconds in a minute, incrementing by a step. Typically used as - * a shortcut for generating a list that can used in a form. - * - * $seconds = Date::seconds(); // 01, 02, 03, ..., 58, 59, 60 - * - * @param integer $step amount to increment each step by, 1 to 30 - * @param integer $start start value - * @param integer $end end value - * @return array A mirrored (foo => foo) array from 1-60. - */ - public static function seconds($step = 1, $start = 0, $end = 60) - { - // Always integer - $step = (int) $step; - - $seconds = array(); - - for ($i = $start; $i < $end; $i += $step) - { - $seconds[$i] = sprintf('%02d', $i); - } - - return $seconds; - } - - /** - * Number of minutes in an hour, incrementing by a step. Typically used as - * a shortcut for generating a list that can be used in a form. - * - * $minutes = Date::minutes(); // 05, 10, 15, ..., 50, 55, 60 - * - * @uses Date::seconds - * @param integer $step amount to increment each step by, 1 to 30 - * @return array A mirrored (foo => foo) array from 1-60. - */ - public static function minutes($step = 5) - { - // Because there are the same number of minutes as seconds in this set, - // we choose to re-use seconds(), rather than creating an entirely new - // function. Shhhh, it's cheating! ;) There are several more of these - // in the following methods. - return Date::seconds($step); - } - - /** - * Number of hours in a day. Typically used as a shortcut for generating a - * list that can be used in a form. - * - * $hours = Date::hours(); // 01, 02, 03, ..., 10, 11, 12 - * - * @param integer $step amount to increment each step by - * @param boolean $long use 24-hour time - * @param integer $start the hour to start at - * @return array A mirrored (foo => foo) array from start-12 or start-23. - */ - public static function hours($step = 1, $long = FALSE, $start = NULL) - { - // Default values - $step = (int) $step; - $long = (bool) $long; - $hours = array(); - - // Set the default start if none was specified. - if ($start === NULL) - { - $start = ($long === FALSE) ? 1 : 0; - } - - $hours = array(); - - // 24-hour time has 24 hours, instead of 12 - $size = ($long === TRUE) ? 23 : 12; - - for ($i = $start; $i <= $size; $i += $step) - { - $hours[$i] = (string) $i; - } - - return $hours; - } - - /** - * Returns AM or PM, based on a given hour (in 24 hour format). - * - * $type = Date::ampm(12); // PM - * $type = Date::ampm(1); // AM - * - * @param integer $hour number of the hour - * @return string - */ - public static function ampm($hour) - { - // Always integer - $hour = (int) $hour; - - return ($hour > 11) ? 'PM' : 'AM'; - } - - /** - * Adjusts a non-24-hour number into a 24-hour number. - * - * $hour = Date::adjust(3, 'pm'); // 15 - * - * @param integer $hour hour to adjust - * @param string $ampm AM or PM - * @return string - */ - public static function adjust($hour, $ampm) - { - $hour = (int) $hour; - $ampm = strtolower($ampm); - - switch ($ampm) - { - case 'am': - if ($hour == 12) - { - $hour = 0; - } - break; - case 'pm': - if ($hour < 12) - { - $hour += 12; - } - break; - } - - return sprintf('%02d', $hour); - } - - /** - * Number of days in a given month and year. Typically used as a shortcut - * for generating a list that can be used in a form. - * - * Date::days(4, 2010); // 1, 2, 3, ..., 28, 29, 30 - * - * @param integer $month number of month - * @param integer $year number of year to check month, defaults to the current year - * @return array A mirrored (foo => foo) array of the days. - */ - public static function days($month, $year = FALSE) - { - static $months; - - if ($year === FALSE) - { - // Use the current year by default - $year = date('Y'); - } - - // Always integers - $month = (int) $month; - $year = (int) $year; - - // We use caching for months, because time functions are used - if (empty($months[$year][$month])) - { - $months[$year][$month] = array(); - - // Use date to find the number of days in the given month - $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; - - for ($i = 1; $i < $total; $i++) - { - $months[$year][$month][$i] = (string) $i; - } - } - - return $months[$year][$month]; - } - - /** - * Number of months in a year. Typically used as a shortcut for generating - * a list that can be used in a form. - * - * By default a mirrored array of $month_number => $month_number is returned - * - * Date::months(); - * // aray(1 => 1, 2 => 2, 3 => 3, ..., 12 => 12) - * - * But you can customise this by passing in either Date::MONTHS_LONG - * - * Date::months(Date::MONTHS_LONG); - * // array(1 => 'January', 2 => 'February', ..., 12 => 'December') - * - * Or Date::MONTHS_SHORT - * - * Date::months(Date::MONTHS_SHORT); - * // array(1 => 'Jan', 2 => 'Feb', ..., 12 => 'Dec') - * - * @uses Date::hours - * @param string $format The format to use for months - * @return array An array of months based on the specified format - */ - public static function months($format = NULL) - { - $months = array(); - - if ($format === Date::MONTHS_LONG OR $format === Date::MONTHS_SHORT) - { - for ($i = 1; $i <= 12; ++$i) - { - $months[$i] = strftime($format, mktime(0, 0, 0, $i, 1)); - } - } - else - { - $months = Date::hours(); - } - - return $months; - } - - /** - * Returns an array of years between a starting and ending year. By default, - * the the current year - 5 and current year + 5 will be used. Typically used - * as a shortcut for generating a list that can be used in a form. - * - * $years = Date::years(2000, 2010); // 2000, 2001, ..., 2009, 2010 - * - * @param integer $start starting year (default is current year - 5) - * @param integer $end ending year (default is current year + 5) - * @return array - */ - public static function years($start = FALSE, $end = FALSE) - { - // Default values - $start = ($start === FALSE) ? (date('Y') - 5) : (int) $start; - $end = ($end === FALSE) ? (date('Y') + 5) : (int) $end; - - $years = array(); - - for ($i = $start; $i <= $end; $i++) - { - $years[$i] = (string) $i; - } - - return $years; - } - - /** - * Returns time difference between two timestamps, in human readable format. - * If the second timestamp is not given, the current time will be used. - * Also consider using [Date::fuzzy_span] when displaying a span. - * - * $span = Date::span(60, 182, 'minutes,seconds'); // array('minutes' => 2, 'seconds' => 2) - * $span = Date::span(60, 182, 'minutes'); // 2 - * - * @param integer $remote timestamp to find the span of - * @param integer $local timestamp to use as the baseline - * @param string $output formatting string - * @return string when only a single output is requested - * @return array associative list of all outputs requested - */ - public static function span($remote, $local = NULL, $output = 'years,months,weeks,days,hours,minutes,seconds') - { - // Normalize output - $output = trim(strtolower( (string) $output)); - - if ( ! $output) - { - // Invalid output - return FALSE; - } - - // Array with the output formats - $output = preg_split('/[^a-z]+/', $output); - - // Convert the list of outputs to an associative array - $output = array_combine($output, array_fill(0, count($output), 0)); - - // Make the output values into keys - extract(array_flip($output), EXTR_SKIP); - - if ($local === NULL) - { - // Calculate the span from the current time - $local = time(); - } - - // Calculate timespan (seconds) - $timespan = abs($remote - $local); - - if (isset($output['years'])) - { - $timespan -= Date::YEAR * ($output['years'] = (int) floor($timespan / Date::YEAR)); - } - - if (isset($output['months'])) - { - $timespan -= Date::MONTH * ($output['months'] = (int) floor($timespan / Date::MONTH)); - } - - if (isset($output['weeks'])) - { - $timespan -= Date::WEEK * ($output['weeks'] = (int) floor($timespan / Date::WEEK)); - } - - if (isset($output['days'])) - { - $timespan -= Date::DAY * ($output['days'] = (int) floor($timespan / Date::DAY)); - } - - if (isset($output['hours'])) - { - $timespan -= Date::HOUR * ($output['hours'] = (int) floor($timespan / Date::HOUR)); - } - - if (isset($output['minutes'])) - { - $timespan -= Date::MINUTE * ($output['minutes'] = (int) floor($timespan / Date::MINUTE)); - } - - // Seconds ago, 1 - if (isset($output['seconds'])) - { - $output['seconds'] = $timespan; - } - - if (count($output) === 1) - { - // Only a single output was requested, return it - return array_pop($output); - } - - // Return array - return $output; - } - - /** - * Returns the difference between a time and now in a "fuzzy" way. - * Displaying a fuzzy time instead of a date is usually faster to read and understand. - * - * $span = Date::fuzzy_span(time() - 10); // "moments ago" - * $span = Date::fuzzy_span(time() + 20); // "in moments" - * - * A second parameter is available to manually set the "local" timestamp, - * however this parameter shouldn't be needed in normal usage and is only - * included for unit tests - * - * @param integer $timestamp "remote" timestamp - * @param integer $local_timestamp "local" timestamp, defaults to time() - * @return string - */ - public static function fuzzy_span($timestamp, $local_timestamp = NULL) - { - $local_timestamp = ($local_timestamp === NULL) ? time() : (int) $local_timestamp; - - // Determine the difference in seconds - $offset = abs($local_timestamp - $timestamp); - - if ($offset <= Date::MINUTE) - { - $span = 'moments'; - } - elseif ($offset < (Date::MINUTE * 20)) - { - $span = 'a few minutes'; - } - elseif ($offset < Date::HOUR) - { - $span = 'less than an hour'; - } - elseif ($offset < (Date::HOUR * 4)) - { - $span = 'a couple of hours'; - } - elseif ($offset < Date::DAY) - { - $span = 'less than a day'; - } - elseif ($offset < (Date::DAY * 2)) - { - $span = 'about a day'; - } - elseif ($offset < (Date::DAY * 4)) - { - $span = 'a couple of days'; - } - elseif ($offset < Date::WEEK) - { - $span = 'less than a week'; - } - elseif ($offset < (Date::WEEK * 2)) - { - $span = 'about a week'; - } - elseif ($offset < Date::MONTH) - { - $span = 'less than a month'; - } - elseif ($offset < (Date::MONTH * 2)) - { - $span = 'about a month'; - } - elseif ($offset < (Date::MONTH * 4)) - { - $span = 'a couple of months'; - } - elseif ($offset < Date::YEAR) - { - $span = 'less than a year'; - } - elseif ($offset < (Date::YEAR * 2)) - { - $span = 'about a year'; - } - elseif ($offset < (Date::YEAR * 4)) - { - $span = 'a couple of years'; - } - elseif ($offset < (Date::YEAR * 8)) - { - $span = 'a few years'; - } - elseif ($offset < (Date::YEAR * 12)) - { - $span = 'about a decade'; - } - elseif ($offset < (Date::YEAR * 24)) - { - $span = 'a couple of decades'; - } - elseif ($offset < (Date::YEAR * 64)) - { - $span = 'several decades'; - } - else - { - $span = 'a long time'; - } - - if ($timestamp <= $local_timestamp) - { - // This is in the past - return $span.' ago'; - } - else - { - // This in the future - return 'in '.$span; - } - } - - /** - * Converts a UNIX timestamp to DOS format. There are very few cases where - * this is needed, but some binary formats use it (eg: zip files.) - * Converting the other direction is done using {@link Date::dos2unix}. - * - * $dos = Date::unix2dos($unix); - * - * @param integer $timestamp UNIX timestamp - * @return integer - */ - public static function unix2dos($timestamp = FALSE) - { - $timestamp = ($timestamp === FALSE) ? getdate() : getdate($timestamp); - - if ($timestamp['year'] < 1980) - { - return (1 << 21 | 1 << 16); - } - - $timestamp['year'] -= 1980; - - // What voodoo is this? I have no idea... Geert can explain it though, - // and that's good enough for me. - return ($timestamp['year'] << 25 | $timestamp['mon'] << 21 | - $timestamp['mday'] << 16 | $timestamp['hours'] << 11 | - $timestamp['minutes'] << 5 | $timestamp['seconds'] >> 1); - } - - /** - * Converts a DOS timestamp to UNIX format.There are very few cases where - * this is needed, but some binary formats use it (eg: zip files.) - * Converting the other direction is done using {@link Date::unix2dos}. - * - * $unix = Date::dos2unix($dos); - * - * @param integer $timestamp DOS timestamp - * @return integer - */ - public static function dos2unix($timestamp = FALSE) - { - $sec = 2 * ($timestamp & 0x1f); - $min = ($timestamp >> 5) & 0x3f; - $hrs = ($timestamp >> 11) & 0x1f; - $day = ($timestamp >> 16) & 0x1f; - $mon = ($timestamp >> 21) & 0x0f; - $year = ($timestamp >> 25) & 0x7f; - - return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); - } - - /** - * Returns a date/time string with the specified timestamp format - * - * $time = Date::formatted_time('5 minutes ago'); - * - * @link http://www.php.net/manual/datetime.construct - * @param string $datetime_str datetime string - * @param string $timestamp_format timestamp format - * @param string $timezone timezone identifier - * @return string - */ - public static function formatted_time($datetime_str = 'now', $timestamp_format = NULL, $timezone = NULL) - { - $timestamp_format = ($timestamp_format == NULL) ? Date::$timestamp_format : $timestamp_format; - $timezone = ($timezone === NULL) ? Date::$timezone : $timezone; - - $tz = new DateTimeZone($timezone ? $timezone : date_default_timezone_get()); - $time = new DateTime($datetime_str, $tz); - - if ($time->getTimeZone()->getName() !== $tz->getName()) - { - $time->setTimeZone($tz); - } - - return $time->format($timestamp_format); - } - -} // End date diff --git a/includes/kohana/system/classes/Kohana/Debug.php b/includes/kohana/system/classes/Kohana/Debug.php deleted file mode 100644 index ccc141dd..00000000 --- a/includes/kohana/system/classes/Kohana/Debug.php +++ /dev/null @@ -1,469 +0,0 @@ -'.implode("\n", $output).''; - } - - /** - * Returns an HTML string of information about a single variable. - * - * Borrows heavily on concepts from the Debug class of [Nette](http://nettephp.com/). - * - * @param mixed $value variable to dump - * @param integer $length maximum length of strings - * @param integer $level_recursion recursion limit - * @return string - */ - public static function dump($value, $length = 128, $level_recursion = 10) - { - return Debug::_dump($value, $length, $level_recursion); - } - - /** - * Helper for Debug::dump(), handles recursion in arrays and objects. - * - * @param mixed $var variable to dump - * @param integer $length maximum length of strings - * @param integer $limit recursion limit - * @param integer $level current recursion level (internal usage only!) - * @return string - */ - protected static function _dump( & $var, $length = 128, $limit = 10, $level = 0) - { - if ($var === NULL) - { - return 'NULL'; - } - elseif (is_bool($var)) - { - return 'bool '.($var ? 'TRUE' : 'FALSE'); - } - elseif (is_float($var)) - { - return 'float '.$var; - } - elseif (is_resource($var)) - { - if (($type = get_resource_type($var)) === 'stream' AND $meta = stream_get_meta_data($var)) - { - $meta = stream_get_meta_data($var); - - if (isset($meta['uri'])) - { - $file = $meta['uri']; - - if (function_exists('stream_is_local')) - { - // Only exists on PHP >= 5.2.4 - if (stream_is_local($file)) - { - $file = Debug::path($file); - } - } - - return 'resource('.$type.') '.htmlspecialchars($file, ENT_NOQUOTES, Kohana::$charset); - } - } - else - { - return 'resource('.$type.')'; - } - } - elseif (is_string($var)) - { - // Clean invalid multibyte characters. iconv is only invoked - // if there are non ASCII characters in the string, so this - // isn't too much of a hit. - $var = UTF8::clean($var, Kohana::$charset); - - if (UTF8::strlen($var) > $length) - { - // Encode the truncated string - $str = htmlspecialchars(UTF8::substr($var, 0, $length), ENT_NOQUOTES, Kohana::$charset).' …'; - } - else - { - // Encode the string - $str = htmlspecialchars($var, ENT_NOQUOTES, Kohana::$charset); - } - - return 'string('.strlen($var).') "'.$str.'"'; - } - elseif (is_array($var)) - { - $output = array(); - - // Indentation for this variable - $space = str_repeat($s = ' ', $level); - - static $marker; - - if ($marker === NULL) - { - // Make a unique marker - $marker = uniqid("\x00"); - } - - if (empty($var)) - { - // Do nothing - } - elseif (isset($var[$marker])) - { - $output[] = "(\n$space$s*RECURSION*\n$space)"; - } - elseif ($level < $limit) - { - $output[] = "("; - - $var[$marker] = TRUE; - foreach ($var as $key => & $val) - { - if ($key === $marker) continue; - if ( ! is_int($key)) - { - $key = '"'.htmlspecialchars($key, ENT_NOQUOTES, Kohana::$charset).'"'; - } - - $output[] = "$space$s$key => ".Debug::_dump($val, $length, $limit, $level + 1); - } - unset($var[$marker]); - - $output[] = "$space)"; - } - else - { - // Depth too great - $output[] = "(\n$space$s...\n$space)"; - } - - return 'array('.count($var).') '.implode("\n", $output); - } - elseif (is_object($var)) - { - // Copy the object as an array - $array = (array) $var; - - $output = array(); - - // Indentation for this variable - $space = str_repeat($s = ' ', $level); - - $hash = spl_object_hash($var); - - // Objects that are being dumped - static $objects = array(); - - if (empty($var)) - { - // Do nothing - } - elseif (isset($objects[$hash])) - { - $output[] = "{\n$space$s*RECURSION*\n$space}"; - } - elseif ($level < $limit) - { - $output[] = "{"; - - $objects[$hash] = TRUE; - foreach ($array as $key => & $val) - { - if ($key[0] === "\x00") - { - // Determine if the access is protected or protected - $access = ''.(($key[1] === '*') ? 'protected' : 'private').''; - - // Remove the access level from the variable name - $key = substr($key, strrpos($key, "\x00") + 1); - } - else - { - $access = 'public'; - } - - $output[] = "$space$s$access $key => ".Debug::_dump($val, $length, $limit, $level + 1); - } - unset($objects[$hash]); - - $output[] = "$space}"; - } - else - { - // Depth too great - $output[] = "{\n$space$s...\n$space}"; - } - - return 'object '.get_class($var).'('.count($array).') '.implode("\n", $output); - } - else - { - return ''.gettype($var).' '.htmlspecialchars(print_r($var, TRUE), ENT_NOQUOTES, Kohana::$charset); - } - } - - /** - * Removes application, system, modpath, or docroot from a filename, - * replacing them with the plain text equivalents. Useful for debugging - * when you want to display a shorter path. - * - * // Displays SYSPATH/classes/kohana.php - * echo Debug::path(Kohana::find_file('classes', 'kohana')); - * - * @param string $file path to debug - * @return string - */ - public static function path($file) - { - if (strpos($file, APPPATH) === 0) - { - $file = 'APPPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(APPPATH)); - } - elseif (strpos($file, MODPATH) === 0) - { - $file = 'MODPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(MODPATH)); - } - elseif (strpos($file, SYSPATH) === 0) - { - $file = 'SYSPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(SYSPATH)); - } - elseif (strpos($file, SMDPATH) === 0) - { - $file = 'SMDPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(SMDPATH)); - } - elseif (strpos($file, DOCROOT) === 0) - { - $file = 'DOCROOT'.DIRECTORY_SEPARATOR.substr($file, strlen(DOCROOT)); - } - - return $file; - } - - /** - * Returns an HTML string, highlighting a specific line of a file, with some - * number of lines padded above and below. - * - * // Highlights the current line of the current file - * echo Debug::source(__FILE__, __LINE__); - * - * @param string $file file to open - * @param integer $line_number line number to highlight - * @param integer $padding number of padding lines - * @return string source of file - * @return FALSE file is unreadable - */ - public static function source($file, $line_number, $padding = 5) - { - if ( ! $file OR ! is_readable($file)) - { - // Continuing will cause errors - return FALSE; - } - - // Open the file and set the line position - $file = fopen($file, 'r'); - $line = 0; - - // Set the reading range - $range = array('start' => $line_number - $padding, 'end' => $line_number + $padding); - - // Set the zero-padding amount for line numbers - $format = '% '.strlen($range['end']).'d'; - - $source = ''; - while (($row = fgets($file)) !== FALSE) - { - // Increment the line number - if (++$line > $range['end']) - break; - - if ($line >= $range['start']) - { - // Make the row safe for output - $row = htmlspecialchars($row, ENT_NOQUOTES, Kohana::$charset); - - // Trim whitespace and sanitize the row - $row = ''.sprintf($format, $line).' '.$row; - - if ($line === $line_number) - { - // Apply highlighting to this row - $row = ''.$row.''; - } - else - { - $row = ''.$row.''; - } - - // Add to the captured source - $source .= $row; - } - } - - // Close the file - fclose($file); - - return '
'.$source.'
'; - } - - /** - * Returns an array of HTML strings that represent each step in the backtrace. - * - * // Displays the entire current backtrace - * echo implode('
', Debug::trace()); - * - * @param array $trace - * @return string - */ - public static function trace(array $trace = NULL) - { - if ($trace === NULL) - { - // Start a new trace - $trace = debug_backtrace(); - } - - // Non-standard function calls - $statements = array('include', 'include_once', 'require', 'require_once'); - - $output = array(); - foreach ($trace as $step) - { - if ( ! isset($step['function'])) - { - // Invalid trace step - continue; - } - - if (isset($step['file']) AND isset($step['line'])) - { - // Include the source of this step - $source = Debug::source($step['file'], $step['line']); - } - - if (isset($step['file'])) - { - $file = $step['file']; - - if (isset($step['line'])) - { - $line = $step['line']; - } - } - - // function() - $function = $step['function']; - - if (in_array($step['function'], $statements)) - { - if (empty($step['args'])) - { - // No arguments - $args = array(); - } - else - { - // Sanitize the file path - $args = array($step['args'][0]); - } - } - elseif (isset($step['args'])) - { - if ( ! function_exists($step['function']) OR strpos($step['function'], '{closure}') !== FALSE) - { - // Introspection on closures or language constructs in a stack trace is impossible - $params = NULL; - } - else - { - if (isset($step['class'])) - { - if (method_exists($step['class'], $step['function'])) - { - $reflection = new ReflectionMethod($step['class'], $step['function']); - } - else - { - $reflection = new ReflectionMethod($step['class'], '__call'); - } - } - else - { - $reflection = new ReflectionFunction($step['function']); - } - - // Get the function parameters - $params = $reflection->getParameters(); - } - - $args = array(); - - foreach ($step['args'] as $i => $arg) - { - if (isset($params[$i])) - { - // Assign the argument by the parameter name - $args[$params[$i]->name] = $arg; - } - else - { - // Assign the argument by number - $args[$i] = $arg; - } - } - } - - if (isset($step['class'])) - { - // Class->method() or Class::method() - $function = $step['class'].$step['type'].$step['function']; - } - - $output[] = array( - 'function' => $function, - 'args' => isset($args) ? $args : NULL, - 'file' => isset($file) ? $file : NULL, - 'line' => isset($line) ? $line : NULL, - 'source' => isset($source) ? $source : NULL, - ); - - unset($function, $args, $file, $line, $source); - } - - return $output; - } - -} diff --git a/includes/kohana/system/classes/Kohana/Encrypt.php b/includes/kohana/system/classes/Kohana/Encrypt.php deleted file mode 100644 index 46cfe575..00000000 --- a/includes/kohana/system/classes/Kohana/Encrypt.php +++ /dev/null @@ -1,213 +0,0 @@ -load('encrypt')->$name; - - if ( ! isset($config['key'])) - { - // No default encryption key is provided! - throw new Kohana_Exception('No encryption key is defined in the encryption configuration group: :group', - array(':group' => $name)); - } - - if ( ! isset($config['mode'])) - { - // Add the default mode - $config['mode'] = MCRYPT_MODE_NOFB; - } - - if ( ! isset($config['cipher'])) - { - // Add the default cipher - $config['cipher'] = MCRYPT_RIJNDAEL_128; - } - - // Create a new instance - Encrypt::$instances[$name] = new Encrypt($config['key'], $config['mode'], $config['cipher']); - } - - return Encrypt::$instances[$name]; - } - - /** - * Creates a new mcrypt wrapper. - * - * @param string $key encryption key - * @param string $mode mcrypt mode - * @param string $cipher mcrypt cipher - */ - public function __construct($key, $mode, $cipher) - { - // Find the max length of the key, based on cipher and mode - $size = mcrypt_get_key_size($cipher, $mode); - - if (isset($key[$size])) - { - // Shorten the key to the maximum size - $key = substr($key, 0, $size); - } - - // Store the key, mode, and cipher - $this->_key = $key; - $this->_mode = $mode; - $this->_cipher = $cipher; - - // Store the IV size - $this->_iv_size = mcrypt_get_iv_size($this->_cipher, $this->_mode); - } - - /** - * Encrypts a string and returns an encrypted string that can be decoded. - * - * $data = $encrypt->encode($data); - * - * The encrypted binary data is encoded using [base64](http://php.net/base64_encode) - * to convert it to a string. This string can be stored in a database, - * displayed, and passed using most other means without corruption. - * - * @param string $data data to be encrypted - * @return string - */ - public function encode($data) - { - // Set the rand type if it has not already been set - if (Encrypt::$_rand === NULL) - { - if (Kohana::$is_windows) - { - // Windows only supports the system random number generator - Encrypt::$_rand = MCRYPT_RAND; - } - else - { - if (defined('MCRYPT_DEV_URANDOM')) - { - // Use /dev/urandom - Encrypt::$_rand = MCRYPT_DEV_URANDOM; - } - elseif (defined('MCRYPT_DEV_RANDOM')) - { - // Use /dev/random - Encrypt::$_rand = MCRYPT_DEV_RANDOM; - } - else - { - // Use the system random number generator - Encrypt::$_rand = MCRYPT_RAND; - } - } - } - - if (Encrypt::$_rand === MCRYPT_RAND) - { - // The system random number generator must always be seeded each - // time it is used, or it will not produce true random results - mt_srand(); - } - - // Create a random initialization vector of the proper size for the current cipher - $iv = mcrypt_create_iv($this->_iv_size, Encrypt::$_rand); - - // Encrypt the data using the configured options and generated iv - $data = mcrypt_encrypt($this->_cipher, $this->_key, $data, $this->_mode, $iv); - - // Use base64 encoding to convert to a string - return base64_encode($iv.$data); - } - - /** - * Decrypts an encoded string back to its original value. - * - * $data = $encrypt->decode($data); - * - * @param string $data encoded string to be decrypted - * @return FALSE if decryption fails - * @return string - */ - public function decode($data) - { - // Convert the data back to binary - $data = base64_decode($data, TRUE); - - if ( ! $data) - { - // Invalid base64 data - return FALSE; - } - - // Extract the initialization vector from the data - $iv = substr($data, 0, $this->_iv_size); - - if ($this->_iv_size !== strlen($iv)) - { - // The iv is not the expected size - return FALSE; - } - - // Remove the iv from the data - $data = substr($data, $this->_iv_size); - - // Return the decrypted data, trimming the \0 padding bytes from the end of the data - return rtrim(mcrypt_decrypt($this->_cipher, $this->_key, $data, $this->_mode, $iv), "\0"); - } - -} // End Encrypt diff --git a/includes/kohana/system/classes/Kohana/Exception.php b/includes/kohana/system/classes/Kohana/Exception.php deleted file mode 100644 index 2ffb42ad..00000000 --- a/includes/kohana/system/classes/Kohana/Exception.php +++ /dev/null @@ -1,3 +0,0 @@ -execute(); - $feed = $response->body(); - } - elseif (is_file($feed)) - { - // Get file contents - $feed = file_get_contents($feed); - } - - // Load the feed - $feed = simplexml_load_string($feed, 'SimpleXMLElement', LIBXML_NOCDATA); - - // Restore error reporting - error_reporting($error_level); - - // Feed could not be loaded - if ($feed === FALSE) - return array(); - - $namespaces = $feed->getNamespaces(TRUE); - - // Detect the feed type. RSS 1.0/2.0 and Atom 1.0 are supported. - $feed = isset($feed->channel) ? $feed->xpath('//item') : $feed->entry; - - $i = 0; - $items = array(); - - foreach ($feed as $item) - { - if ($limit > 0 AND $i++ === $limit) - break; - $item_fields = (array) $item; - - // get namespaced tags - foreach ($namespaces as $ns) - { - $item_fields += (array) $item->children($ns); - } - $items[] = $item_fields; - } - - return $items; - } - - /** - * Creates a feed from the given parameters. - * - * @param array $info feed information - * @param array $items items to add to the feed - * @param string $encoding define which encoding to use - * @return string - */ - public static function create($info, $items, $encoding = 'UTF-8') - { - $info += array('title' => 'Generated Feed', 'link' => '', 'generator' => 'KohanaPHP'); - - $feed = ''; - $feed = simplexml_load_string($feed); - - foreach ($info as $name => $value) - { - if ($name === 'image') - { - // Create an image element - $image = $feed->channel->addChild('image'); - - if ( ! isset($value['link'], $value['url'], $value['title'])) - { - throw new Kohana_Exception('Feed images require a link, url, and title'); - } - - if (strpos($value['link'], '://') === FALSE) - { - // Convert URIs to URLs - $value['link'] = URL::site($value['link'], 'http'); - } - - if (strpos($value['url'], '://') === FALSE) - { - // Convert URIs to URLs - $value['url'] = URL::site($value['url'], 'http'); - } - - // Create the image elements - $image->addChild('link', $value['link']); - $image->addChild('url', $value['url']); - $image->addChild('title', $value['title']); - } - else - { - if (($name === 'pubDate' OR $name === 'lastBuildDate') AND (is_int($value) OR ctype_digit($value))) - { - // Convert timestamps to RFC 822 formatted dates - $value = date('r', $value); - } - elseif (($name === 'link' OR $name === 'docs') AND strpos($value, '://') === FALSE) - { - // Convert URIs to URLs - $value = URL::site($value, 'http'); - } - - // Add the info to the channel - $feed->channel->addChild($name, $value); - } - } - - foreach ($items as $item) - { - // Add the item to the channel - $row = $feed->channel->addChild('item'); - - foreach ($item as $name => $value) - { - if ($name === 'pubDate' AND (is_int($value) OR ctype_digit($value))) - { - // Convert timestamps to RFC 822 formatted dates - $value = date('r', $value); - } - elseif (($name === 'link' OR $name === 'guid') AND strpos($value, '://') === FALSE) - { - // Convert URIs to URLs - $value = URL::site($value, 'http'); - } - - // Add the info to the row - $row->addChild($name, $value); - } - } - - if (function_exists('dom_import_simplexml')) - { - // Convert the feed object to a DOM object - $feed = dom_import_simplexml($feed)->ownerDocument; - - // DOM generates more readable XML - $feed->formatOutput = TRUE; - - // Export the document as XML - $feed = $feed->saveXML(); - } - else - { - // Export the document as XML - $feed = $feed->asXML(); - } - - return $feed; - } - -} // End Feed diff --git a/includes/kohana/system/classes/Kohana/File.php b/includes/kohana/system/classes/Kohana/File.php deleted file mode 100644 index b4fff2de..00000000 --- a/includes/kohana/system/classes/Kohana/File.php +++ /dev/null @@ -1,241 +0,0 @@ -file($filename); - } - } - - if (ini_get('mime_magic.magicfile') AND function_exists('mime_content_type')) - { - // The mime_content_type function is only useful with a magic file - return mime_content_type($filename); - } - - if ( ! empty($extension)) - { - return File::mime_by_ext($extension); - } - - // Unable to find the mime-type - return FALSE; - } - - /** - * Return the mime type of an extension. - * - * $mime = File::mime_by_ext('png'); // "image/png" - * - * @param string $extension php, pdf, txt, etc - * @return string mime type on success - * @return FALSE on failure - */ - public static function mime_by_ext($extension) - { - // Load all of the mime types - $mimes = Kohana::$config->load('mimes'); - - return isset($mimes[$extension]) ? $mimes[$extension][0] : FALSE; - } - - /** - * Lookup MIME types for a file - * - * @see Kohana_File::mime_by_ext() - * @param string $extension Extension to lookup - * @return array Array of MIMEs associated with the specified extension - */ - public static function mimes_by_ext($extension) - { - // Load all of the mime types - $mimes = Kohana::$config->load('mimes'); - - return isset($mimes[$extension]) ? ( (array) $mimes[$extension]) : array(); - } - - /** - * Lookup file extensions by MIME type - * - * @param string $type File MIME type - * @return array File extensions matching MIME type - */ - public static function exts_by_mime($type) - { - static $types = array(); - - // Fill the static array - if (empty($types)) - { - foreach (Kohana::$config->load('mimes') as $ext => $mimes) - { - foreach ($mimes as $mime) - { - if ($mime == 'application/octet-stream') - { - // octet-stream is a generic binary - continue; - } - - if ( ! isset($types[$mime])) - { - $types[$mime] = array( (string) $ext); - } - elseif ( ! in_array($ext, $types[$mime])) - { - $types[$mime][] = (string) $ext; - } - } - } - } - - return isset($types[$type]) ? $types[$type] : FALSE; - } - - /** - * Lookup a single file extension by MIME type. - * - * @param string $type MIME type to lookup - * @return mixed First file extension matching or false - */ - public static function ext_by_mime($type) - { - return current(File::exts_by_mime($type)); - } - - /** - * Split a file into pieces matching a specific size. Used when you need to - * split large files into smaller pieces for easy transmission. - * - * $count = File::split($file); - * - * @param string $filename file to be split - * @param integer $piece_size size, in MB, for each piece to be - * @return integer The number of pieces that were created - */ - public static function split($filename, $piece_size = 10) - { - // Open the input file - $file = fopen($filename, 'rb'); - - // Change the piece size to bytes - $piece_size = floor($piece_size * 1024 * 1024); - - // Write files in 8k blocks - $block_size = 1024 * 8; - - // Total number of peices - $peices = 0; - - while ( ! feof($file)) - { - // Create another piece - $peices += 1; - - // Create a new file piece - $piece = str_pad($peices, 3, '0', STR_PAD_LEFT); - $piece = fopen($filename.'.'.$piece, 'wb+'); - - // Number of bytes read - $read = 0; - - do - { - // Transfer the data in blocks - fwrite($piece, fread($file, $block_size)); - - // Another block has been read - $read += $block_size; - } - while ($read < $piece_size); - - // Close the piece - fclose($piece); - } - - // Close the file - fclose($file); - - return $peices; - } - - /** - * Join a split file into a whole file. Does the reverse of [File::split]. - * - * $count = File::join($file); - * - * @param string $filename split filename, without .000 extension - * @return integer The number of pieces that were joined. - */ - public static function join($filename) - { - // Open the file - $file = fopen($filename, 'wb+'); - - // Read files in 8k blocks - $block_size = 1024 * 8; - - // Total number of peices - $pieces = 0; - - while (is_file($piece = $filename.'.'.str_pad($pieces + 1, 3, '0', STR_PAD_LEFT))) - { - // Read another piece - $pieces += 1; - - // Open the piece for reading - $piece = fopen($piece, 'rb'); - - while ( ! feof($piece)) - { - // Transfer the data in blocks - fwrite($file, fread($piece, $block_size)); - } - - // Close the peice - fclose($piece); - } - - return $pieces; - } - -} // End file diff --git a/includes/kohana/system/classes/Kohana/Form.php b/includes/kohana/system/classes/Kohana/Form.php deleted file mode 100644 index 6cf529bc..00000000 --- a/includes/kohana/system/classes/Kohana/Form.php +++ /dev/null @@ -1,434 +0,0 @@ - 'get')); - * - * // When "file" inputs are present, you must include the "enctype" - * echo Form::open(NULL, array('enctype' => 'multipart/form-data')); - * - * @param mixed $action form action, defaults to the current request URI, or [Request] class to use - * @param array $attributes html attributes - * @return string - * @uses Request::instance - * @uses URL::site - * @uses HTML::attributes - */ - public static function open($action = NULL, array $attributes = NULL) - { - if ($action instanceof Request) - { - // Use the current URI - $action = $action->uri(); - } - - if ( ! $action) - { - // Allow empty form actions (submits back to the current url). - $action = ''; - } - elseif (strpos($action, '://') === FALSE) - { - // Make the URI absolute - $action = URL::site($action); - } - - // Add the form action to the attributes - $attributes['action'] = $action; - - // Only accept the default character set - $attributes['accept-charset'] = Kohana::$charset; - - if ( ! isset($attributes['method'])) - { - // Use POST method - $attributes['method'] = 'post'; - } - - return ''; - } - - /** - * Creates the closing form tag. - * - * echo Form::close(); - * - * @return string - */ - public static function close() - { - return ''; - } - - /** - * Creates a form input. If no type is specified, a "text" type input will - * be returned. - * - * echo Form::input('username', $username); - * - * @param string $name input name - * @param string $value input value - * @param array $attributes html attributes - * @return string - * @uses HTML::attributes - */ - public static function input($name, $value = NULL, array $attributes = NULL) - { - // Set the input name - $attributes['name'] = $name; - - // Set the input value - $attributes['value'] = $value; - - if ( ! isset($attributes['type'])) - { - // Default type is text - $attributes['type'] = 'text'; - } - - return ''; - } - - /** - * Creates a hidden form input. - * - * echo Form::hidden('csrf', $token); - * - * @param string $name input name - * @param string $value input value - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function hidden($name, $value = NULL, array $attributes = NULL) - { - $attributes['type'] = 'hidden'; - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a password form input. - * - * echo Form::password('password'); - * - * @param string $name input name - * @param string $value input value - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function password($name, $value = NULL, array $attributes = NULL) - { - $attributes['type'] = 'password'; - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a file upload form input. No input value can be specified. - * - * echo Form::file('image'); - * - * @param string $name input name - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function file($name, array $attributes = NULL) - { - $attributes['type'] = 'file'; - - return Form::input($name, NULL, $attributes); - } - - /** - * Creates a checkbox form input. - * - * echo Form::checkbox('remember_me', 1, (bool) $remember); - * - * @param string $name input name - * @param string $value input value - * @param boolean $checked checked status - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function checkbox($name, $value = NULL, $checked = FALSE, array $attributes = NULL) - { - $attributes['type'] = 'checkbox'; - - if ($checked === TRUE) - { - // Make the checkbox active - $attributes[] = 'checked'; - } - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a radio form input. - * - * echo Form::radio('like_cats', 1, $cats); - * echo Form::radio('like_cats', 0, ! $cats); - * - * @param string $name input name - * @param string $value input value - * @param boolean $checked checked status - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function radio($name, $value = NULL, $checked = FALSE, array $attributes = NULL) - { - $attributes['type'] = 'radio'; - - if ($checked === TRUE) - { - // Make the radio active - $attributes[] = 'checked'; - } - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a textarea form input. - * - * echo Form::textarea('about', $about); - * - * @param string $name textarea name - * @param string $body textarea body - * @param array $attributes html attributes - * @param boolean $double_encode encode existing HTML characters - * @return string - * @uses HTML::attributes - * @uses HTML::chars - */ - public static function textarea($name, $body = '', array $attributes = NULL, $double_encode = TRUE) - { - // Set the input name - $attributes['name'] = $name; - - // Add default rows and cols attributes (required) - $attributes += array('rows' => 10, 'cols' => 50); - - return ''.HTML::chars($body, $double_encode).''; - } - - /** - * Creates a select form input. - * - * echo Form::select('country', $countries, $country); - * - * [!!] Support for multiple selected options was added in v3.0.7. - * - * @param string $name input name - * @param array $options available options - * @param mixed $selected selected option string, or an array of selected options - * @param array $attributes html attributes - * @return string - * @uses HTML::attributes - */ - public static function select($name, array $options = NULL, $selected = NULL, array $attributes = NULL) - { - // Set the input name - $attributes['name'] = $name; - - if (is_array($selected)) - { - // This is a multi-select, god save us! - $attributes[] = 'multiple'; - } - - if ( ! is_array($selected)) - { - if ($selected === NULL) - { - // Use an empty array - $selected = array(); - } - else - { - // Convert the selected options to an array - $selected = array( (string) $selected); - } - } - - if (empty($options)) - { - // There are no options - $options = ''; - } - else - { - foreach ($options as $value => $name) - { - if (is_array($name)) - { - // Create a new optgroup - $group = array('label' => $value); - - // Create a new list of options - $_options = array(); - - foreach ($name as $_value => $_name) - { - // Force value to be string - $_value = (string) $_value; - - // Create a new attribute set for this option - $option = array('value' => $_value); - - if (in_array($_value, $selected)) - { - // This option is selected - $option[] = 'selected'; - } - - // Change the option to the HTML string - $_options[] = ''.HTML::chars($_name, FALSE).''; - } - - // Compile the options into a string - $_options = "\n".implode("\n", $_options)."\n"; - - $options[$value] = ''.$_options.''; - } - else - { - // Force value to be string - $value = (string) $value; - - // Create a new attribute set for this option - $option = array('value' => $value); - - if (in_array($value, $selected)) - { - // This option is selected - $option[] = 'selected'; - } - - // Change the option to the HTML string - $options[$value] = ''.HTML::chars($name, FALSE).''; - } - } - - // Compile the options into a single string - $options = "\n".implode("\n", $options)."\n"; - } - - return ''.$options.''; - } - - /** - * Creates a submit form input. - * - * echo Form::submit(NULL, 'Login'); - * - * @param string $name input name - * @param string $value input value - * @param array $attributes html attributes - * @return string - * @uses Form::input - */ - public static function submit($name, $value, array $attributes = NULL) - { - $attributes['type'] = 'submit'; - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a image form input. - * - * echo Form::image(NULL, NULL, array('src' => 'media/img/login.png')); - * - * @param string $name input name - * @param string $value input value - * @param array $attributes html attributes - * @param boolean $index add index file to URL? - * @return string - * @uses Form::input - */ - public static function image($name, $value, array $attributes = NULL, $index = FALSE) - { - if ( ! empty($attributes['src'])) - { - if (strpos($attributes['src'], '://') === FALSE) - { - // Add the base URL - $attributes['src'] = URL::base($index).$attributes['src']; - } - } - - $attributes['type'] = 'image'; - - return Form::input($name, $value, $attributes); - } - - /** - * Creates a button form input. Note that the body of a button is NOT escaped, - * to allow images and other HTML to be used. - * - * echo Form::button('save', 'Save Profile', array('type' => 'submit')); - * - * @param string $name input name - * @param string $body input value - * @param array $attributes html attributes - * @return string - * @uses HTML::attributes - */ - public static function button($name, $body, array $attributes = NULL) - { - // Set the input name - $attributes['name'] = $name; - - return ''.$body.''; - } - - /** - * Creates a form label. Label text is not automatically translated. - * - * echo Form::label('username', 'Username'); - * - * @param string $input target input - * @param string $text label text - * @param array $attributes html attributes - * @return string - * @uses HTML::attributes - */ - public static function label($input, $text = NULL, array $attributes = NULL) - { - if ($text === NULL) - { - // Use the input name as the text - $text = ucwords(preg_replace('/[\W_]+/', ' ', $input)); - } - - // Set the label target - $attributes['for'] = $input; - - return ''.$text.''; - } - -} // End form diff --git a/includes/kohana/system/classes/Kohana/Fragment.php b/includes/kohana/system/classes/Kohana/Fragment.php deleted file mode 100644 index 3072fc90..00000000 --- a/includes/kohana/system/classes/Kohana/Fragment.php +++ /dev/null @@ -1,147 +0,0 @@ - cache key - */ - protected static $_caches = array(); - - /** - * Generate the cache key name for a fragment. - * - * $key = Fragment::_cache_key('footer', TRUE); - * - * @param string $name fragment name - * @param boolean $i18n multilingual fragment support - * @return string - * @uses I18n::lang - * @since 3.0.4 - */ - protected static function _cache_key($name, $i18n = NULL) - { - if ($i18n === NULL) - { - // Use the default setting - $i18n = Fragment::$i18n; - } - - // Language prefix for cache key - $i18n = ($i18n === TRUE) ? I18n::lang() : ''; - - // Note: $i18n and $name need to be delimited to prevent naming collisions - return 'Fragment::cache('.$i18n.'+'.$name.')'; - } - - /** - * Load a fragment from cache and display it. Multiple fragments can - * be nested with different life times. - * - * if ( ! Fragment::load('footer')) { - * // Anything that is echo'ed here will be saved - * Fragment::save(); - * } - * - * @param string $name fragment name - * @param integer $lifetime fragment cache lifetime - * @param boolean $i18n multilingual fragment support - * @return boolean - */ - public static function load($name, $lifetime = NULL, $i18n = NULL) - { - // Set the cache lifetime - $lifetime = ($lifetime === NULL) ? Fragment::$lifetime : (int) $lifetime; - - // Get the cache key name - $cache_key = Fragment::_cache_key($name, $i18n); - - if ($fragment = Kohana::cache($cache_key, NULL, $lifetime)) - { - // Display the cached fragment now - echo $fragment; - - return TRUE; - } - else - { - // Start the output buffer - ob_start(); - - // Store the cache key by the buffer level - Fragment::$_caches[ob_get_level()] = $cache_key; - - return FALSE; - } - } - - /** - * Saves the currently open fragment in the cache. - * - * Fragment::save(); - * - * @return void - */ - public static function save() - { - // Get the buffer level - $level = ob_get_level(); - - if (isset(Fragment::$_caches[$level])) - { - // Get the cache key based on the level - $cache_key = Fragment::$_caches[$level]; - - // Delete the cache key, we don't need it anymore - unset(Fragment::$_caches[$level]); - - // Get the output buffer and display it at the same time - $fragment = ob_get_flush(); - - // Cache the fragment - Kohana::cache($cache_key, $fragment); - } - } - - /** - * Delete a cached fragment. - * - * Fragment::delete($key); - * - * @param string $name fragment name - * @param boolean $i18n multilingual fragment support - * @return void - */ - public static function delete($name, $i18n = NULL) - { - // Invalid the cache - Kohana::cache(Fragment::_cache_key($name, $i18n), NULL, -3600); - } - -} // End Fragment diff --git a/includes/kohana/system/classes/Kohana/HTML.php b/includes/kohana/system/classes/Kohana/HTML.php deleted file mode 100644 index 171856c4..00000000 --- a/includes/kohana/system/classes/Kohana/HTML.php +++ /dev/null @@ -1,345 +0,0 @@ -'.$title.''; - } - - /** - * Creates an HTML anchor to a file. Note that the title is not escaped, - * to allow HTML elements within links (images, etc). - * - * echo HTML::file_anchor('media/doc/user_guide.pdf', 'User Guide'); - * - * @param string $file name of file to link to - * @param string $title link text - * @param array $attributes HTML anchor attributes - * @param mixed $protocol protocol to pass to URL::base() - * @param boolean $index include the index page - * @return string - * @uses URL::base - * @uses HTML::attributes - */ - public static function file_anchor($file, $title = NULL, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - if ($title === NULL) - { - // Use the file name as the title - $title = basename($file); - } - - // Add the file link to the attributes - $attributes['href'] = URL::site($file, $protocol, $index); - - return ''.$title.''; - } - - /** - * Creates an email (mailto:) anchor. Note that the title is not escaped, - * to allow HTML elements within links (images, etc). - * - * echo HTML::mailto($address); - * - * @param string $email email address to send to - * @param string $title link text - * @param array $attributes HTML anchor attributes - * @return string - * @uses HTML::attributes - */ - public static function mailto($email, $title = NULL, array $attributes = NULL) - { - if ($title === NULL) - { - // Use the email address as the title - $title = $email; - } - - return ''.$title.''; - } - - /** - * Creates a style sheet link element. - * - * echo HTML::style('media/css/screen.css'); - * - * @param string $file file name - * @param array $attributes default attributes - * @param mixed $protocol protocol to pass to URL::base() - * @param boolean $index include the index page - * @return string - * @uses URL::base - * @uses HTML::attributes - */ - public static function style($file, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - if (strpos($file, '://') === FALSE) - { - // Add the base URL - $file = URL::site($file, $protocol, $index); - } - - // Set the stylesheet link - $attributes['href'] = $file; - - // Set the stylesheet rel - $attributes['rel'] = empty($attributes['rel']) ? 'stylesheet' : $attributes['rel']; - - // Set the stylesheet type - $attributes['type'] = 'text/css'; - - return ''; - } - - /** - * Creates a script link. - * - * echo HTML::script('media/js/jquery.min.js'); - * - * @param string $file file name - * @param array $attributes default attributes - * @param mixed $protocol protocol to pass to URL::base() - * @param boolean $index include the index page - * @return string - * @uses URL::base - * @uses HTML::attributes - */ - public static function script($file, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - if (strpos($file, '://') === FALSE) - { - // Add the base URL - $file = URL::site($file, $protocol, $index); - } - - // Set the script link - $attributes['src'] = $file; - - // Set the script type - $attributes['type'] = 'text/javascript'; - - return ''; - } - - /** - * Creates a image link. - * - * echo HTML::image('media/img/logo.png', array('alt' => 'My Company')); - * - * @param string $file file name - * @param array $attributes default attributes - * @param mixed $protocol protocol to pass to URL::base() - * @param boolean $index include the index page - * @return string - * @uses URL::base - * @uses HTML::attributes - */ - public static function image($file, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - if (strpos($file, '://') === FALSE) - { - // Add the base URL - $file = URL::site($file, $protocol, $index); - } - - // Add the image link - $attributes['src'] = $file; - - return ''; - } - - /** - * Compiles an array of HTML attributes into an attribute string. - * Attributes will be sorted using HTML::$attribute_order for consistency. - * - * echo ''.$content.''; - * - * @param array $attributes attribute list - * @return string - */ - public static function attributes(array $attributes = NULL) - { - if (empty($attributes)) - return ''; - - $sorted = array(); - foreach (HTML::$attribute_order as $key) - { - if (isset($attributes[$key])) - { - // Add the attribute to the sorted list - $sorted[$key] = $attributes[$key]; - } - } - - // Combine the sorted attributes - $attributes = $sorted + $attributes; - - $compiled = ''; - foreach ($attributes as $key => $value) - { - if ($value === NULL) - { - // Skip attributes that have NULL values - continue; - } - - if (is_int($key)) - { - // Assume non-associative keys are mirrored attributes - $key = $value; - - if ( ! HTML::$strict) - { - // Just use a key - $value = FALSE; - } - } - - // Add the attribute key - $compiled .= ' '.$key; - - if ($value OR HTML::$strict) - { - // Add the attribute value - $compiled .= '="'.HTML::chars($value).'"'; - } - } - - return $compiled; - } - -} // End html diff --git a/includes/kohana/system/classes/Kohana/HTTP.php b/includes/kohana/system/classes/Kohana/HTTP.php deleted file mode 100644 index 2dec59f0..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP.php +++ /dev/null @@ -1,217 +0,0 @@ - $code - )); - - throw $e->location($uri); - } - - /** - * Checks the browser cache to see the response needs to be returned, - * execution will halt and a 304 Not Modified will be sent if the - * browser cache is up to date. - * - * @param Request $request Request - * @param Response $response Response - * @param string $etag Resource ETag - * @throws HTTP_Exception_304 - * @return Response - */ - public static function check_cache(Request $request, Response $response, $etag = NULL) - { - // Generate an etag if necessary - if ($etag == NULL) - { - $etag = $response->generate_etag(); - } - - // Set the ETag header - $response->headers('etag', $etag); - - // Add the Cache-Control header if it is not already set - // This allows etags to be used with max-age, etc - if ($response->headers('cache-control')) - { - $response->headers('cache-control', $response->headers('cache-control').', must-revalidate'); - } - else - { - $response->headers('cache-control', 'must-revalidate'); - } - - // Check if we have a matching etag - if ($request->headers('if-none-match') AND (string) $request->headers('if-none-match') === $etag) - { - // No need to send data again - throw HTTP_Exception::factory(304)->headers('etag', $etag); - } - - return $response; - } - - /** - * Parses a HTTP header string into an associative array - * - * @param string $header_string Header string to parse - * @return HTTP_Header - */ - public static function parse_header_string($header_string) - { - // If the PECL HTTP extension is loaded - if (extension_loaded('http')) - { - // Use the fast method to parse header string - return new HTTP_Header(http_parse_headers($header_string)); - } - - // Otherwise we use the slower PHP parsing - $headers = array(); - - // Match all HTTP headers - if (preg_match_all('/(\w[^\s:]*):[ ]*([^\r\n]*(?:\r\n[ \t][^\r\n]*)*)/', $header_string, $matches)) - { - // Parse each matched header - foreach ($matches[0] as $key => $value) - { - // If the header has not already been set - if ( ! isset($headers[$matches[1][$key]])) - { - // Apply the header directly - $headers[$matches[1][$key]] = $matches[2][$key]; - } - // Otherwise there is an existing entry - else - { - // If the entry is an array - if (is_array($headers[$matches[1][$key]])) - { - // Apply the new entry to the array - $headers[$matches[1][$key]][] = $matches[2][$key]; - } - // Otherwise create a new array with the entries - else - { - $headers[$matches[1][$key]] = array( - $headers[$matches[1][$key]], - $matches[2][$key], - ); - } - } - } - } - - // Return the headers - return new HTTP_Header($headers); - } - - /** - * Parses the the HTTP request headers and returns an array containing - * key value pairs. This method is slow, but provides an accurate - * representation of the HTTP request. - * - * // Get http headers into the request - * $request->headers = HTTP::request_headers(); - * - * @return HTTP_Header - */ - public static function request_headers() - { - // If running on apache server - if (function_exists('apache_request_headers')) - { - // Return the much faster method - return new HTTP_Header(apache_request_headers()); - } - // If the PECL HTTP tools are installed - elseif (extension_loaded('http')) - { - // Return the much faster method - return new HTTP_Header(http_get_request_headers()); - } - - // Setup the output - $headers = array(); - - // Parse the content type - if ( ! empty($_SERVER['CONTENT_TYPE'])) - { - $headers['content-type'] = $_SERVER['CONTENT_TYPE']; - } - - // Parse the content length - if ( ! empty($_SERVER['CONTENT_LENGTH'])) - { - $headers['content-length'] = $_SERVER['CONTENT_LENGTH']; - } - - foreach ($_SERVER as $key => $value) - { - // If there is no HTTP header here, skip - if (strpos($key, 'HTTP_') !== 0) - { - continue; - } - - // This is a dirty hack to ensure HTTP_X_FOO_BAR becomes x-foo-bar - $headers[str_replace(array('HTTP_', '_'), array('', '-'), $key)] = $value; - } - - return new HTTP_Header($headers); - } - - /** - * Processes an array of key value pairs and encodes - * the values to meet RFC 3986 - * - * @param array $params Params - * @return string - */ - public static function www_form_urlencode(array $params = array()) - { - if ( ! $params) - return; - - $encoded = array(); - - foreach ($params as $key => $value) - { - $encoded[] = $key.'='.rawurlencode($value); - } - - return implode('&', $encoded); - } -} // End Kohana_HTTP \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception.php b/includes/kohana/system/classes/Kohana/HTTP/Exception.php deleted file mode 100644 index 0c878d73..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception.php +++ /dev/null @@ -1,72 +0,0 @@ - $user)); - * - * @param string $message status message, custom content to display with error - * @param array $variables translation variables - * @return void - */ - public function __construct($message = NULL, array $variables = NULL, Exception $previous = NULL) - { - parent::__construct($message, $variables, $this->_code, $previous); - } - - /** - * Store the Request that triggered this exception. - * - * @param Request $request Request object that triggered this exception. - * @return Response - */ - public function request(Request $request = NULL) - { - if ($request === NULL) - return $this->_request; - - $this->_request = $request; - - return $this; - } - - /** - * Generate a Response for the current Exception - * - * @uses Kohana_Exception::response() - * @return Response - */ - public function get_response() - { - return Kohana_Exception::response($this); - } - -} // End Kohana_HTTP_Exception \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception/300.php b/includes/kohana/system/classes/Kohana/HTTP/Exception/300.php deleted file mode 100644 index cc5a4502..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception/300.php +++ /dev/null @@ -1,10 +0,0 @@ -headers('Location'); - - $this->headers('Location', $uri); - - return $this; - } - - /** - * Validate this exception contains everything needed to continue. - * - * @throws Kohana_Exception - * @return bool - */ - public function check() - { - if ($location = $this->headers('location') === NULL) - throw new Kohana_Exception('A \'location\' must be specified for a redirect'); - - if (strpos($location, '://') === FALSE) - throw new Kohana_Exception('An absolute URI to the proxy server must be specified'); - - return TRUE; - } -} \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception/307.php b/includes/kohana/system/classes/Kohana/HTTP/Exception/307.php deleted file mode 100644 index 1294f278..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception/307.php +++ /dev/null @@ -1,10 +0,0 @@ -headers('www-authenticate'); - - $this->headers('www-authenticate', $challenge); - - return $this; - } - - /** - * Validate this exception contains everything needed to continue. - * - * @throws Kohana_Exception - * @return bool - */ - public function check() - { - if ($this->headers('www-authenticate') === NULL) - throw new Kohana_Exception('A \'www-authenticate\' header must be specified for a HTTP 401 Unauthorized'); - - return TRUE; - } -} diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception/402.php b/includes/kohana/system/classes/Kohana/HTTP/Exception/402.php deleted file mode 100644 index 54d9ff1d..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception/402.php +++ /dev/null @@ -1,10 +0,0 @@ -headers('allow', $methods); - - return $this; - } - - /** - * Validate this exception contains everything needed to continue. - * - * @throws Kohana_Exception - * @return bool - */ - public function check() - { - if ($location = $this->headers('allow') === NULL) - throw new Kohana_Exception('A list of allowed methods must be specified'); - - return TRUE; - } - -} \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception/406.php b/includes/kohana/system/classes/Kohana/HTTP/Exception/406.php deleted file mode 100644 index b23861a4..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception/406.php +++ /dev/null @@ -1,10 +0,0 @@ - $user)); - * - * @param string $message status message, custom content to display with error - * @param array $variables translation variables - * @return void - */ - public function __construct($message = NULL, array $variables = NULL, Exception $previous = NULL) - { - parent::__construct($message, $variables, $previous); - - // Prepare our response object and set the correct status code. - $this->_response = Response::factory() - ->status($this->_code); - } - - /** - * Gets and sets headers to the [Response]. - * - * @see [Response::headers] - * @param mixed $key - * @param string $value - * @return mixed - */ - public function headers($key = NULL, $value = NULL) - { - $result = $this->_response->headers($key, $value); - - if ( ! $result instanceof Response) - return $result; - - return $this; - } - - /** - * Validate this exception contains everything needed to continue. - * - * @throws Kohana_Exception - * @return bool - */ - public function check() - { - return TRUE; - } - - /** - * Generate a Response for the current Exception - * - * @uses Kohana_Exception::response() - * @return Response - */ - public function get_response() - { - $this->check(); - - return $this->_response; - } - -} // End Kohana_HTTP_Exception \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Exception/Redirect.php b/includes/kohana/system/classes/Kohana/HTTP/Exception/Redirect.php deleted file mode 100644 index e065289f..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Exception/Redirect.php +++ /dev/null @@ -1,51 +0,0 @@ -headers('Location'); - - if (strpos($uri, '://') === FALSE) - { - // Make the URI into a URL - $uri = URL::site($uri, TRUE, ! empty(Kohana::$index_file)); - } - - $this->headers('Location', $uri); - - return $this; - } - - /** - * Validate this exception contains everything needed to continue. - * - * @throws Kohana_Exception - * @return bool - */ - public function check() - { - if ($this->headers('location') === NULL) - throw new Kohana_Exception('A \'location\' must be specified for a redirect'); - - return TRUE; - } - -} // End Kohana_HTTP_Exception_Redirect \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/HTTP/Header.php b/includes/kohana/system/classes/Kohana/HTTP/Header.php deleted file mode 100644 index 5850537c..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Header.php +++ /dev/null @@ -1,949 +0,0 @@ - array('*' => (float) HTTP_Header::DEFAULT_QUALITY)); - - // Parse the accept header qualities - $accepts = HTTP_Header::accept_quality($accepts); - - $parsed_accept = array(); - - // This method of iteration uses less resource - $keys = array_keys($accepts); - foreach ($keys as $key) - { - // Extract the parts - $parts = explode('/', $key, 2); - - // Invalid content type- bail - if ( ! isset($parts[1])) - continue; - - // Set the parsed output - $parsed_accept[$parts[0]][$parts[1]] = $accepts[$key]; - } - - return $parsed_accept; - } - - /** - * Parses the `Accept-Charset:` HTTP header and returns an array containing - * the charset and associated quality. - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.2 - * @param string $charset charset string to parse - * @return array - * @since 3.2.0 - */ - public static function parse_charset_header($charset = NULL) - { - if ($charset === NULL) - { - return array('*' => (float) HTTP_Header::DEFAULT_QUALITY); - } - - return HTTP_Header::accept_quality(explode(',', (string) $charset)); - } - - /** - * Parses the `Accept-Encoding:` HTTP header and returns an array containing - * the charsets and associated quality. - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3 - * @param string $encoding charset string to parse - * @return array - * @since 3.2.0 - */ - public static function parse_encoding_header($encoding = NULL) - { - // Accept everything - if ($encoding === NULL) - { - return array('*' => (float) HTTP_Header::DEFAULT_QUALITY); - } - elseif ($encoding === '') - { - return array('identity' => (float) HTTP_Header::DEFAULT_QUALITY); - } - else - { - return HTTP_Header::accept_quality(explode(',', (string) $encoding)); - } - } - - /** - * Parses the `Accept-Language:` HTTP header and returns an array containing - * the languages and associated quality. - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 - * @param string $language charset string to parse - * @return array - * @since 3.2.0 - */ - public static function parse_language_header($language = NULL) - { - if ($language === NULL) - { - return array('*' => array('*' => (float) HTTP_Header::DEFAULT_QUALITY)); - } - - $language = HTTP_Header::accept_quality(explode(',', (string) $language)); - - $parsed_language = array(); - - $keys = array_keys($language); - foreach ($keys as $key) - { - // Extract the parts - $parts = explode('-', $key, 2); - - // Invalid content type- bail - if ( ! isset($parts[1])) - { - $parsed_language[$parts[0]]['*'] = $language[$key]; - } - else - { - // Set the parsed output - $parsed_language[$parts[0]][$parts[1]] = $language[$key]; - } - } - - return $parsed_language; - } - - /** - * Generates a Cache-Control HTTP header based on the supplied array. - * - * // Set the cache control headers you want to use - * $cache_control = array( - * 'max-age' => 3600, - * 'must-revalidate', - * 'public' - * ); - * - * // Create the cache control header, creates : - * // cache-control: max-age=3600, must-revalidate, public - * $response->headers('Cache-Control', HTTP_Header::create_cache_control($cache_control); - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13 - * @param array $cache_control Cache-Control to render to string - * @return string - */ - public static function create_cache_control(array $cache_control) - { - $parts = array(); - - foreach ($cache_control as $key => $value) - { - $parts[] = (is_int($key)) ? $value : ($key.'='.$value); - } - - return implode(', ', $parts); - } - - /** - * Parses the Cache-Control header and returning an array representation of the Cache-Control - * header. - * - * // Create the cache control header - * $response->headers('cache-control', 'max-age=3600, must-revalidate, public'); - * - * // Parse the cache control header - * if ($cache_control = HTTP_Header::parse_cache_control($response->headers('cache-control'))) - * { - * // Cache-Control header was found - * $maxage = $cache_control['max-age']; - * } - * - * @param array $cache_control Array of headers - * @return mixed - */ - public static function parse_cache_control($cache_control) - { - $directives = explode(',', strtolower($cache_control)); - - if ($directives === FALSE) - return FALSE; - - $output = array(); - - foreach ($directives as $directive) - { - if (strpos($directive, '=') !== FALSE) - { - list($key, $value) = explode('=', trim($directive), 2); - - $output[$key] = ctype_digit($value) ? (int) $value : $value; - } - else - { - $output[] = trim($directive); - } - } - - return $output; - } - - /** - * @var array Accept: (content) types - */ - protected $_accept_content; - - /** - * @var array Accept-Charset: parsed header - */ - protected $_accept_charset; - - /** - * @var array Accept-Encoding: parsed header - */ - protected $_accept_encoding; - - /** - * @var array Accept-Language: parsed header - */ - protected $_accept_language; - - /** - * Constructor method for [Kohana_HTTP_Header]. Uses the standard constructor - * of the parent `ArrayObject` class. - * - * $header_object = new HTTP_Header(array('x-powered-by' => 'Kohana 3.1.x', 'expires' => '...')); - * - * @param mixed $input Input array - * @param int $flags Flags - * @param string $iterator_class The iterator class to use - */ - public function __construct(array $input = array(), $flags = NULL, $iterator_class = 'ArrayIterator') - { - /** - * @link http://www.w3.org/Protocols/rfc2616/rfc2616.html - * - * HTTP header declarations should be treated as case-insensitive - */ - $input = array_change_key_case( (array) $input, CASE_LOWER); - - parent::__construct($input, $flags, $iterator_class); - } - - /** - * Returns the header object as a string, including - * the terminating new line - * - * // Return the header as a string - * echo (string) $request->headers(); - * - * @return string - */ - public function __toString() - { - $header = ''; - - foreach ($this as $key => $value) - { - // Put the keys back the Case-Convention expected - $key = Text::ucfirst($key); - - if (is_array($value)) - { - $header .= $key.': '.(implode(', ', $value))."\r\n"; - } - else - { - $header .= $key.': '.$value."\r\n"; - } - } - - return $header."\r\n"; - } - - /** - * Overloads `ArrayObject::offsetSet()` to enable handling of header - * with multiple instances of the same directive. If the `$replace` flag - * is `FALSE`, the header will be appended rather than replacing the - * original setting. - * - * @param mixed $index index to set `$newval` to - * @param mixed $newval new value to set - * @param boolean $replace replace existing value - * @return void - * @since 3.2.0 - */ - public function offsetSet($index, $newval, $replace = TRUE) - { - // Ensure the index is lowercase - $index = strtolower($index); - - if ($replace OR ! $this->offsetExists($index)) - { - return parent::offsetSet($index, $newval); - } - - $current_value = $this->offsetGet($index); - - if (is_array($current_value)) - { - $current_value[] = $newval; - } - else - { - $current_value = array($current_value, $newval); - } - - return parent::offsetSet($index, $current_value); - } - - /** - * Overloads the `ArrayObject::offsetExists()` method to ensure keys - * are lowercase. - * - * @param string $index - * @return boolean - * @since 3.2.0 - */ - public function offsetExists($index) - { - return parent::offsetExists(strtolower($index)); - } - - /** - * Overloads the `ArrayObject::offsetUnset()` method to ensure keys - * are lowercase. - * - * @param string $index - * @return void - * @since 3.2.0 - */ - public function offsetUnset($index) - { - return parent::offsetUnset(strtolower($index)); - } - - /** - * Overload the `ArrayObject::offsetGet()` method to ensure that all - * keys passed to it are formatted correctly for this object. - * - * @param string $index index to retrieve - * @return mixed - * @since 3.2.0 - */ - public function offsetGet($index) - { - return parent::offsetGet(strtolower($index)); - } - - /** - * Overloads the `ArrayObject::exchangeArray()` method to ensure that - * all keys are changed to lowercase. - * - * @param mixed $input - * @return array - * @since 3.2.0 - */ - public function exchangeArray($input) - { - /** - * @link http://www.w3.org/Protocols/rfc2616/rfc2616.html - * - * HTTP header declarations should be treated as case-insensitive - */ - $input = array_change_key_case( (array) $input, CASE_LOWER); - - return parent::exchangeArray($input); - } - - /** - * Parses a HTTP Message header line and applies it to this HTTP_Header - * - * $header = $response->headers(); - * $header->parse_header_string(NULL, 'content-type: application/json'); - * - * @param resource $resource the resource (required by Curl API) - * @param string $header_line the line from the header to parse - * @return int - * @since 3.2.0 - */ - public function parse_header_string($resource, $header_line) - { - $headers = array(); - - if (preg_match_all('/(\w[^\s:]*):[ ]*([^\r\n]*(?:\r\n[ \t][^\r\n]*)*)/', $header_line, $matches)) - { - foreach ($matches[0] as $key => $value) - { - $this->offsetSet($matches[1][$key], $matches[2][$key], FALSE); - } - } - - return strlen($header_line); - } - - /** - * Returns the accept quality of a submitted mime type based on the - * request `Accept:` header. If the `$explicit` argument is `TRUE`, - * only precise matches will be returned, excluding all wildcard (`*`) - * directives. - * - * // Accept: application/xml; application/json; q=.5; text/html; q=.2, text/* - * // Accept quality for application/json - * - * // $quality = 0.5 - * $quality = $request->headers()->accepts_at_quality('application/json'); - * - * // $quality_explicit = FALSE - * $quality_explicit = $request->headers()->accepts_at_quality('text/plain', TRUE); - * - * @param string $type - * @param boolean $explicit explicit check, excludes `*` - * @return mixed - * @since 3.2.0 - */ - public function accepts_at_quality($type, $explicit = FALSE) - { - // Parse Accept header if required - if ($this->_accept_content === NULL) - { - if ($this->offsetExists('Accept')) - { - $accept = $this->offsetGet('Accept'); - } - else - { - $accept = '*/*'; - } - - $this->_accept_content = HTTP_Header::parse_accept_header($accept); - } - - // If not a real mime, try and find it in config - if (strpos($type, '/') === FALSE) - { - $mime = Kohana::$config->load('mimes.'.$type); - - if ($mime === NULL) - return FALSE; - - $quality = FALSE; - - foreach ($mime as $_type) - { - $quality_check = $this->accepts_at_quality($_type, $explicit); - $quality = ($quality_check > $quality) ? $quality_check : $quality; - } - - return $quality; - } - - $parts = explode('/', $type, 2); - - if (isset($this->_accept_content[$parts[0]][$parts[1]])) - { - return $this->_accept_content[$parts[0]][$parts[1]]; - } - elseif ($explicit === TRUE) - { - return FALSE; - } - else - { - if (isset($this->_accept_content[$parts[0]]['*'])) - { - return $this->_accept_content[$parts[0]]['*']; - } - elseif (isset($this->_accept_content['*']['*'])) - { - return $this->_accept_content['*']['*']; - } - else - { - return FALSE; - } - } - } - - /** - * Returns the preferred response content type based on the accept header - * quality settings. If items have the same quality value, the first item - * found in the array supplied as `$types` will be returned. - * - * // Get the preferred acceptable content type - * // Accept: text/html, application/json; q=.8, text/* - * $result = $header->preferred_accept(array( - * 'text/html' - * 'text/rtf', - * 'application/json' - * )); // $result = 'application/json' - * - * $result = $header->preferred_accept(array( - * 'text/rtf', - * 'application/xml' - * ), TRUE); // $result = FALSE (none matched explicitly) - * - * - * @param array $types the content types to examine - * @param boolean $explicit only allow explicit references, no wildcards - * @return string name of the preferred content type - * @since 3.2.0 - */ - public function preferred_accept(array $types, $explicit = FALSE) - { - $preferred = FALSE; - $ceiling = 0; - - foreach ($types as $type) - { - $quality = $this->accepts_at_quality($type, $explicit); - - if ($quality > $ceiling) - { - $preferred = $type; - $ceiling = $quality; - } - } - - return $preferred; - } - - /** - * Returns the quality of the supplied `$charset` argument. This method - * will automatically parse the `Accept-Charset` header if present and - * return the associated resolved quality value. - * - * // Accept-Charset: utf-8, utf-16; q=.8, iso-8859-1; q=.5 - * $quality = $header->accepts_charset_at_quality('utf-8'); - * // $quality = (float) 1 - * - * @param string $charset charset to examine - * @return float the quality of the charset - * @since 3.2.0 - */ - public function accepts_charset_at_quality($charset) - { - if ($this->_accept_charset === NULL) - { - if ($this->offsetExists('Accept-Charset')) - { - $charset_header = strtolower($this->offsetGet('Accept-Charset')); - $this->_accept_charset = HTTP_Header::parse_charset_header($charset_header); - } - else - { - $this->_accept_charset = HTTP_Header::parse_charset_header(NULL); - } - } - - $charset = strtolower($charset); - - if (isset($this->_accept_charset[$charset])) - { - return $this->_accept_charset[$charset]; - } - elseif (isset($this->_accept_charset['*'])) - { - return $this->_accept_charset['*']; - } - elseif ($charset === 'iso-8859-1') - { - return (float) 1; - } - - return (float) 0; - } - - /** - * Returns the preferred charset from the supplied array `$charsets` based - * on the `Accept-Charset` header directive. - * - * // Accept-Charset: utf-8, utf-16; q=.8, iso-8859-1; q=.5 - * $charset = $header->preferred_charset(array( - * 'utf-10', 'ascii', 'utf-16', 'utf-8' - * )); // $charset = 'utf-8' - * - * @param array $charsets charsets to test - * @return mixed preferred charset or `FALSE` - * @since 3.2.0 - */ - public function preferred_charset(array $charsets) - { - $preferred = FALSE; - $ceiling = 0; - - foreach ($charsets as $charset) - { - $quality = $this->accepts_charset_at_quality($charset); - - if ($quality > $ceiling) - { - $preferred = $charset; - $ceiling = $quality; - } - } - - return $preferred; - } - - /** - * Returns the quality of the `$encoding` type passed to it. Encoding - * is usually compression such as `gzip`, but could be some other - * message encoding algorithm. This method allows explicit checks to be - * done ignoring wildcards. - * - * // Accept-Encoding: compress, gzip, *; q=.5 - * $encoding = $header->accepts_encoding_at_quality('gzip'); - * // $encoding = (float) 1.0s - * - * @param string $encoding encoding type to interrogate - * @param boolean $explicit explicit check, ignoring wildcards and `identity` - * @return float - * @since 3.2.0 - */ - public function accepts_encoding_at_quality($encoding, $explicit = FALSE) - { - if ($this->_accept_encoding === NULL) - { - if ($this->offsetExists('Accept-Encoding')) - { - $encoding_header = $this->offsetGet('Accept-Encoding'); - } - else - { - $encoding_header = NULL; - } - - $this->_accept_encoding = HTTP_Header::parse_encoding_header($encoding_header); - } - - // Normalize the encoding - $encoding = strtolower($encoding); - - if (isset($this->_accept_encoding[$encoding])) - { - return $this->_accept_encoding[$encoding]; - } - - if ($explicit === FALSE) - { - if (isset($this->_accept_encoding['*'])) - { - return $this->_accept_encoding['*']; - } - elseif ($encoding === 'identity') - { - return (float) HTTP_Header::DEFAULT_QUALITY; - } - } - - return (float) 0; - } - - /** - * Returns the preferred message encoding type based on quality, and can - * optionally ignore wildcard references. If two or more encodings have the - * same quality, the first listed in `$encodings` will be returned. - * - * // Accept-Encoding: compress, gzip, *; q.5 - * $encoding = $header->preferred_encoding(array( - * 'gzip', 'bzip', 'blowfish' - * )); - * // $encoding = 'gzip'; - * - * @param array $encodings encodings to test against - * @param boolean $explicit explicit check, if `TRUE` wildcards are excluded - * @return mixed - * @since 3.2.0 - */ - public function preferred_encoding(array $encodings, $explicit = FALSE) - { - $ceiling = 0; - $preferred = FALSE; - - foreach ($encodings as $encoding) - { - $quality = $this->accepts_encoding_at_quality($encoding, $explicit); - - if ($quality > $ceiling) - { - $ceiling = $quality; - $preferred = $encoding; - } - } - - return $preferred; - } - - /** - * Returns the quality of `$language` supplied, optionally ignoring - * wildcards if `$explicit` is set to a non-`FALSE` value. If the quality - * is not found, `0.0` is returned. - * - * // Accept-Language: en-us, en-gb; q=.7, en; q=.5 - * $lang = $header->accepts_language_at_quality('en-gb'); - * // $lang = (float) 0.7 - * - * $lang2 = $header->accepts_language_at_quality('en-au'); - * // $lang2 = (float) 0.5 - * - * $lang3 = $header->accepts_language_at_quality('en-au', TRUE); - * // $lang3 = (float) 0.0 - * - * @param string $language language to interrogate - * @param boolean $explicit explicit interrogation, `TRUE` ignores wildcards - * @return float - * @since 3.2.0 - */ - public function accepts_language_at_quality($language, $explicit = FALSE) - { - if ($this->_accept_language === NULL) - { - if ($this->offsetExists('Accept-Language')) - { - $language_header = strtolower($this->offsetGet('Accept-Language')); - } - else - { - $language_header = NULL; - } - - $this->_accept_language = HTTP_Header::parse_language_header($language_header); - } - - // Normalize the language - $language_parts = explode('-', strtolower($language), 2); - - if (isset($this->_accept_language[$language_parts[0]])) - { - if (isset($language_parts[1])) - { - if (isset($this->_accept_language[$language_parts[0]][$language_parts[1]])) - { - return $this->_accept_language[$language_parts[0]][$language_parts[1]]; - } - elseif ($explicit === FALSE AND isset($this->_accept_language[$language_parts[0]]['*'])) - { - return $this->_accept_language[$language_parts[0]]['*']; - } - } - elseif (isset($this->_accept_language[$language_parts[0]]['*'])) - { - return $this->_accept_language[$language_parts[0]]['*']; - } - } - - if ($explicit === FALSE AND isset($this->_accept_language['*'])) - { - return $this->_accept_language['*']; - } - - return (float) 0; - } - - /** - * Returns the preferred language from the supplied array `$languages` based - * on the `Accept-Language` header directive. - * - * // Accept-Language: en-us, en-gb; q=.7, en; q=.5 - * $lang = $header->preferred_language(array( - * 'en-gb', 'en-au', 'fr', 'es' - * )); // $lang = 'en-gb' - * - * @param array $languages - * @param boolean $explicit - * @return mixed - * @since 3.2.0 - */ - public function preferred_language(array $languages, $explicit = FALSE) - { - $ceiling = 0; - $preferred = FALSE; - - foreach ($languages as $language) - { - $quality = $this->accepts_language_at_quality($language, $explicit); - - if ($quality > $ceiling) - { - $ceiling = $quality; - $preferred = $language; - } - } - - return $preferred; - } - - /** - * Sends headers to the php processor, or supplied `$callback` argument. - * This method formats the headers correctly for output, re-instating their - * capitalization for transmission. - * - * [!!] if you supply a custom header handler via `$callback`, it is - * recommended that `$response` is returned - * - * @param HTTP_Response $response header to send - * @param boolean $replace replace existing value - * @param callback $callback optional callback to replace PHP header function - * @return mixed - * @since 3.2.0 - */ - public function send_headers(HTTP_Response $response = NULL, $replace = FALSE, $callback = NULL) - { - if ($response === NULL) - { - // Default to the initial request message - $response = Request::initial()->response(); - } - - $protocol = $response->protocol(); - $status = $response->status(); - - // Create the response header - $processed_headers = array($protocol.' '.$status.' '.Response::$messages[$status]); - - // Get the headers array - $headers = $response->headers()->getArrayCopy(); - - foreach ($headers as $header => $value) - { - if (is_array($value)) - { - $value = implode(', ', $value); - } - - $processed_headers[] = Text::ucfirst($header).': '.$value; - } - - if ( ! isset($headers['content-type'])) - { - $processed_headers[] = 'Content-Type: '.Kohana::$content_type.'; charset='.Kohana::$charset; - } - - if (Kohana::$expose AND ! isset($headers['x-powered-by'])) - { - $processed_headers[] = 'X-Powered-By: '.Kohana::version(); - } - - // Get the cookies and apply - if ($cookies = $response->cookie()) - { - $processed_headers['Set-Cookie'] = $cookies; - } - - if (is_callable($callback)) - { - // Use the callback method to set header - return call_user_func($callback, $response, $processed_headers, $replace); - } - else - { - $this->_send_headers_to_php($processed_headers, $replace); - return $response; - } - } - - /** - * Sends the supplied headers to the PHP output buffer. If cookies - * are included in the message they will be handled appropriately. - * - * @param array $headers headers to send to php - * @param boolean $replace replace existing headers - * @return self - * @since 3.2.0 - */ - protected function _send_headers_to_php(array $headers, $replace) - { - // If the headers have been sent, get out - if (headers_sent()) - return $this; - - foreach ($headers as $key => $line) - { - if ($key == 'Set-Cookie' AND is_array($line)) - { - // Send cookies - foreach ($line as $name => $value) - { - Cookie::set($name, $value['value'], $value['expiration']); - } - - continue; - } - - header($line, $replace); - } - - return $this; - } - -} // End Kohana_HTTP_Header diff --git a/includes/kohana/system/classes/Kohana/HTTP/Message.php b/includes/kohana/system/classes/Kohana/HTTP/Message.php deleted file mode 100644 index 096a20ad..00000000 --- a/includes/kohana/system/classes/Kohana/HTTP/Message.php +++ /dev/null @@ -1,56 +0,0 @@ -status(404); - * - * // Get the current status - * $status = $response->status(); - * - * @param integer $code Status to set to this response - * @return mixed - */ - public function status($code = NULL); - -} \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/I18n.php b/includes/kohana/system/classes/Kohana/I18n.php deleted file mode 100644 index 0856da03..00000000 --- a/includes/kohana/system/classes/Kohana/I18n.php +++ /dev/null @@ -1,166 +0,0 @@ - $username)); - * - * @package Kohana - * @category Base - * @author Kohana Team - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_I18n { - - /** - * @var string target language: en-us, es-es, zh-cn, etc - */ - public static $lang = 'en-us'; - - /** - * @var string source language: en-us, es-es, zh-cn, etc - */ - public static $source = 'en-us'; - - /** - * @var array cache of loaded languages - */ - protected static $_cache = array(); - - /** - * Get and set the target language. - * - * // Get the current language - * $lang = I18n::lang(); - * - * // Change the current language to Spanish - * I18n::lang('es-es'); - * - * @param string $lang new language setting - * @return string - * @since 3.0.2 - */ - public static function lang($lang = NULL) - { - if ($lang) - { - // Normalize the language - I18n::$lang = strtolower(str_replace(array(' ', '_'), '-', $lang)); - } - - return I18n::$lang; - } - - /** - * Returns translation of a string. If no translation exists, the original - * string will be returned. No parameters are replaced. - * - * $hello = I18n::get('Hello friends, my name is :name'); - * - * @param string $string text to translate - * @param string $lang target language - * @return string - */ - public static function get($string, $lang = NULL) - { - if ( ! $lang) - { - // Use the global target language - $lang = I18n::$lang; - } - - // Load the translation table for this language - $table = I18n::load($lang); - - // Return the translated string if it exists - return isset($table[$string]) ? $table[$string] : $string; - } - - /** - * Returns the translation table for a given language. - * - * // Get all defined Spanish messages - * $messages = I18n::load('es-es'); - * - * @param string $lang language to load - * @return array - */ - public static function load($lang) - { - if (isset(I18n::$_cache[$lang])) - { - return I18n::$_cache[$lang]; - } - - // New translation table - $table = array(); - - // Split the language: language, region, locale, etc - $parts = explode('-', $lang); - - do - { - // Create a path for this set of parts - $path = implode(DIRECTORY_SEPARATOR, $parts); - - if ($files = Kohana::find_file('i18n', $path, NULL, TRUE)) - { - $t = array(); - foreach ($files as $file) - { - // Merge the language strings into the sub table - $t = array_merge($t, Kohana::load($file)); - } - - // Append the sub table, preventing less specific language - // files from overloading more specific files - $table += $t; - } - - // Remove the last part - array_pop($parts); - } - while ($parts); - - // Cache the translation table locally - return I18n::$_cache[$lang] = $table; - } - -} // End I18n - -if ( ! function_exists('__')) -{ - /** - * Kohana translation/internationalization function. The PHP function - * [strtr](http://php.net/strtr) is used for replacing parameters. - * - * __('Welcome back, :user', array(':user' => $username)); - * - * [!!] The target language is defined by [I18n::$lang]. - * - * @uses I18n::get - * @param string $string text to translate - * @param array $values values to replace in the translated text - * @param string $lang source language - * @return string - */ - function __($string, array $values = NULL, $lang = 'en-us') - { - if ($lang !== I18n::$lang) - { - // The message and target languages are different - // Get the translation for this message - $string = I18n::get($string); - } - - return empty($values) ? $string : strtr($string, $values); - } -} diff --git a/includes/kohana/system/classes/Kohana/Inflector.php b/includes/kohana/system/classes/Kohana/Inflector.php deleted file mode 100644 index 2d7c2df8..00000000 --- a/includes/kohana/system/classes/Kohana/Inflector.php +++ /dev/null @@ -1,269 +0,0 @@ -load('inflector')->uncountable; - - // Make uncountables mirrored - Inflector::$uncountable = array_combine(Inflector::$uncountable, Inflector::$uncountable); - } - - return isset(Inflector::$uncountable[strtolower($str)]); - } - - /** - * Makes a plural word singular. - * - * echo Inflector::singular('cats'); // "cat" - * echo Inflector::singular('fish'); // "fish", uncountable - * - * You can also provide the count to make inflection more intelligent. - * In this case, it will only return the singular value if the count is - * greater than one and not zero. - * - * echo Inflector::singular('cats', 2); // "cats" - * - * [!!] Special inflections are defined in `config/inflector.php`. - * - * @param string $str word to singularize - * @param integer $count count of thing - * @return string - * @uses Inflector::uncountable - */ - public static function singular($str, $count = NULL) - { - // $count should always be a float - $count = ($count === NULL) ? 1.0 : (float) $count; - - // Do nothing when $count is not 1 - if ($count != 1) - return $str; - - // Remove garbage - $str = strtolower(trim($str)); - - // Cache key name - $key = 'singular_'.$str.$count; - - if (isset(Inflector::$cache[$key])) - return Inflector::$cache[$key]; - - if (Inflector::uncountable($str)) - return Inflector::$cache[$key] = $str; - - if (empty(Inflector::$irregular)) - { - // Cache irregular words - Inflector::$irregular = Kohana::$config->load('inflector')->irregular; - } - - if ($irregular = array_search($str, Inflector::$irregular)) - { - $str = $irregular; - } - elseif (preg_match('/us$/', $str)) - { - // http://en.wikipedia.org/wiki/Plural_form_of_words_ending_in_-us - // Already singular, do nothing - } - elseif (preg_match('/[sxz]es$/', $str) OR preg_match('/[^aeioudgkprt]hes$/', $str)) - { - // Remove "es" - $str = substr($str, 0, -2); - } - elseif (preg_match('/[^aeiou]ies$/', $str)) - { - // Replace "ies" with "y" - $str = substr($str, 0, -3).'y'; - } - elseif (substr($str, -1) === 's' AND substr($str, -2) !== 'ss') - { - // Remove singular "s" - $str = substr($str, 0, -1); - } - - return Inflector::$cache[$key] = $str; - } - - /** - * Makes a singular word plural. - * - * echo Inflector::plural('fish'); // "fish", uncountable - * echo Inflector::plural('cat'); // "cats" - * - * You can also provide the count to make inflection more intelligent. - * In this case, it will only return the plural value if the count is - * not one. - * - * echo Inflector::singular('cats', 3); // "cats" - * - * [!!] Special inflections are defined in `config/inflector.php`. - * - * @param string $str word to pluralize - * @param integer $count count of thing - * @return string - * @uses Inflector::uncountable - */ - public static function plural($str, $count = NULL) - { - // $count should always be a float - $count = ($count === NULL) ? 0.0 : (float) $count; - - // Do nothing with singular - if ($count == 1) - return $str; - - // Remove garbage - $str = trim($str); - - // Cache key name - $key = 'plural_'.$str.$count; - - // Check uppercase - $is_uppercase = ctype_upper($str); - - if (isset(Inflector::$cache[$key])) - return Inflector::$cache[$key]; - - if (Inflector::uncountable($str)) - return Inflector::$cache[$key] = $str; - - if (empty(Inflector::$irregular)) - { - // Cache irregular words - Inflector::$irregular = Kohana::$config->load('inflector')->irregular; - } - - if (isset(Inflector::$irregular[$str])) - { - $str = Inflector::$irregular[$str]; - } - elseif (preg_match('/[sxz]$/', $str) OR preg_match('/[^aeioudgkprt]h$/', $str)) - { - $str .= 'es'; - } - elseif (preg_match('/[^aeiou]y$/', $str)) - { - // Change "y" to "ies" - $str = substr_replace($str, 'ies', -1); - } - else - { - $str .= 's'; - } - - // Convert to uppsecase if nessasary - if ($is_uppercase) - { - $str = strtoupper($str); - } - - // Set the cache and return - return Inflector::$cache[$key] = $str; - } - - /** - * Makes a phrase camel case. Spaces and underscores will be removed. - * - * $str = Inflector::camelize('mother cat'); // "motherCat" - * $str = Inflector::camelize('kittens in bed'); // "kittensInBed" - * - * @param string $str phrase to camelize - * @return string - */ - public static function camelize($str) - { - $str = 'x'.strtolower(trim($str)); - $str = ucwords(preg_replace('/[\s_]+/', ' ', $str)); - - return substr(str_replace(' ', '', $str), 1); - } - - /** - * Converts a camel case phrase into a spaced phrase. - * - * $str = Inflector::decamelize('houseCat'); // "house cat" - * $str = Inflector::decamelize('kingAllyCat'); // "king ally cat" - * - * @param string $str phrase to camelize - * @param string $sep word separator - * @return string - */ - public static function decamelize($str, $sep = ' ') - { - return strtolower(preg_replace('/([a-z])([A-Z])/', '$1'.$sep.'$2', trim($str))); - } - - /** - * Makes a phrase underscored instead of spaced. - * - * $str = Inflector::underscore('five cats'); // "five_cats"; - * - * @param string $str phrase to underscore - * @return string - */ - public static function underscore($str) - { - return preg_replace('/\s+/', '_', trim($str)); - } - - /** - * Makes an underscored or dashed phrase human-readable. - * - * $str = Inflector::humanize('kittens-are-cats'); // "kittens are cats" - * $str = Inflector::humanize('dogs_as_well'); // "dogs as well" - * - * @param string $str phrase to make human-readable - * @return string - */ - public static function humanize($str) - { - return preg_replace('/[_-]+/', ' ', trim($str)); - } - -} // End Inflector diff --git a/includes/kohana/system/classes/Kohana/Kohana/Exception.php b/includes/kohana/system/classes/Kohana/Kohana/Exception.php deleted file mode 100644 index 2955bec7..00000000 --- a/includes/kohana/system/classes/Kohana/Kohana/Exception.php +++ /dev/null @@ -1,282 +0,0 @@ - human readable name - */ - public static $php_errors = array( - E_ERROR => 'Fatal Error', - E_USER_ERROR => 'User Error', - E_PARSE => 'Parse Error', - E_WARNING => 'Warning', - E_USER_WARNING => 'User Warning', - E_STRICT => 'Strict', - E_NOTICE => 'Notice', - E_RECOVERABLE_ERROR => 'Recoverable Error', - E_DEPRECATED => 'Deprecated', - ); - - /** - * @var string error rendering view - */ - public static $error_view = 'kohana/error'; - - /** - * @var string error view content type - */ - public static $error_view_content_type = 'text/html'; - - /** - * Creates a new translated exception. - * - * throw new Kohana_Exception('Something went terrible wrong, :user', - * array(':user' => $user)); - * - * @param string $message error message - * @param array $variables translation variables - * @param integer|string $code the exception code - * @param Exception $previous Previous exception - * @return void - */ - public function __construct($message = "", array $variables = NULL, $code = 0, Exception $previous = NULL) - { - // Set the message - $message = __($message, $variables); - - // Pass the message and integer code to the parent - parent::__construct($message, (int) $code, $previous); - - // Save the unmodified code - // @link http://bugs.php.net/39615 - $this->code = $code; - } - - /** - * Magic object-to-string method. - * - * echo $exception; - * - * @uses Kohana_Exception::text - * @return string - */ - public function __toString() - { - return Kohana_Exception::text($this); - } - - /** - * Inline exception handler, displays the error message, source of the - * exception, and the stack trace of the error. - * - * @uses Kohana_Exception::response - * @param Exception $e - * @return boolean - */ - public static function handler(Exception $e) - { - $response = Kohana_Exception::_handler($e); - - // Send the response to the browser - echo $response->send_headers()->body(); - - exit(1); - } - - /** - * Exception handler, logs the exception and generates a Response object - * for display. - * - * @uses Kohana_Exception::response - * @param Exception $e - * @return boolean - */ - public static function _handler(Exception $e) - { - try - { - // Log the exception - Kohana_Exception::log($e); - - // Generate the response - $response = Kohana_Exception::response($e); - - return $response; - } - catch (Exception $e) - { - /** - * Things are going *really* badly for us, We now have no choice - * but to bail. Hard. - */ - // Clean the output buffer if one exists - ob_get_level() AND ob_clean(); - - // Set the Status code to 500, and Content-Type to text/plain. - header('Content-Type: text/plain; charset='.Kohana::$charset, TRUE, 500); - - echo Kohana_Exception::text($e); - - exit(1); - } - } - - /** - * Logs an exception. - * - * @uses Kohana_Exception::text - * @param Exception $e - * @param int $level - * @return void - */ - public static function log(Exception $e, $level = Log::EMERGENCY) - { - if (is_object(Kohana::$log)) - { - // Create a text version of the exception - $error = Kohana_Exception::text($e); - - // Add this exception to the log - Kohana::$log->add($level, $error, NULL, array('exception' => $e)); - - // Make sure the logs are written - Kohana::$log->write(); - } - } - - /** - * Get a single line of text representing the exception: - * - * Error [ Code ]: Message ~ File [ Line ] - * - * @param Exception $e - * @return string - */ - public static function text(Exception $e) - { - return sprintf('%s [ %s ]: %s ~ %s [ %d ]', - get_class($e), $e->getCode(), strip_tags($e->getMessage()), Debug::path($e->getFile()), $e->getLine()); - } - - /** - * Get a Response object representing the exception - * - * @uses Kohana_Exception::text - * @param Exception $e - * @return Response - */ - public static function response(Exception $e) - { - try - { - // Get the exception information - $class = get_class($e); - $code = $e->getCode(); - $message = $e->getMessage(); - $file = $e->getFile(); - $line = $e->getLine(); - $trace = $e->getTrace(); - - if ( ! headers_sent()) - { - // Make sure the proper http header is sent - $http_header_status = ($e instanceof HTTP_Exception) ? $code : 500; - } - - /** - * HTTP_Exceptions are constructed in the HTTP_Exception::factory() - * method. We need to remove that entry from the trace and overwrite - * the variables from above. - */ - if ($e instanceof HTTP_Exception AND $trace[0]['function'] == 'factory') - { - extract(array_shift($trace)); - } - - - if ($e instanceof ErrorException) - { - /** - * If XDebug is installed, and this is a fatal error, - * use XDebug to generate the stack trace - */ - if (function_exists('xdebug_get_function_stack') AND $code == E_ERROR) - { - $trace = array_slice(array_reverse(xdebug_get_function_stack()), 4); - - foreach ($trace as & $frame) - { - /** - * XDebug pre 2.1.1 doesn't currently set the call type key - * http://bugs.xdebug.org/view.php?id=695 - */ - if ( ! isset($frame['type'])) - { - $frame['type'] = '??'; - } - - // XDebug also has a different name for the parameters array - if (isset($frame['params']) AND ! isset($frame['args'])) - { - $frame['args'] = $frame['params']; - } - } - } - - if (isset(Kohana_Exception::$php_errors[$code])) - { - // Use the human-readable error name - $code = Kohana_Exception::$php_errors[$code]; - } - } - - /** - * The stack trace becomes unmanageable inside PHPUnit. - * - * The error view ends up several GB in size, taking - * serveral minutes to render. - */ - if (defined('PHPUnit_MAIN_METHOD')) - { - $trace = array_slice($trace, 0, 2); - } - - // Instantiate the error view. - $view = View::factory(Kohana_Exception::$error_view, get_defined_vars()); - - // Prepare the response object. - $response = Response::factory(); - - // Set the response status - $response->status(($e instanceof HTTP_Exception) ? $e->getCode() : 500); - - // Set the response headers - $response->headers('Content-Type', Kohana_Exception::$error_view_content_type.'; charset='.Kohana::$charset); - - // Set the response body - $response->body($view->render()); - } - catch (Exception $e) - { - /** - * Things are going badly for us, Lets try to keep things under control by - * generating a simpler response object. - */ - $response = Response::factory(); - $response->status(500); - $response->headers('Content-Type', 'text/plain'); - $response->body(Kohana_Exception::text($e)); - } - - return $response; - } - -} // End Kohana_Exception diff --git a/includes/kohana/system/classes/Kohana/Log.php b/includes/kohana/system/classes/Kohana/Log.php deleted file mode 100644 index d06b07cc..00000000 --- a/includes/kohana/system/classes/Kohana/Log.php +++ /dev/null @@ -1,228 +0,0 @@ -attach($writer); - * - * @param Log_Writer $writer instance - * @param mixed $levels array of messages levels to write OR max level to write - * @param integer $min_level min level to write IF $levels is not an array - * @return Log - */ - public function attach(Log_Writer $writer, $levels = array(), $min_level = 0) - { - if ( ! is_array($levels)) - { - $levels = range($min_level, $levels); - } - - $this->_writers["{$writer}"] = array - ( - 'object' => $writer, - 'levels' => $levels - ); - - return $this; - } - - /** - * Detaches a log writer. The same writer object must be used. - * - * $log->detach($writer); - * - * @param Log_Writer $writer instance - * @return Log - */ - public function detach(Log_Writer $writer) - { - // Remove the writer - unset($this->_writers["{$writer}"]); - - return $this; - } - - /** - * Adds a message to the log. Replacement values must be passed in to be - * replaced using [strtr](http://php.net/strtr). - * - * $log->add(Log::ERROR, 'Could not locate user: :user', array( - * ':user' => $username, - * )); - * - * @param string $level level of message - * @param string $message message body - * @param array $values values to replace in the message - * @param array $additional additional custom parameters to supply to the log writer - * @return Log - */ - public function add($level, $message, array $values = NULL, array $additional = NULL) - { - if ($values) - { - // Insert the values into the message - $message = strtr($message, $values); - } - - // Grab a copy of the trace - if (isset($additional['exception'])) - { - $trace = $additional['exception']->getTrace(); - } - else - { - // Older php version don't have 'DEBUG_BACKTRACE_IGNORE_ARGS', so manually remove the args from the backtrace - if ( ! defined('DEBUG_BACKTRACE_IGNORE_ARGS')) - { - $trace = array_map(function ($item) { - unset($item['args']); - return $item; - }, array_slice(debug_backtrace(FALSE), 1)); - } - else - { - $trace = array_slice(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), 1); - } - } - - if ($additional == NULL) - { - $additional = array(); - } - - // Create a new message - $this->_messages[] = array - ( - 'time' => time(), - 'level' => $level, - 'body' => $message, - 'trace' => $trace, - 'file' => isset($trace[0]['file']) ? $trace[0]['file'] : NULL, - 'line' => isset($trace[0]['line']) ? $trace[0]['line'] : NULL, - 'class' => isset($trace[0]['class']) ? $trace[0]['class'] : NULL, - 'function' => isset($trace[0]['function']) ? $trace[0]['function'] : NULL, - 'additional' => $additional, - ); - - if (Log::$write_on_add) - { - // Write logs as they are added - $this->write(); - } - - return $this; - } - - /** - * Write and clear all of the messages. - * - * $log->write(); - * - * @return void - */ - public function write() - { - if (empty($this->_messages)) - { - // There is nothing to write, move along - return; - } - - // Import all messages locally - $messages = $this->_messages; - - // Reset the messages array - $this->_messages = array(); - - foreach ($this->_writers as $writer) - { - if (empty($writer['levels'])) - { - // Write all of the messages - $writer['object']->write($messages); - } - else - { - // Filtered messages - $filtered = array(); - - foreach ($messages as $message) - { - if (in_array($message['level'], $writer['levels'])) - { - // Writer accepts this kind of message - $filtered[] = $message; - } - } - - // Write the filtered messages - $writer['object']->write($filtered); - } - } - } - -} // End Kohana_Log diff --git a/includes/kohana/system/classes/Kohana/Log/File.php b/includes/kohana/system/classes/Kohana/Log/File.php deleted file mode 100644 index f603cf20..00000000 --- a/includes/kohana/system/classes/Kohana/Log/File.php +++ /dev/null @@ -1,94 +0,0 @@ - Debug::path($directory))); - } - - // Determine the directory path - $this->_directory = realpath($directory).DIRECTORY_SEPARATOR; - } - - /** - * Writes each of the messages into the log file. The log file will be - * appended to the `YYYY/MM/DD.log.php` file, where YYYY is the current - * year, MM is the current month, and DD is the current day. - * - * $writer->write($messages); - * - * @param array $messages - * @return void - */ - public function write(array $messages) - { - // Set the yearly directory name - $directory = $this->_directory.date('Y'); - - if ( ! is_dir($directory)) - { - // Create the yearly directory - mkdir($directory, 02777); - - // Set permissions (must be manually set to fix umask issues) - chmod($directory, 02777); - } - - // Add the month to the directory - $directory .= DIRECTORY_SEPARATOR.date('m'); - - if ( ! is_dir($directory)) - { - // Create the monthly directory - mkdir($directory, 02777); - - // Set permissions (must be manually set to fix umask issues) - chmod($directory, 02777); - } - - // Set the name of the log file - $filename = $directory.DIRECTORY_SEPARATOR.date('d').EXT; - - if ( ! file_exists($filename)) - { - // Create the log file - file_put_contents($filename, Kohana::FILE_SECURITY.' ?>'.PHP_EOL); - - // Allow anyone to write to log files - chmod($filename, 0666); - } - - foreach ($messages as $message) - { - // Write each message into the log file - file_put_contents($filename, PHP_EOL.$this->format_message($message), FILE_APPEND); - } - } - -} // End Kohana_Log_File \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/Log/StdErr.php b/includes/kohana/system/classes/Kohana/Log/StdErr.php deleted file mode 100644 index 6e6486fb..00000000 --- a/includes/kohana/system/classes/Kohana/Log/StdErr.php +++ /dev/null @@ -1,29 +0,0 @@ -write($messages); - * - * @param array $messages - * @return void - */ - public function write(array $messages) - { - foreach ($messages as $message) - { - // Writes out each message - fwrite(STDERR, $this->format_message($message).PHP_EOL); - } - } - -} // End Kohana_Log_StdErr diff --git a/includes/kohana/system/classes/Kohana/Log/StdOut.php b/includes/kohana/system/classes/Kohana/Log/StdOut.php deleted file mode 100644 index 3fb5e1d0..00000000 --- a/includes/kohana/system/classes/Kohana/Log/StdOut.php +++ /dev/null @@ -1,30 +0,0 @@ -write($messages); - * - * @param array $messages - * @return void - */ - public function write(array $messages) - { - foreach ($messages as $message) - { - // Writes out each message - fwrite(STDOUT, $this->format_message($message).PHP_EOL); - } - } - -} // End Kohana_Log_StdOut diff --git a/includes/kohana/system/classes/Kohana/Log/Syslog.php b/includes/kohana/system/classes/Kohana/Log/Syslog.php deleted file mode 100644 index 809629c4..00000000 --- a/includes/kohana/system/classes/Kohana/Log/Syslog.php +++ /dev/null @@ -1,65 +0,0 @@ -_ident = $ident; - - // Open the connection to syslog - openlog($this->_ident, LOG_CONS, $facility); - } - - /** - * Writes each of the messages into the syslog. - * - * @param array $messages - * @return void - */ - public function write(array $messages) - { - foreach ($messages as $message) - { - syslog($message['level'], $message['body']); - - if (isset($message['additional']['exception'])) - { - syslog(Log_Writer::$strace_level, $message['additional']['exception']->getTraceAsString()); - } - } - } - - /** - * Closes the syslog connection - * - * @return void - */ - public function __destruct() - { - // Close connection to syslog - closelog(); - } - -} // End Kohana_Log_Syslog diff --git a/includes/kohana/system/classes/Kohana/Log/Writer.php b/includes/kohana/system/classes/Kohana/Log/Writer.php deleted file mode 100644 index 4449958f..00000000 --- a/includes/kohana/system/classes/Kohana/Log/Writer.php +++ /dev/null @@ -1,95 +0,0 @@ - 'EMERGENCY', - LOG_ALERT => 'ALERT', - LOG_CRIT => 'CRITICAL', - LOG_ERR => 'ERROR', - LOG_WARNING => 'WARNING', - LOG_NOTICE => 'NOTICE', - LOG_INFO => 'INFO', - LOG_DEBUG => 'DEBUG', - ); - - /** - * @var int Level to use for stack traces - */ - public static $strace_level = LOG_DEBUG; - - /** - * Write an array of messages. - * - * $writer->write($messages); - * - * @param array $messages - * @return void - */ - abstract public function write(array $messages); - - /** - * Allows the writer to have a unique key when stored. - * - * echo $writer; - * - * @return string - */ - final public function __toString() - { - return spl_object_hash($this); - } - - /** - * Formats a log entry. - * - * @param array $message - * @param string $format - * @return string - */ - public function format_message(array $message, $format = "time --- level: body in file:line") - { - $message['time'] = Date::formatted_time('@'.$message['time'], Log_Writer::$timestamp, Log_Writer::$timezone, TRUE); - $message['level'] = $this->_log_levels[$message['level']]; - - $string = strtr($format, $message); - - if (isset($message['additional']['exception'])) - { - // Re-use as much as possible, just resetting the body to the trace - $message['body'] = $message['additional']['exception']->getTraceAsString(); - $message['level'] = $this->_log_levels[Log_Writer::$strace_level]; - - $string .= PHP_EOL.strtr($format, $message); - } - - return $string; - } - -} // End Kohana_Log_Writer diff --git a/includes/kohana/system/classes/Kohana/Model.php b/includes/kohana/system/classes/Kohana/Model.php deleted file mode 100644 index 0baf9d1f..00000000 --- a/includes/kohana/system/classes/Kohana/Model.php +++ /dev/null @@ -1,29 +0,0 @@ - power of 2 that defines the unit's size - */ - public static $byte_units = array - ( - 'B' => 0, - 'K' => 10, - 'Ki' => 10, - 'KB' => 10, - 'KiB' => 10, - 'M' => 20, - 'Mi' => 20, - 'MB' => 20, - 'MiB' => 20, - 'G' => 30, - 'Gi' => 30, - 'GB' => 30, - 'GiB' => 30, - 'T' => 40, - 'Ti' => 40, - 'TB' => 40, - 'TiB' => 40, - 'P' => 50, - 'Pi' => 50, - 'PB' => 50, - 'PiB' => 50, - 'E' => 60, - 'Ei' => 60, - 'EB' => 60, - 'EiB' => 60, - 'Z' => 70, - 'Zi' => 70, - 'ZB' => 70, - 'ZiB' => 70, - 'Y' => 80, - 'Yi' => 80, - 'YB' => 80, - 'YiB' => 80, - ); - - /** - * Returns the English ordinal suffix (th, st, nd, etc) of a number. - * - * echo 2, Num::ordinal(2); // "2nd" - * echo 10, Num::ordinal(10); // "10th" - * echo 33, Num::ordinal(33); // "33rd" - * - * @param integer $number - * @return string - */ - public static function ordinal($number) - { - if ($number % 100 > 10 AND $number % 100 < 14) - { - return 'th'; - } - - switch ($number % 10) - { - case 1: - return 'st'; - case 2: - return 'nd'; - case 3: - return 'rd'; - default: - return 'th'; - } - } - - /** - * Locale-aware number and monetary formatting. - * - * // In English, "1,200.05" - * // In Spanish, "1200,05" - * // In Portuguese, "1 200,05" - * echo Num::format(1200.05, 2); - * - * // In English, "1,200.05" - * // In Spanish, "1.200,05" - * // In Portuguese, "1.200.05" - * echo Num::format(1200.05, 2, TRUE); - * - * @param float $number number to format - * @param integer $places decimal places - * @param boolean $monetary monetary formatting? - * @return string - * @since 3.0.2 - */ - public static function format($number, $places, $monetary = FALSE) - { - $info = localeconv(); - - if ($monetary) - { - $decimal = $info['mon_decimal_point']; - $thousands = $info['mon_thousands_sep']; - } - else - { - $decimal = $info['decimal_point']; - $thousands = $info['thousands_sep']; - } - - return number_format($number, $places, $decimal, $thousands); - } - - /** - * Round a number to a specified precision, using a specified tie breaking technique - * - * @param float $value Number to round - * @param integer $precision Desired precision - * @param integer $mode Tie breaking mode, accepts the PHP_ROUND_HALF_* constants - * @param boolean $native Set to false to force use of the userland implementation - * @return float Rounded number - */ - public static function round($value, $precision = 0, $mode = self::ROUND_HALF_UP, $native = TRUE) - { - if (version_compare(PHP_VERSION, '5.3', '>=') AND $native) - { - return round($value, $precision, $mode); - } - - if ($mode === self::ROUND_HALF_UP) - { - return round($value, $precision); - } - else - { - $factor = ($precision === 0) ? 1 : pow(10, $precision); - - switch ($mode) - { - case self::ROUND_HALF_DOWN: - case self::ROUND_HALF_EVEN: - case self::ROUND_HALF_ODD: - // Check if we have a rounding tie, otherwise we can just call round() - if (($value * $factor) - floor($value * $factor) === 0.5) - { - if ($mode === self::ROUND_HALF_DOWN) - { - // Round down operation, so we round down unless the value - // is -ve because up is down and down is up down there. ;) - $up = ($value < 0); - } - else - { - // Round up if the integer is odd and the round mode is set to even - // or the integer is even and the round mode is set to odd. - // Any other instance round down. - $up = ( ! ( ! (floor($value * $factor) & 1)) === ($mode === self::ROUND_HALF_EVEN)); - } - - if ($up) - { - $value = ceil($value * $factor); - } - else - { - $value = floor($value * $factor); - } - return $value / $factor; - } - else - { - return round($value, $precision); - } - break; - } - } - } - - /** - * Converts a file size number to a byte value. File sizes are defined in - * the format: SB, where S is the size (1, 8.5, 300, etc.) and B is the - * byte unit (K, MiB, GB, etc.). All valid byte units are defined in - * Num::$byte_units - * - * echo Num::bytes('200K'); // 204800 - * echo Num::bytes('5MiB'); // 5242880 - * echo Num::bytes('1000'); // 1000 - * echo Num::bytes('2.5GB'); // 2684354560 - * - * @param string $bytes file size in SB format - * @return float - */ - public static function bytes($size) - { - // Prepare the size - $size = trim( (string) $size); - - // Construct an OR list of byte units for the regex - $accepted = implode('|', array_keys(Num::$byte_units)); - - // Construct the regex pattern for verifying the size format - $pattern = '/^([0-9]+(?:\.[0-9]+)?)('.$accepted.')?$/Di'; - - // Verify the size format and store the matching parts - if ( ! preg_match($pattern, $size, $matches)) - throw new Kohana_Exception('The byte unit size, ":size", is improperly formatted.', array( - ':size' => $size, - )); - - // Find the float value of the size - $size = (float) $matches[1]; - - // Find the actual unit, assume B if no unit specified - $unit = Arr::get($matches, 2, 'B'); - - // Convert the size into bytes - $bytes = $size * pow(2, Num::$byte_units[$unit]); - - return $bytes; - } - -} // End num diff --git a/includes/kohana/system/classes/Kohana/Profiler.php b/includes/kohana/system/classes/Kohana/Profiler.php deleted file mode 100644 index fc03511a..00000000 --- a/includes/kohana/system/classes/Kohana/Profiler.php +++ /dev/null @@ -1,385 +0,0 @@ - strtolower($group), - 'name' => (string) $name, - - // Start the benchmark - 'start_time' => microtime(TRUE), - 'start_memory' => memory_get_usage(), - - // Set the stop keys without values - 'stop_time' => FALSE, - 'stop_memory' => FALSE, - ); - - return $token; - } - - /** - * Stops a benchmark. - * - * Profiler::stop($token); - * - * @param string $token - * @return void - */ - public static function stop($token) - { - // Stop the benchmark - Profiler::$_marks[$token]['stop_time'] = microtime(TRUE); - Profiler::$_marks[$token]['stop_memory'] = memory_get_usage(); - } - - /** - * Deletes a benchmark. If an error occurs during the benchmark, it is - * recommended to delete the benchmark to prevent statistics from being - * adversely affected. - * - * Profiler::delete($token); - * - * @param string $token - * @return void - */ - public static function delete($token) - { - // Remove the benchmark - unset(Profiler::$_marks[$token]); - } - - /** - * Returns all the benchmark tokens by group and name as an array. - * - * $groups = Profiler::groups(); - * - * @return array - */ - public static function groups() - { - $groups = array(); - - foreach (Profiler::$_marks as $token => $mark) - { - // Sort the tokens by the group and name - $groups[$mark['group']][$mark['name']][] = $token; - } - - return $groups; - } - - /** - * Gets the min, max, average and total of a set of tokens as an array. - * - * $stats = Profiler::stats($tokens); - * - * @param array $tokens profiler tokens - * @return array min, max, average, total - * @uses Profiler::total - */ - public static function stats(array $tokens) - { - // Min and max are unknown by default - $min = $max = array( - 'time' => NULL, - 'memory' => NULL); - - // Total values are always integers - $total = array( - 'time' => 0, - 'memory' => 0); - - foreach ($tokens as $token) - { - // Get the total time and memory for this benchmark - list($time, $memory) = Profiler::total($token); - - if ($max['time'] === NULL OR $time > $max['time']) - { - // Set the maximum time - $max['time'] = $time; - } - - if ($min['time'] === NULL OR $time < $min['time']) - { - // Set the minimum time - $min['time'] = $time; - } - - // Increase the total time - $total['time'] += $time; - - if ($max['memory'] === NULL OR $memory > $max['memory']) - { - // Set the maximum memory - $max['memory'] = $memory; - } - - if ($min['memory'] === NULL OR $memory < $min['memory']) - { - // Set the minimum memory - $min['memory'] = $memory; - } - - // Increase the total memory - $total['memory'] += $memory; - } - - // Determine the number of tokens - $count = count($tokens); - - // Determine the averages - $average = array( - 'time' => $total['time'] / $count, - 'memory' => $total['memory'] / $count); - - return array( - 'min' => $min, - 'max' => $max, - 'total' => $total, - 'average' => $average); - } - - /** - * Gets the min, max, average and total of profiler groups as an array. - * - * $stats = Profiler::group_stats('test'); - * - * @param mixed $groups single group name string, or array with group names; all groups by default - * @return array min, max, average, total - * @uses Profiler::groups - * @uses Profiler::stats - */ - public static function group_stats($groups = NULL) - { - // Which groups do we need to calculate stats for? - $groups = ($groups === NULL) - ? Profiler::groups() - : array_intersect_key(Profiler::groups(), array_flip( (array) $groups)); - - // All statistics - $stats = array(); - - foreach ($groups as $group => $names) - { - foreach ($names as $name => $tokens) - { - // Store the stats for each subgroup. - // We only need the values for "total". - $_stats = Profiler::stats($tokens); - $stats[$group][$name] = $_stats['total']; - } - } - - // Group stats - $groups = array(); - - foreach ($stats as $group => $names) - { - // Min and max are unknown by default - $groups[$group]['min'] = $groups[$group]['max'] = array( - 'time' => NULL, - 'memory' => NULL); - - // Total values are always integers - $groups[$group]['total'] = array( - 'time' => 0, - 'memory' => 0); - - foreach ($names as $total) - { - if ( ! isset($groups[$group]['min']['time']) OR $groups[$group]['min']['time'] > $total['time']) - { - // Set the minimum time - $groups[$group]['min']['time'] = $total['time']; - } - if ( ! isset($groups[$group]['min']['memory']) OR $groups[$group]['min']['memory'] > $total['memory']) - { - // Set the minimum memory - $groups[$group]['min']['memory'] = $total['memory']; - } - - if ( ! isset($groups[$group]['max']['time']) OR $groups[$group]['max']['time'] < $total['time']) - { - // Set the maximum time - $groups[$group]['max']['time'] = $total['time']; - } - if ( ! isset($groups[$group]['max']['memory']) OR $groups[$group]['max']['memory'] < $total['memory']) - { - // Set the maximum memory - $groups[$group]['max']['memory'] = $total['memory']; - } - - // Increase the total time and memory - $groups[$group]['total']['time'] += $total['time']; - $groups[$group]['total']['memory'] += $total['memory']; - } - - // Determine the number of names (subgroups) - $count = count($names); - - // Determine the averages - $groups[$group]['average']['time'] = $groups[$group]['total']['time'] / $count; - $groups[$group]['average']['memory'] = $groups[$group]['total']['memory'] / $count; - } - - return $groups; - } - - /** - * Gets the total execution time and memory usage of a benchmark as a list. - * - * list($time, $memory) = Profiler::total($token); - * - * @param string $token - * @return array execution time, memory - */ - public static function total($token) - { - // Import the benchmark data - $mark = Profiler::$_marks[$token]; - - if ($mark['stop_time'] === FALSE) - { - // The benchmark has not been stopped yet - $mark['stop_time'] = microtime(TRUE); - $mark['stop_memory'] = memory_get_usage(); - } - - return array - ( - // Total time in seconds - $mark['stop_time'] - $mark['start_time'], - - // Amount of memory in bytes - $mark['stop_memory'] - $mark['start_memory'], - ); - } - - /** - * Gets the total application run time and memory usage. Caches the result - * so that it can be compared between requests. - * - * list($time, $memory) = Profiler::application(); - * - * @return array execution time, memory - * @uses Kohana::cache - */ - public static function application() - { - // Load the stats from cache, which is valid for 1 day - $stats = Kohana::cache('profiler_application_stats', NULL, 3600 * 24); - - if ( ! is_array($stats) OR $stats['count'] > Profiler::$rollover) - { - // Initialize the stats array - $stats = array( - 'min' => array( - 'time' => NULL, - 'memory' => NULL), - 'max' => array( - 'time' => NULL, - 'memory' => NULL), - 'total' => array( - 'time' => NULL, - 'memory' => NULL), - 'count' => 0); - } - - // Get the application run time - $time = microtime(TRUE) - KOHANA_START_TIME; - - // Get the total memory usage - $memory = memory_get_usage() - KOHANA_START_MEMORY; - - // Calculate max time - if ($stats['max']['time'] === NULL OR $time > $stats['max']['time']) - { - $stats['max']['time'] = $time; - } - - // Calculate min time - if ($stats['min']['time'] === NULL OR $time < $stats['min']['time']) - { - $stats['min']['time'] = $time; - } - - // Add to total time - $stats['total']['time'] += $time; - - // Calculate max memory - if ($stats['max']['memory'] === NULL OR $memory > $stats['max']['memory']) - { - $stats['max']['memory'] = $memory; - } - - // Calculate min memory - if ($stats['min']['memory'] === NULL OR $memory < $stats['min']['memory']) - { - $stats['min']['memory'] = $memory; - } - - // Add to total memory - $stats['total']['memory'] += $memory; - - // Another mark has been added to the stats - $stats['count']++; - - // Determine the averages - $stats['average'] = array( - 'time' => $stats['total']['time'] / $stats['count'], - 'memory' => $stats['total']['memory'] / $stats['count']); - - // Cache the new stats - Kohana::cache('profiler_application_stats', $stats); - - // Set the current application execution time and memory - // Do NOT cache these, they are specific to the current request only - $stats['current']['time'] = $time; - $stats['current']['memory'] = $memory; - - // Return the total application run time and memory usage - return $stats; - } - -} // End Profiler diff --git a/includes/kohana/system/classes/Kohana/Request.php b/includes/kohana/system/classes/Kohana/Request.php deleted file mode 100644 index e5ee71e5..00000000 --- a/includes/kohana/system/classes/Kohana/Request.php +++ /dev/null @@ -1,1331 +0,0 @@ -protocol($protocol) - ->query($_GET) - ->post($_POST); - - if (isset($secure)) - { - // Set the request security - $request->secure($secure); - } - - if (isset($method)) - { - // Set the request method - $request->method($method); - } - - if (isset($referrer)) - { - // Set the referrer - $request->referrer($referrer); - } - - if (isset($requested_with)) - { - // Apply the requested with variable - $request->requested_with($requested_with); - } - - if (isset($body)) - { - // Set the request body (probably a PUT type) - $request->body($body); - } - - if (isset($cookies)) - { - $request->cookie($cookies); - } - } - else - { - $request = new Request($uri, $client_params, $allow_external, $injected_routes); - } - - return $request; - } - - /** - * Automatically detects the URI of the main request using PATH_INFO, - * REQUEST_URI, PHP_SELF or REDIRECT_URL. - * - * $uri = Request::detect_uri(); - * - * @return string URI of the main request - * @throws Kohana_Exception - * @since 3.0.8 - */ - public static function detect_uri() - { - if ( ! empty($_SERVER['PATH_INFO'])) - { - // PATH_INFO does not contain the docroot or index - $uri = $_SERVER['PATH_INFO']; - } - else - { - // REQUEST_URI and PHP_SELF include the docroot and index - - if (isset($_SERVER['REQUEST_URI'])) - { - /** - * We use REQUEST_URI as the fallback value. The reason - * for this is we might have a malformed URL such as: - * - * http://localhost/http://example.com/judge.php - * - * which parse_url can't handle. So rather than leave empty - * handed, we'll use this. - */ - $uri = $_SERVER['REQUEST_URI']; - - if ($request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) - { - // Valid URL path found, set it. - $uri = $request_uri; - } - - // Decode the request URI - $uri = rawurldecode($uri); - } - elseif (isset($_SERVER['PHP_SELF'])) - { - $uri = $_SERVER['PHP_SELF']; - } - elseif (isset($_SERVER['REDIRECT_URL'])) - { - $uri = $_SERVER['REDIRECT_URL']; - } - else - { - // If you ever see this error, please report an issue at http://dev.kohanaphp.com/projects/kohana3/issues - // along with any relevant information about your web server setup. Thanks! - throw new Kohana_Exception('Unable to detect the URI using PATH_INFO, REQUEST_URI, PHP_SELF or REDIRECT_URL'); - } - - // Get the path from the base URL, including the index file - $base_url = parse_url(Kohana::$base_url, PHP_URL_PATH); - - if (strpos($uri, $base_url) === 0) - { - // Remove the base URL from the URI - $uri = (string) substr($uri, strlen($base_url)); - } - - if (Kohana::$index_file AND strpos($uri, Kohana::$index_file) === 0) - { - // Remove the index file from the URI - $uri = (string) substr($uri, strlen(Kohana::$index_file)); - } - } - - return $uri; - } - - /** - * Return the currently executing request. This is changed to the current - * request when [Request::execute] is called and restored when the request - * is completed. - * - * $request = Request::current(); - * - * @return Request - * @since 3.0.5 - */ - public static function current() - { - return Request::$current; - } - - /** - * Returns the first request encountered by this framework. This will should - * only be set once during the first [Request::factory] invocation. - * - * // Get the first request - * $request = Request::initial(); - * - * // Test whether the current request is the first request - * if (Request::initial() === Request::current()) - * // Do something useful - * - * @return Request - * @since 3.1.0 - */ - public static function initial() - { - return Request::$initial; - } - - /** - * Returns information about the initial user agent. - * - * @param mixed $value array or string to return: browser, version, robot, mobile, platform - * @return mixed requested information, FALSE if nothing is found - * @uses Request::$user_agent - * @uses Text::user_agent - */ - public static function user_agent($value) - { - return Text::user_agent(Request::$user_agent, $value); - } - - /** - * Returns the accepted content types. If a specific type is defined, - * the quality of that type will be returned. - * - * $types = Request::accept_type(); - * - * [!!] Deprecated in favor of using [HTTP_Header::accepts_at_quality]. - * - * @deprecated since version 3.3.0 - * @param string $type Content MIME type - * @return mixed An array of all types or a specific type as a string - * @uses Request::_parse_accept - */ - public static function accept_type($type = NULL) - { - static $accepts; - - if ($accepts === NULL) - { - // Parse the HTTP_ACCEPT header - $accepts = Request::_parse_accept($_SERVER['HTTP_ACCEPT'], array('*/*' => 1.0)); - } - - if (isset($type)) - { - // Return the quality setting for this type - return isset($accepts[$type]) ? $accepts[$type] : $accepts['*/*']; - } - - return $accepts; - } - - /** - * Returns the accepted languages. If a specific language is defined, - * the quality of that language will be returned. If the language is not - * accepted, FALSE will be returned. - * - * $langs = Request::accept_lang(); - * - * [!!] Deprecated in favor of using [HTTP_Header::accepts_language_at_quality]. - * - * @deprecated since version 3.3.0 - * @param string $lang Language code - * @return mixed An array of all types or a specific type as a string - * @uses Request::_parse_accept - */ - public static function accept_lang($lang = NULL) - { - static $accepts; - - if ($accepts === NULL) - { - // Parse the HTTP_ACCEPT_LANGUAGE header - $accepts = Request::_parse_accept($_SERVER['HTTP_ACCEPT_LANGUAGE']); - } - - if (isset($lang)) - { - // Return the quality setting for this lang - return isset($accepts[$lang]) ? $accepts[$lang] : FALSE; - } - - return $accepts; - } - - /** - * Returns the accepted encodings. If a specific encoding is defined, - * the quality of that encoding will be returned. If the encoding is not - * accepted, FALSE will be returned. - * - * $encodings = Request::accept_encoding(); - * - * [!!] Deprecated in favor of using [HTTP_Header::accepts_encoding_at_quality]. - * - * @deprecated since version 3.3.0 - * @param string $type Encoding type - * @return mixed An array of all types or a specific type as a string - * @uses Request::_parse_accept - */ - public static function accept_encoding($type = NULL) - { - static $accepts; - - if ($accepts === NULL) - { - // Parse the HTTP_ACCEPT_LANGUAGE header - $accepts = Request::_parse_accept($_SERVER['HTTP_ACCEPT_ENCODING']); - } - - if (isset($type)) - { - // Return the quality setting for this type - return isset($accepts[$type]) ? $accepts[$type] : FALSE; - } - - return $accepts; - } - - /** - * Determines if a file larger than the post_max_size has been uploaded. PHP - * does not handle this situation gracefully on its own, so this method - * helps to solve that problem. - * - * @return boolean - * @uses Num::bytes - * @uses Arr::get - */ - public static function post_max_size_exceeded() - { - // Make sure the request method is POST - if (Request::$initial->method() !== HTTP_Request::POST) - return FALSE; - - // Get the post_max_size in bytes - $max_bytes = Num::bytes(ini_get('post_max_size')); - - // Error occurred if method is POST, and content length is too long - return (Arr::get($_SERVER, 'CONTENT_LENGTH') > $max_bytes); - } - - /** - * Process a request to find a matching route - * - * @param object $request Request - * @param array $routes Route - * @return array - */ - public static function process(Request $request, $routes = NULL) - { - // Load routes - $routes = (empty($routes)) ? Route::all() : $routes; - $params = NULL; - - foreach ($routes as $name => $route) - { - // We found something suitable - if ($params = $route->matches($request)) - { - return array( - 'params' => $params, - 'route' => $route, - ); - } - } - - return NULL; - } - - /** - * Parses an accept header and returns an array (type => quality) of the - * accepted types, ordered by quality. - * - * $accept = Request::_parse_accept($header, $defaults); - * - * @param string $header Header to parse - * @param array $accepts Default values - * @return array - */ - protected static function _parse_accept( & $header, array $accepts = NULL) - { - if ( ! empty($header)) - { - // Get all of the types - $types = explode(',', $header); - - foreach ($types as $type) - { - // Split the type into parts - $parts = explode(';', $type); - - // Make the type only the MIME - $type = trim(array_shift($parts)); - - // Default quality is 1.0 - $quality = 1.0; - - foreach ($parts as $part) - { - // Prevent undefined $value notice below - if (strpos($part, '=') === FALSE) - continue; - - // Separate the key and value - list ($key, $value) = explode('=', trim($part)); - - if ($key === 'q') - { - // There is a quality for this type - $quality = (float) trim($value); - } - } - - // Add the accept type and quality - $accepts[$type] = $quality; - } - } - - // Make sure that accepts is an array - $accepts = (array) $accepts; - - // Order by quality - arsort($accepts); - - return $accepts; - } - - /** - * @var string the x-requested-with header which most likely - * will be xmlhttprequest - */ - protected $_requested_with; - - /** - * @var string method: GET, POST, PUT, DELETE, HEAD, etc - */ - protected $_method = 'GET'; - - /** - * @var string protocol: HTTP/1.1, FTP, CLI, etc - */ - protected $_protocol; - - /** - * @var boolean - */ - protected $_secure = FALSE; - - /** - * @var string referring URL - */ - protected $_referrer; - - /** - * @var Route route matched for this request - */ - protected $_route; - - /** - * @var Route array of routes to manually look at instead of the global namespace - */ - protected $_routes; - - /** - * @var Kohana_HTTP_Header headers to sent as part of the request - */ - protected $_header; - - /** - * @var string the body - */ - protected $_body; - - /** - * @var string controller directory - */ - protected $_directory = ''; - - /** - * @var string controller to be executed - */ - protected $_controller; - - /** - * @var string action to be executed in the controller - */ - protected $_action; - - /** - * @var string the URI of the request - */ - protected $_uri; - - /** - * @var boolean external request - */ - protected $_external = FALSE; - - /** - * @var array parameters from the route - */ - protected $_params = array(); - - /** - * @var array query parameters - */ - protected $_get = array(); - - /** - * @var array post parameters - */ - protected $_post = array(); - - /** - * @var array cookies to send with the request - */ - protected $_cookies = array(); - - /** - * @var Kohana_Request_Client - */ - protected $_client; - - /** - * Creates a new request object for the given URI. New requests should be - * created using the [Request::instance] or [Request::factory] methods. - * - * $request = new Request($uri); - * - * If $cache parameter is set, the response for the request will attempt to - * be retrieved from the cache. - * - * @param string $uri URI of the request - * @param array $client_params Array of params to pass to the request client - * @param bool $allow_external Allow external requests? (deprecated in 3.3) - * @param array $injected_routes An array of routes to use, for testing - * @return void - * @throws Request_Exception - * @uses Route::all - * @uses Route::matches - */ - public function __construct($uri, $client_params = array(), $allow_external = TRUE, $injected_routes = array()) - { - $client_params = is_array($client_params) ? $client_params : array(); - - // Initialise the header - $this->_header = new HTTP_Header(array()); - - // Assign injected routes - $this->_routes = $injected_routes; - - // Cleanse query parameters from URI (faster that parse_url()) - $split_uri = explode('?', $uri); - $uri = array_shift($split_uri); - - // Initial request has global $_GET already applied - if (Request::$initial !== NULL) - { - if ($split_uri) - { - parse_str($split_uri[0], $this->_get); - } - } - - // Detect protocol (if present) - // $allow_external = FALSE prevents the default index.php from - // being able to proxy external pages. - if ( ! $allow_external OR strpos($uri, '://') === FALSE) - { - // Remove trailing slashes from the URI - $this->_uri = trim($uri, '/'); - - // Apply the client - $this->_client = new Request_Client_Internal($client_params); - } - else - { - // Create a route - $this->_route = new Route($uri); - - // Store the URI - $this->_uri = $uri; - - // Set the security setting if required - if (strpos($uri, 'https://') === 0) - { - $this->secure(TRUE); - } - - // Set external state - $this->_external = TRUE; - - // Setup the client - $this->_client = Request_Client_External::factory($client_params); - } - } - - /** - * Returns the response as the string representation of a request. - * - * echo $request; - * - * @return string - */ - public function __toString() - { - return $this->render(); - } - - /** - * Sets and gets the uri from the request. - * - * @param string $uri - * @return mixed - */ - public function uri($uri = NULL) - { - if ($uri === NULL) - { - // Act as a getter - return empty($this->_uri) ? '/' : $this->_uri; - } - - // Act as a setter - $this->_uri = $uri; - - return $this; - } - - /** - * Create a URL string from the current request. This is a shortcut for: - * - * echo URL::site($this->request->uri(), $protocol); - * - * @param array $params URI parameters - * @param mixed $protocol protocol string or Request object - * @return string - * @since 3.0.7 - * @uses URL::site - */ - public function url($protocol = NULL) - { - // Create a URI with the current route and convert it to a URL - return URL::site($this->uri(), $protocol); - } - - /** - * Retrieves a value from the route parameters. - * - * $id = $request->param('id'); - * - * @param string $key Key of the value - * @param mixed $default Default value if the key is not set - * @return mixed - */ - public function param($key = NULL, $default = NULL) - { - if ($key === NULL) - { - // Return the full array - return $this->_params; - } - - return isset($this->_params[$key]) ? $this->_params[$key] : $default; - } - - /** - * Sets and gets the referrer from the request. - * - * @param string $referrer - * @return mixed - */ - public function referrer($referrer = NULL) - { - if ($referrer === NULL) - { - // Act as a getter - return $this->_referrer; - } - - // Act as a setter - $this->_referrer = (string) $referrer; - - return $this; - } - - /** - * Sets and gets the route from the request. - * - * @param string $route - * @return mixed - */ - public function route(Route $route = NULL) - { - if ($route === NULL) - { - // Act as a getter - return $this->_route; - } - - // Act as a setter - $this->_route = $route; - - return $this; - } - - /** - * Sets and gets the directory for the controller. - * - * @param string $directory Directory to execute the controller from - * @return mixed - */ - public function directory($directory = NULL) - { - if ($directory === NULL) - { - // Act as a getter - return $this->_directory; - } - - // Act as a setter - $this->_directory = (string) $directory; - - return $this; - } - - /** - * Sets and gets the controller for the matched route. - * - * @param string $controller Controller to execute the action - * @return mixed - */ - public function controller($controller = NULL) - { - if ($controller === NULL) - { - // Act as a getter - return $this->_controller; - } - - // Act as a setter - $this->_controller = (string) $controller; - - return $this; - } - - /** - * Sets and gets the action for the controller. - * - * @param string $action Action to execute the controller from - * @return mixed - */ - public function action($action = NULL) - { - if ($action === NULL) - { - // Act as a getter - return $this->_action; - } - - // Act as a setter - $this->_action = (string) $action; - - return $this; - } - - /** - * Provides access to the [Request_Client]. - * - * @return Request_Client - * @return self - */ - public function client(Request_Client $client = NULL) - { - if ($client === NULL) - return $this->_client; - else - { - $this->_client = $client; - return $this; - } - } - - /** - * Gets and sets the requested with property, which should - * be relative to the x-requested-with pseudo header. - * - * @param string $requested_with Requested with value - * @return mixed - */ - public function requested_with($requested_with = NULL) - { - if ($requested_with === NULL) - { - // Act as a getter - return $this->_requested_with; - } - - // Act as a setter - $this->_requested_with = strtolower($requested_with); - - return $this; - } - - /** - * Processes the request, executing the controller action that handles this - * request, determined by the [Route]. - * - * 1. Before the controller action is called, the [Controller::before] method - * will be called. - * 2. Next the controller action will be called. - * 3. After the controller action is called, the [Controller::after] method - * will be called. - * - * By default, the output from the controller is captured and returned, and - * no headers are sent. - * - * $request->execute(); - * - * @return Response - * @throws Request_Exception - * @throws HTTP_Exception_404 - * @uses [Kohana::$profiling] - * @uses [Profiler] - */ - public function execute() - { - if ( ! $this->_external) - { - $processed = Request::process($this, $this->_routes); - - if ($processed) - { - // Store the matching route - $this->_route = $processed['route']; - $params = $processed['params']; - - // Is this route external? - $this->_external = $this->_route->is_external(); - - if (isset($params['directory'])) - { - // Controllers are in a sub-directory - $this->_directory = $params['directory']; - } - - // Store the controller - $this->_controller = $params['controller']; - - // Store the action - $this->_action = (isset($params['action'])) - ? $params['action'] - : Route::$default_action; - - // These are accessible as public vars and can be overloaded - unset($params['controller'], $params['action'], $params['directory']); - - // Params cannot be changed once matched - $this->_params = $params; - } - } - - if ( ! $this->_route instanceof Route) - { - return HTTP_Exception::factory(404, 'Unable to find a route to match the URI: :uri', array( - ':uri' => $this->_uri, - ))->request($this) - ->get_response(); - } - - if ( ! $this->_client instanceof Request_Client) - { - throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( - ':uri' => $this->_uri, - )); - } - - return $this->_client->execute($this); - } - - /** - * Returns whether this request is the initial request Kohana received. - * Can be used to test for sub requests. - * - * if ( ! $request->is_initial()) - * // This is a sub request - * - * @return boolean - */ - public function is_initial() - { - return ($this === Request::$initial); - } - - /** - * Readonly access to the [Request::$_external] property. - * - * if ( ! $request->is_external()) - * // This is an internal request - * - * @return boolean - */ - public function is_external() - { - return $this->_external; - } - - /** - * Returns whether this is an ajax request (as used by JS frameworks) - * - * @return boolean - */ - public function is_ajax() - { - return ($this->requested_with() === 'xmlhttprequest'); - } - - /** - * Gets or sets the HTTP method. Usually GET, POST, PUT or DELETE in - * traditional CRUD applications. - * - * @param string $method Method to use for this request - * @return mixed - */ - public function method($method = NULL) - { - if ($method === NULL) - { - // Act as a getter - return $this->_method; - } - - // Act as a setter - $this->_method = strtoupper($method); - - return $this; - } - - /** - * Gets or sets the HTTP protocol. If there is no current protocol set, - * it will use the default set in HTTP::$protocol - * - * @param string $protocol Protocol to set to the request - * @return mixed - */ - public function protocol($protocol = NULL) - { - if ($protocol === NULL) - { - if ($this->_protocol) - return $this->_protocol; - else - return $this->_protocol = HTTP::$protocol; - } - - // Act as a setter - $this->_protocol = strtoupper($protocol); - return $this; - } - - /** - * Getter/Setter to the security settings for this request. This - * method should be treated as immutable. - * - * @param boolean $secure is this request secure? - * @return mixed - */ - public function secure($secure = NULL) - { - if ($secure === NULL) - return $this->_secure; - - // Act as a setter - $this->_secure = (bool) $secure; - return $this; - } - - /** - * Gets or sets HTTP headers oo the request. All headers - * are included immediately after the HTTP protocol definition during - * transmission. This method provides a simple array or key/value - * interface to the headers. - * - * @param mixed $key Key or array of key/value pairs to set - * @param string $value Value to set to the supplied key - * @return mixed - */ - public function headers($key = NULL, $value = NULL) - { - if ($key instanceof HTTP_Header) - { - // Act a setter, replace all headers - $this->_header = $key; - - return $this; - } - - if (is_array($key)) - { - // Act as a setter, replace all headers - $this->_header->exchangeArray($key); - - return $this; - } - - if ($this->_header->count() === 0 AND $this->is_initial()) - { - // Lazy load the request headers - $this->_header = HTTP::request_headers(); - } - - if ($key === NULL) - { - // Act as a getter, return all headers - return $this->_header; - } - elseif ($value === NULL) - { - // Act as a getter, single header - return ($this->_header->offsetExists($key)) ? $this->_header->offsetGet($key) : NULL; - } - - // Act as a setter for a single header - $this->_header[$key] = $value; - - return $this; - } - - /** - * Set and get cookies values for this request. - * - * @param mixed $key Cookie name, or array of cookie values - * @param string $value Value to set to cookie - * @return string - * @return mixed - */ - public function cookie($key = NULL, $value = NULL) - { - if (is_array($key)) - { - // Act as a setter, replace all cookies - $this->_cookies = $key; - return $this; - } - elseif ($key === NULL) - { - // Act as a getter, all cookies - return $this->_cookies; - } - elseif ($value === NULL) - { - // Act as a getting, single cookie - return isset($this->_cookies[$key]) ? $this->_cookies[$key] : NULL; - } - - // Act as a setter for a single cookie - $this->_cookies[$key] = (string) $value; - - return $this; - } - - /** - * Gets or sets the HTTP body of the request. The body is - * included after the header, separated by a single empty new line. - * - * @param string $content Content to set to the object - * @return mixed - */ - public function body($content = NULL) - { - if ($content === NULL) - { - // Act as a getter - return $this->_body; - } - - // Act as a setter - $this->_body = $content; - - return $this; - } - - /** - * Returns the length of the body for use with - * content header - * - * @return integer - */ - public function content_length() - { - return strlen($this->body()); - } - - /** - * Renders the HTTP_Interaction to a string, producing - * - * - Protocol - * - Headers - * - Body - * - * If there are variables set to the `Kohana_Request::$_post` - * they will override any values set to body. - * - * @return string - */ - public function render() - { - if ( ! $post = $this->post()) - { - $body = $this->body(); - } - else - { - $this->headers('content-type', 'application/x-www-form-urlencoded'); - $body = http_build_query($post, NULL, '&'); - } - - // Set the content length - $this->headers('content-length', (string) $this->content_length()); - - // If Kohana expose, set the user-agent - if (Kohana::$expose) - { - $this->headers('user-agent', Kohana::version()); - } - - // Prepare cookies - if ($this->_cookies) - { - $cookie_string = array(); - - // Parse each - foreach ($this->_cookies as $key => $value) - { - $cookie_string[] = $key.'='.$value; - } - - // Create the cookie string - $this->_header['cookie'] = implode('; ', $cookie_string); - } - - $output = $this->method().' '.$this->uri().' '.$this->protocol()."\r\n"; - $output .= (string) $this->_header; - $output .= $body; - - return $output; - } - - /** - * Gets or sets HTTP query string. - * - * @param mixed $key Key or key value pairs to set - * @param string $value Value to set to a key - * @return mixed - * @uses Arr::path - */ - public function query($key = NULL, $value = NULL) - { - if (is_array($key)) - { - // Act as a setter, replace all query strings - $this->_get = $key; - - return $this; - } - - if ($key === NULL) - { - // Act as a getter, all query strings - return $this->_get; - } - elseif ($value === NULL) - { - // Act as a getter, single query string - return Arr::path($this->_get, $key); - } - - // Act as a setter, single query string - $this->_get[$key] = $value; - - return $this; - } - - /** - * Gets or sets HTTP POST parameters to the request. - * - * @param mixed $key Key or key value pairs to set - * @param string $value Value to set to a key - * @return mixed - * @uses Arr::path - */ - public function post($key = NULL, $value = NULL) - { - if (is_array($key)) - { - // Act as a setter, replace all fields - $this->_post = $key; - - return $this; - } - - if ($key === NULL) - { - // Act as a getter, all fields - return $this->_post; - } - elseif ($value === NULL) - { - // Act as a getter, single field - return Arr::path($this->_post, $key); - } - - // Act as a setter, single field - $this->_post[$key] = $value; - - return $this; - } - -} // End Request diff --git a/includes/kohana/system/classes/Kohana/Request/Client.php b/includes/kohana/system/classes/Kohana/Request/Client.php deleted file mode 100644 index d23b15fe..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client.php +++ /dev/null @@ -1,424 +0,0 @@ - 'Request_Client::on_header_location' - ); - - /** - * @var int Maximum number of requests that header callbacks can trigger before the request is aborted - */ - protected $_max_callback_depth = 5; - - /** - * @var int Tracks the callback depth of the currently executing request - */ - protected $_callback_depth = 1; - - /** - * @var array Arbitrary parameters that are shared with header callbacks through their Request_Client object - */ - protected $_callback_params = array(); - - /** - * Creates a new `Request_Client` object, - * allows for dependency injection. - * - * @param array $params Params - */ - public function __construct(array $params = array()) - { - foreach ($params as $key => $value) - { - if (method_exists($this, $key)) - { - $this->$key($value); - } - } - } - - /** - * Processes the request, executing the controller action that handles this - * request, determined by the [Route]. - * - * 1. Before the controller action is called, the [Controller::before] method - * will be called. - * 2. Next the controller action will be called. - * 3. After the controller action is called, the [Controller::after] method - * will be called. - * - * By default, the output from the controller is captured and returned, and - * no headers are sent. - * - * $request->execute(); - * - * @param Request $request - * @param Response $response - * @return Response - * @throws Kohana_Exception - * @uses [Kohana::$profiling] - * @uses [Profiler] - */ - public function execute(Request $request) - { - // Prevent too much recursion of header callback requests - if ($this->callback_depth() > $this->max_callback_depth()) - throw new Request_Client_Recursion_Exception( - "Could not execute request to :uri - too many recursions after :depth requests", - array( - ':uri' => $request->uri(), - ':depth' => $this->callback_depth() - 1, - )); - - // Execute the request - $orig_response = $response = Response::factory(); - - if (($cache = $this->cache()) instanceof HTTP_Cache) - return $cache->execute($this, $request, $response); - - $response = $this->execute_request($request, $response); - - // Execute response callbacks - foreach ($this->header_callbacks() as $header => $callback) - { - if ($response->headers($header)) - { - $cb_result = call_user_func($callback, $request, $response, $this); - - if ($cb_result instanceof Request) - { - // If the callback returns a request, automatically assign client params - $this->assign_client_properties($cb_result->client()); - $cb_result->client()->callback_depth($this->callback_depth() + 1); - - // Execute the request - $response = $cb_result->execute(); - } - elseif ($cb_result instanceof Response) - { - // Assign the returned response - $response = $cb_result; - } - - // If the callback has created a new response, do not process any further - if ($response !== $orig_response) - break; - } - } - - return $response; - } - - /** - * Processes the request passed to it and returns the response from - * the URI resource identified. - * - * This method must be implemented by all clients. - * - * @param Request $request request to execute by client - * @param Response $response - * @return Response - * @since 3.2.0 - */ - abstract public function execute_request(Request $request, Response $response); - - /** - * Getter and setter for the internal caching engine, - * used to cache responses if available and valid. - * - * @param HTTP_Cache $cache engine to use for caching - * @return HTTP_Cache - * @return Request_Client - */ - public function cache(HTTP_Cache $cache = NULL) - { - if ($cache === NULL) - return $this->_cache; - - $this->_cache = $cache; - return $this; - } - - /** - * Getter and setter for the follow redirects - * setting. - * - * @param bool $follow Boolean indicating if redirects should be followed - * @return bool - * @return Request_Client - */ - public function follow($follow = NULL) - { - if ($follow === NULL) - return $this->_follow; - - $this->_follow = $follow; - - return $this; - } - - /** - * Getter and setter for the follow redirects - * headers array. - * - * @param array $follow_headers Array of headers to be re-used when following a Location header - * @return array - * @return Request_Client - */ - public function follow_headers($follow_headers = NULL) - { - if ($follow_headers === NULL) - return $this->_follow_headers; - - $this->_follow_headers = $follow_headers; - - return $this; - } - - /** - * Getter and setter for the strict redirects setting - * - * [!!] HTTP/1.1 specifies that a 302 redirect should be followed using the - * original request method. However, the vast majority of clients and servers - * get this wrong, with 302 widely used for 'POST - 302 redirect - GET' patterns. - * By default, Kohana's client is fully compliant with the HTTP spec. Some - * non-compliant third party sites may require that strict_redirect is set - * FALSE to force the client to switch to GET following a 302 response. - * - * @param bool $strict_redirect Boolean indicating if 302 redirects should be followed with the original method - * @return Request_Client - */ - public function strict_redirect($strict_redirect = NULL) - { - if ($strict_redirect === NULL) - return $this->_strict_redirect; - - $this->_strict_redirect = $strict_redirect; - - return $this; - } - - /** - * Getter and setter for the header callbacks array. - * - * Accepts an array with HTTP response headers as keys and a PHP callback - * function as values. These callbacks will be triggered if a response contains - * the given header and can either issue a subsequent request or manipulate - * the response as required. - * - * By default, the [Request_Client::on_header_location] callback is assigned - * to the Location header to support automatic redirect following. - * - * $client->header_callbacks(array( - * 'Location' => 'Request_Client::on_header_location', - * 'WWW-Authenticate' => function($request, $response, $client) {return $new_response;}, - * ); - * - * @param array $header_callbacks Array of callbacks to trigger on presence of given headers - * @return Request_Client - */ - public function header_callbacks($header_callbacks = NULL) - { - if ($header_callbacks === NULL) - return $this->_header_callbacks; - - $this->_header_callbacks = $header_callbacks; - - return $this; - } - - /** - * Getter and setter for the maximum callback depth property. - * - * This protects the main execution from recursive callback execution (eg - * following infinite redirects, conflicts between callbacks causing loops - * etc). Requests will only be allowed to nest to the level set by this - * param before execution is aborted with a Request_Client_Recursion_Exception. - * - * @param int $depth Maximum number of callback requests to execute before aborting - * @return Request_Client|int - */ - public function max_callback_depth($depth = NULL) - { - if ($depth === NULL) - return $this->_max_callback_depth; - - $this->_max_callback_depth = $depth; - - return $this; - } - - /** - * Getter/Setter for the callback depth property, which is used to track - * how many recursions have been executed within the current request execution. - * - * @param int $depth Current recursion depth - * @return Request_Client|int - */ - public function callback_depth($depth = NULL) - { - if ($depth === NULL) - return $this->_callback_depth; - - $this->_callback_depth = $depth; - - return $this; - } - - /** - * Getter/Setter for the callback_params array, which allows additional - * application-specific parameters to be shared with callbacks. - * - * As with other Kohana setter/getters, usage is: - * - * // Set full array - * $client->callback_params(array('foo'=>'bar')); - * - * // Set single key - * $client->callback_params('foo','bar'); - * - * // Get full array - * $params = $client->callback_params(); - * - * // Get single key - * $foo = $client->callback_params('foo'); - * - * @param string|array $param - * @param mixed $value - * @return Request_Client|mixed - */ - public function callback_params($param = NULL, $value = NULL) - { - // Getter for full array - if ($param === NULL) - return $this->_callback_params; - - // Setter for full array - if (is_array($param)) - { - $this->_callback_params = $param; - return $this; - } - // Getter for single value - elseif ($value === NULL) - { - return Arr::get($this->_callback_params, $param); - } - // Setter for single value - else - { - $this->_callback_params[$param] = $value; - return $this; - } - - } - - /** - * Assigns the properties of the current Request_Client to another - * Request_Client instance - used when setting up a subsequent request. - * - * @param Request_Client $client - */ - public function assign_client_properties(Request_Client $client) - { - $client->cache($this->cache()); - $client->follow($this->follow()); - $client->follow_headers($this->follow_headers()); - $client->header_callbacks($this->header_callbacks()); - $client->max_callback_depth($this->max_callback_depth()); - $client->callback_params($this->callback_params()); - } - - /** - * The default handler for following redirects, triggered by the presence of - * a Location header in the response. - * - * The client's follow property must be set TRUE and the HTTP response status - * one of 201, 301, 302, 303 or 307 for the redirect to be followed. - * - * @param Request $request - * @param Response $response - * @param Request_Client $client - */ - public static function on_header_location(Request $request, Response $response, Request_Client $client) - { - // Do we need to follow a Location header ? - if ($client->follow() AND in_array($response->status(), array(201, 301, 302, 303, 307))) - { - // Figure out which method to use for the follow request - switch ($response->status()) - { - default: - case 301: - case 307: - $follow_method = $request->method(); - break; - case 201: - case 303: - $follow_method = Request::GET; - break; - case 302: - // Cater for sites with broken HTTP redirect implementations - if ($client->strict_redirect()) - { - $follow_method = $request->method(); - } - else - { - $follow_method = Request::GET; - } - break; - } - - // Prepare the additional request - $follow_request = Request::factory($response->headers('Location')) - ->method($follow_method) - ->headers(Arr::extract($request->headers(), $client->follow_headers())); - - if ($follow_method !== Request::GET) - { - $follow_request->body($request->body()); - } - - return $follow_request; - } - - return NULL; - } - -} \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/Request/Client/Curl.php b/includes/kohana/system/classes/Kohana/Request/Client/Curl.php deleted file mode 100644 index 84157291..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client/Curl.php +++ /dev/null @@ -1,135 +0,0 @@ -_set_curl_request_method($request, $options); - - // Set the request body. This is perfectly legal in CURL even - // if using a request other than POST. PUT does support this method - // and DOES NOT require writing data to disk before putting it, if - // reading the PHP docs you may have got that impression. SdF - $options[CURLOPT_POSTFIELDS] = $request->body(); - - // Process headers - if ($headers = $request->headers()) - { - $http_headers = array(); - - foreach ($headers as $key => $value) - { - $http_headers[] = $key.': '.$value; - } - - $options[CURLOPT_HTTPHEADER] = $http_headers; - } - - // Process cookies - if ($cookies = $request->cookie()) - { - $options[CURLOPT_COOKIE] = http_build_query($cookies, NULL, '; '); - } - - // Get any exisiting response headers - $response_header = $response->headers(); - - // Implement the standard parsing parameters - $options[CURLOPT_HEADERFUNCTION] = array($response_header, 'parse_header_string'); - $this->_options[CURLOPT_RETURNTRANSFER] = TRUE; - $this->_options[CURLOPT_HEADER] = FALSE; - - // Apply any additional options set to - $options = Arr::merge($options, $this->_options); - - $uri = $request->uri(); - - if ($query = $request->query()) - { - $uri .= '?'.http_build_query($query, NULL, '&'); - } - - // Open a new remote connection - $curl = curl_init($uri); - - // Set connection options - if ( ! curl_setopt_array($curl, $options)) - { - throw new Request_Exception('Failed to set CURL options, check CURL documentation: :url', - array(':url' => 'http://php.net/curl_setopt_array')); - } - - // Get the response body - $body = curl_exec($curl); - - // Get the response information - $code = curl_getinfo($curl, CURLINFO_HTTP_CODE); - - if ($body === FALSE) - { - $error = curl_error($curl); - } - - // Close the connection - curl_close($curl); - - if (isset($error)) - { - throw new Request_Exception('Error fetching remote :url [ status :code ] :error', - array(':url' => $request->url(), ':code' => $code, ':error' => $error)); - } - - $response->status($code) - ->body($body); - - return $response; - } - - /** - * Sets the appropriate curl request options. Uses the responding options - * for POST and PUT, uses CURLOPT_CUSTOMREQUEST otherwise - * @param Request $request - * @param array $options - * @return array - */ - public function _set_curl_request_method(Request $request, array $options) - { - switch ($request->method()) { - case Request::POST: - $options[CURLOPT_POST] = TRUE; - break; - case Request::PUT: - $options[CURLOPT_PUT] = TRUE; - break; - default: - $options[CURLOPT_CUSTOMREQUEST] = $request->method(); - break; - } - return $options; - } - -} // End Kohana_Request_Client_Curl diff --git a/includes/kohana/system/classes/Kohana/Request/Client/External.php b/includes/kohana/system/classes/Kohana/Request/Client/External.php deleted file mode 100644 index 7bd754f0..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client/External.php +++ /dev/null @@ -1,207 +0,0 @@ -client(Request_Client_External::factory('Request_Client_HTTP)); - * - * @package Kohana - * @category Base - * @author Kohana Team - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - * @uses [PECL HTTP](http://php.net/manual/en/book.http.php) - */ -abstract class Kohana_Request_Client_External extends Request_Client { - - /** - * Use: - * - Request_Client_Curl (default) - * - Request_Client_HTTP - * - Request_Client_Stream - * - * @var string defines the external client to use by default - */ - public static $client = 'Request_Client_Curl'; - - /** - * Factory method to create a new Request_Client_External object based on - * the client name passed, or defaulting to Request_Client_External::$client - * by default. - * - * Request_Client_External::$client can be set in the application bootstrap. - * - * @param array $params parameters to pass to the client - * @param string $client external client to use - * @return Request_Client_External - * @throws Request_Exception - */ - public static function factory(array $params = array(), $client = NULL) - { - if ($client === NULL) - { - $client = Request_Client_External::$client; - } - - $client = new $client($params); - - if ( ! $client instanceof Request_Client_External) - { - throw new Request_Exception('Selected client is not a Request_Client_External object.'); - } - - return $client; - } - - /** - * @var array curl options - * @link http://www.php.net/manual/function.curl-setopt - * @link http://www.php.net/manual/http.request.options - */ - protected $_options = array(); - - /** - * Processes the request, executing the controller action that handles this - * request, determined by the [Route]. - * - * 1. Before the controller action is called, the [Controller::before] method - * will be called. - * 2. Next the controller action will be called. - * 3. After the controller action is called, the [Controller::after] method - * will be called. - * - * By default, the output from the controller is captured and returned, and - * no headers are sent. - * - * $request->execute(); - * - * @param Request $request A request object - * @param Response $response A response object - * @return Response - * @throws Kohana_Exception - * @uses [Kohana::$profiling] - * @uses [Profiler] - */ - public function execute_request(Request $request, Response $response) - { - if (Kohana::$profiling) - { - // Set the benchmark name - $benchmark = '"'.$request->uri().'"'; - - if ($request !== Request::$initial AND Request::$current) - { - // Add the parent request uri - $benchmark .= ' « "'.Request::$current->uri().'"'; - } - - // Start benchmarking - $benchmark = Profiler::start('Requests', $benchmark); - } - - // Store the current active request and replace current with new request - $previous = Request::$current; - Request::$current = $request; - - // Resolve the POST fields - if ($post = $request->post()) - { - $request->body(http_build_query($post, NULL, '&')) - ->headers('content-type', 'application/x-www-form-urlencoded'); - } - - // If Kohana expose, set the user-agent - if (Kohana::$expose) - { - $request->headers('user-agent', Kohana::version()); - } - - try - { - $response = $this->_send_message($request, $response); - } - catch (Exception $e) - { - // Restore the previous request - Request::$current = $previous; - - if (isset($benchmark)) - { - // Delete the benchmark, it is invalid - Profiler::delete($benchmark); - } - - // Re-throw the exception - throw $e; - } - - // Restore the previous request - Request::$current = $previous; - - if (isset($benchmark)) - { - // Stop the benchmark - Profiler::stop($benchmark); - } - - // Return the response - return $response; - } - - /** - * Set and get options for this request. - * - * @param mixed $key Option name, or array of options - * @param mixed $value Option value - * @return mixed - * @return Request_Client_External - */ - public function options($key = NULL, $value = NULL) - { - if ($key === NULL) - return $this->_options; - - if (is_array($key)) - { - $this->_options = $key; - } - elseif ($value === NULL) - { - return Arr::get($this->_options, $key); - } - else - { - $this->_options[$key] = $value; - } - - return $this; - } - - /** - * Sends the HTTP message [Request] to a remote server and processes - * the response. - * - * @param Request $request Request to send - * @param Response $response Response to send - * @return Response - */ - abstract protected function _send_message(Request $request, Response $response); - -} // End Kohana_Request_Client_External \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/Request/Client/HTTP.php b/includes/kohana/system/classes/Kohana/Request/Client/HTTP.php deleted file mode 100644 index c74f5c1a..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client/HTTP.php +++ /dev/null @@ -1,121 +0,0 @@ - HTTPRequest::METH_GET, - HTTP_Request::HEAD => HTTPRequest::METH_HEAD, - HTTP_Request::POST => HTTPRequest::METH_POST, - HTTP_Request::PUT => HTTPRequest::METH_PUT, - HTTP_Request::DELETE => HTTPRequest::METH_DELETE, - HTTP_Request::OPTIONS => HTTPRequest::METH_OPTIONS, - HTTP_Request::TRACE => HTTPRequest::METH_TRACE, - HTTP_Request::CONNECT => HTTPRequest::METH_CONNECT, - ); - - // Create an http request object - $http_request = new HTTPRequest($request->uri(), $http_method_mapping[$request->method()]); - - if ($this->_options) - { - // Set custom options - $http_request->setOptions($this->_options); - } - - // Set headers - $http_request->setHeaders($request->headers()->getArrayCopy()); - - // Set cookies - $http_request->setCookies($request->cookie()); - - // Set query data (?foo=bar&bar=foo) - $http_request->setQueryData($request->query()); - - // Set the body - if ($request->method() == HTTP_Request::PUT) - { - $http_request->addPutData($request->body()); - } - else - { - $http_request->setBody($request->body()); - } - - try - { - $http_request->send(); - } - catch (HTTPRequestException $e) - { - throw new Request_Exception($e->getMessage()); - } - catch (HTTPMalformedHeaderException $e) - { - throw new Request_Exception($e->getMessage()); - } - catch (HTTPEncodingException $e) - { - throw new Request_Exception($e->getMessage()); - } - - // Build the response - $response->status($http_request->getResponseCode()) - ->headers($http_request->getResponseHeader()) - ->cookie($http_request->getResponseCookies()) - ->body($http_request->getResponseBody()); - - return $response; - } - -} // End Kohana_Request_Client_HTTP diff --git a/includes/kohana/system/classes/Kohana/Request/Client/Internal.php b/includes/kohana/system/classes/Kohana/Request/Client/Internal.php deleted file mode 100644 index 6afe224c..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client/Internal.php +++ /dev/null @@ -1,128 +0,0 @@ -execute(); - * - * @param Request $request - * @return Response - * @throws Kohana_Exception - * @uses [Kohana::$profiling] - * @uses [Profiler] - */ - public function execute_request(Request $request, Response $response) - { - // Create the class prefix - $prefix = 'Controller_'; - - // Directory - $directory = $request->directory(); - - // Controller - $controller = $request->controller(); - - if ($directory) - { - // Add the directory name to the class prefix - $prefix .= str_replace(array('\\', '/'), '_', trim($directory, '/')).'_'; - } - - if (Kohana::$profiling) - { - // Set the benchmark name - $benchmark = '"'.$request->uri().'"'; - - if ($request !== Request::$initial AND Request::$current) - { - // Add the parent request uri - $benchmark .= ' « "'.Request::$current->uri().'"'; - } - - // Start benchmarking - $benchmark = Profiler::start('Requests', $benchmark); - } - - // Store the currently active request - $previous = Request::$current; - - // Change the current request to this request - Request::$current = $request; - - // Is this the initial request - $initial_request = ($request === Request::$initial); - - try - { - if ( ! class_exists($prefix.$controller)) - { - throw HTTP_Exception::factory(404, - 'The requested URL :uri was not found on this server.', - array(':uri' => $request->uri()) - )->request($request); - } - - // Load the controller using reflection - $class = new ReflectionClass($prefix.$controller); - - if ($class->isAbstract()) - { - throw new Kohana_Exception( - 'Cannot create instances of abstract :controller', - array(':controller' => $prefix.$controller) - ); - } - - // Create a new instance of the controller - $controller = $class->newInstance($request, $response); - - // Run the controller's execute() method - $response = $class->getMethod('execute')->invoke($controller); - - if ( ! $response instanceof Response) - { - // Controller failed to return a Response. - throw new Kohana_Exception('Controller failed to return a Response'); - } - } - catch (HTTP_Exception $e) - { - // Get the response via the Exception - $response = $e->get_response(); - } - catch (Exception $e) - { - // Generate an appropriate Response object - $response = Kohana_Exception::_handler($e); - } - - // Restore the previous request - Request::$current = $previous; - - if (isset($benchmark)) - { - // Stop the benchmark - Profiler::stop($benchmark); - } - - // Return the response - return $response; - } -} // End Kohana_Request_Client_Internal diff --git a/includes/kohana/system/classes/Kohana/Request/Client/Recursion/Exception.php b/includes/kohana/system/classes/Kohana/Request/Client/Recursion/Exception.php deleted file mode 100644 index 3029a8fd..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Client/Recursion/Exception.php +++ /dev/null @@ -1,10 +0,0 @@ -method() === HTTP_Request::GET) ? 'r' : 'r+'; - - // Process cookies - if ($cookies = $request->cookie()) - { - $request->headers('cookie', http_build_query($cookies, NULL, '; ')); - } - - // Get the message body - $body = $request->body(); - - if (is_resource($body)) - { - $body = stream_get_contents($body); - } - - // Set the content length - $request->headers('content-length', (string) strlen($body)); - - list($protocol) = explode('/', $request->protocol()); - - // Create the context - $options = array( - strtolower($protocol) => array( - 'method' => $request->method(), - 'header' => (string) $request->headers(), - 'content' => $body - ) - ); - - // Create the context stream - $context = stream_context_create($options); - - stream_context_set_option($context, $this->_options); - - $uri = $request->uri(); - - if ($query = $request->query()) - { - $uri .= '?'.http_build_query($query, NULL, '&'); - } - - $stream = fopen($uri, $mode, FALSE, $context); - - $meta_data = stream_get_meta_data($stream); - - // Get the HTTP response code - $http_response = array_shift($meta_data['wrapper_data']); - - if (preg_match_all('/(\w+\/\d\.\d) (\d{3})/', $http_response, $matches) !== FALSE) - { - $protocol = $matches[1][0]; - $status = (int) $matches[2][0]; - } - else - { - $protocol = NULL; - $status = NULL; - } - - // Get any exisiting response headers - $response_header = $response->headers(); - - // Process headers - array_map(array($response_header, 'parse_header_string'), array(), $meta_data['wrapper_data']); - - $response->status($status) - ->protocol($protocol) - ->body(stream_get_contents($stream)); - - // Close the stream after use - fclose($stream); - - return $response; - } - -} // End Kohana_Request_Client_Stream \ No newline at end of file diff --git a/includes/kohana/system/classes/Kohana/Request/Exception.php b/includes/kohana/system/classes/Kohana/Request/Exception.php deleted file mode 100644 index 7b7636b2..00000000 --- a/includes/kohana/system/classes/Kohana/Request/Exception.php +++ /dev/null @@ -1,9 +0,0 @@ - 200)); - * - * @param array $config Setup the response object - * @return Response - */ - public static function factory(array $config = array()) - { - return new Response($config); - } - - // HTTP status codes and messages - public static $messages = array( - // Informational 1xx - 100 => 'Continue', - 101 => 'Switching Protocols', - - // Success 2xx - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - - // Redirection 3xx - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', // 1.1 - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - // 306 is deprecated but reserved - 307 => 'Temporary Redirect', - - // Client Error 4xx - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Timeout', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Request Entity Too Large', - 414 => 'Request-URI Too Long', - 415 => 'Unsupported Media Type', - 416 => 'Requested Range Not Satisfiable', - 417 => 'Expectation Failed', - - // Server Error 5xx - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Service Unavailable', - 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported', - 509 => 'Bandwidth Limit Exceeded' - ); - - /** - * @var integer The response http status - */ - protected $_status = 200; - - /** - * @var HTTP_Header Headers returned in the response - */ - protected $_header; - - /** - * @var string The response body - */ - protected $_body = ''; - - /** - * @var array Cookies to be returned in the response - */ - protected $_cookies = array(); - - /** - * @var string The response protocol - */ - protected $_protocol; - - /** - * Sets up the response object - * - * @param array $config Setup the response object - * @return void - */ - public function __construct(array $config = array()) - { - $this->_header = new HTTP_Header; - - foreach ($config as $key => $value) - { - if (property_exists($this, $key)) - { - if ($key == '_header') - { - $this->headers($value); - } - else - { - $this->$key = $value; - } - } - } - } - - /** - * Outputs the body when cast to string - * - * @return string - */ - public function __toString() - { - return $this->_body; - } - - /** - * Gets or sets the body of the response - * - * @return mixed - */ - public function body($content = NULL) - { - if ($content === NULL) - return $this->_body; - - $this->_body = (string) $content; - return $this; - } - - /** - * Gets or sets the HTTP protocol. The standard protocol to use - * is `HTTP/1.1`. - * - * @param string $protocol Protocol to set to the request/response - * @return mixed - */ - public function protocol($protocol = NULL) - { - if ($protocol) - { - $this->_protocol = strtoupper($protocol); - return $this; - } - - if ($this->_protocol === NULL) - { - $this->_protocol = HTTP::$protocol; - } - - return $this->_protocol; - } - - /** - * Sets or gets the HTTP status from this response. - * - * // Set the HTTP status to 404 Not Found - * $response = Response::factory() - * ->status(404); - * - * // Get the current status - * $status = $response->status(); - * - * @param integer $status Status to set to this response - * @return mixed - */ - public function status($status = NULL) - { - if ($status === NULL) - { - return $this->_status; - } - elseif (array_key_exists($status, Response::$messages)) - { - $this->_status = (int) $status; - return $this; - } - else - { - throw new Kohana_Exception(__METHOD__.' unknown status value : :value', array(':value' => $status)); - } - } - - /** - * Gets and sets headers to the [Response], allowing chaining - * of response methods. If chaining isn't required, direct - * access to the property should be used instead. - * - * // Get a header - * $accept = $response->headers('Content-Type'); - * - * // Set a header - * $response->headers('Content-Type', 'text/html'); - * - * // Get all headers - * $headers = $response->headers(); - * - * // Set multiple headers - * $response->headers(array('Content-Type' => 'text/html', 'Cache-Control' => 'no-cache')); - * - * @param mixed $key - * @param string $value - * @return mixed - */ - public function headers($key = NULL, $value = NULL) - { - if ($key === NULL) - { - return $this->_header; - } - elseif (is_array($key)) - { - $this->_header->exchangeArray($key); - return $this; - } - elseif ($value === NULL) - { - return Arr::get($this->_header, $key); - } - else - { - $this->_header[$key] = $value; - return $this; - } - } - - /** - * Returns the length of the body for use with - * content header - * - * @return integer - */ - public function content_length() - { - return strlen($this->body()); - } - - /** - * Set and get cookies values for this response. - * - * // Get the cookies set to the response - * $cookies = $response->cookie(); - * - * // Set a cookie to the response - * $response->cookie('session', array( - * 'value' => $value, - * 'expiration' => 12352234 - * )); - * - * @param mixed $key cookie name, or array of cookie values - * @param string $value value to set to cookie - * @return string - * @return void - * @return [Response] - */ - public function cookie($key = NULL, $value = NULL) - { - // Handle the get cookie calls - if ($key === NULL) - return $this->_cookies; - elseif ( ! is_array($key) AND ! $value) - return Arr::get($this->_cookies, $key); - - // Handle the set cookie calls - if (is_array($key)) - { - reset($key); - while (list($_key, $_value) = each($key)) - { - $this->cookie($_key, $_value); - } - } - else - { - if ( ! is_array($value)) - { - $value = array( - 'value' => $value, - 'expiration' => Cookie::$expiration - ); - } - elseif ( ! isset($value['expiration'])) - { - $value['expiration'] = Cookie::$expiration; - } - - $this->_cookies[$key] = $value; - } - - return $this; - } - - /** - * Deletes a cookie set to the response - * - * @param string $name - * @return Response - */ - public function delete_cookie($name) - { - unset($this->_cookies[$name]); - return $this; - } - - /** - * Deletes all cookies from this response - * - * @return Response - */ - public function delete_cookies() - { - $this->_cookies = array(); - return $this; - } - - /** - * Sends the response status and all set headers. - * - * @param boolean $replace replace existing headers - * @param callback $callback function to handle header output - * @return mixed - */ - public function send_headers($replace = FALSE, $callback = NULL) - { - return $this->_header->send_headers($this, $replace, $callback); - } - - /** - * Send file download as the response. All execution will be halted when - * this method is called! Use TRUE for the filename to send the current - * response as the file content. The third parameter allows the following - * options to be set: - * - * Type | Option | Description | Default Value - * ----------|-----------|------------------------------------|-------------- - * `boolean` | inline | Display inline instead of download | `FALSE` - * `string` | mime_type | Manual mime type | Automatic - * `boolean` | delete | Delete the file after sending | `FALSE` - * - * Download a file that already exists: - * - * $request->send_file('media/packages/kohana.zip'); - * - * Download generated content as a file: - * - * $request->response($content); - * $request->send_file(TRUE, $filename); - * - * [!!] No further processing can be done after this method is called! - * - * @param string $filename filename with path, or TRUE for the current response - * @param string $download downloaded file name - * @param array $options additional options - * @return void - * @throws Kohana_Exception - * @uses File::mime_by_ext - * @uses File::mime - * @uses Request::send_headers - */ - public function send_file($filename, $download = NULL, array $options = NULL) - { - if ( ! empty($options['mime_type'])) - { - // The mime-type has been manually set - $mime = $options['mime_type']; - } - - if ($filename === TRUE) - { - if (empty($download)) - { - throw new Kohana_Exception('Download name must be provided for streaming files'); - } - - // Temporary files will automatically be deleted - $options['delete'] = FALSE; - - if ( ! isset($mime)) - { - // Guess the mime using the file extension - $mime = File::mime_by_ext(strtolower(pathinfo($download, PATHINFO_EXTENSION))); - } - - // Force the data to be rendered if - $file_data = (string) $this->_body; - - // Get the content size - $size = strlen($file_data); - - // Create a temporary file to hold the current response - $file = tmpfile(); - - // Write the current response into the file - fwrite($file, $file_data); - - // File data is no longer needed - unset($file_data); - } - else - { - // Get the complete file path - $filename = realpath($filename); - - if (empty($download)) - { - // Use the file name as the download file name - $download = pathinfo($filename, PATHINFO_BASENAME); - } - - // Get the file size - $size = filesize($filename); - - if ( ! isset($mime)) - { - // Get the mime type from the extension of the download file - $mime = File::mime_by_ext(pathinfo($download, PATHINFO_EXTENSION)); - } - - // Open the file for reading - $file = fopen($filename, 'rb'); - } - - if ( ! is_resource($file)) - { - throw new Kohana_Exception('Could not read file to send: :file', array( - ':file' => $download, - )); - } - - // Inline or download? - $disposition = empty($options['inline']) ? 'attachment' : 'inline'; - - // Calculate byte range to download. - list($start, $end) = $this->_calculate_byte_range($size); - - if ( ! empty($options['resumable'])) - { - if ($start > 0 OR $end < ($size - 1)) - { - // Partial Content - $this->_status = 206; - } - - // Range of bytes being sent - $this->_header['content-range'] = 'bytes '.$start.'-'.$end.'/'.$size; - $this->_header['accept-ranges'] = 'bytes'; - } - - // Set the headers for a download - $this->_header['content-disposition'] = $disposition.'; filename="'.$download.'"'; - $this->_header['content-type'] = $mime; - $this->_header['content-length'] = (string) (($end - $start) + 1); - - if (Request::user_agent('browser') === 'Internet Explorer') - { - // Naturally, IE does not act like a real browser... - if (Request::$initial->secure()) - { - // http://support.microsoft.com/kb/316431 - $this->_header['pragma'] = $this->_header['cache-control'] = 'public'; - } - - if (version_compare(Request::user_agent('version'), '8.0', '>=')) - { - // http://ajaxian.com/archives/ie-8-security - $this->_header['x-content-type-options'] = 'nosniff'; - } - } - - // Send all headers now - $this->send_headers(); - - while (ob_get_level()) - { - // Flush all output buffers - ob_end_flush(); - } - - // Manually stop execution - ignore_user_abort(TRUE); - - if ( ! Kohana::$safe_mode) - { - // Keep the script running forever - set_time_limit(0); - } - - // Send data in 16kb blocks - $block = 1024 * 16; - - fseek($file, $start); - - while ( ! feof($file) AND ($pos = ftell($file)) <= $end) - { - if (connection_aborted()) - break; - - if ($pos + $block > $end) - { - // Don't read past the buffer. - $block = $end - $pos + 1; - } - - // Output a block of the file - echo fread($file, $block); - - // Send the data now - flush(); - } - - // Close the file - fclose($file); - - if ( ! empty($options['delete'])) - { - try - { - // Attempt to remove the file - unlink($filename); - } - catch (Exception $e) - { - // Create a text version of the exception - $error = Kohana_Exception::text($e); - - if (is_object(Kohana::$log)) - { - // Add this exception to the log - Kohana::$log->add(Log::ERROR, $error); - - // Make sure the logs are written - Kohana::$log->write(); - } - - // Do NOT display the exception, it will corrupt the output! - } - } - - // Stop execution - exit; - } - - /** - * Renders the HTTP_Interaction to a string, producing - * - * - Protocol - * - Headers - * - Body - * - * @return string - */ - public function render() - { - if ( ! $this->_header->offsetExists('content-type')) - { - // Add the default Content-Type header if required - $this->_header['content-type'] = Kohana::$content_type.'; charset='.Kohana::$charset; - } - - // Set the content length - $this->headers('content-length', (string) $this->content_length()); - - // If Kohana expose, set the user-agent - if (Kohana::$expose) - { - $this->headers('user-agent', Kohana::version()); - } - - // Prepare cookies - if ($this->_cookies) - { - if (extension_loaded('http')) - { - $this->_header['set-cookie'] = http_build_cookie($this->_cookies); - } - else - { - $cookies = array(); - - // Parse each - foreach ($this->_cookies as $key => $value) - { - $string = $key.'='.$value['value'].'; expires='.date('l, d M Y H:i:s T', $value['expiration']); - $cookies[] = $string; - } - - // Create the cookie string - $this->_header['set-cookie'] = $cookies; - } - } - - $output = $this->_protocol.' '.$this->_status.' '.Response::$messages[$this->_status]."\r\n"; - $output .= (string) $this->_header; - $output .= $this->_body; - - return $output; - } - - /** - * Generate ETag - * Generates an ETag from the response ready to be returned - * - * @throws Request_Exception - * @return String Generated ETag - */ - public function generate_etag() - { - if ($this->_body === '') - { - throw new Request_Exception('No response yet associated with request - cannot auto generate resource ETag'); - } - - // Generate a unique hash for the response - return '"'.sha1($this->render()).'"'; - } - - /** - * Parse the byte ranges from the HTTP_RANGE header used for - * resumable downloads. - * - * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 - * @return array|FALSE - */ - protected function _parse_byte_range() - { - if ( ! isset($_SERVER['HTTP_RANGE'])) - { - return FALSE; - } - - // TODO, speed this up with the use of string functions. - preg_match_all('/(-?[0-9]++(?:-(?![0-9]++))?)(?:-?([0-9]++))?/', $_SERVER['HTTP_RANGE'], $matches, PREG_SET_ORDER); - - return $matches[0]; - } - - /** - * Calculates the byte range to use with send_file. If HTTP_RANGE doesn't - * exist then the complete byte range is returned - * - * @param integer $size - * @return array - */ - protected function _calculate_byte_range($size) - { - // Defaults to start with when the HTTP_RANGE header doesn't exist. - $start = 0; - $end = $size - 1; - - if ($range = $this->_parse_byte_range()) - { - // We have a byte range from HTTP_RANGE - $start = $range[1]; - - if ($start[0] === '-') - { - // A negative value means we start from the end, so -500 would be the - // last 500 bytes. - $start = $size - abs($start); - } - - if (isset($range[2])) - { - // Set the end range - $end = $range[2]; - } - } - - // Normalize values. - $start = abs(intval($start)); - - // Keep the the end value in bounds and normalize it. - $end = min(abs(intval($end)), $size - 1); - - // Keep the start in bounds. - $start = ($end < $start) ? 0 : max($start, 0); - - return array($start, $end); - } -} // End Kohana_Response diff --git a/includes/kohana/system/classes/Kohana/Route.php b/includes/kohana/system/classes/Kohana/Route.php deleted file mode 100644 index 808d374b..00000000 --- a/includes/kohana/system/classes/Kohana/Route.php +++ /dev/null @@ -1,629 +0,0 @@ - will be translated to a regular expression using a default - * regular expression pattern. You can override the default pattern by providing - * a pattern for the key: - * - * // This route will only match when is a digit - * Route::set('user', 'user//', array('id' => '\d+')); - * - * // This route will match when is anything - * Route::set('file', '', array('path' => '.*')); - * - * It is also possible to create optional segments by using parentheses in - * the URI definition: - * - * // This is the standard default route, and no keys are required - * Route::set('default', '((/(/)))'); - * - * // This route only requires the key - * Route::set('file', '(/)(.)', array('path' => '.*', 'format' => '\w+')); - * - * Routes also provide a way to generate URIs (called "reverse routing"), which - * makes them an extremely powerful and flexible way to generate internal links. - * - * @package Kohana - * @category Base - * @author Kohana Team - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_Route { - - // Defines the pattern of a - const REGEX_KEY = '<([a-zA-Z0-9_]++)>'; - - // What can be part of a value - const REGEX_SEGMENT = '[^/.,;?\n]++'; - - // What must be escaped in the route regex - const REGEX_ESCAPE = '[.\\+*?[^\\]${}=!|]'; - - /** - * @var string default protocol for all routes - * - * @example 'http://' - */ - public static $default_protocol = 'http://'; - - /** - * @var array list of valid localhost entries - */ - public static $localhosts = array(FALSE, '', 'local', 'localhost'); - - /** - * @var string default action for all routes - */ - public static $default_action = 'index'; - - /** - * @var bool Indicates whether routes are cached - */ - public static $cache = FALSE; - - /** - * @var array - */ - protected static $_routes = array(); - - /** - * Stores a named route and returns it. The "action" will always be set to - * "index" if it is not defined. - * - * Route::set('default', '((/(/)))') - * ->defaults(array( - * 'controller' => 'welcome', - * )); - * - * @param string $name route name - * @param string $uri URI pattern - * @param array $regex regex patterns for route keys - * @return Route - */ - public static function set($name, $uri = NULL, $regex = NULL) - { - return Route::$_routes[$name] = new Route($uri, $regex); - } - - /** - * Retrieves a named route. - * - * $route = Route::get('default'); - * - * @param string $name route name - * @return Route - * @throws Kohana_Exception - */ - public static function get($name) - { - if ( ! isset(Route::$_routes[$name])) - { - throw new Kohana_Exception('The requested route does not exist: :route', - array(':route' => $name)); - } - - return Route::$_routes[$name]; - } - - /** - * Retrieves all named routes. - * - * $routes = Route::all(); - * - * @return array routes by name - */ - public static function all() - { - return Route::$_routes; - } - - /** - * Get the name of a route. - * - * $name = Route::name($route) - * - * @param Route $route instance - * @return string - */ - public static function name(Route $route) - { - return array_search($route, Route::$_routes); - } - - /** - * Saves or loads the route cache. If your routes will remain the same for - * a long period of time, use this to reload the routes from the cache - * rather than redefining them on every page load. - * - * if ( ! Route::cache()) - * { - * // Set routes here - * Route::cache(TRUE); - * } - * - * @param boolean $save cache the current routes - * @param boolean $append append, rather than replace, cached routes when loading - * @return void when saving routes - * @return boolean when loading routes - * @uses Kohana::cache - */ - public static function cache($save = FALSE, $append = FALSE) - { - if ($save === TRUE) - { - try - { - // Cache all defined routes - Kohana::cache('Route::cache()', Route::$_routes); - } - catch (Exception $e) - { - // We most likely have a lambda in a route, which cannot be cached - throw new Kohana_Exception('One or more routes could not be cached (:message)', array( - ':message' => $e->getMessage(), - ), 0, $e); - } - } - else - { - if ($routes = Kohana::cache('Route::cache()')) - { - if ($append) - { - // Append cached routes - Route::$_routes += $routes; - } - else - { - // Replace existing routes - Route::$_routes = $routes; - } - - // Routes were cached - return Route::$cache = TRUE; - } - else - { - // Routes were not cached - return Route::$cache = FALSE; - } - } - } - - /** - * Create a URL from a route name. This is a shortcut for: - * - * echo URL::site(Route::get($name)->uri($params), $protocol); - * - * @param string $name route name - * @param array $params URI parameters - * @param mixed $protocol protocol string or boolean, adds protocol and domain - * @return string - * @since 3.0.7 - * @uses URL::site - */ - public static function url($name, array $params = NULL, $protocol = NULL) - { - $route = Route::get($name); - - // Create a URI with the route and convert it to a URL - if ($route->is_external()) - return Route::get($name)->uri($params); - else - return URL::site(Route::get($name)->uri($params), $protocol); - } - - /** - * Returns the compiled regular expression for the route. This translates - * keys and optional groups to a proper PCRE regular expression. - * - * $compiled = Route::compile( - * '(/(/))', - * array( - * 'controller' => '[a-z]+', - * 'id' => '\d+', - * ) - * ); - * - * @return string - * @uses Route::REGEX_ESCAPE - * @uses Route::REGEX_SEGMENT - */ - public static function compile($uri, array $regex = NULL) - { - // The URI should be considered literal except for keys and optional parts - // Escape everything preg_quote would escape except for : ( ) < > - $expression = preg_replace('#'.Route::REGEX_ESCAPE.'#', '\\\\$0', $uri); - - if (strpos($expression, '(') !== FALSE) - { - // Make optional parts of the URI non-capturing and optional - $expression = str_replace(array('(', ')'), array('(?:', ')?'), $expression); - } - - // Insert default regex for keys - $expression = str_replace(array('<', '>'), array('(?P<', '>'.Route::REGEX_SEGMENT.')'), $expression); - - if ($regex) - { - $search = $replace = array(); - foreach ($regex as $key => $value) - { - $search[] = "<$key>".Route::REGEX_SEGMENT; - $replace[] = "<$key>$value"; - } - - // Replace the default regex with the user-specified regex - $expression = str_replace($search, $replace, $expression); - } - - return '#^'.$expression.'$#uD'; - } - - /** - * @var array route filters - */ - protected $_filters = array(); - - /** - * @var string route URI - */ - protected $_uri = ''; - - /** - * @var array - */ - protected $_regex = array(); - - /** - * @var array - */ - protected $_defaults = array('action' => 'index', 'host' => FALSE); - - /** - * @var string - */ - protected $_route_regex; - - /** - * Creates a new route. Sets the URI and regular expressions for keys. - * Routes should always be created with [Route::set] or they will not - * be properly stored. - * - * $route = new Route($uri, $regex); - * - * The $uri parameter should be a string for basic regex matching. - * - * - * @param string $uri route URI pattern - * @param array $regex key patterns - * @return void - * @uses Route::_compile - */ - public function __construct($uri = NULL, $regex = NULL) - { - if ($uri === NULL) - { - // Assume the route is from cache - return; - } - - if ( ! empty($uri)) - { - $this->_uri = $uri; - } - - if ( ! empty($regex)) - { - $this->_regex = $regex; - } - - // Store the compiled regex locally - $this->_route_regex = Route::compile($uri, $regex); - } - - /** - * Provides default values for keys when they are not present. The default - * action will always be "index" unless it is overloaded here. - * - * $route->defaults(array( - * 'controller' => 'welcome', - * 'action' => 'index' - * )); - * - * If no parameter is passed, this method will act as a getter. - * - * @param array $defaults key values - * @return $this or array - */ - public function defaults(array $defaults = NULL) - { - if ($defaults === NULL) - { - return $this->_defaults; - } - - $this->_defaults = $defaults; - - return $this; - } - - /** - * Filters to be run before route parameters are returned: - * - * $route->filter( - * function(Route $route, $params, Request $request) - * { - * if ($request->method() !== HTTP_Request::POST) - * { - * return FALSE; // This route only matches POST requests - * } - * if ($params AND $params['controller'] === 'welcome') - * { - * $params['controller'] = 'home'; - * } - * - * return $params; - * } - * ); - * - * To prevent a route from matching, return `FALSE`. To replace the route - * parameters, return an array. - * - * [!!] Default parameters are added before filters are called! - * - * @throws Kohana_Exception - * @param array $callback callback string, array, or closure - * @return $this - */ - public function filter($callback) - { - if ( ! is_callable($callback)) - { - throw new Kohana_Exception('Invalid Route::callback specified'); - } - - $this->_filters[] = $callback; - - return $this; - } - - /** - * Tests if the route matches a given URI. A successful match will return - * all of the routed parameters as an array. A failed match will return - * boolean FALSE. - * - * // Params: controller = users, action = edit, id = 10 - * $params = $route->matches('users/edit/10'); - * - * This method should almost always be used within an if/else block: - * - * if ($params = $route->matches($uri)) - * { - * // Parse the parameters - * } - * - * @param string $uri URI to match - * @return array on success - * @return FALSE on failure - */ - public function matches(Request $request) - { - // Get the URI from the Request - $uri = trim($request->uri(), '/'); - - if ( ! preg_match($this->_route_regex, $uri, $matches)) - return FALSE; - - $params = array(); - foreach ($matches as $key => $value) - { - if (is_int($key)) - { - // Skip all unnamed keys - continue; - } - - // Set the value for all matched keys - $params[$key] = $value; - } - - foreach ($this->_defaults as $key => $value) - { - if ( ! isset($params[$key]) OR $params[$key] === '') - { - // Set default values for any key that was not matched - $params[$key] = $value; - } - } - - if ( ! empty($params['controller'])) - { - // PSR-0: Replace underscores with spaces, run ucwords, then replace underscore - $params['controller'] = str_replace(' ', '_', ucwords(str_replace('_', ' ', $params['controller']))); - } - - if ( ! empty($params['directory'])) - { - // PSR-0: Replace underscores with spaces, run ucwords, then replace underscore - $params['directory'] = str_replace(' ', '_', ucwords(str_replace('_', ' ', $params['directory']))); - } - - if ($this->_filters) - { - foreach ($this->_filters as $callback) - { - // Execute the filter giving it the route, params, and request - $return = call_user_func($callback, $this, $params, $request); - - if ($return === FALSE) - { - // Filter has aborted the match - return FALSE; - } - elseif (is_array($return)) - { - // Filter has modified the parameters - $params = $return; - } - } - } - - return $params; - } - - /** - * Returns whether this route is an external route - * to a remote controller. - * - * @return boolean - */ - public function is_external() - { - return ! in_array(Arr::get($this->_defaults, 'host', FALSE), Route::$localhosts); - } - - /** - * Generates a URI for the current route based on the parameters given. - * - * // Using the "default" route: "users/profile/10" - * $route->uri(array( - * 'controller' => 'users', - * 'action' => 'profile', - * 'id' => '10' - * )); - * - * @param array $params URI parameters - * @return string - * @throws Kohana_Exception - * @uses Route::REGEX_Key - */ - public function uri(array $params = NULL) - { - // Start with the routed URI - $uri = $this->_uri; - - if (strpos($uri, '<') === FALSE AND strpos($uri, '(') === FALSE) - { - // This is a static route, no need to replace anything - - if ( ! $this->is_external()) - return $uri; - - // If the localhost setting does not have a protocol - if (strpos($this->_defaults['host'], '://') === FALSE) - { - // Use the default defined protocol - $params['host'] = Route::$default_protocol.$this->_defaults['host']; - } - else - { - // Use the supplied host with protocol - $params['host'] = $this->_defaults['host']; - } - - // Compile the final uri and return it - return rtrim($params['host'], '/').'/'.$uri; - } - - // Keep track of whether an optional param was replaced - $provided_optional = FALSE; - - while (preg_match('#\([^()]++\)#', $uri, $match)) - { - - // Search for the matched value - $search = $match[0]; - - // Remove the parenthesis from the match as the replace - $replace = substr($match[0], 1, -1); - - while (preg_match('#'.Route::REGEX_KEY.'#', $replace, $match)) - { - list($key, $param) = $match; - - if (isset($params[$param]) AND $params[$param] !== Arr::get($this->_defaults, $param)) - { - // Future optional params should be required - $provided_optional = TRUE; - - // Replace the key with the parameter value - $replace = str_replace($key, $params[$param], $replace); - } - elseif ($provided_optional) - { - // Look for a default - if (isset($this->_defaults[$param])) - { - $replace = str_replace($key, $this->_defaults[$param], $replace); - } - else - { - // Ungrouped parameters are required - throw new Kohana_Exception('Required route parameter not passed: :param', array( - ':param' => $param, - )); - } - } - else - { - // This group has missing parameters - $replace = ''; - break; - } - } - - // Replace the group in the URI - $uri = str_replace($search, $replace, $uri); - } - - while (preg_match('#'.Route::REGEX_KEY.'#', $uri, $match)) - { - list($key, $param) = $match; - - if ( ! isset($params[$param])) - { - // Look for a default - if (isset($this->_defaults[$param])) - { - $params[$param] = $this->_defaults[$param]; - } - else - { - // Ungrouped parameters are required - throw new Kohana_Exception('Required route parameter not passed: :param', array( - ':param' => $param, - )); - } - } - - $uri = str_replace($key, $params[$param], $uri); - } - - // Trim all extra slashes from the URI - $uri = preg_replace('#//+#', '/', rtrim($uri, '/')); - - if ($this->is_external()) - { - // Need to add the host to the URI - $host = $this->_defaults['host']; - - if (strpos($host, '://') === FALSE) - { - // Use the default defined protocol - $host = Route::$default_protocol.$host; - } - - // Clean up the host and prepend it to the URI - $uri = rtrim($host, '/').'/'.$uri; - } - - return $uri; - } - -} // End Route diff --git a/includes/kohana/system/classes/Kohana/Security.php b/includes/kohana/system/classes/Kohana/Security.php deleted file mode 100644 index 826347f6..00000000 --- a/includes/kohana/system/classes/Kohana/Security.php +++ /dev/null @@ -1,103 +0,0 @@ -rules('csrf', array( - * 'not_empty' => NULL, - * 'Security::check' => NULL, - * )); - * - * This provides a basic, but effective, method of preventing CSRF attacks. - * - * @param boolean $new force a new token to be generated? - * @return string - * @uses Session::instance - */ - public static function token($new = FALSE) - { - $session = Session::instance(); - - // Get the current token - $token = $session->get(Security::$token_name); - - if ($new === TRUE OR ! $token) - { - // Generate a new unique token - $token = sha1(uniqid(NULL, TRUE)); - - // Store the new token - $session->set(Security::$token_name, $token); - } - - return $token; - } - - /** - * Check that the given token matches the currently stored security token. - * - * if (Security::check($token)) - * { - * // Pass - * } - * - * @param string $token token to check - * @return boolean - * @uses Security::token - */ - public static function check($token) - { - return Security::token() === $token; - } - - /** - * Remove image tags from a string. - * - * $str = Security::strip_image_tags($str); - * - * @param string $str string to sanitize - * @return string - */ - public static function strip_image_tags($str) - { - return preg_replace('#\s]*)["\']?[^>]*)?>#is', '$1', $str); - } - - /** - * Encodes PHP tags in a string. - * - * $str = Security::encode_php_tags($str); - * - * @param string $str string to sanitize - * @return string - */ - public static function encode_php_tags($str) - { - return str_replace(array(''), array('<?', '?>'), $str); - } - -} // End security diff --git a/includes/kohana/system/classes/Kohana/Session.php b/includes/kohana/system/classes/Kohana/Session.php deleted file mode 100644 index aafe6071..00000000 --- a/includes/kohana/system/classes/Kohana/Session.php +++ /dev/null @@ -1,505 +0,0 @@ -load('session')->get($type); - - // Set the session class name - $class = 'Session_'.ucfirst($type); - - // Create a new session instance - Session::$instances[$type] = $session = new $class($config, $id); - - // Write the session at shutdown - register_shutdown_function(array($session, 'write')); - } - - return Session::$instances[$type]; - } - - /** - * @var string cookie name - */ - protected $_name = 'session'; - - /** - * @var int cookie lifetime - */ - protected $_lifetime = 0; - - /** - * @var bool encrypt session data? - */ - protected $_encrypted = FALSE; - - /** - * @var array session data - */ - protected $_data = array(); - - /** - * @var bool session destroyed? - */ - protected $_destroyed = FALSE; - - /** - * Overloads the name, lifetime, and encrypted session settings. - * - * [!!] Sessions can only be created using the [Session::instance] method. - * - * @param array $config configuration - * @param string $id session id - * @return void - * @uses Session::read - */ - public function __construct(array $config = NULL, $id = NULL) - { - if (isset($config['name'])) - { - // Cookie name to store the session id in - $this->_name = (string) $config['name']; - } - - if (isset($config['lifetime'])) - { - // Cookie lifetime - $this->_lifetime = (int) $config['lifetime']; - } - - if (isset($config['encrypted'])) - { - if ($config['encrypted'] === TRUE) - { - // Use the default Encrypt instance - $config['encrypted'] = 'default'; - } - - // Enable or disable encryption of data - $this->_encrypted = $config['encrypted']; - } - - // Load the session - $this->read($id); - } - - /** - * Session object is rendered to a serialized string. If encryption is - * enabled, the session will be encrypted. If not, the output string will - * be encoded. - * - * echo $session; - * - * @return string - * @uses Encrypt::encode - */ - public function __toString() - { - // Serialize the data array - $data = $this->_serialize($this->_data); - - if ($this->_encrypted) - { - // Encrypt the data using the default key - $data = Encrypt::instance($this->_encrypted)->encode($data); - } - else - { - // Encode the data - $data = $this->_encode($data); - } - - return $data; - } - - /** - * Returns the current session array. The returned array can also be - * assigned by reference. - * - * // Get a copy of the current session data - * $data = $session->as_array(); - * - * // Assign by reference for modification - * $data =& $session->as_array(); - * - * @return array - */ - public function & as_array() - { - return $this->_data; - } - - /** - * Get the current session id, if the session supports it. - * - * $id = $session->id(); - * - * [!!] Not all session types have ids. - * - * @return string - * @since 3.0.8 - */ - public function id() - { - return NULL; - } - - /** - * Get the current session cookie name. - * - * $name = $session->name(); - * - * @return string - * @since 3.0.8 - */ - public function name() - { - return $this->_name; - } - - /** - * Get a variable from the session array. - * - * $foo = $session->get('foo'); - * - * @param string $key variable name - * @param mixed $default default value to return - * @return mixed - */ - public function get($key, $default = NULL) - { - return array_key_exists($key, $this->_data) ? $this->_data[$key] : $default; - } - - /** - * Get and delete a variable from the session array. - * - * $bar = $session->get_once('bar'); - * - * @param string $key variable name - * @param mixed $default default value to return - * @return mixed - */ - public function get_once($key, $default = NULL) - { - $value = $this->get($key, $default); - - unset($this->_data[$key]); - - return $value; - } - - /** - * Set a variable in the session array. - * - * $session->set('foo', 'bar'); - * - * @param string $key variable name - * @param mixed $value value - * @return $this - */ - public function set($key, $value) - { - $this->_data[$key] = $value; - - return $this; - } - - /** - * Set a variable by reference. - * - * $session->bind('foo', $foo); - * - * @param string $key variable name - * @param mixed $value referenced value - * @return $this - */ - public function bind($key, & $value) - { - $this->_data[$key] =& $value; - - return $this; - } - - /** - * Removes a variable in the session array. - * - * $session->delete('foo'); - * - * @param string $key,... variable name - * @return $this - */ - public function delete($key) - { - $args = func_get_args(); - - foreach ($args as $key) - { - unset($this->_data[$key]); - } - - return $this; - } - - /** - * Loads existing session data. - * - * $session->read(); - * - * @param string $id session id - * @return void - */ - public function read($id = NULL) - { - $data = NULL; - - try - { - if (is_string($data = $this->_read($id))) - { - if ($this->_encrypted) - { - // Decrypt the data using the default key - $data = Encrypt::instance($this->_encrypted)->decode($data); - } - else - { - // Decode the data - $data = $this->_decode($data); - } - - // Unserialize the data - $data = $this->_unserialize($data); - } - else - { - // Ignore these, session is valid, likely no data though. - } - } - catch (Exception $e) - { - // Error reading the session, usually a corrupt session. - throw new Session_Exception('Error reading session data.', NULL, Session_Exception::SESSION_CORRUPT); - } - - if (is_array($data)) - { - // Load the data locally - $this->_data = $data; - } - } - - /** - * Generates a new session id and returns it. - * - * $id = $session->regenerate(); - * - * @return string - */ - public function regenerate() - { - return $this->_regenerate(); - } - - /** - * Sets the last_active timestamp and saves the session. - * - * $session->write(); - * - * [!!] Any errors that occur during session writing will be logged, - * but not displayed, because sessions are written after output has - * been sent. - * - * @return boolean - * @uses Kohana::$log - */ - public function write() - { - if (headers_sent() OR $this->_destroyed) - { - // Session cannot be written when the headers are sent or when - // the session has been destroyed - return FALSE; - } - - // Set the last active timestamp - $this->_data['last_active'] = time(); - - try - { - return $this->_write(); - } - catch (Exception $e) - { - // Log & ignore all errors when a write fails - Kohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write(); - - return FALSE; - } - } - - /** - * Completely destroy the current session. - * - * $success = $session->destroy(); - * - * @return boolean - */ - public function destroy() - { - if ($this->_destroyed === FALSE) - { - if ($this->_destroyed = $this->_destroy()) - { - // The session has been destroyed, clear all data - $this->_data = array(); - } - } - - return $this->_destroyed; - } - - /** - * Restart the session. - * - * $success = $session->restart(); - * - * @return boolean - */ - public function restart() - { - if ($this->_destroyed === FALSE) - { - // Wipe out the current session. - $this->destroy(); - } - - // Allow the new session to be saved - $this->_destroyed = FALSE; - - return $this->_restart(); - } - - /** - * Serializes the session data. - * - * @param array $data data - * @return string - */ - protected function _serialize($data) - { - return serialize($data); - } - - /** - * Unserializes the session data. - * - * @param string $data data - * @return array - */ - protected function _unserialize($data) - { - return unserialize($data); - } - - /** - * Encodes the session data using [base64_encode]. - * - * @param string $data data - * @return string - */ - protected function _encode($data) - { - return base64_encode($data); - } - - /** - * Decodes the session data using [base64_decode]. - * - * @param string $data data - * @return string - */ - protected function _decode($data) - { - return base64_decode($data); - } - - /** - * Loads the raw session data string and returns it. - * - * @param string $id session id - * @return string - */ - abstract protected function _read($id = NULL); - - /** - * Generate a new session id and return it. - * - * @return string - */ - abstract protected function _regenerate(); - - /** - * Writes the current session. - * - * @return boolean - */ - abstract protected function _write(); - - /** - * Destroys the current session. - * - * @return boolean - */ - abstract protected function _destroy(); - - /** - * Restarts the current session. - * - * @return boolean - */ - abstract protected function _restart(); - -} // End Session diff --git a/includes/kohana/system/classes/Kohana/Session/Cookie.php b/includes/kohana/system/classes/Kohana/Session/Cookie.php deleted file mode 100644 index 270d3bd2..00000000 --- a/includes/kohana/system/classes/Kohana/Session/Cookie.php +++ /dev/null @@ -1,55 +0,0 @@ -_name, NULL); - } - - /** - * @return null - */ - protected function _regenerate() - { - // Cookie sessions have no id - return NULL; - } - - /** - * @return bool - */ - protected function _write() - { - return Cookie::set($this->_name, $this->__toString(), $this->_lifetime); - } - - /** - * @return bool - */ - protected function _restart() - { - return TRUE; - } - - /** - * @return bool - */ - protected function _destroy() - { - return Cookie::delete($this->_name); - } - -} // End Session_Cookie diff --git a/includes/kohana/system/classes/Kohana/Session/Exception.php b/includes/kohana/system/classes/Kohana/Session/Exception.php deleted file mode 100644 index a6adc4f1..00000000 --- a/includes/kohana/system/classes/Kohana/Session/Exception.php +++ /dev/null @@ -1,11 +0,0 @@ -_lifetime, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httponly); - - // Do not allow PHP to send Cache-Control headers - session_cache_limiter(FALSE); - - // Set the session cookie name - session_name($this->_name); - - if ($id) - { - // Set the session id - session_id($id); - } - - // Start the session - session_start(); - - // Use the $_SESSION global for storing data - $this->_data =& $_SESSION; - - return NULL; - } - - /** - * @return string - */ - protected function _regenerate() - { - // Regenerate the session id - session_regenerate_id(); - - return session_id(); - } - - /** - * @return bool - */ - protected function _write() - { - // Write and close the session - session_write_close(); - - return TRUE; - } - - /** - * @return bool - */ - protected function _restart() - { - // Fire up a new session - $status = session_start(); - - // Use the $_SESSION global for storing data - $this->_data =& $_SESSION; - - return $status; - } - - /** - * @return bool - */ - protected function _destroy() - { - // Destroy the current session - session_destroy(); - - // Did destruction work? - $status = ! session_id(); - - if ($status) - { - // Make sure the session cannot be restarted - Cookie::delete($this->_name); - } - - return $status; - } - -} // End Session_Native diff --git a/includes/kohana/system/classes/Kohana/Text.php b/includes/kohana/system/classes/Kohana/Text.php deleted file mode 100644 index 5209586a..00000000 --- a/includes/kohana/system/classes/Kohana/Text.php +++ /dev/null @@ -1,686 +0,0 @@ - 'billion', - 1000000 => 'million', - 1000 => 'thousand', - 100 => 'hundred', - 90 => 'ninety', - 80 => 'eighty', - 70 => 'seventy', - 60 => 'sixty', - 50 => 'fifty', - 40 => 'fourty', - 30 => 'thirty', - 20 => 'twenty', - 19 => 'nineteen', - 18 => 'eighteen', - 17 => 'seventeen', - 16 => 'sixteen', - 15 => 'fifteen', - 14 => 'fourteen', - 13 => 'thirteen', - 12 => 'twelve', - 11 => 'eleven', - 10 => 'ten', - 9 => 'nine', - 8 => 'eight', - 7 => 'seven', - 6 => 'six', - 5 => 'five', - 4 => 'four', - 3 => 'three', - 2 => 'two', - 1 => 'one', - ); - - /** - * Limits a phrase to a given number of words. - * - * $text = Text::limit_words($text); - * - * @param string $str phrase to limit words of - * @param integer $limit number of words to limit to - * @param string $end_char end character or entity - * @return string - */ - public static function limit_words($str, $limit = 100, $end_char = NULL) - { - $limit = (int) $limit; - $end_char = ($end_char === NULL) ? '…' : $end_char; - - if (trim($str) === '') - return $str; - - if ($limit <= 0) - return $end_char; - - preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches); - - // Only attach the end character if the matched string is shorter - // than the starting string. - return rtrim($matches[0]).((strlen($matches[0]) === strlen($str)) ? '' : $end_char); - } - - /** - * Limits a phrase to a given number of characters. - * - * $text = Text::limit_chars($text); - * - * @param string $str phrase to limit characters of - * @param integer $limit number of characters to limit to - * @param string $end_char end character or entity - * @param boolean $preserve_words enable or disable the preservation of words while limiting - * @return string - * @uses UTF8::strlen - */ - public static function limit_chars($str, $limit = 100, $end_char = NULL, $preserve_words = FALSE) - { - $end_char = ($end_char === NULL) ? '…' : $end_char; - - $limit = (int) $limit; - - if (trim($str) === '' OR UTF8::strlen($str) <= $limit) - return $str; - - if ($limit <= 0) - return $end_char; - - if ($preserve_words === FALSE) - return rtrim(UTF8::substr($str, 0, $limit)).$end_char; - - // Don't preserve words. The limit is considered the top limit. - // No strings with a length longer than $limit should be returned. - if ( ! preg_match('/^.{0,'.$limit.'}\s/us', $str, $matches)) - return $end_char; - - return rtrim($matches[0]).((strlen($matches[0]) === strlen($str)) ? '' : $end_char); - } - - /** - * Alternates between two or more strings. - * - * echo Text::alternate('one', 'two'); // "one" - * echo Text::alternate('one', 'two'); // "two" - * echo Text::alternate('one', 'two'); // "one" - * - * Note that using multiple iterations of different strings may produce - * unexpected results. - * - * @param string $str,... strings to alternate between - * @return string - */ - public static function alternate() - { - static $i; - - if (func_num_args() === 0) - { - $i = 0; - return ''; - } - - $args = func_get_args(); - return $args[($i++ % count($args))]; - } - - /** - * Generates a random string of a given type and length. - * - * - * $str = Text::random(); // 8 character random string - * - * The following types are supported: - * - * alnum - * : Upper and lower case a-z, 0-9 (default) - * - * alpha - * : Upper and lower case a-z - * - * hexdec - * : Hexadecimal characters a-f, 0-9 - * - * distinct - * : Uppercase characters and numbers that cannot be confused - * - * You can also create a custom type by providing the "pool" of characters - * as the type. - * - * @param string $type a type of pool, or a string of characters to use as the pool - * @param integer $length length of string to return - * @return string - * @uses UTF8::split - */ - public static function random($type = NULL, $length = 8) - { - if ($type === NULL) - { - // Default is to generate an alphanumeric string - $type = 'alnum'; - } - - $utf8 = FALSE; - - switch ($type) - { - case 'alnum': - $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - break; - case 'alpha': - $pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - break; - case 'hexdec': - $pool = '0123456789abcdef'; - break; - case 'numeric': - $pool = '0123456789'; - break; - case 'nozero': - $pool = '123456789'; - break; - case 'distinct': - $pool = '2345679ACDEFHJKLMNPRSTUVWXYZ'; - break; - default: - $pool = (string) $type; - $utf8 = ! UTF8::is_ascii($pool); - break; - } - - // Split the pool into an array of characters - $pool = ($utf8 === TRUE) ? UTF8::str_split($pool, 1) : str_split($pool, 1); - - // Largest pool key - $max = count($pool) - 1; - - $str = ''; - for ($i = 0; $i < $length; $i++) - { - // Select a random character from the pool and add it to the string - $str .= $pool[mt_rand(0, $max)]; - } - - // Make sure alnum strings contain at least one letter and one digit - if ($type === 'alnum' AND $length > 1) - { - if (ctype_alpha($str)) - { - // Add a random digit - $str[mt_rand(0, $length - 1)] = chr(mt_rand(48, 57)); - } - elseif (ctype_digit($str)) - { - // Add a random letter - $str[mt_rand(0, $length - 1)] = chr(mt_rand(65, 90)); - } - } - - return $str; - } - - /** - * Uppercase words that are not separated by spaces, using a custom - * delimiter or the default. - * - * $str = Text::ucfirst('content-type'); // returns "Content-Type" - * - * @param string $string string to transform - * @param string $delimiter delemiter to use - * @return string - */ - public static function ucfirst($string, $delimiter = '-') - { - // Put the keys back the Case-Convention expected - return implode($delimiter, array_map('ucfirst', explode($delimiter, $string))); - } - - /** - * Reduces multiple slashes in a string to single slashes. - * - * $str = Text::reduce_slashes('foo//bar/baz'); // "foo/bar/baz" - * - * @param string $str string to reduce slashes of - * @return string - */ - public static function reduce_slashes($str) - { - return preg_replace('#(? '#####', - * )); - * - * @param string $str phrase to replace words in - * @param array $badwords words to replace - * @param string $replacement replacement string - * @param boolean $replace_partial_words replace words across word boundries (space, period, etc) - * @return string - * @uses UTF8::strlen - */ - public static function censor($str, $badwords, $replacement = '#', $replace_partial_words = TRUE) - { - foreach ( (array) $badwords as $key => $badword) - { - $badwords[$key] = str_replace('\*', '\S*?', preg_quote( (string) $badword)); - } - - $regex = '('.implode('|', $badwords).')'; - - if ($replace_partial_words === FALSE) - { - // Just using \b isn't sufficient when we need to replace a badword that already contains word boundaries itself - $regex = '(?<=\b|\s|^)'.$regex.'(?=\b|\s|$)'; - } - - $regex = '!'.$regex.'!ui'; - - if (UTF8::strlen($replacement) == 1) - { - $regex .= 'e'; - return preg_replace($regex, 'str_repeat($replacement, UTF8::strlen(\'$1\'))', $str); - } - - return preg_replace($regex, $replacement, $str); - } - - /** - * Finds the text that is similar between a set of words. - * - * $match = Text::similar(array('fred', 'fran', 'free'); // "fr" - * - * @param array $words words to find similar text of - * @return string - */ - public static function similar(array $words) - { - // First word is the word to match against - $word = current($words); - - for ($i = 0, $max = strlen($word); $i < $max; ++$i) - { - foreach ($words as $w) - { - // Once a difference is found, break out of the loops - if ( ! isset($w[$i]) OR $w[$i] !== $word[$i]) - break 2; - } - } - - // Return the similar text - return substr($word, 0, $i); - } - - /** - * Converts text email addresses and anchors into links. Existing links - * will not be altered. - * - * echo Text::auto_link($text); - * - * [!!] This method is not foolproof since it uses regex to parse HTML. - * - * @param string $text text to auto link - * @return string - * @uses Text::auto_link_urls - * @uses Text::auto_link_emails - */ - public static function auto_link($text) - { - // Auto link emails first to prevent problems with "www.domain.com@example.com" - return Text::auto_link_urls(Text::auto_link_emails($text)); - } - - /** - * Converts text anchors into links. Existing links will not be altered. - * - * echo Text::auto_link_urls($text); - * - * [!!] This method is not foolproof since it uses regex to parse HTML. - * - * @param string $text text to auto link - * @return string - * @uses HTML::anchor - */ - public static function auto_link_urls($text) - { - // Find and replace all http/https/ftp/ftps links that are not part of an existing html anchor - $text = preg_replace_callback('~\b(?)(?:ht|f)tps?://[^<\s]+(?:/|\b)~i', 'Text::_auto_link_urls_callback1', $text); - - // Find and replace all naked www.links.com (without http://) - return preg_replace_callback('~\b(?)www(?:\.[a-z0-9][-a-z0-9]*+)+\.[a-z]{2,6}[^<\s]*\b~i', 'Text::_auto_link_urls_callback2', $text); - } - - protected static function _auto_link_urls_callback1($matches) - { - return HTML::anchor($matches[0]); - } - - protected static function _auto_link_urls_callback2($matches) - { - return HTML::anchor('http://'.$matches[0], $matches[0]); - } - - /** - * Converts text email addresses into links. Existing links will not - * be altered. - * - * echo Text::auto_link_emails($text); - * - * [!!] This method is not foolproof since it uses regex to parse HTML. - * - * @param string $text text to auto link - * @return string - * @uses HTML::mailto - */ - public static function auto_link_emails($text) - { - // Find and replace all email addresses that are not part of an existing html mailto anchor - // Note: The "58;" negative lookbehind prevents matching of existing encoded html mailto anchors - // The html entity for a colon (:) is : or : or : etc. - return preg_replace_callback('~\b(?)~i', 'Text::_auto_link_emails_callback', $text); - } - - protected static function _auto_link_emails_callback($matches) - { - return HTML::mailto($matches[0]); - } - - /** - * Automatically applies "p" and "br" markup to text. - * Basically [nl2br](http://php.net/nl2br) on steroids. - * - * echo Text::auto_p($text); - * - * [!!] This method is not foolproof since it uses regex to parse HTML. - * - * @param string $str subject - * @param boolean $br convert single linebreaks to
- * @return string - */ - public static function auto_p($str, $br = TRUE) - { - // Trim whitespace - if (($str = trim($str)) === '') - return ''; - - // Standardize newlines - $str = str_replace(array("\r\n", "\r"), "\n", $str); - - // Trim whitespace on each line - $str = preg_replace('~^[ \t]+~m', '', $str); - $str = preg_replace('~[ \t]+$~m', '', $str); - - // The following regexes only need to be executed if the string contains html - if ($html_found = (strpos($str, '<') !== FALSE)) - { - // Elements that should not be surrounded by p tags - $no_p = '(?:p|div|h[1-6r]|ul|ol|li|blockquote|d[dlt]|pre|t[dhr]|t(?:able|body|foot|head)|c(?:aption|olgroup)|form|s(?:elect|tyle)|a(?:ddress|rea)|ma(?:p|th))'; - - // Put at least two linebreaks before and after $no_p elements - $str = preg_replace('~^<'.$no_p.'[^>]*+>~im', "\n$0", $str); - $str = preg_replace('~$~im', "$0\n", $str); - } - - // Do the

magic! - $str = '

'.trim($str).'

'; - $str = preg_replace('~\n{2,}~', "

\n\n

", $str); - - // The following regexes only need to be executed if the string contains html - if ($html_found !== FALSE) - { - // Remove p tags around $no_p elements - $str = preg_replace('~

(?=]*+>)~i', '', $str); - $str = preg_replace('~(]*+>)

~i', '$1', $str); - } - - // Convert single linebreaks to
- if ($br === TRUE) - { - $str = preg_replace('~(?\n", $str); - } - - return $str; - } - - /** - * Returns human readable sizes. Based on original functions written by - * [Aidan Lister](http://aidanlister.com/repos/v/function.size_readable.php) - * and [Quentin Zervaas](http://www.phpriot.com/d/code/strings/filesize-format/). - * - * echo Text::bytes(filesize($file)); - * - * @param integer $bytes size in bytes - * @param string $force_unit a definitive unit - * @param string $format the return string format - * @param boolean $si whether to use SI prefixes or IEC - * @return string - */ - public static function bytes($bytes, $force_unit = NULL, $format = NULL, $si = TRUE) - { - // Format string - $format = ($format === NULL) ? '%01.2f %s' : (string) $format; - - // IEC prefixes (binary) - if ($si == FALSE OR strpos($force_unit, 'i') !== FALSE) - { - $units = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB'); - $mod = 1024; - } - // SI prefixes (decimal) - else - { - $units = array('B', 'kB', 'MB', 'GB', 'TB', 'PB'); - $mod = 1000; - } - - // Determine unit to use - if (($power = array_search( (string) $force_unit, $units)) === FALSE) - { - $power = ($bytes > 0) ? floor(log($bytes, $mod)) : 0; - } - - return sprintf($format, $bytes / pow($mod, $power), $units[$power]); - } - - /** - * Format a number to human-readable text. - * - * // Display: one thousand and twenty-four - * echo Text::number(1024); - * - * // Display: five million, six hundred and thirty-two - * echo Text::number(5000632); - * - * @param integer $number number to format - * @return string - * @since 3.0.8 - */ - public static function number($number) - { - // The number must always be an integer - $number = (int) $number; - - // Uncompiled text version - $text = array(); - - // Last matched unit within the loop - $last_unit = NULL; - - // The last matched item within the loop - $last_item = ''; - - foreach (Text::$units as $unit => $name) - { - if ($number / $unit >= 1) - { - // $value = the number of times the number is divisble by unit - $number -= $unit * ($value = (int) floor($number / $unit)); - // Temporary var for textifying the current unit - $item = ''; - - if ($unit < 100) - { - if ($last_unit < 100 AND $last_unit >= 20) - { - $last_item .= '-'.$name; - } - else - { - $item = $name; - } - } - else - { - $item = Text::number($value).' '.$name; - } - - // In the situation that we need to make a composite number (i.e. twenty-three) - // then we need to modify the previous entry - if (empty($item)) - { - array_pop($text); - - $item = $last_item; - } - - $last_item = $text[] = $item; - $last_unit = $unit; - } - } - - if (count($text) > 1) - { - $and = array_pop($text); - } - - $text = implode(', ', $text); - - if (isset($and)) - { - $text .= ' and '.$and; - } - - return $text; - } - - /** - * Prevents [widow words](http://www.shauninman.com/archive/2006/08/22/widont_wordpress_plugin) - * by inserting a non-breaking space between the last two words. - * - * echo Text::widont($text); - * - * @param string $str text to remove widows from - * @return string - */ - public static function widont($str) - { - $str = rtrim($str); - $space = strrpos($str, ' '); - - if ($space !== FALSE) - { - $str = substr($str, 0, $space).' '.substr($str, $space + 1); - } - - return $str; - } - - /** - * Returns information about the client user agent. - * - * // Returns "Chrome" when using Google Chrome - * $browser = Text::user_agent('browser'); - * - * Multiple values can be returned at once by using an array: - * - * // Get the browser and platform with a single call - * $info = Text::user_agent(array('browser', 'platform')); - * - * When using an array for the value, an associative array will be returned. - * - * @param mixed $value array or string to return: browser, version, robot, mobile, platform - * @return mixed requested information, FALSE if nothing is found - * @uses Kohana::$config - */ - public static function user_agent($agent, $value) - { - if (is_array($value)) - { - $data = array(); - foreach ($value as $part) - { - // Add each part to the set - $data[$part] = Text::user_agent($agent, $part); - } - - return $data; - } - - if ($value === 'browser' OR $value == 'version') - { - // Extra data will be captured - $info = array(); - - // Load browsers - $browsers = Kohana::$config->load('user_agents')->browser; - - foreach ($browsers as $search => $name) - { - if (stripos($agent, $search) !== FALSE) - { - // Set the browser name - $info['browser'] = $name; - - if (preg_match('#'.preg_quote($search).'[^0-9.]*+([0-9.][0-9.a-z]*)#i', Request::$user_agent, $matches)) - { - // Set the version number - $info['version'] = $matches[1]; - } - else - { - // No version number found - $info['version'] = FALSE; - } - - return $info[$value]; - } - } - } - else - { - // Load the search group for this type - $group = Kohana::$config->load('user_agents')->$value; - - foreach ($group as $search => $name) - { - if (stripos($agent, $search) !== FALSE) - { - // Set the value name - return $name; - } - } - } - - // The value requested could not be found - return FALSE; - } - -} // End text diff --git a/includes/kohana/system/classes/Kohana/URL.php b/includes/kohana/system/classes/Kohana/URL.php deleted file mode 100644 index 390a6a07..00000000 --- a/includes/kohana/system/classes/Kohana/URL.php +++ /dev/null @@ -1,213 +0,0 @@ -secure()) - { - // Use the current protocol - list($protocol) = explode('/', strtolower($protocol->protocol())); - } - else - { - $protocol = 'https'; - } - } - - if ( ! $protocol) - { - // Use the configured default protocol - $protocol = parse_url($base_url, PHP_URL_SCHEME); - } - - if ($index === TRUE AND ! empty(Kohana::$index_file)) - { - // Add the index file to the URL - $base_url .= Kohana::$index_file.'/'; - } - - if (is_string($protocol)) - { - if ($port = parse_url($base_url, PHP_URL_PORT)) - { - // Found a port, make it usable for the URL - $port = ':'.$port; - } - - if ($domain = parse_url($base_url, PHP_URL_HOST)) - { - // Remove everything but the path from the URL - $base_url = parse_url($base_url, PHP_URL_PATH); - } - else - { - // Attempt to use HTTP_HOST and fallback to SERVER_NAME - $domain = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']; - } - - // Add the protocol and domain to the base URL - $base_url = $protocol.'://'.$domain.$port.$base_url; - } - - return $base_url; - } - - /** - * Fetches an absolute site URL based on a URI segment. - * - * echo URL::site('foo/bar'); - * - * @param string $uri Site URI to convert - * @param mixed $protocol Protocol string or [Request] class to use protocol from - * @param boolean $index Include the index_page in the URL - * @return string - * @uses URL::base - */ - public static function site($uri = '', $protocol = NULL, $index = TRUE) - { - // Chop off possible scheme, host, port, user and pass parts - $path = preg_replace('~^[-a-z0-9+.]++://[^/]++/?~', '', trim($uri, '/')); - - if ( ! UTF8::is_ascii($path)) - { - // Encode all non-ASCII characters, as per RFC 1738 - $path = preg_replace_callback('~([^/]+)~', 'URL::_rawurlencode_callback', $path); - } - - // Concat the URL - return URL::base($protocol, $index).$path; - } - - /** - * Callback used for encoding all non-ASCII characters, as per RFC 1738 - * Used by URL::site() - * - * @param array $matches Array of matches from preg_replace_callback() - * @return string Encoded string - */ - protected static function _rawurlencode_callback($matches) - { - return rawurlencode($matches[0]); - } - - /** - * Merges the current GET parameters with an array of new or overloaded - * parameters and returns the resulting query string. - * - * // Returns "?sort=title&limit=10" combined with any existing GET values - * $query = URL::query(array('sort' => 'title', 'limit' => 10)); - * - * Typically you would use this when you are sorting query results, - * or something similar. - * - * [!!] Parameters with a NULL value are left out. - * - * @param array $params Array of GET parameters - * @param boolean $use_get Include current request GET parameters - * @return string - */ - public static function query(array $params = NULL, $use_get = TRUE) - { - if ($use_get) - { - if ($params === NULL) - { - // Use only the current parameters - $params = $_GET; - } - else - { - // Merge the current and new parameters - $params = Arr::merge($_GET, $params); - } - } - - if (empty($params)) - { - // No query parameters - return ''; - } - - // Note: http_build_query returns an empty string for a params array with only NULL values - $query = http_build_query($params, '', '&'); - - // Don't prepend '?' to an empty string - return ($query === '') ? '' : ('?'.$query); - } - - /** - * Convert a phrase to a URL-safe title. - * - * echo URL::title('My Blog Post'); // "my-blog-post" - * - * @param string $title Phrase to convert - * @param string $separator Word separator (any single character) - * @param boolean $ascii_only Transliterate to ASCII? - * @return string - * @uses UTF8::transliterate_to_ascii - */ - public static function title($title, $separator = '-', $ascii_only = FALSE) - { - if ($ascii_only === TRUE) - { - // Transliterate non-ASCII characters - $title = UTF8::transliterate_to_ascii($title); - - // Remove all characters that are not the separator, a-z, 0-9, or whitespace - $title = preg_replace('![^'.preg_quote($separator).'a-z0-9\s]+!', '', strtolower($title)); - } - else - { - // Remove all characters that are not the separator, letters, numbers, or whitespace - $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', UTF8::strtolower($title)); - } - - // Replace all separator characters and whitespace by a single separator - $title = preg_replace('!['.preg_quote($separator).'\s]+!u', $separator, $title); - - // Trim separators from the beginning and end - return trim($title, $separator); - } - -} // End url diff --git a/includes/kohana/system/classes/Kohana/UTF8.php b/includes/kohana/system/classes/Kohana/UTF8.php deleted file mode 100644 index 26e18dea..00000000 --- a/includes/kohana/system/classes/Kohana/UTF8.php +++ /dev/null @@ -1,767 +0,0 @@ - $val) - { - // Recursion! - $var[self::clean($key)] = self::clean($val); - } - } - elseif (is_string($var) AND $var !== '') - { - // Remove control characters - $var = self::strip_ascii_ctrl($var); - - if ( ! self::is_ascii($var)) - { - // Disable notices - $error_reporting = error_reporting(~E_NOTICE); - - // iconv is expensive, so it is only used when needed - $var = iconv($charset, $charset.'//IGNORE', $var); - - // Turn notices back on - error_reporting($error_reporting); - } - } - - return $var; - } - - /** - * Tests whether a string contains only 7-bit ASCII bytes. This is used to - * determine when to use native functions or UTF-8 functions. - * - * $ascii = UTF8::is_ascii($str); - * - * @param mixed $str string or array of strings to check - * @return boolean - */ - public static function is_ascii($str) - { - if (is_array($str)) - { - $str = implode($str); - } - - return ! preg_match('/[^\x00-\x7F]/S', $str); - } - - /** - * Strips out device control codes in the ASCII range. - * - * $str = UTF8::strip_ascii_ctrl($str); - * - * @param string $str string to clean - * @return string - */ - public static function strip_ascii_ctrl($str) - { - return preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S', '', $str); - } - - /** - * Strips out all non-7bit ASCII bytes. - * - * $str = UTF8::strip_non_ascii($str); - * - * @param string $str string to clean - * @return string - */ - public static function strip_non_ascii($str) - { - return preg_replace('/[^\x00-\x7F]+/S', '', $str); - } - - /** - * Replaces special/accented UTF-8 characters by ASCII-7 "equivalents". - * - * $ascii = UTF8::transliterate_to_ascii($utf8); - * - * @author Andreas Gohr - * @param string $str string to transliterate - * @param integer $case -1 lowercase only, +1 uppercase only, 0 both cases - * @return string - */ - public static function transliterate_to_ascii($str, $case = 0) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _transliterate_to_ascii($str, $case); - } - - /** - * Returns the length of the given string. This is a UTF8-aware version - * of [strlen](http://php.net/strlen). - * - * $length = UTF8::strlen($str); - * - * @param string $str string being measured for length - * @return integer - * @uses UTF8::$server_utf8 - */ - public static function strlen($str) - { - if (UTF8::$server_utf8) - return mb_strlen($str, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strlen($str); - } - - /** - * Finds position of first occurrence of a UTF-8 string. This is a - * UTF8-aware version of [strpos](http://php.net/strpos). - * - * $position = UTF8::strpos($str, $search); - * - * @author Harry Fuecks - * @param string $str haystack - * @param string $search needle - * @param integer $offset offset from which character in haystack to start searching - * @return integer position of needle - * @return boolean FALSE if the needle is not found - * @uses UTF8::$server_utf8 - */ - public static function strpos($str, $search, $offset = 0) - { - if (UTF8::$server_utf8) - return mb_strpos($str, $search, $offset, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strpos($str, $search, $offset); - } - - /** - * Finds position of last occurrence of a char in a UTF-8 string. This is - * a UTF8-aware version of [strrpos](http://php.net/strrpos). - * - * $position = UTF8::strrpos($str, $search); - * - * @author Harry Fuecks - * @param string $str haystack - * @param string $search needle - * @param integer $offset offset from which character in haystack to start searching - * @return integer position of needle - * @return boolean FALSE if the needle is not found - * @uses UTF8::$server_utf8 - */ - public static function strrpos($str, $search, $offset = 0) - { - if (UTF8::$server_utf8) - return mb_strrpos($str, $search, $offset, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strrpos($str, $search, $offset); - } - - /** - * Returns part of a UTF-8 string. This is a UTF8-aware version - * of [substr](http://php.net/substr). - * - * $sub = UTF8::substr($str, $offset); - * - * @author Chris Smith - * @param string $str input string - * @param integer $offset offset - * @param integer $length length limit - * @return string - * @uses UTF8::$server_utf8 - * @uses Kohana::$charset - */ - public static function substr($str, $offset, $length = NULL) - { - if (UTF8::$server_utf8) - return ($length === NULL) - ? mb_substr($str, $offset, mb_strlen($str), Kohana::$charset) - : mb_substr($str, $offset, $length, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _substr($str, $offset, $length); - } - - /** - * Replaces text within a portion of a UTF-8 string. This is a UTF8-aware - * version of [substr_replace](http://php.net/substr_replace). - * - * $str = UTF8::substr_replace($str, $replacement, $offset); - * - * @author Harry Fuecks - * @param string $str input string - * @param string $replacement replacement string - * @param integer $offset offset - * @return string - */ - public static function substr_replace($str, $replacement, $offset, $length = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _substr_replace($str, $replacement, $offset, $length); - } - - /** - * Makes a UTF-8 string lowercase. This is a UTF8-aware version - * of [strtolower](http://php.net/strtolower). - * - * $str = UTF8::strtolower($str); - * - * @author Andreas Gohr - * @param string $str mixed case string - * @return string - * @uses UTF8::$server_utf8 - */ - public static function strtolower($str) - { - if (UTF8::$server_utf8) - return mb_strtolower($str, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strtolower($str); - } - - /** - * Makes a UTF-8 string uppercase. This is a UTF8-aware version - * of [strtoupper](http://php.net/strtoupper). - * - * @author Andreas Gohr - * @param string $str mixed case string - * @return string - * @uses UTF8::$server_utf8 - * @uses Kohana::$charset - */ - public static function strtoupper($str) - { - if (UTF8::$server_utf8) - return mb_strtoupper($str, Kohana::$charset); - - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strtoupper($str); - } - - /** - * Makes a UTF-8 string's first character uppercase. This is a UTF8-aware - * version of [ucfirst](http://php.net/ucfirst). - * - * $str = UTF8::ucfirst($str); - * - * @author Harry Fuecks - * @param string $str mixed case string - * @return string - */ - public static function ucfirst($str) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _ucfirst($str); - } - - /** - * Makes the first character of every word in a UTF-8 string uppercase. - * This is a UTF8-aware version of [ucwords](http://php.net/ucwords). - * - * $str = UTF8::ucwords($str); - * - * @author Harry Fuecks - * @param string $str mixed case string - * @return string - * @uses UTF8::$server_utf8 - */ - public static function ucwords($str) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _ucwords($str); - } - - /** - * Case-insensitive UTF-8 string comparison. This is a UTF8-aware version - * of [strcasecmp](http://php.net/strcasecmp). - * - * $compare = UTF8::strcasecmp($str1, $str2); - * - * @author Harry Fuecks - * @param string $str1 string to compare - * @param string $str2 string to compare - * @return integer less than 0 if str1 is less than str2 - * @return integer greater than 0 if str1 is greater than str2 - * @return integer 0 if they are equal - */ - public static function strcasecmp($str1, $str2) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strcasecmp($str1, $str2); - } - - /** - * Returns a string or an array with all occurrences of search in subject - * (ignoring case) and replaced with the given replace value. This is a - * UTF8-aware version of [str_ireplace](http://php.net/str_ireplace). - * - * [!!] This function is very slow compared to the native version. Avoid - * using it when possible. - * - * @author Harry Fuecks - * @param string $str input string - * @param string $search needle - * @return string matched substring if found - * @return FALSE if the substring was not found - */ - public static function stristr($str, $search) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _stristr($str, $search); - } - - /** - * Finds the length of the initial segment matching mask. This is a - * UTF8-aware version of [strspn](http://php.net/strspn). - * - * $found = UTF8::strspn($str, $mask); - * - * @author Harry Fuecks - * @param string $str input string - * @param string $mask mask for search - * @param integer $offset start position of the string to examine - * @param integer $length length of the string to examine - * @return integer length of the initial segment that contains characters in the mask - */ - public static function strspn($str, $mask, $offset = NULL, $length = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strspn($str, $mask, $offset, $length); - } - - /** - * Finds the length of the initial segment not matching mask. This is a - * UTF8-aware version of [strcspn](http://php.net/strcspn). - * - * $found = UTF8::strcspn($str, $mask); - * - * @author Harry Fuecks - * @param string $str input string - * @param string $mask mask for search - * @param integer $offset start position of the string to examine - * @param integer $length length of the string to examine - * @return integer length of the initial segment that contains characters not in the mask - */ - public static function strcspn($str, $mask, $offset = NULL, $length = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strcspn($str, $mask, $offset, $length); - } - - /** - * Pads a UTF-8 string to a certain length with another string. This is a - * UTF8-aware version of [str_pad](http://php.net/str_pad). - * - * $str = UTF8::str_pad($str, $length); - * - * @author Harry Fuecks - * @param string $str input string - * @param integer $final_str_length desired string length after padding - * @param string $pad_str string to use as padding - * @param string $pad_type padding type: STR_PAD_RIGHT, STR_PAD_LEFT, or STR_PAD_BOTH - * @return string - */ - public static function str_pad($str, $final_str_length, $pad_str = ' ', $pad_type = STR_PAD_RIGHT) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _str_pad($str, $final_str_length, $pad_str, $pad_type); - } - - /** - * Converts a UTF-8 string to an array. This is a UTF8-aware version of - * [str_split](http://php.net/str_split). - * - * $array = UTF8::str_split($str); - * - * @author Harry Fuecks - * @param string $str input string - * @param integer $split_length maximum length of each chunk - * @return array - */ - public static function str_split($str, $split_length = 1) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _str_split($str, $split_length); - } - - /** - * Reverses a UTF-8 string. This is a UTF8-aware version of [strrev](http://php.net/strrev). - * - * $str = UTF8::strrev($str); - * - * @author Harry Fuecks - * @param string $str string to be reversed - * @return string - */ - public static function strrev($str) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _strrev($str); - } - - /** - * Strips whitespace (or other UTF-8 characters) from the beginning and - * end of a string. This is a UTF8-aware version of [trim](http://php.net/trim). - * - * $str = UTF8::trim($str); - * - * @author Andreas Gohr - * @param string $str input string - * @param string $charlist string of characters to remove - * @return string - */ - public static function trim($str, $charlist = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _trim($str, $charlist); - } - - /** - * Strips whitespace (or other UTF-8 characters) from the beginning of - * a string. This is a UTF8-aware version of [ltrim](http://php.net/ltrim). - * - * $str = UTF8::ltrim($str); - * - * @author Andreas Gohr - * @param string $str input string - * @param string $charlist string of characters to remove - * @return string - */ - public static function ltrim($str, $charlist = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _ltrim($str, $charlist); - } - - /** - * Strips whitespace (or other UTF-8 characters) from the end of a string. - * This is a UTF8-aware version of [rtrim](http://php.net/rtrim). - * - * $str = UTF8::rtrim($str); - * - * @author Andreas Gohr - * @param string $str input string - * @param string $charlist string of characters to remove - * @return string - */ - public static function rtrim($str, $charlist = NULL) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _rtrim($str, $charlist); - } - - /** - * Returns the unicode ordinal for a character. This is a UTF8-aware - * version of [ord](http://php.net/ord). - * - * $digit = UTF8::ord($character); - * - * @author Harry Fuecks - * @param string $chr UTF-8 encoded character - * @return integer - */ - public static function ord($chr) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _ord($chr); - } - - /** - * Takes an UTF-8 string and returns an array of ints representing the Unicode characters. - * Astral planes are supported i.e. the ints in the output can be > 0xFFFF. - * Occurrences of the BOM are ignored. Surrogates are not allowed. - * - * $array = UTF8::to_unicode($str); - * - * The Original Code is Mozilla Communicator client code. - * The Initial Developer of the Original Code is Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer. - * Ported to PHP by Henri Sivonen , see - * Slight modifications to fit with phputf8 library by Harry Fuecks - * - * @param string $str UTF-8 encoded string - * @return array unicode code points - * @return FALSE if the string is invalid - */ - public static function to_unicode($str) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _to_unicode($str); - } - - /** - * Takes an array of ints representing the Unicode characters and returns a UTF-8 string. - * Astral planes are supported i.e. the ints in the input can be > 0xFFFF. - * Occurrances of the BOM are ignored. Surrogates are not allowed. - * - * $str = UTF8::to_unicode($array); - * - * The Original Code is Mozilla Communicator client code. - * The Initial Developer of the Original Code is Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer. - * Ported to PHP by Henri Sivonen , see http://hsivonen.iki.fi/php-utf8/ - * Slight modifications to fit with phputf8 library by Harry Fuecks . - * - * @param array $str unicode code points representing a string - * @return string utf8 string of characters - * @return boolean FALSE if a code point cannot be found - */ - public static function from_unicode($arr) - { - if ( ! isset(self::$called[__FUNCTION__])) - { - require Kohana::find_file('utf8', __FUNCTION__); - - // Function has been called - self::$called[__FUNCTION__] = TRUE; - } - - return _from_unicode($arr); - } - -} // End UTF8 - -if (Kohana_UTF8::$server_utf8 === NULL) -{ - // Determine if this server supports UTF-8 natively - Kohana_UTF8::$server_utf8 = extension_loaded('mbstring'); -} diff --git a/includes/kohana/system/classes/Kohana/UTF8/Exception.php b/includes/kohana/system/classes/Kohana/UTF8/Exception.php deleted file mode 100644 index 6f640fe9..00000000 --- a/includes/kohana/system/classes/Kohana/UTF8/Exception.php +++ /dev/null @@ -1,9 +0,0 @@ -check()) - * { - * // Upload is valid, save it - * Upload::save($array['file']); - * } - * - * @param array $file uploaded file data - * @param string $filename new filename - * @param string $directory new directory - * @param integer $chmod chmod mask - * @return string on success, full path to new file - * @return FALSE on failure - */ - public static function save(array $file, $filename = NULL, $directory = NULL, $chmod = 0644) - { - if ( ! isset($file['tmp_name']) OR ! is_uploaded_file($file['tmp_name'])) - { - // Ignore corrupted uploads - return FALSE; - } - - if ($filename === NULL) - { - // Use the default filename, with a timestamp pre-pended - $filename = uniqid().$file['name']; - } - - if (Upload::$remove_spaces === TRUE) - { - // Remove spaces from the filename - $filename = preg_replace('/\s+/u', '_', $filename); - } - - if ($directory === NULL) - { - // Use the pre-configured upload directory - $directory = Upload::$default_directory; - } - - if ( ! is_dir($directory) OR ! is_writable(realpath($directory))) - { - throw new Kohana_Exception('Directory :dir must be writable', - array(':dir' => Debug::path($directory))); - } - - // Make the filename into a complete path - $filename = realpath($directory).DIRECTORY_SEPARATOR.$filename; - - if (move_uploaded_file($file['tmp_name'], $filename)) - { - if ($chmod !== FALSE) - { - // Set permissions on filename - chmod($filename, $chmod); - } - - // Return new file path - return $filename; - } - - return FALSE; - } - - /** - * Tests if upload data is valid, even if no file was uploaded. If you - * _do_ require a file to be uploaded, add the [Upload::not_empty] rule - * before this rule. - * - * $array->rule('file', 'Upload::valid') - * - * @param array $file $_FILES item - * @return bool - */ - public static function valid($file) - { - return (isset($file['error']) - AND isset($file['name']) - AND isset($file['type']) - AND isset($file['tmp_name']) - AND isset($file['size'])); - } - - /** - * Tests if a successful upload has been made. - * - * $array->rule('file', 'Upload::not_empty'); - * - * @param array $file $_FILES item - * @return bool - */ - public static function not_empty(array $file) - { - return (isset($file['error']) - AND isset($file['tmp_name']) - AND $file['error'] === UPLOAD_ERR_OK - AND is_uploaded_file($file['tmp_name'])); - } - - /** - * Test if an uploaded file is an allowed file type, by extension. - * - * $array->rule('file', 'Upload::type', array(':value', array('jpg', 'png', 'gif'))); - * - * @param array $file $_FILES item - * @param array $allowed allowed file extensions - * @return bool - */ - public static function type(array $file, array $allowed) - { - if ($file['error'] !== UPLOAD_ERR_OK) - return TRUE; - - $ext = strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)); - - return in_array($ext, $allowed); - } - - /** - * Validation rule to test if an uploaded file is allowed by file size. - * File sizes are defined as: SB, where S is the size (1, 8.5, 300, etc.) - * and B is the byte unit (K, MiB, GB, etc.). All valid byte units are - * defined in Num::$byte_units - * - * $array->rule('file', 'Upload::size', array(':value', '1M')) - * $array->rule('file', 'Upload::size', array(':value', '2.5KiB')) - * - * @param array $file $_FILES item - * @param string $size maximum file size allowed - * @return bool - */ - public static function size(array $file, $size) - { - if ($file['error'] === UPLOAD_ERR_INI_SIZE) - { - // Upload is larger than PHP allowed size (upload_max_filesize) - return FALSE; - } - - if ($file['error'] !== UPLOAD_ERR_OK) - { - // The upload failed, no size to check - return TRUE; - } - - // Convert the provided size to bytes for comparison - $size = Num::bytes($size); - - // Test that the file is under or equal to the max size - return ($file['size'] <= $size); - } - - /** - * Validation rule to test if an upload is an image and, optionally, is the correct size. - * - * // The "image" file must be an image - * $array->rule('image', 'Upload::image') - * - * // The "photo" file has a maximum size of 640x480 pixels - * $array->rule('photo', 'Upload::image', array(':value', 640, 480)); - * - * // The "image" file must be exactly 100x100 pixels - * $array->rule('image', 'Upload::image', array(':value', 100, 100, TRUE)); - * - * - * @param array $file $_FILES item - * @param integer $max_width maximum width of image - * @param integer $max_height maximum height of image - * @param boolean $exact match width and height exactly? - * @return boolean - */ - public static function image(array $file, $max_width = NULL, $max_height = NULL, $exact = FALSE) - { - if (Upload::not_empty($file)) - { - try - { - // Get the width and height from the uploaded image - list($width, $height) = getimagesize($file['tmp_name']); - } - catch (ErrorException $e) - { - // Ignore read errors - } - - if (empty($width) OR empty($height)) - { - // Cannot get image size, cannot validate - return FALSE; - } - - if ( ! $max_width) - { - // No limit, use the image width - $max_width = $width; - } - - if ( ! $max_height) - { - // No limit, use the image height - $max_height = $height; - } - - if ($exact) - { - // Check if dimensions match exactly - return ($width === $max_width AND $height === $max_height); - } - else - { - // Check if size is within maximum dimensions - return ($width <= $max_width AND $height <= $max_height); - } - } - - return FALSE; - } - -} // End upload diff --git a/includes/kohana/system/classes/Kohana/Valid.php b/includes/kohana/system/classes/Kohana/Valid.php deleted file mode 100644 index 5e526e6c..00000000 --- a/includes/kohana/system/classes/Kohana/Valid.php +++ /dev/null @@ -1,551 +0,0 @@ -getArrayCopy(); - } - - // Value cannot be NULL, FALSE, '', or an empty array - return ! in_array($value, array(NULL, FALSE, '', array()), TRUE); - } - - /** - * Checks a field against a regular expression. - * - * @param string $value value - * @param string $expression regular expression to match (including delimiters) - * @return boolean - */ - public static function regex($value, $expression) - { - return (bool) preg_match($expression, (string) $value); - } - - /** - * Checks that a field is long enough. - * - * @param string $value value - * @param integer $length minimum length required - * @return boolean - */ - public static function min_length($value, $length) - { - return UTF8::strlen($value) >= $length; - } - - /** - * Checks that a field is short enough. - * - * @param string $value value - * @param integer $length maximum length required - * @return boolean - */ - public static function max_length($value, $length) - { - return UTF8::strlen($value) <= $length; - } - - /** - * Checks that a field is exactly the right length. - * - * @param string $value value - * @param integer|array $length exact length required, or array of valid lengths - * @return boolean - */ - public static function exact_length($value, $length) - { - if (is_array($length)) - { - foreach ($length as $strlen) - { - if (UTF8::strlen($value) === $strlen) - return TRUE; - } - return FALSE; - } - - return UTF8::strlen($value) === $length; - } - - /** - * Checks that a field is exactly the value required. - * - * @param string $value value - * @param string $required required value - * @return boolean - */ - public static function equals($value, $required) - { - return ($value === $required); - } - - /** - * Check an email address for correct format. - * - * @link http://www.iamcal.com/publish/articles/php/parsing_email/ - * @link http://www.w3.org/Protocols/rfc822/ - * - * @param string $email email address - * @param boolean $strict strict RFC compatibility - * @return boolean - */ - public static function email($email, $strict = FALSE) - { - if (UTF8::strlen($email) > 254) - { - return FALSE; - } - - if ($strict === TRUE) - { - $qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]'; - $dtext = '[^\\x0d\\x5b-\\x5d\\x80-\\xff]'; - $atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c\\x3e\\x40\\x5b-\\x5d\\x7f-\\xff]+'; - $pair = '\\x5c[\\x00-\\x7f]'; - - $domain_literal = "\\x5b($dtext|$pair)*\\x5d"; - $quoted_string = "\\x22($qtext|$pair)*\\x22"; - $sub_domain = "($atom|$domain_literal)"; - $word = "($atom|$quoted_string)"; - $domain = "$sub_domain(\\x2e$sub_domain)*"; - $local_part = "$word(\\x2e$word)*"; - - $expression = "/^$local_part\\x40$domain$/D"; - } - else - { - $expression = '/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(?:(?![-.])[-a-z0-9.]+(? 253) - return FALSE; - - // An extra check for the top level domain - // It must start with a letter - $tld = ltrim(substr($matches[1], (int) strrpos($matches[1], '.')), '.'); - return ctype_alpha($tld[0]); - } - - /** - * Validate an IP. - * - * @param string $ip IP address - * @param boolean $allow_private allow private IP networks - * @return boolean - */ - public static function ip($ip, $allow_private = TRUE) - { - // Do not allow reserved addresses - $flags = FILTER_FLAG_NO_RES_RANGE; - - if ($allow_private === FALSE) - { - // Do not allow private or reserved addresses - $flags = $flags | FILTER_FLAG_NO_PRIV_RANGE; - } - - return (bool) filter_var($ip, FILTER_VALIDATE_IP, $flags); - } - - /** - * Validates a credit card number, with a Luhn check if possible. - * - * @param integer $number credit card number - * @param string|array $type card type, or an array of card types - * @return boolean - * @uses Valid::luhn - */ - public static function credit_card($number, $type = NULL) - { - // Remove all non-digit characters from the number - if (($number = preg_replace('/\D+/', '', $number)) === '') - return FALSE; - - if ($type == NULL) - { - // Use the default type - $type = 'default'; - } - elseif (is_array($type)) - { - foreach ($type as $t) - { - // Test each type for validity - if (Valid::credit_card($number, $t)) - return TRUE; - } - - return FALSE; - } - - $cards = Kohana::$config->load('credit_cards'); - - // Check card type - $type = strtolower($type); - - if ( ! isset($cards[$type])) - return FALSE; - - // Check card number length - $length = strlen($number); - - // Validate the card length by the card type - if ( ! in_array($length, preg_split('/\D+/', $cards[$type]['length']))) - return FALSE; - - // Check card number prefix - if ( ! preg_match('/^'.$cards[$type]['prefix'].'/', $number)) - return FALSE; - - // No Luhn check required - if ($cards[$type]['luhn'] == FALSE) - return TRUE; - - return Valid::luhn($number); - } - - /** - * Validate a number against the [Luhn](http://en.wikipedia.org/wiki/Luhn_algorithm) - * (mod10) formula. - * - * @param string $number number to check - * @return boolean - */ - public static function luhn($number) - { - // Force the value to be a string as this method uses string functions. - // Converting to an integer may pass PHP_INT_MAX and result in an error! - $number = (string) $number; - - if ( ! ctype_digit($number)) - { - // Luhn can only be used on numbers! - return FALSE; - } - - // Check number length - $length = strlen($number); - - // Checksum of the card number - $checksum = 0; - - for ($i = $length - 1; $i >= 0; $i -= 2) - { - // Add up every 2nd digit, starting from the right - $checksum += substr($number, $i, 1); - } - - for ($i = $length - 2; $i >= 0; $i -= 2) - { - // Add up every 2nd digit doubled, starting from the right - $double = substr($number, $i, 1) * 2; - - // Subtract 9 from the double where value is greater than 10 - $checksum += ($double >= 10) ? ($double - 9) : $double; - } - - // If the checksum is a multiple of 10, the number is valid - return ($checksum % 10 === 0); - } - - /** - * Checks if a phone number is valid. - * - * @param string $number phone number to check - * @param array $lengths - * @return boolean - */ - public static function phone($number, $lengths = NULL) - { - if ( ! is_array($lengths)) - { - $lengths = array(7,10,11); - } - - // Remove all non-digit characters from the number - $number = preg_replace('/\D+/', '', $number); - - // Check if the number is within range - return in_array(strlen($number), $lengths); - } - - /** - * Tests if a string is a valid date string. - * - * @param string $str date to check - * @return boolean - */ - public static function date($str) - { - return (strtotime($str) !== FALSE); - } - - /** - * Checks whether a string consists of alphabetical characters only. - * - * @param string $str input string - * @param boolean $utf8 trigger UTF-8 compatibility - * @return boolean - */ - public static function alpha($str, $utf8 = FALSE) - { - $str = (string) $str; - - if ($utf8 === TRUE) - { - return (bool) preg_match('/^\pL++$/uD', $str); - } - else - { - return ctype_alpha($str); - } - } - - /** - * Checks whether a string consists of alphabetical characters and numbers only. - * - * @param string $str input string - * @param boolean $utf8 trigger UTF-8 compatibility - * @return boolean - */ - public static function alpha_numeric($str, $utf8 = FALSE) - { - if ($utf8 === TRUE) - { - return (bool) preg_match('/^[\pL\pN]++$/uD', $str); - } - else - { - return ctype_alnum($str); - } - } - - /** - * Checks whether a string consists of alphabetical characters, numbers, underscores and dashes only. - * - * @param string $str input string - * @param boolean $utf8 trigger UTF-8 compatibility - * @return boolean - */ - public static function alpha_dash($str, $utf8 = FALSE) - { - if ($utf8 === TRUE) - { - $regex = '/^[-\pL\pN_]++$/uD'; - } - else - { - $regex = '/^[-a-z0-9_]++$/iD'; - } - - return (bool) preg_match($regex, $str); - } - - /** - * Checks whether a string consists of digits only (no dots or dashes). - * - * @param string $str input string - * @param boolean $utf8 trigger UTF-8 compatibility - * @return boolean - */ - public static function digit($str, $utf8 = FALSE) - { - if ($utf8 === TRUE) - { - return (bool) preg_match('/^\pN++$/uD', $str); - } - else - { - return (is_int($str) AND $str >= 0) OR ctype_digit($str); - } - } - - /** - * Checks whether a string is a valid number (negative and decimal numbers allowed). - * - * Uses {@link http://www.php.net/manual/en/function.localeconv.php locale conversion} - * to allow decimal point to be locale specific. - * - * @param string $str input string - * @return boolean - */ - public static function numeric($str) - { - // Get the decimal point for the current locale - list($decimal) = array_values(localeconv()); - - // A lookahead is used to make sure the string contains at least one digit (before or after the decimal point) - return (bool) preg_match('/^-?+(?=.*[0-9])[0-9]*+'.preg_quote($decimal).'?+[0-9]*+$/D', (string) $str); - } - - /** - * Tests if a number is within a range. - * - * @param string $number number to check - * @param integer $min minimum value - * @param integer $max maximum value - * @param integer $step increment size - * @return boolean - */ - public static function range($number, $min, $max, $step = NULL) - { - if ($number <= $min OR $number >= $max) - { - // Number is outside of range - return FALSE; - } - - if ( ! $step) - { - // Default to steps of 1 - $step = 1; - } - - // Check step requirements - return (($number - $min) % $step === 0); - } - - /** - * Checks if a string is a proper decimal format. Optionally, a specific - * number of digits can be checked too. - * - * @param string $str number to check - * @param integer $places number of decimal places - * @param integer $digits number of digits - * @return boolean - */ - public static function decimal($str, $places = 2, $digits = NULL) - { - if ($digits > 0) - { - // Specific number of digits - $digits = '{'.( (int) $digits).'}'; - } - else - { - // Any number of digits - $digits = '+'; - } - - // Get the decimal point for the current locale - list($decimal) = array_values(localeconv()); - - return (bool) preg_match('/^[+-]?[0-9]'.$digits.preg_quote($decimal).'[0-9]{'.( (int) $places).'}$/D', $str); - } - - /** - * Checks if a string is a proper hexadecimal HTML color value. The validation - * is quite flexible as it does not require an initial "#" and also allows for - * the short notation using only three instead of six hexadecimal characters. - * - * @param string $str input string - * @return boolean - */ - public static function color($str) - { - return (bool) preg_match('/^#?+[0-9a-f]{3}(?:[0-9a-f]{3})?$/iD', $str); - } - - /** - * Checks if a field matches the value of another field. - * - * @param array $array array of values - * @param string $field field name - * @param string $match field name to match - * @return boolean - */ - public static function matches($array, $field, $match) - { - return ($array[$field] === $array[$match]); - } - -} // End Valid diff --git a/includes/kohana/system/classes/Kohana/Validation.php b/includes/kohana/system/classes/Kohana/Validation.php deleted file mode 100644 index 0934bc4a..00000000 --- a/includes/kohana/system/classes/Kohana/Validation.php +++ /dev/null @@ -1,612 +0,0 @@ - rule - protected $_errors = array(); - - // Array to validate - protected $_data = array(); - - /** - * Sets the unique "any field" key and creates an ArrayObject from the - * passed array. - * - * @param array $array array to validate - * @return void - */ - public function __construct(array $array) - { - $this->_data = $array; - } - - /** - * Throws an exception because Validation is read-only. - * Implements ArrayAccess method. - * - * @throws Kohana_Exception - * @param string $offset key to set - * @param mixed $value value to set - * @return void - */ - public function offsetSet($offset, $value) - { - throw new Kohana_Exception('Validation objects are read-only.'); - } - - /** - * Checks if key is set in array data. - * Implements ArrayAccess method. - * - * @param string $offset key to check - * @return bool whether the key is set - */ - public function offsetExists($offset) - { - return isset($this->_data[$offset]); - } - - /** - * Throws an exception because Validation is read-only. - * Implements ArrayAccess method. - * - * @throws Kohana_Exception - * @param string $offset key to unset - * @return void - */ - public function offsetUnset($offset) - { - throw new Kohana_Exception('Validation objects are read-only.'); - } - - /** - * Gets a value from the array data. - * Implements ArrayAccess method. - * - * @param string $offset key to return - * @return mixed value from array - */ - public function offsetGet($offset) - { - return $this->_data[$offset]; - } - - /** - * Copies the current rules to a new array. - * - * $copy = $array->copy($new_data); - * - * @param array $array new data set - * @return Validation - * @since 3.0.5 - */ - public function copy(array $array) - { - // Create a copy of the current validation set - $copy = clone $this; - - // Replace the data set - $copy->_data = $array; - - return $copy; - } - - /** - * Returns the array representation of the current object. - * Deprecated in favor of [Validation::data] - * - * @deprecated - * @return array - */ - public function as_array() - { - return $this->_data; - } - - /** - * Returns the array of data to be validated. - * - * @return array - */ - public function data() - { - return $this->_data; - } - - /** - * Sets or overwrites the label name for a field. - * - * @param string $field field name - * @param string $label label - * @return $this - */ - public function label($field, $label) - { - // Set the label for this field - $this->_labels[$field] = $label; - - return $this; - } - - /** - * Sets labels using an array. - * - * @param array $labels list of field => label names - * @return $this - */ - public function labels(array $labels) - { - $this->_labels = $labels + $this->_labels; - - return $this; - } - - /** - * Overwrites or appends rules to a field. Each rule will be executed once. - * All rules must be string names of functions method names. Parameters must - * match the parameters of the callback function exactly - * - * Aliases you can use in callback parameters: - * - :validation - the validation object - * - :field - the field name - * - :value - the value of the field - * - * // The "username" must not be empty and have a minimum length of 4 - * $validation->rule('username', 'not_empty') - * ->rule('username', 'min_length', array(':value', 4)); - * - * // The "password" field must match the "password_repeat" field - * $validation->rule('password', 'matches', array(':validation', 'password', 'password_repeat')); - * - * // Using closure (anonymous function) - * $validation->rule('index', - * function(Validation $array, $field, $value) - * { - * if ($value > 6 AND $value < 10) - * { - * $array->error($field, 'custom'); - * } - * } - * , array(':validation', ':field', ':value') - * ); - * - * [!!] Errors must be added manually when using closures! - * - * @param string $field field name - * @param callback $rule valid PHP callback or closure - * @param array $params extra parameters for the rule - * @return $this - */ - public function rule($field, $rule, array $params = NULL) - { - if ($params === NULL) - { - // Default to array(':value') - $params = array(':value'); - } - - if ($field !== TRUE AND ! isset($this->_labels[$field])) - { - // Set the field label to the field name - $this->_labels[$field] = preg_replace('/[^\pL]+/u', ' ', $field); - } - - // Store the rule and params for this rule - $this->_rules[$field][] = array($rule, $params); - - return $this; - } - - /** - * Add rules using an array. - * - * @param string $field field name - * @param array $rules list of callbacks - * @return $this - */ - public function rules($field, array $rules) - { - foreach ($rules as $rule) - { - $this->rule($field, $rule[0], Arr::get($rule, 1)); - } - - return $this; - } - - /** - * Bind a value to a parameter definition. - * - * // This allows you to use :model in the parameter definition of rules - * $validation->bind(':model', $model) - * ->rule('status', 'valid_status', array(':model')); - * - * @param string $key variable name or an array of variables - * @param mixed $value value - * @return $this - */ - public function bind($key, $value = NULL) - { - if (is_array($key)) - { - foreach ($key as $name => $value) - { - $this->_bound[$name] = $value; - } - } - else - { - $this->_bound[$key] = $value; - } - - return $this; - } - - /** - * Executes all validation rules. This should - * typically be called within an if/else block. - * - * if ($validation->check()) - * { - * // The data is valid, do something here - * } - * - * @return boolean - */ - public function check() - { - if (Kohana::$profiling === TRUE) - { - // Start a new benchmark - $benchmark = Profiler::start('Validation', __FUNCTION__); - } - - // New data set - $data = $this->_errors = array(); - - // Store the original data because this class should not modify it post-validation - $original = $this->_data; - - // Get a list of the expected fields - $expected = Arr::merge(array_keys($original), array_keys($this->_labels)); - - // Import the rules locally - $rules = $this->_rules; - - foreach ($expected as $field) - { - // Use the submitted value or NULL if no data exists - $data[$field] = Arr::get($this, $field); - - if (isset($rules[TRUE])) - { - if ( ! isset($rules[$field])) - { - // Initialize the rules for this field - $rules[$field] = array(); - } - - // Append the rules - $rules[$field] = array_merge($rules[$field], $rules[TRUE]); - } - } - - // Overload the current array with the new one - $this->_data = $data; - - // Remove the rules that apply to every field - unset($rules[TRUE]); - - // Bind the validation object to :validation - $this->bind(':validation', $this); - // Bind the data to :data - $this->bind(':data', $this->_data); - - // Execute the rules - foreach ($rules as $field => $set) - { - // Get the field value - $value = $this[$field]; - - // Bind the field name and value to :field and :value respectively - $this->bind(array - ( - ':field' => $field, - ':value' => $value, - )); - - foreach ($set as $array) - { - // Rules are defined as array($rule, $params) - list($rule, $params) = $array; - - foreach ($params as $key => $param) - { - if (is_string($param) AND array_key_exists($param, $this->_bound)) - { - // Replace with bound value - $params[$key] = $this->_bound[$param]; - } - } - - // Default the error name to be the rule (except array and lambda rules) - $error_name = $rule; - - if (is_array($rule)) - { - // Allows rule('field', array(':model', 'some_rule')); - if (is_string($rule[0]) AND array_key_exists($rule[0], $this->_bound)) - { - // Replace with bound value - $rule[0] = $this->_bound[$rule[0]]; - } - - // This is an array callback, the method name is the error name - $error_name = $rule[1]; - $passed = call_user_func_array($rule, $params); - } - elseif ( ! is_string($rule)) - { - // This is a lambda function, there is no error name (errors must be added manually) - $error_name = FALSE; - $passed = call_user_func_array($rule, $params); - } - elseif (method_exists('Valid', $rule)) - { - // Use a method in this object - $method = new ReflectionMethod('Valid', $rule); - - // Call static::$rule($this[$field], $param, ...) with Reflection - $passed = $method->invokeArgs(NULL, $params); - } - elseif (strpos($rule, '::') === FALSE) - { - // Use a function call - $function = new ReflectionFunction($rule); - - // Call $function($this[$field], $param, ...) with Reflection - $passed = $function->invokeArgs($params); - } - else - { - // Split the class and method of the rule - list($class, $method) = explode('::', $rule, 2); - - // Use a static method call - $method = new ReflectionMethod($class, $method); - - // Call $Class::$method($this[$field], $param, ...) with Reflection - $passed = $method->invokeArgs(NULL, $params); - } - - // Ignore return values from rules when the field is empty - if ( ! in_array($rule, $this->_empty_rules) AND ! Valid::not_empty($value)) - continue; - - if ($passed === FALSE AND $error_name !== FALSE) - { - // Add the rule to the errors - $this->error($field, $error_name, $params); - - // This field has an error, stop executing rules - break; - } - elseif (isset($this->_errors[$field])) - { - // The callback added the error manually, stop checking rules - break; - } - } - } - - // Restore the data to its original form - $this->_data = $original; - - if (isset($benchmark)) - { - // Stop benchmarking - Profiler::stop($benchmark); - } - - return empty($this->_errors); - } - - /** - * Add an error to a field. - * - * @param string $field field name - * @param string $error error message - * @param array $params - * @return $this - */ - public function error($field, $error, array $params = NULL) - { - $this->_errors[$field] = array($error, $params); - - return $this; - } - - /** - * Returns the error messages. If no file is specified, the error message - * will be the name of the rule that failed. When a file is specified, the - * message will be loaded from "field/rule", or if no rule-specific message - * exists, "field/default" will be used. If neither is set, the returned - * message will be "file/field/rule". - * - * By default all messages are translated using the default language. - * A string can be used as the second parameter to specified the language - * that the message was written in. - * - * // Get errors from messages/forms/login.php - * $errors = $Validation->errors('forms/login'); - * - * @uses Kohana::message - * @param string $file file to load error messages from - * @param mixed $translate translate the message - * @return array - */ - public function errors($file = NULL, $translate = TRUE) - { - if ($file === NULL) - { - // Return the error list - return $this->_errors; - } - - // Create a new message list - $messages = array(); - - foreach ($this->_errors as $field => $set) - { - list($error, $params) = $set; - - // Get the label for this field - $label = $this->_labels[$field]; - - if ($translate) - { - if (is_string($translate)) - { - // Translate the label using the specified language - $label = __($label, NULL, $translate); - } - else - { - // Translate the label - $label = __($label); - } - } - - // Start the translation values list - $values = array( - ':field' => $label, - ':value' => Arr::get($this, $field), - ); - - if (is_array($values[':value'])) - { - // All values must be strings - $values[':value'] = implode(', ', Arr::flatten($values[':value'])); - } - - if ($params) - { - foreach ($params as $key => $value) - { - if (is_array($value)) - { - // All values must be strings - $value = implode(', ', Arr::flatten($value)); - } - elseif (is_object($value)) - { - // Objects cannot be used in message files - continue; - } - - // Check if a label for this parameter exists - if (isset($this->_labels[$value])) - { - // Use the label as the value, eg: related field name for "matches" - $value = $this->_labels[$value]; - - if ($translate) - { - if (is_string($translate)) - { - // Translate the value using the specified language - $value = __($value, NULL, $translate); - } - else - { - // Translate the value - $value = __($value); - } - } - } - - // Add each parameter as a numbered value, starting from 1 - $values[':param'.($key + 1)] = $value; - } - } - - if ($message = Kohana::message($file, "{$field}.{$error}") AND is_string($message)) - { - // Found a message for this field and error - } - elseif ($message = Kohana::message($file, "{$field}.default") AND is_string($message)) - { - // Found a default message for this field - } - elseif ($message = Kohana::message($file, $error) AND is_string($message)) - { - // Found a default message for this error - } - elseif ($message = Kohana::message('validation', $error) AND is_string($message)) - { - // Found a default message for this error - } - else - { - // No message exists, display the path expected - $message = "{$file}.{$field}.{$error}"; - } - - if ($translate) - { - if (is_string($translate)) - { - // Translate the message using specified language - $message = __($message, $values, $translate); - } - else - { - // Translate the message using the default language - $message = __($message, $values); - } - } - else - { - // Do not translate, just replace the values - $message = strtr($message, $values); - } - - // Set the message for this field - $messages[$field] = $message; - } - - return $messages; - } - -} // End Validation diff --git a/includes/kohana/system/classes/Kohana/Validation/Exception.php b/includes/kohana/system/classes/Kohana/Validation/Exception.php deleted file mode 100644 index 9a60c670..00000000 --- a/includes/kohana/system/classes/Kohana/Validation/Exception.php +++ /dev/null @@ -1,29 +0,0 @@ -array = $array; - - parent::__construct($message, $values, $code, $previous); - } - -} // End Kohana_Validation_Exception diff --git a/includes/kohana/system/classes/Kohana/View.php b/includes/kohana/system/classes/Kohana/View.php deleted file mode 100644 index cb0b5b50..00000000 --- a/includes/kohana/system/classes/Kohana/View.php +++ /dev/null @@ -1,351 +0,0 @@ - $value) - { - View::$_global_data[$key2] = $value; - } - } - else - { - View::$_global_data[$key] = $value; - } - } - - /** - * Assigns a global variable by reference, similar to [View::bind], except - * that the variable will be accessible to all views. - * - * View::bind_global($key, $value); - * - * @param string $key variable name - * @param mixed $value referenced variable - * @return void - */ - public static function bind_global($key, & $value) - { - View::$_global_data[$key] =& $value; - } - - // View filename - protected $_file; - - // Array of local variables - protected $_data = array(); - - /** - * Sets the initial view filename and local data. Views should almost - * always only be created using [View::factory]. - * - * $view = new View($file); - * - * @param string $file view filename - * @param array $data array of values - * @return void - * @uses View::set_filename - */ - public function __construct($file = NULL, array $data = NULL) - { - if ($file !== NULL) - { - $this->set_filename($file); - } - - if ($data !== NULL) - { - // Add the values to the current data - $this->_data = $data + $this->_data; - } - } - - /** - * Magic method, searches for the given variable and returns its value. - * Local variables will be returned before global variables. - * - * $value = $view->foo; - * - * [!!] If the variable has not yet been set, an exception will be thrown. - * - * @param string $key variable name - * @return mixed - * @throws Kohana_Exception - */ - public function & __get($key) - { - if (array_key_exists($key, $this->_data)) - { - return $this->_data[$key]; - } - elseif (array_key_exists($key, View::$_global_data)) - { - return View::$_global_data[$key]; - } - else - { - throw new Kohana_Exception('View variable is not set: :var', - array(':var' => $key)); - } - } - - /** - * Magic method, calls [View::set] with the same parameters. - * - * $view->foo = 'something'; - * - * @param string $key variable name - * @param mixed $value value - * @return void - */ - public function __set($key, $value) - { - $this->set($key, $value); - } - - /** - * Magic method, determines if a variable is set. - * - * isset($view->foo); - * - * [!!] `NULL` variables are not considered to be set by [isset](http://php.net/isset). - * - * @param string $key variable name - * @return boolean - */ - public function __isset($key) - { - return (isset($this->_data[$key]) OR isset(View::$_global_data[$key])); - } - - /** - * Magic method, unsets a given variable. - * - * unset($view->foo); - * - * @param string $key variable name - * @return void - */ - public function __unset($key) - { - unset($this->_data[$key], View::$_global_data[$key]); - } - - /** - * Magic method, returns the output of [View::render]. - * - * @return string - * @uses View::render - */ - public function __toString() - { - try - { - return $this->render(); - } - catch (Exception $e) - { - /** - * Display the exception message. - * - * We use this method here because it's impossible to throw and - * exception from __toString(). - */ - $error_response = Kohana_exception::_handler($e); - - return $error_response->body(); - } - } - - /** - * Sets the view filename. - * - * $view->set_filename($file); - * - * @param string $file view filename - * @return View - * @throws View_Exception - */ - public function set_filename($file) - { - if (($path = Kohana::find_file('views', $file)) === FALSE) - { - throw new View_Exception('The requested view :file could not be found', array( - ':file' => $file, - )); - } - - // Store the file path locally - $this->_file = $path; - - return $this; - } - - /** - * Assigns a variable by name. Assigned values will be available as a - * variable within the view file: - * - * // This value can be accessed as $foo within the view - * $view->set('foo', 'my value'); - * - * You can also use an array to set several values at once: - * - * // Create the values $food and $beverage in the view - * $view->set(array('food' => 'bread', 'beverage' => 'water')); - * - * @param string $key variable name or an array of variables - * @param mixed $value value - * @return $this - */ - public function set($key, $value = NULL) - { - if (is_array($key)) - { - foreach ($key as $name => $value) - { - $this->_data[$name] = $value; - } - } - else - { - $this->_data[$key] = $value; - } - - return $this; - } - - /** - * Assigns a value by reference. The benefit of binding is that values can - * be altered without re-setting them. It is also possible to bind variables - * before they have values. Assigned values will be available as a - * variable within the view file: - * - * // This reference can be accessed as $ref within the view - * $view->bind('ref', $bar); - * - * @param string $key variable name - * @param mixed $value referenced variable - * @return $this - */ - public function bind($key, & $value) - { - $this->_data[$key] =& $value; - - return $this; - } - - /** - * Renders the view object to a string. Global and local data are merged - * and extracted to create local variables within the view file. - * - * $output = $view->render(); - * - * [!!] Global variables with the same key name as local variables will be - * overwritten by the local variable. - * - * @param string $file view filename - * @return string - * @throws View_Exception - * @uses View::capture - */ - public function render($file = NULL) - { - if ($file !== NULL) - { - $this->set_filename($file); - } - - if (empty($this->_file)) - { - throw new View_Exception('You must set the file to use within your view before rendering'); - } - - // Combine local and global data and capture the output - return View::capture($this->_file, $this->_data); - } - -} // End View diff --git a/includes/kohana/system/classes/Kohana/View/Exception.php b/includes/kohana/system/classes/Kohana/View/Exception.php deleted file mode 100644 index 536c550c..00000000 --- a/includes/kohana/system/classes/Kohana/View/Exception.php +++ /dev/null @@ -1,9 +0,0 @@ - array( - 'length' => '13,14,15,16,17,18,19', - 'prefix' => '', - 'luhn' => TRUE, - ), - - 'american express' => array( - 'length' => '15', - 'prefix' => '3[47]', - 'luhn' => TRUE, - ), - - 'diners club' => array( - 'length' => '14,16', - 'prefix' => '36|55|30[0-5]', - 'luhn' => TRUE, - ), - - 'discover' => array( - 'length' => '16', - 'prefix' => '6(?:5|011)', - 'luhn' => TRUE, - ), - - 'jcb' => array( - 'length' => '15,16', - 'prefix' => '3|1800|2131', - 'luhn' => TRUE, - ), - - 'maestro' => array( - 'length' => '16,18', - 'prefix' => '50(?:20|38)|6(?:304|759)', - 'luhn' => TRUE, - ), - - 'mastercard' => array( - 'length' => '16', - 'prefix' => '5[1-5]', - 'luhn' => TRUE, - ), - - 'visa' => array( - 'length' => '13,16', - 'prefix' => '4', - 'luhn' => TRUE, - ), - -); \ No newline at end of file diff --git a/includes/kohana/system/config/curl.php b/includes/kohana/system/config/curl.php deleted file mode 100644 index ae015b5f..00000000 --- a/includes/kohana/system/config/curl.php +++ /dev/null @@ -1,8 +0,0 @@ - 'Mozilla/5.0 (compatible; Kohana v'.Kohana::VERSION.' +http://kohanaframework.org/)', - CURLOPT_CONNECTTIMEOUT => 5, - CURLOPT_TIMEOUT => 5, - CURLOPT_HEADER => FALSE, -); \ No newline at end of file diff --git a/includes/kohana/system/config/encrypt.php b/includes/kohana/system/config/encrypt.php deleted file mode 100644 index 3f9065e1..00000000 --- a/includes/kohana/system/config/encrypt.php +++ /dev/null @@ -1,17 +0,0 @@ - array( - /** - * The following options must be set: - * - * string key secret passphrase - * integer mode encryption mode, one of MCRYPT_MODE_* - * integer cipher encryption cipher, one of the Mcrpyt cipher constants - */ - 'cipher' => MCRYPT_RIJNDAEL_128, - 'mode' => MCRYPT_MODE_NOFB, - ), - -); diff --git a/includes/kohana/system/config/inflector.php b/includes/kohana/system/config/inflector.php deleted file mode 100644 index ea28db14..00000000 --- a/includes/kohana/system/config/inflector.php +++ /dev/null @@ -1,98 +0,0 @@ - array( - 'access', - 'advice', - 'aircraft', - 'art', - 'baggage', - 'bison', - 'dances', - 'deer', - 'equipment', - 'fish', - 'fuel', - 'furniture', - 'heat', - 'honey', - 'homework', - 'impatience', - 'information', - 'knowledge', - 'luggage', - 'media', - 'money', - 'moose', - 'music', - 'news', - 'patience', - 'progress', - 'pollution', - 'research', - 'rice', - 'salmon', - 'sand', - 'series', - 'sheep', - 'sms', - 'spam', - 'species', - 'staff', - 'swine', - 'toothpaste', - 'traffic', - 'understanding', - 'water', - 'weather', - 'work', - ), - - 'irregular' => array( - 'appendix' => 'appendices', - 'cactus' => 'cacti', - 'calf' => 'calves', - 'child' => 'children', - 'crisis' => 'crises', - 'criterion' => 'criteria', - 'curriculum' => 'curricula', - 'diagnosis' => 'diagnoses', - 'elf' => 'elves', - 'ellipsis' => 'ellipses', - 'foot' => 'feet', - 'goose' => 'geese', - 'hero' => 'heroes', - 'hoof' => 'hooves', - 'hypothesis' => 'hypotheses', - 'is' => 'are', - 'knife' => 'knives', - 'leaf' => 'leaves', - 'life' => 'lives', - 'loaf' => 'loaves', - 'man' => 'men', - 'mouse' => 'mice', - 'nucleus' => 'nuclei', - 'oasis' => 'oases', - 'octopus' => 'octopi', - 'ox' => 'oxen', - 'paralysis' => 'paralyses', - 'parenthesis' => 'parentheses', - 'person' => 'people', - 'phenomenon' => 'phenomena', - 'potato' => 'potatoes', - 'quiz' => 'quizzes', - 'radius' => 'radii', - 'scarf' => 'scarves', - 'stimulus' => 'stimuli', - 'syllabus' => 'syllabi', - 'synthesis' => 'syntheses', - 'thief' => 'thieves', - 'tooth' => 'teeth', - 'was' => 'were', - 'wharf' => 'wharves', - 'wife' => 'wives', - 'woman' => 'women', - 'release' => 'releases', - ), -); diff --git a/includes/kohana/system/config/mimes.php b/includes/kohana/system/config/mimes.php deleted file mode 100644 index 70084f39..00000000 --- a/includes/kohana/system/config/mimes.php +++ /dev/null @@ -1,227 +0,0 @@ - array('text/h323'), - '7z' => array('application/x-7z-compressed'), - 'abw' => array('application/x-abiword'), - 'acx' => array('application/internet-property-stream'), - 'ai' => array('application/postscript'), - 'aif' => array('audio/x-aiff'), - 'aifc' => array('audio/x-aiff'), - 'aiff' => array('audio/x-aiff'), - 'amf' => array('application/x-amf'), - 'asf' => array('video/x-ms-asf'), - 'asr' => array('video/x-ms-asf'), - 'asx' => array('video/x-ms-asf'), - 'atom' => array('application/atom+xml'), - 'avi' => array('video/avi', 'video/msvideo', 'video/x-msvideo'), - 'bin' => array('application/octet-stream','application/macbinary'), - 'bmp' => array('image/bmp'), - 'c' => array('text/x-csrc'), - 'c++' => array('text/x-c++src'), - 'cab' => array('application/x-cab'), - 'cc' => array('text/x-c++src'), - 'cda' => array('application/x-cdf'), - 'class' => array('application/octet-stream'), - 'cpp' => array('text/x-c++src'), - 'cpt' => array('application/mac-compactpro'), - 'csh' => array('text/x-csh'), - 'css' => array('text/css'), - 'csv' => array('text/x-comma-separated-values', 'application/vnd.ms-excel', 'text/comma-separated-values', 'text/csv'), - 'dbk' => array('application/docbook+xml'), - 'dcr' => array('application/x-director'), - 'deb' => array('application/x-debian-package'), - 'diff' => array('text/x-diff'), - 'dir' => array('application/x-director'), - 'divx' => array('video/divx'), - 'dll' => array('application/octet-stream', 'application/x-msdos-program'), - 'dmg' => array('application/x-apple-diskimage'), - 'dms' => array('application/octet-stream'), - 'doc' => array('application/msword'), - 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document'), - 'dvi' => array('application/x-dvi'), - 'dxr' => array('application/x-director'), - 'eml' => array('message/rfc822'), - 'eps' => array('application/postscript'), - 'evy' => array('application/envoy'), - 'exe' => array('application/x-msdos-program', 'application/octet-stream'), - 'fla' => array('application/octet-stream'), - 'flac' => array('application/x-flac'), - 'flc' => array('video/flc'), - 'fli' => array('video/fli'), - 'flv' => array('video/x-flv'), - 'gif' => array('image/gif'), - 'gtar' => array('application/x-gtar'), - 'gz' => array('application/x-gzip'), - 'h' => array('text/x-chdr'), - 'h++' => array('text/x-c++hdr'), - 'hh' => array('text/x-c++hdr'), - 'hpp' => array('text/x-c++hdr'), - 'hqx' => array('application/mac-binhex40'), - 'hs' => array('text/x-haskell'), - 'htm' => array('text/html'), - 'html' => array('text/html'), - 'ico' => array('image/x-icon'), - 'ics' => array('text/calendar'), - 'iii' => array('application/x-iphone'), - 'ins' => array('application/x-internet-signup'), - 'iso' => array('application/x-iso9660-image'), - 'isp' => array('application/x-internet-signup'), - 'jar' => array('application/java-archive'), - 'java' => array('application/x-java-applet'), - 'jpe' => array('image/jpeg', 'image/pjpeg'), - 'jpeg' => array('image/jpeg', 'image/pjpeg'), - 'jpg' => array('image/jpeg', 'image/pjpeg'), - 'js' => array('application/javascript'), - 'json' => array('application/json'), - 'latex' => array('application/x-latex'), - 'lha' => array('application/octet-stream'), - 'log' => array('text/plain', 'text/x-log'), - 'lzh' => array('application/octet-stream'), - 'm4a' => array('audio/mpeg'), - 'm4p' => array('video/mp4v-es'), - 'm4v' => array('video/mp4'), - 'man' => array('application/x-troff-man'), - 'mdb' => array('application/x-msaccess'), - 'midi' => array('audio/midi'), - 'mid' => array('audio/midi'), - 'mif' => array('application/vnd.mif'), - 'mka' => array('audio/x-matroska'), - 'mkv' => array('video/x-matroska'), - 'mov' => array('video/quicktime'), - 'movie' => array('video/x-sgi-movie'), - 'mp2' => array('audio/mpeg'), - 'mp3' => array('audio/mpeg'), - 'mp4' => array('application/mp4','audio/mp4','video/mp4'), - 'mpa' => array('video/mpeg'), - 'mpe' => array('video/mpeg'), - 'mpeg' => array('video/mpeg'), - 'mpg' => array('video/mpeg'), - 'mpg4' => array('video/mp4'), - 'mpga' => array('audio/mpeg'), - 'mpp' => array('application/vnd.ms-project'), - 'mpv' => array('video/x-matroska'), - 'mpv2' => array('video/mpeg'), - 'ms' => array('application/x-troff-ms'), - 'msg' => array('application/msoutlook','application/x-msg'), - 'msi' => array('application/x-msi'), - 'nws' => array('message/rfc822'), - 'oda' => array('application/oda'), - 'odb' => array('application/vnd.oasis.opendocument.database'), - 'odc' => array('application/vnd.oasis.opendocument.chart'), - 'odf' => array('application/vnd.oasis.opendocument.forumla'), - 'odg' => array('application/vnd.oasis.opendocument.graphics'), - 'odi' => array('application/vnd.oasis.opendocument.image'), - 'odm' => array('application/vnd.oasis.opendocument.text-master'), - 'odp' => array('application/vnd.oasis.opendocument.presentation'), - 'ods' => array('application/vnd.oasis.opendocument.spreadsheet'), - 'odt' => array('application/vnd.oasis.opendocument.text'), - 'oga' => array('audio/ogg'), - 'ogg' => array('application/ogg'), - 'ogv' => array('video/ogg'), - 'otg' => array('application/vnd.oasis.opendocument.graphics-template'), - 'oth' => array('application/vnd.oasis.opendocument.web'), - 'otp' => array('application/vnd.oasis.opendocument.presentation-template'), - 'ots' => array('application/vnd.oasis.opendocument.spreadsheet-template'), - 'ott' => array('application/vnd.oasis.opendocument.template'), - 'p' => array('text/x-pascal'), - 'pas' => array('text/x-pascal'), - 'patch' => array('text/x-diff'), - 'pbm' => array('image/x-portable-bitmap'), - 'pdf' => array('application/pdf', 'application/x-download'), - 'php' => array('application/x-httpd-php'), - 'php3' => array('application/x-httpd-php'), - 'php4' => array('application/x-httpd-php'), - 'php5' => array('application/x-httpd-php'), - 'phps' => array('application/x-httpd-php-source'), - 'phtml' => array('application/x-httpd-php'), - 'pl' => array('text/x-perl'), - 'pm' => array('text/x-perl'), - 'png' => array('image/png', 'image/x-png'), - 'po' => array('text/x-gettext-translation'), - 'pot' => array('application/vnd.ms-powerpoint'), - 'pps' => array('application/vnd.ms-powerpoint'), - 'ppt' => array('application/powerpoint'), - 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation'), - 'ps' => array('application/postscript'), - 'psd' => array('application/x-photoshop', 'image/x-photoshop'), - 'pub' => array('application/x-mspublisher'), - 'py' => array('text/x-python'), - 'qt' => array('video/quicktime'), - 'ra' => array('audio/x-realaudio'), - 'ram' => array('audio/x-realaudio', 'audio/x-pn-realaudio'), - 'rar' => array('application/rar'), - 'rgb' => array('image/x-rgb'), - 'rm' => array('audio/x-pn-realaudio'), - 'rpm' => array('audio/x-pn-realaudio-plugin', 'application/x-redhat-package-manager'), - 'rss' => array('application/rss+xml'), - 'rtf' => array('text/rtf'), - 'rtx' => array('text/richtext'), - 'rv' => array('video/vnd.rn-realvideo'), - 'sea' => array('application/octet-stream'), - 'sh' => array('text/x-sh'), - 'shtml' => array('text/html'), - 'sit' => array('application/x-stuffit'), - 'smi' => array('application/smil'), - 'smil' => array('application/smil'), - 'so' => array('application/octet-stream'), - 'src' => array('application/x-wais-source'), - 'svg' => array('image/svg+xml'), - 'swf' => array('application/x-shockwave-flash'), - 't' => array('application/x-troff'), - 'tar' => array('application/x-tar'), - 'tcl' => array('text/x-tcl'), - 'tex' => array('application/x-tex'), - 'text' => array('text/plain'), - 'texti' => array('application/x-texinfo'), - 'textinfo' => array('application/x-texinfo'), - 'tgz' => array('application/x-tar'), - 'tif' => array('image/tiff'), - 'tiff' => array('image/tiff'), - 'torrent' => array('application/x-bittorrent'), - 'tr' => array('application/x-troff'), - 'tsv' => array('text/tab-separated-values'), - 'txt' => array('text/plain'), - 'wav' => array('audio/x-wav'), - 'wax' => array('audio/x-ms-wax'), - 'wbxml' => array('application/wbxml'), - 'webm' => array('video/webm'), - 'wm' => array('video/x-ms-wm'), - 'wma' => array('audio/x-ms-wma'), - 'wmd' => array('application/x-ms-wmd'), - 'wmlc' => array('application/wmlc'), - 'wmv' => array('video/x-ms-wmv', 'application/octet-stream'), - 'wmx' => array('video/x-ms-wmx'), - 'wmz' => array('application/x-ms-wmz'), - 'word' => array('application/msword', 'application/octet-stream'), - 'wp5' => array('application/wordperfect5.1'), - 'wpd' => array('application/vnd.wordperfect'), - 'wvx' => array('video/x-ms-wvx'), - 'xbm' => array('image/x-xbitmap'), - 'xcf' => array('image/xcf'), - 'xhtml' => array('application/xhtml+xml'), - 'xht' => array('application/xhtml+xml'), - 'xl' => array('application/excel', 'application/vnd.ms-excel'), - 'xla' => array('application/excel', 'application/vnd.ms-excel'), - 'xlc' => array('application/excel', 'application/vnd.ms-excel'), - 'xlm' => array('application/excel', 'application/vnd.ms-excel'), - 'xls' => array('application/excel', 'application/vnd.ms-excel'), - 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'), - 'xlt' => array('application/excel', 'application/vnd.ms-excel'), - 'xml' => array('text/xml', 'application/xml'), - 'xof' => array('x-world/x-vrml'), - 'xpm' => array('image/x-xpixmap'), - 'xsl' => array('text/xml'), - 'xvid' => array('video/x-xvid'), - 'xwd' => array('image/x-xwindowdump'), - 'z' => array('application/x-compress'), - 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed') -); diff --git a/includes/kohana/system/config/session.php b/includes/kohana/system/config/session.php deleted file mode 100644 index c1300442..00000000 --- a/includes/kohana/system/config/session.php +++ /dev/null @@ -1,7 +0,0 @@ - array( - 'encrypted' => FALSE, - ), -); diff --git a/includes/kohana/system/config/user_agents.php b/includes/kohana/system/config/user_agents.php deleted file mode 100644 index 7960f5e5..00000000 --- a/includes/kohana/system/config/user_agents.php +++ /dev/null @@ -1,108 +0,0 @@ - array( - 'windows nt 6.2' => 'Windows 8', - 'windows nt 6.1' => 'Windows 7', - 'windows nt 6.0' => 'Windows Vista', - 'windows nt 5.2' => 'Windows 2003', - 'windows nt 5.1' => 'Windows XP', - 'windows nt 5.0' => 'Windows 2000', - 'windows nt 4.0' => 'Windows NT', - 'winnt4.0' => 'Windows NT', - 'winnt 4.0' => 'Windows NT', - 'winnt' => 'Windows NT', - 'windows 98' => 'Windows 98', - 'win98' => 'Windows 98', - 'windows 95' => 'Windows 95', - 'win95' => 'Windows 95', - 'windows' => 'Unknown Windows OS', - 'os x' => 'Mac OS X', - 'intel mac' => 'Intel Mac', - 'ppc mac' => 'PowerPC Mac', - 'powerpc' => 'PowerPC', - 'ppc' => 'PowerPC', - 'cygwin' => 'Cygwin', - 'linux' => 'Linux', - 'debian' => 'Debian', - 'openvms' => 'OpenVMS', - 'sunos' => 'Sun Solaris', - 'amiga' => 'Amiga', - 'beos' => 'BeOS', - 'apachebench' => 'ApacheBench', - 'freebsd' => 'FreeBSD', - 'netbsd' => 'NetBSD', - 'bsdi' => 'BSDi', - 'openbsd' => 'OpenBSD', - 'os/2' => 'OS/2', - 'warp' => 'OS/2', - 'aix' => 'AIX', - 'irix' => 'Irix', - 'osf' => 'DEC OSF', - 'hp-ux' => 'HP-UX', - 'hurd' => 'GNU/Hurd', - 'unix' => 'Unknown Unix OS', - ), - - 'browser' => array( - 'Opera' => 'Opera', - 'MSIE' => 'Internet Explorer', - 'Internet Explorer' => 'Internet Explorer', - 'Shiira' => 'Shiira', - 'Firefox' => 'Firefox', - 'Chimera' => 'Chimera', - 'Phoenix' => 'Phoenix', - 'Firebird' => 'Firebird', - 'Camino' => 'Camino', - 'Navigator' => 'Netscape', - 'Netscape' => 'Netscape', - 'OmniWeb' => 'OmniWeb', - 'Chrome' => 'Chrome', - 'Safari' => 'Safari', - 'CFNetwork' => 'Safari', // Core Foundation for OSX, WebKit/Safari - 'Konqueror' => 'Konqueror', - 'Epiphany' => 'Epiphany', - 'Galeon' => 'Galeon', - 'Mozilla' => 'Mozilla', - 'icab' => 'iCab', - 'lynx' => 'Lynx', - 'links' => 'Links', - 'hotjava' => 'HotJava', - 'amaya' => 'Amaya', - 'IBrowse' => 'IBrowse', - ), - - 'mobile' => array( - 'mobileexplorer' => 'Mobile Explorer', - 'openwave' => 'Open Wave', - 'opera mini' => 'Opera Mini', - 'operamini' => 'Opera Mini', - 'elaine' => 'Palm', - 'palmsource' => 'Palm', - 'digital paths' => 'Palm', - 'avantgo' => 'Avantgo', - 'xiino' => 'Xiino', - 'palmscape' => 'Palmscape', - 'nokia' => 'Nokia', - 'ericsson' => 'Ericsson', - 'blackBerry' => 'BlackBerry', - 'motorola' => 'Motorola', - 'iphone' => 'iPhone', - 'ipad' => 'iPad', - 'ipod' => 'iPod', - 'android' => 'Android', - ), - - 'robot' => array( - 'googlebot' => 'Googlebot', - 'msnbot' => 'MSNBot', - 'facebookexternalhit' => 'Facebook', - 'slurp' => 'Inktomi Slurp', - 'yahoo' => 'Yahoo', - 'askjeeves' => 'AskJeeves', - 'fastcrawler' => 'FastCrawler', - 'infoseek' => 'InfoSeek Robot 1.0', - 'lycos' => 'Lycos', - ), -); diff --git a/includes/kohana/system/config/userguide.php b/includes/kohana/system/config/userguide.php deleted file mode 100644 index b240d7a6..00000000 --- a/includes/kohana/system/config/userguide.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - - // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' - 'kohana' => array( - - // Whether this modules userguide pages should be shown - 'enabled' => TRUE, - - // The name that should show up on the userguide index page - 'name' => 'Kohana', - - // A short description of this module, shown on the index page - 'description' => 'Documentation for Kohana core/system.', - - // Copyright message, shown in the footer for this module - 'copyright' => '© 2008–2012 Kohana Team', - ) - ) -); \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/autoloading.md b/includes/kohana/system/guide/kohana/autoloading.md deleted file mode 100644 index 49986d73..00000000 --- a/includes/kohana/system/guide/kohana/autoloading.md +++ /dev/null @@ -1,72 +0,0 @@ -# Loading Classes - -Kohana supports the [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) autoloading specification as of version 3.3. This allows you to take advantage of PHP [autoloading](http://php.net/manual/language.oop5.autoload.php), removing the need to call [include](http://php.net/include) or [require](http://php.net/require) before using a class. When you use a class Kohana will find and include the class file for you. For instance, when you want to use the [Cookie::set] method, you simply call: - - Cookie::set('mycookie', 'any string value'); - -Or to load an [Encrypt] instance, just call [Encrypt::instance]: - - $encrypt = Encrypt::instance(); - -Classes are loaded via the [Kohana::auto_load] method, which makes a simple conversion from class name to file name: - -1. Classes are placed in the `classes/` directory of the [filesystem](files) -2. Any underscore characters in the class name are converted to slashes -2. The filename must match the case of the class - -When calling a class that has not been loaded (eg: `Session_Cookie`), Kohana will search the filesystem using [Kohana::find_file] for a file named `classes/Session/Cookie.php`. - -If your classes do not follow this convention, they cannot be autoloaded by Kohana. You will have to manually included your files, or add your own [autoload function.](http://us3.php.net/manual/en/function.spl-autoload-register.php) - -## Custom Autoloaders - -Kohana's default autoloader is enabled in `application/bootstrap.php` using [spl_autoload_register](http://php.net/spl_autoload_register): - - spl_autoload_register(array('Kohana', 'auto_load')); - -This allows [Kohana::auto_load] to attempt to find and include any class that does not yet exist when the class is first used as long as it follows the PSR-0 specification. If you wish to support the previous Kohana filename convention (using lowercase filesnames), an additional autoloader is provided by Kohana: - - spl_autoload_register(array('Kohana', 'auto_load_lowercase')); - - -### Example: Zend - -You can easily gain access to other libraries if they include an autoloader. For example, here is how to enable Zend's autoloader so you can use Zend libraries in your Kohana application. - -#### Download and install the Zend Framework files - -- [Download the latest Zend Framework files](http://framework.zend.com/download/latest). -- Create a `vendor` directory at `application/vendor`. This keeps third party software separate from your application classes. -- Move the decompressed Zend folder containing Zend Framework to `application/vendor/Zend`. - - -#### Include Zend's Autoloader in your bootstrap - -Somewhere in `application/bootstrap.php`, copy the following code: - - /** - * Enable Zend Framework autoloading - */ - if ($path = Kohana::find_file('vendor', 'Zend/Loader')) - { - ini_set('include_path', - ini_get('include_path').PATH_SEPARATOR.dirname(dirname($path))); - - require_once 'Zend/Loader/Autoloader.php'; - Zend_Loader_Autoloader::getInstance(); - } - -#### Usage example - -You can now autoload any Zend Framework classes from inside your Kohana application. - - if ($validate($this->request->post())) - { - $mailer = new Zend_Mail; - - $mailer->setBodyHtml($view) - ->setFrom(Kohana::$config->load('site')->email_from) - ->addTo($email) - ->setSubject($message) - ->send(); - } diff --git a/includes/kohana/system/guide/kohana/bootstrap.md b/includes/kohana/system/guide/kohana/bootstrap.md deleted file mode 100644 index 22c560f2..00000000 --- a/includes/kohana/system/guide/kohana/bootstrap.md +++ /dev/null @@ -1,111 +0,0 @@ -# Bootstrap - -The bootstrap is located at `application/bootstrap.php`. It is responsible for setting up the Kohana environment and executing the main response. It is included by `index.php` (see [Request flow](flow)) - -[!!] The bootstrap is responsible for the flow of your application. In previous versions of Kohana the bootstrap was in `system` and was somewhat of an unseen, uneditible force. In Kohana 3 the bootstrap takes on a much more integral and versatile role. Do not be afraid to edit and change your bootstrap however you see fit. - -## Environment setup - -The bootstrap first sets the timezone and locale, and then adds Kohana's autoloader so the [cascading filesystem](files) works. You could add any other settings that all your application needed here. - -~~~ -// Sample excerpt from bootstrap.php with comments trimmed down - -// Set the default time zone. -date_default_timezone_set('America/Chicago'); - -// Set the default locale. -setlocale(LC_ALL, 'en_US.utf-8'); - -// Enable the Kohana auto-loader. -spl_autoload_register(array('Kohana', 'auto_load')); - -// Enable the Kohana auto-loader for unserialization. -ini_set('unserialize_callback_func', 'spl_autoload_call'); -~~~ - -## Initialization and Configuration - -Kohana is then initialized by calling [Kohana::init], and the log and [config](files/config) reader/writers are enabled. - -~~~ -// Sample excerpt from bootstrap.php with comments trimmed down - -Kohana::init(array(' - base_url' => '/kohana/', - index_file => false, -)); - -// Attach the file writer to logging. Multiple writers are supported. -Kohana::$log->attach(new Kohana_Log_File(APPPATH.'logs')); - -// Attach a file reader to config. Multiple readers are supported. -Kohana::$config->attach(new Kohana_Config_File); -~~~ - -You can add conditional statements to make the bootstrap have different values based on certain settings. For example, detect whether we are live by checking `$_SERVER['HTTP_HOST']` and set caching, profiling, etc. accordingly. This is just an example, there are many different ways to accomplish the same thing. - -~~~ -// Excerpt from http://github.com/isaiahdw/kohanaphp.com/blob/f2afe8e28b/application/bootstrap.php -... [trimmed] - -/** - * Set the environment status by the domain. - */ -if (strpos($_SERVER['HTTP_HOST'], 'kohanaphp.com') !== FALSE) -{ - // We are live! - Kohana::$environment = Kohana::PRODUCTION; - - // Turn off notices and strict errors - error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT); -} - -/** - * Initialize Kohana, setting the default options. - ... [trimmed] - */ -Kohana::init(array( - 'base_url' => Kohana::$environment === Kohana::PRODUCTION ? '/' : '/kohanaphp.com/', - 'caching' => Kohana::$environment === Kohana::PRODUCTION, - 'profile' => Kohana::$environment !== Kohana::PRODUCTION, - 'index_file' => FALSE, -)); - -... [trimmed] - -~~~ - -[!!] Note: The default bootstrap will set `Kohana::$environment = $_ENV['KOHANA_ENV']` if set. Docs on how to supply this variable are available in your web server's documentation (e.g. [Apache](http://httpd.apache.org/docs/1.3/mod/mod_env.html#setenv), [Lighttpd](http://redmine.lighttpd.net/wiki/1/Docs:ModSetEnv#Options)). This is considered better practice than many alternative methods to set `Kohana::$enviroment`, as you can change the setting per server, without having to rely on config options or hostnames. - -## Modules - -**Read the [Modules](modules) page for a more detailed description.** - -[Modules](modules) are then loaded using [Kohana::modules()]. Including modules is optional. - -Each key in the array should be the name of the module, and the value is the path to the module, either relative or absolute. -~~~ -// Example excerpt from bootstrap.php - -Kohana::modules(array( - 'database' => MODPATH.'database', - 'orm' => MODPATH.'orm', - 'userguide' => MODPATH.'userguide', -)); -~~~ - -## Routes - -**Read the [Routing](routing) page for a more detailed description and more examples.** - -[Routes](routing) are then defined via [Route::set()]. - -~~~ -// The default route that comes with Kohana 3 -Route::set('default', '((/(/)))') - ->defaults(array( - 'controller' => 'Welcome', - 'action' => 'index', - )); -~~~ diff --git a/includes/kohana/system/guide/kohana/config.md b/includes/kohana/system/guide/kohana/config.md deleted file mode 100644 index 1673f966..00000000 --- a/includes/kohana/system/guide/kohana/config.md +++ /dev/null @@ -1,193 +0,0 @@ -# Configuration - -By default Kohana is setup to load configuration values from [config files](files/config) in the -cascading filesystem. However, it is very easy to adapt it to load config values in other -locations/formats. - -## Sources - -The system is designed around the concept of **Config Sources**, which loosely means a method of -storing configuration values. - -To read config from a source you need a **Config Reader**. Similarly, to write config to a source -you need a **Config Writer**. - -Implementing them is as simple as extending the -[Kohana_Config_Reader] / [Kohana_Config_Writer] interfaces: - - class Kohana_Config_Database_Reader implements Kohana_Config_Reader - class Kohana_Config_Database_Writer extends Kohana_Config_Database_Reader implements Kohana_Config_Writer - -You'll notice in the above example that the Database Writer extends the Database Reader. -This is the convention with config sources, the reasoning being that if you can write to a -source chances are you can also read from it as well. However, this convention is not enforced -and is left to the developer's discretion. - -## Groups - -In order to aid organisation config values are split up into logical "groups". For example, -database related settings go in a `database` group, and session related settings go in a -`session` group. - -How these groups are stored/organised is up to the config source. For example, the file source -puts different config groups into different files (`database.php`, `session.php`) whereas -the database source uses a column to distinguish between groups. - -To load a config group simply call `Kohana::$config->load()` with the name of the group you wish to load: - - $config = Kohana::$config->load('my_group'); - -`load()` will return an instance of [Config_Group] which encapsulates the config values and ensures -that any modifications made will be passed back to the config writers. - -To get a config value from a [Config_Group] object simply call [Config_Group::get]: - - $config = Kohana::$config->load('my_group'); - $value = $config->get('var'); - -To modify a value call [Config_Group::set]: - - $config = Kohana::$config->load('my_group'); - $config->set('var', 'new_value'); - -### Alternative methods for getting / setting config - -In addition to the methods described above you can also access config values using dots to outline a path -from the config group to the value you want: - - // Config file: database.php - return array( - 'default' => array( - 'connection' => array( - 'hostname' => 'localhost' - ) - ) - ); - - // Code which needs hostname: - $hostname = Kohana::$config->load('database.default.connection.hostname'); - - -Which is equivalent to: - - $config = Kohana::$config->load('database')->get('default'); - - $hostname = $config['connection']['hostname']; - -Obviously this method is a lot more compact than the original. However, please bear in mind that using -`dot.notation` is a _lot_ slower than calling `get()` and traversing the array yourself. Dot notation -can be useful if you only need one specific variable, but otherwise it's best to use `get()`. - -As [Config_Group] extends [Array_Object](http://php.net/manual/en/class.arrayobject.php) you can also use array -syntax to get/set config vars: - - $config = Kohana::$config->load('database'); - - // Getting the var - $hostname = $config['default']['connection']['hostname']; - - // Setting the var - $config['default']['connection']['hostname'] = '127.0.0.1'; - -Again, this syntax is more costly than calling `get()` / `set()`. - -## Config Merging - -One of the useful features of the config system is config group merging. This works in a similar way -to the cascading filesystem, with configuration from lower sources lower down the source stack being -merged with sources further up the stack. - -If two sources contain the same config variables then the one from the source further up the stack will -override the one from the "lower" source. However, if the source from higher up the stack does not contain -a particular config variable but a source lower down the stack does then the value from the lower source will -be used. - -The position of sources in the stack is determined by how they are loaded in your bootstrap. -By default when you load a source it is pushed to the top of a stack: - - // Stack: - Kohana::$config->attach(new Config_File); - // Stack: Config_File - Kohana::$config->attach(new Config_Database); - // Stack: Config_Database, Config_File - -In the example above, any config values found in the database will override those found in the filesystem. -For example, using the setup outlined above: - - // Configuration in the filesystem: - email: - sender: - email: my.awesome.address@example.com - name: Unknown - method: smtp - - // Configuration in the database: - email: - sender: - email: my.supercool.address@gmail.com - name: Kohana Bot - - // Configuration returned by Kohana::$config->load('email') - email: - sender: - email: my.supercool.address@gmail.com - name: Kohana Bot - method: smtp - -[!!] **Note:** The above syntax is simply pseudo code to illustrate the concept of config merging. - -On some occasions you may want to append a config source to the bottom of the stack, to do this pass `FALSE` -as the second parameter to `attach()`: - - // Stack: - Kohana::$config->attach(new Config_File); - // Stack: Config_File - Kohana::$config->attach(new Config_Database, FALSE); - // Stack: Config_File, Config_Database - -In this example, any values found in the filesystem will override those found in the db. For example: - - // Configuration in the filesystem: - email: - sender: - email: my.awesome.address@example.com - name: Unknown - method: smtp - - // Configuration in the database: - email: - sender: - email: my.supercool.address@gmail.com - name: Kohana Bot - - // Configuration returned by Kohana::$config->load('email') - email: - sender: - email: my.awesome.address@example.com - name: Unknown - method: smtp - -## Using different config sources based on the environment - -In some situations you'll need to use different config values depending on which state `Kohana::$environment` -is in. Unit testing is a prime example of such a situation. Most setups have two databases; one for normal -development and a separate one for unit testing (to isolate the tests from your development). - -In this case you still need access to the config settings stored in the `config` directory as it contains generic -settings that are needed whatever environment your application is in (e.g. encryption settings), -so replacing the default `Config_File` source isn't really an option. - -To get around this you can attach a separate config file reader which loads its config from a subdir of `config` called -"testing": - - Kohana::$config->attach(new Config_File); - - Kohana::$config->attach(new Config_Database); - - if (Kohana::$environment === Kohana::TESTING) - { - Kohana::$config->attach(new Config_File('config/testing')); - } - -During normal development the config source stack looks like `Config_Database, Config_File('config')`. However, -when `Kohana::$environment === Kohana::TESTING` the stack looks like `Config_File('config/testing'), Config_Database, Config_File('config')` \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/controllers.md b/includes/kohana/system/guide/kohana/controllers.md deleted file mode 100644 index d95d98ad..00000000 --- a/includes/kohana/system/guide/kohana/controllers.md +++ /dev/null @@ -1 +0,0 @@ -This will discuss controller basics, like before() and after(), private function, and about extending controllers like the Controller_Template, or using a parent::before() for authentication. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/conventions.md b/includes/kohana/system/guide/kohana/conventions.md deleted file mode 100644 index 2157178c..00000000 --- a/includes/kohana/system/guide/kohana/conventions.md +++ /dev/null @@ -1,418 +0,0 @@ -# Conventions and Coding Style - -It is encouraged that you follow Kohana's coding style. This makes code more readable and allows for easier code sharing and contributing. - -## Class Names and File Location - -Class names in Kohana follow a strict convention to facilitate [autoloading](autoloading). Class names should have uppercase first letters with underscores to separate words. Underscores are significant as they directly reflect the file location in the filesystem. - -The following conventions apply: - -1. CamelCased class names should be used when it is undesirable to create a new directory level. -2. All class file names and directory names must match the case of the class as per [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md). -3. All classes should be in the `classes` directory. This may be at any level in the [cascading filesystem](files). - -### Examples {#class-name-examples} - -Remember that in a class, an underscore means a new directory. Consider the following examples: - -Class Name | File Path -----------------------|------------------------------- -Controller_Template | classes/Controller/Template.php -Model_User | classes/Model/User.php -Model_BlogPost | classes/Model/BlogPost.php -Database | classes/Database.php -Database_Query | classes/Database/Query.php -Form | classes/Form.php - -## Coding Standards - -In order to produce highly consistent source code, we ask that everyone follow the coding standards as closely as possible. - -### Brackets - -Please use [BSD/Allman Style](http://en.wikipedia.org/wiki/Indent_style#BSD.2FAllman_style) bracketing. - -#### Curly Brackets - -Curly brackets are placed on their own line, indented to the same level as the control statement. - - // Correct - if ($a === $b) - { - ... - } - else - { - ... - } - - // Incorrect - if ($a === $b) { - ... - } else { - ... - } - -#### Class Brackets - -The only exception to the curly bracket rule is, the opening bracket of a class goes on the same line. - - // Correct - class Foo { - - // Incorrect - class Foo - { - -#### Empty Brackets - -Don't put any characters inside empty brackets. - - // Correct - class Foo {} - - // Incorrect - class Foo { } - -#### Array Brackets - -Arrays may be single line or multi-line. - - array('a' => 'b', 'c' => 'd') - - array( - 'a' => 'b', - 'c' => 'd', - ) - -##### Opening Parenthesis - -The opening array parenthesis goes on the same line. - - // Correct - array( - ... - ) - - // Incorrect: - array - ( - ... - ) - -##### Closing parenthesis - -###### Single Dimension - -The closing parenthesis of a multi-line single dimension array is placed on its own line, indented to the same level as the assignment or statement. - - // Correct - $array = array( - ... - ) - - // Incorrect - $array = array( - ... - ) - -###### Multidimensional - -The nested array is indented one tab to the right, following the single dimension rules. - - // Correct - array( - 'arr' => array( - ... - ), - 'arr' => array( - ... - ), - ) - - array( - 'arr' => array(...), - 'arr' => array(...), - ) - -##### Arrays as Function Arguments - - - // Correct - do(array( - ... - )) - - // Incorrect - do(array( - ... - )) - -As noted at the start of the array bracket section, single line syntax is also valid. - - // Correct - do(array(...)) - - // Alternative for wrapping long lines - do($bar, 'this is a very long line', - array(...)); - -### Naming Conventions - -Kohana uses under_score naming, not camelCase naming. - -#### Classes - - // Controller class, uses Controller_ prefix - class Controller_Apple extends Controller { - - // Model class, uses Model_ prefix - class Model_Cheese extends Model { - - // Regular class - class Peanut { - -When creating an instance of a class, don't use parentheses if you're not passing something on to the constructor: - - // Correct: - $db = new Database; - - // Incorrect: - $db = new Database(); - -#### Functions and Methods - -Functions should be all lowercase, and use under_scores to separate words: - - function drink_beverage($beverage) - { - -#### Variables - -All variables should be lowercase and use under_score, not camelCase: - - // Correct: - $foo = 'bar'; - $long_example = 'uses underscores'; - - // Incorrect: - $weDontWantThis = 'understood?'; - -### Indentation - -You must use tabs to indent your code. Using spaces for tabbing is strictly forbidden. - -Vertical spacing (for multi-line) is done with spaces. Tabs are not good for vertical alignment because different people have different tab widths. - - $text = 'this is a long text block that is wrapped. Normally, we aim for ' - .'wrapping at 80 chars. Vertical alignment is very important for ' - .'code readability. Remember that all indentation is done with tabs,' - .'but vertical alignment should be completed with spaces, after ' - .'indenting with tabs.'; - -### String Concatenation - -Do not put spaces around the concatenation operator: - - // Correct: - $str = 'one'.$var.'two'; - - // Incorrect: - $str = 'one'. $var .'two'; - $str = 'one' . $var . 'two'; - -### Single Line Statements - -Single-line IF statements should only be used when breaking normal execution (e.g. return or continue): - - // Acceptable: - if ($foo == $bar) - return $foo; - - if ($foo == $bar) - continue; - - if ($foo == $bar) - break; - - if ($foo == $bar) - throw new Exception('You screwed up!'); - - // Not acceptable: - if ($baz == $bun) - $baz = $bar + 2; - -### Comparison Operations - -Please use OR and AND for comparison: - - // Correct: - if (($foo AND $bar) OR ($b AND $c)) - - // Incorrect: - if (($foo && $bar) || ($b && $c)) - -Please use elseif, not else if: - - // Correct: - elseif ($bar) - - // Incorrect: - else if($bar) - -### Switch Structures - -Each case, break and default should be on a separate line. The block inside a case or default must be indented by 1 tab. - - switch ($var) - { - case 'bar': - case 'foo': - echo 'hello'; - break; - case 1: - echo 'one'; - break; - default: - echo 'bye'; - break; - } - -### Parentheses - -There should be one space after statement name, followed by a parenthesis. The ! (bang) character must have a space on either side to ensure maximum readability. Except in the case of a bang or type casting, there should be no whitespace after an opening parenthesis or before a closing parenthesis. - - // Correct: - if ($foo == $bar) - if ( ! $foo) - - // Incorrect: - if($foo == $bar) - if(!$foo) - if ((int) $foo) - if ( $foo == $bar ) - if (! $foo) - -### Ternaries - -All ternary operations should follow a standard format. Use parentheses around expressions only, not around just variables. - - $foo = ($bar == $foo) ? $foo : $bar; - $foo = $bar ? $foo : $bar; - -All comparisons and operations must be done inside of a parentheses group: - - $foo = ($bar > 5) ? ($bar + $foo) : strlen($bar); - -When separating complex ternaries (ternaries where the first part goes beyond ~80 chars) into multiple lines, spaces should be used to line up operators, which should be at the front of the successive lines: - - $foo = ($bar == $foo) - ? $foo - : $bar; - -### Type Casting - -Type casting should be done with spaces on each side of the cast: - - // Correct: - $foo = (string) $bar; - if ( (string) $bar) - - // Incorrect: - $foo = (string)$bar; - -When possible, please use type casting instead of ternary operations: - - // Correct: - $foo = (bool) $bar; - - // Incorrect: - $foo = ($bar == TRUE) ? TRUE : FALSE; - -When casting type to integer or boolean, use the short format: - - // Correct: - $foo = (int) $bar; - $foo = (bool) $bar; - - // Incorrect: - $foo = (integer) $bar; - $foo = (boolean) $bar; - -### Constants - -Always use uppercase for constants: - - // Correct: - define('MY_CONSTANT', 'my_value'); - $a = TRUE; - $b = NULL; - - // Incorrect: - define('MyConstant', 'my_value'); - $a = True; - $b = null; - -Place constant comparisons at the end of tests: - - // Correct: - if ($foo !== FALSE) - - // Incorrect: - if (FALSE !== $foo) - -This is a slightly controversial choice, so I will explain the reasoning. If we were to write the previous example in plain English, the correct example would read: - - if variable $foo is not exactly FALSE - -And the incorrect example would read: - - if FALSE is not exactly variable $foo - -Since we are reading left to right, it simply doesn't make sense to put the constant first. - -### Comments - -#### One-line Comments - -Use //, preferably above the line of code you're commenting on. Leave a space after it and start with a capital. Never use #. - - // Correct - - //Incorrect - // incorrect - # Incorrect - -### Regular Expressions - -When coding regular expressions please use PCRE rather than the POSIX flavor. PCRE is considered more powerful and faster. - - // Correct: - if (preg_match('/abc/i', $str)) - - // Incorrect: - if (eregi('abc', $str)) - -Use single quotes around your regular expressions rather than double quotes. Single-quoted strings are more convenient because of their simplicity. Unlike double-quoted strings they don't support variable interpolation nor integrated backslash sequences like \n or \t, etc. - - // Correct: - preg_match('/abc/', $str); - - // Incorrect: - preg_match("/abc/", $str); - -When performing a regular expression search and replace, please use the $n notation for backreferences. This is preferred over \\n. - - // Correct: - preg_replace('/(\d+) dollar/', '$1 euro', $str); - - // Incorrect: - preg_replace('/(\d+) dollar/', '\\1 euro', $str); - -Finally, please note that the $ character for matching the position at the end of the line allows for a following newline character. Use the D modifier to fix this if needed. [More info](http://blog.php-security.org/archives/76-Holes-in-most-preg_match-filters.html). - - $str = "email@example.com\n"; - - preg_match('/^.+@.+$/', $str); // TRUE - preg_match('/^.+@.+$/D', $str); // FALSE \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/cookies.md b/includes/kohana/system/guide/kohana/cookies.md deleted file mode 100644 index b53a130f..00000000 --- a/includes/kohana/system/guide/kohana/cookies.md +++ /dev/null @@ -1,100 +0,0 @@ -# Cookies - -Kohana provides classes that make it easy to work with both cookies and sessions. At a high level both sessions and cookies provide the same functionality. They allow the developer to store temporary or persistent information about a specific client for later retrieval, usually to make something persistent between requests. - -[Cookies](http://en.wikipedia.org/wiki/HTTP_cookie) should be used for storing non-private data that is persistent for a long period of time. For example storing a user preference or a language setting. Use the [Cookie] class for getting and setting cookies. - -[!!] Kohana uses "signed" cookies. Every cookie that is stored is combined with a secure hash to prevent modification of the cookie. If a cookie is modified outside of Kohana the hash will be incorrect and the cookie will be deleted. This hash is generated using [Cookie::salt()], which uses the [Cookie::$salt] property. You must define this setting in your bootstrap.php: - - Cookie::$salt = 'foobar'; - -Or define an extended cookie class in your application: - - class Cookie extends Kohana_Cookie - { - public static $salt = 'foobar'; - } - -You should set the salt to a secure value. The example above is only for demonstrative purposes. - -Nothing stops you from using `$_COOKIE` like normal, but you can not mix using the Cookie class and the regular `$_COOKIE` global, because the hash that Kohana uses to sign cookies will not be present, and Kohana will delete the cookie. - -## Storing, Retrieving, and Deleting Data - -[Cookie] and [Session] provide a very similar API for storing data. The main difference between them is that sessions are accessed using an object, and cookies are accessed using a static class. - -### Storing Data - -Storing session or cookie data is done using the [Cookie::set] method: - - // Set cookie data - Cookie::set($key, $value); - - // Store a user id - Cookie::set('user_id', 10); - -### Retrieving Data - -Getting session or cookie data is done using the [Cookie::get] method: - - // Get cookie data - $data = Cookie::get($key, $default_value); - - // Get the user id - $user = Cookie::get('user_id'); - -### Deleting Data - -Deleting session or cookie data is done using the [Cookie::delete] method: - - // Delete cookie data - Cookie::delete($key); - - // Delete the user id - Cookie::delete('user_id'); - -## Cookie Settings - -All of the cookie settings are changed using static properties. You can either change these settings in `bootstrap.php` or by using [transparent extension](extension). Always check these settings before making your application live, as many of them will have a direct affect on the security of your application. - -The most important setting is [Cookie::$salt], which is used for secure signing. This value should be changed and kept secret: - - Cookie::$salt = 'your secret is safe with me'; - -[!!] Changing this value will render all cookies that have been set before invalid. - -By default, cookies are stored until the browser is closed. To use a specific lifetime, change the [Cookie::$expiration] setting: - - // Set cookies to expire after 1 week - Cookie::$expiration = 604800; - - // Alternative to using raw integers, for better clarity - Cookie::$expiration = Date::WEEK; - -The path that the cookie can be accessed from can be restricted using the [Cookie::$path] setting. - - // Allow cookies only when going to /public/* - Cookie::$path = '/public/'; - -The domain that the cookie can be accessed from can also be restricted, using the [Cookie::$domain] setting. - - // Allow cookies only on the domain www.example.com - Cookie::$domain = 'www.example.com'; - -If you want to make the cookie accessible on all subdomains, use a dot at the beginning of the domain. - - // Allow cookies to be accessed on example.com and *.example.com - Cookie::$domain = '.example.com'; - -To only allow the cookie to be accessed over a secure (HTTPS) connection, use the [Cookie::$secure] setting. - - // Allow cookies to be accessed only on a secure connection - Cookie::$secure = TRUE; - - // Allow cookies to be accessed on any connection - Cookie::$secure = FALSE; - -To prevent cookies from being accessed using Javascript, you can change the [Cookie::$httponly] setting. - - // Make cookies inaccessible to Javascript - Cookie::$httponly = TRUE; \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/debugging.md b/includes/kohana/system/guide/kohana/debugging.md deleted file mode 100644 index 251e557c..00000000 --- a/includes/kohana/system/guide/kohana/debugging.md +++ /dev/null @@ -1,20 +0,0 @@ -# Debugging - -Kohana includes several tools to help you debug your application. - -The most basic of these is [Debug::vars]. This simple method will display any number of variables, similar to [var_export](http://php.net/var_export) or [print_r](http://php.net/print_r), but using HTML for extra formatting. - - // Display a dump of the $foo and $bar variables - echo Debug::vars($foo, $bar); - -Kohana also provides a method to show the source code of a particular file using [Debug::source]. - - // Display this line of source code - echo Debug::source(__FILE__, __LINE__); - -If you want to display information about your application files without exposing the installation directory, you can use [Debug::path]: - - // Displays "APPPATH/cache" rather than the real path - echo Debug::path(APPPATH.'cache'); - -If you are having trouble getting something to work correctly, you could check your Kohana logs and your webserver logs, as well as using a debugging tool like [Xdebug](http://www.xdebug.org/). \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/errors.md b/includes/kohana/system/guide/kohana/errors.md deleted file mode 100644 index 9f40f8ba..00000000 --- a/includes/kohana/system/guide/kohana/errors.md +++ /dev/null @@ -1,64 +0,0 @@ -# Error/Exception Handling - -Kohana provides both an exception handler and an error handler that transforms errors into exceptions using PHP's [ErrorException](http://php.net/errorexception) class. Many details of the error and the internal state of the application is displayed by the handler: - -1. Exception class -2. Error level -3. Error message -4. Source of the error, with the error line highlighted -5. A [debug backtrace](http://php.net/debug_backtrace) of the execution flow -6. Included files, loaded extensions, and global variables - -## Example - -Click any of the links to toggle the display of additional information: - -
{{userguide/examples/error}}
- -## Disabling Error/Exception Handling - -If you do not want to use the internal error handling, you can disable it (highly discouraged) when calling [Kohana::init]: - - Kohana::init(array('errors' => FALSE)); - -## Error Reporting - -By default, Kohana displays all errors, including strict mode warnings. This is set using [error_reporting](http://php.net/error_reporting): - - error_reporting(E_ALL | E_STRICT); - -When you application is live and in production, a more conservative setting is recommended, such as ignoring notices: - - error_reporting(E_ALL & ~E_NOTICE); - -If you get a white screen when an error is triggered, your host probably has disabled displaying errors. You can turn it on again by adding this line just after your `error_reporting` call: - - ini_set('display_errors', TRUE); - -Errors should **always** be displayed, even in production, because it allows you to use [exception and error handling](debugging.errors) to serve a nice error page rather than a blank white screen when an error happens. - -## HTTP Exception Handling - -Kohana comes with a robust system for handing http errors. It includes exception classes for each http status code. To trigger a 404 in your application (the most common scenario): - - throw HTTP_Exception::factory(404, 'File not found!'); - -To register error pages for these, using 404 as an example: - - class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 { - - public function get_response() - { - $response = Response::factory(); - - $view = View::factory('errors/404'); - - // We're inside an instance of Exception here, all the normal stuff is available. - $view->message = $this->getMessage(); - - $response->body($view->render()); - - return $response; - } - - } \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/extension.md b/includes/kohana/system/guide/kohana/extension.md deleted file mode 100644 index f8930149..00000000 --- a/includes/kohana/system/guide/kohana/extension.md +++ /dev/null @@ -1,101 +0,0 @@ -# Transparent Class Extension - -The [cascading filesystem](files) allows transparent class extension. For instance, the class [Cookie] is defined in `SYSPATH/classes/Cookie.php` as: - - class Cookie extends Kohana_Cookie {} - -The default Kohana classes, and many extensions, use this definition so that almost all classes can be extended. You extend any class transparently, by defining your own class in `APPPATH/classes/Cookie.php` to add your own methods. - -[!!] You should **never** modify any of the files that are distributed with Kohana. Always make modifications to classes using transparent extension to prevent upgrade issues. - -For instance, if you wanted to create method that sets encrypted cookies using the [Encrypt] class, you would create a file at `APPPATH/classes/Cookie.php` that extends Kohana_Cookie, and adds your functions: - - encode((string) $value); - - parent::set($name, $value, $expiration); - } - - /** - * Gets an encrypted cookie. - * - * @uses Cookie::get - * @uses Encrypt::decode - */ - public static function decrypt($name, $default = NULL) - { - if ($value = parent::get($name, NULL)) - { - $value = Encrypt::instance(Cookie::$encryption)->decode($value); - } - - return isset($value) ? $value : $default; - } - - } // End Cookie - -Now calling `Cookie::encrypt('secret', $data)` will create an encrypted cookie which we can decrypt with `$data = Cookie::decrypt('secret')`. - -## How it works - -To understand how this works, let's look at what happens normally. When you use the Cookie class, [Kohana::autoload] looks for `classes/Cookie.php` in the [cascading filesystem](files). It looks in `application`, then each module, then `system`. The file is found in `system` and is included. Of course, `system/classes/Cookie.php` is just an empty class which extends `Kohana_Cookie`. Again, [Kohana::autoload] is called this time looking for `classes/Kohana/Cookie.php` which it finds in `system`. - -When you add your transparently extended cookie class at `application/classes/Cookie.php` this file essentially "replaces" the file at `system/classes/Cookie.php` without actually touching it. This happens because this time when we use the Cookie class [Kohana::autoload] looks for `classes/Cookie.php` and finds the file in `application` and includes that one, instead of the one in system. - -## Example: changing [Cookie] settings - -If you are using the [Cookie](cookies) class, and want to change a setting, you should do so using transparent extension, rather than editing the file in the system folder. If you edit it directly, and in the future you upgrade your Kohana version by replacing the system folder, your changes will be reverted and your cookies will probably be invalid. Instead, create a Cookie.php file either in `application/classes/Cookie.php` or a module (`MODPATH//classes/Cookie.php`). - - class Cookie extends Kohana_Cookie { - - // Set a new salt - public $salt = "some new better random salt phrase"; - - // Don't allow javascript access to cookies - public $httponly = TRUE; - - } - -## Example: TODO: an example - -Just post the code and brief description of what function it adds, you don't have to do the "How it works" like above. - -## Example: TODO: something else - -Just post the code and brief description of what function it adds, you don't have to do the "How it works" like above. - -## More examples - -TODO: Provide some links to modules on github, etc that have examples of transparent extension in use. - -## Multiple Levels of Extension - -If you are extending a Kohana class in a module, you should maintain transparent extensions. In other words, do not include any variables or function in the "base" class (eg. Cookie). Instead make your own namespaced class, and have the "base" class extend that one. With our Encrypted cookie example we can create `MODPATH/mymod/Encrypted/Cookie.php`: - - class Encrypted_Cookie extends Kohana_Cookie { - - // Use the same encrypt() and decrypt() methods as above - - } - -And create `MODPATH/mymod/Cookie.php`: - - class Cookie extends Encrypted_Cookie {} - -This will still allow users to add their own extension to [Cookie] while leaving your extensions intact. To do that they would make a cookie class that extends `Encrypted_Cookie` (rather than `Kohana_Cookie`) in their application folder. diff --git a/includes/kohana/system/guide/kohana/files.md b/includes/kohana/system/guide/kohana/files.md deleted file mode 100644 index 5be015e8..00000000 --- a/includes/kohana/system/guide/kohana/files.md +++ /dev/null @@ -1,83 +0,0 @@ -# Cascading Filesystem - -The Kohana filesystem is a hierarchy of similar directory structures that cascade. The hierarchy in Kohana (used when a file is loaded by [Kohana::find_file]) is in the following order: - -1. **Application Path** - Defined as `APPPATH` in `index.php`. The default value is `application`. - -2. **Module Paths** - This is set as an associative array using [Kohana::modules] in `APPPATH/bootstrap.php`. Each of the values of the array will be searched **in the order that the modules are defined**. - -3. **System Path** - Defined as `SYSPATH` in `index.php`. The default value is `system`. All of the main or "core" files and classes are defined here. - -Files that are in directories higher up the include path order take precedence over files of the same name lower down the order, which makes it is possible to overload any file by placing a file with the same name in a "higher" directory: - -![Cascading Filesystem Infographic](cascading_filesystem.png) - -This image is only shows certain files, but we can use it to illustrate some examples of the cascading filesystem: - -* If Kohana catches an error, it would display the `kohana/error.php` view, So it would call `Kohana::find_file('views', 'kohana/error')`. This would return `application/views/kohana/error.php` because it takes precidence over `system/views/kohana/error.php`. By doing this we can change the error view without editing the system folder. - -* If we used `View::factory('welcome')` it would call `Kohana::find_file('views','welcome')` which would return `application/views/welcome.php` because it takes precidence over `modules/common/views/welcome.php`. By doing this, you can overwrite things in a module without editing the modules files. - -* If use the Cookie class, [Kohana::auto_load] will call `Kohana::find_file('classes', 'Cookie')` which will return `application/classes/Cookie.php`. Assuming Cookie extends Kohana_Cookie, the autoloader would then call `Kohana::find_file('classes','Kohana/Cookie')` which will return `system/classes/Kohana/Cookie.php` because that file does not exist anywhere higher in the cascade. This is an example of [transparent extension](extension). - -* If you used `View::factory('user')` it would call `Kohana::find_file('views','user')` which would return `modules/common/views/user.php`. - -* If we wanted to change something in `config/database.php` we could copy the file to `application/config/database.php` and make the changes there. Keep in mind that [config files are merged](files/config#merge) rather than overwritten by the cascade. - -## Types of Files - -The top level directories of the application, module, and system paths have the following default directories: - -classes/ -: All classes that you want to [autoload](autoloading) should be stored here. This includes [controllers](mvc/controllers), [models](mvc/models), and all other classes. All classes must follow the [class naming conventions](conventions#class-names-and-file-location) including matching the case of the class i.e. Kohana_Cookie should be stored in classes/Kohana/Cookie.php and not classes/kohana/cookie.php. - -config/ -: Configuration files return an associative array of options that can be loaded using [Kohana::$config]. Config files are merged rather than overwritten by the cascade. See [config files](files/config) for more information. - -i18n/ -: Translation files return an associative array of strings. Translation is done using the `__()` method. To translate "Hello, world!" into Spanish, you would call `__('Hello, world!')` with [I18n::$lang] set to "es-es". I18n files are merged rather than overwritten by the cascade. See [I18n files](files/i18n) for more information. - -messages/ -: Message files return an associative array of strings that can be loaded using [Kohana::message]. Messages and i18n files differ in that messages are not translated, but always written in the default language and referred to by a single key. Message files are merged rather than overwritten by the cascade. See [message files](files/messages) for more information. - -views/ -: Views are plain PHP files which are used to generate HTML or other output. The view file is loaded into a [View] object and assigned variables, which it then converts into an HTML fragment. Multiple views can be used within each other. See [views](mvc/views) for more information. - -*other* -: You can include any other folders in your cascading filesystem. Examples include, but are not limited to, `guide`, `vendor`, `media`, whatever you want. For example, to find `media/logo.png` in the cascading filesystem you would call `Kohana::find_file('media','logo','png')`. - -## Finding Files - -The path to any file within the filesystem can be found by calling [Kohana::find_file]: - - // Find the full path to "classes/Cookie.php" - $path = Kohana::find_file('classes', 'Cookie'); - - // Find the full path to "views/user/login.php" - $path = Kohana::find_file('views', 'user/login'); - -If the file doesn't have a `.php` extension, pass the extension as the third param. - - // Find the full path to "guide/menu.md" - $path = Kohana::find_file('guide', 'menu', 'md'); - - // If $name is "2000-01-01-first-post" this would look for "posts/2000-01-01-first-post.textile" - $path = Kohana::find_file('posts', $name, '.textile'); - - -## Vendor Extensions - -We call extensions or external libraries that are not specific to Kohana "vendor" extensions, and they go in the vendor folder, either in application or in a module. Because these libraries do not follow Kohana's file naming conventions, they cannot be autoloaded by Kohana, so you will have to manually included them. Some examples of vendor libraries are [Markdown](http://daringfireball.net/projects/markdown/), [DOMPDF](http://code.google.com/p/dompdf), [Mustache](http://github.com/bobthecow/mustache.php) and [Swiftmailer](http://swiftmailer.org/). - -For example, if you wanted to use [DOMPDF](http://code.google.com/p/dompdf), you would copy it to `application/vendor/dompdf` and include the DOMPDF autoloading class. It can be useful to do this in a controller's before method, as part of a module's init.php, or the contstructor of a singleton class. - - require Kohana::find_file('vendor', 'dompdf/dompdf/dompdf_config','inc'); - -Now you can use DOMPDF without loading any more files: - - $pdf = new DOMPDF; - -[!!] If you want to convert views into PDFs using DOMPDF, try the [PDFView](http://github.com/shadowhand/pdfview) module. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/files/classes.md b/includes/kohana/system/guide/kohana/files/classes.md deleted file mode 100644 index 0dabf285..00000000 --- a/includes/kohana/system/guide/kohana/files/classes.md +++ /dev/null @@ -1,41 +0,0 @@ -# Classes - -TODO: Brief intro to classes. - -[Models](mvc/models) and [Controllers](mvc/controllers) are classes as well, but are treated slightly differently by Kohana. Read their respective pages to learn more. - -## Helper or Library? - -Kohana 3 does not differentiate between "helper" classes and "library" classes like in previous versions. They are all placed in the `classes/` folder and follow the same conventions. The distinction is that in general, a "helper" class is used statically, (for examples see the [helpers included in Kohana](helpers)), and library classes are typically instantiated and used as objects (like the [Database query builders](../database/query/builder)). The distinction is not black and white, and is irrelevant anyways, since they are treated the same by Kohana. - -## Creating a class - -To create a new class, simply place a file in the `classes/` directory at any point in the [Cascading Filesystem](files), that follows the [Class naming conventions](conventions#class-names-and-file-location). For example, lets create a `Foobar` class. - - // classes/Foobar.php - - class Foobar { - static function magic() { - // Does something - } - } - -We can now call `Foobar::magic()` any where and Kohana will [autoload](autoloading) the file for us. - -We can also put classes in subdirectories. - - // classes/Professor/Baxter.php - - class Professor_Baxter { - static function teach() { - // Does something - } - } - -We could now call `Professor_Baxter::teach()` any where we want. - -For examples of how to create and use classes, simply look at the 'classes' folder in `system` or any module. - -## Namespacing your classes - -TODO: Discuss namespacing to provide transparent extension functionality in your own classes/modules. diff --git a/includes/kohana/system/guide/kohana/files/config.md b/includes/kohana/system/guide/kohana/files/config.md deleted file mode 100644 index 92484e66..00000000 --- a/includes/kohana/system/guide/kohana/files/config.md +++ /dev/null @@ -1,84 +0,0 @@ -# Config Files - -Configuration files are used to store any kind of configuration needed for a module, class, or anything else you want. They are plain PHP files, stored in the `config/` directory, which return an associative array: - - 'value', - 'options' => array( - 'foo' => 'bar', - ), - ); - -If the above configuration file was called `myconf.php`, you could access it using: - - $config = Kohana::$config->load('myconf'); - $options = $config->get('options') - -## Merge - -Configuration files are slightly different from most other files within the [cascading filesystem](files) in that they are **merged** rather than overloaded. This means that all configuration files with the same file path are combined to produce the final configuration. The end result is that you can overload *individual* settings rather than duplicating an entire file. - -For example, if we wanted to change or add to an entry in the inflector configuration file, we would not need to duplicate all the other entries from the default configuration file. - - // config/inflector.php - - array( - 'die' => 'dice', // does not exist in default config file - 'mouse' => 'mouses', // overrides 'mouse' => 'mice' in the default config file - ); - - -## Creating your own config files - -Let's say we want a config file to store and easily change things like the title of a website, or the google analytics code. We would create a config file, let's call it `site.php`: - - // config/site.php - - 'Our Shiny Website', - 'analytics' => FALSE, // analytics code goes here, set to FALSE to disable - ); - -We could now call `Kohana::$config->load('site.title')` to get the site name, and `Kohana::$config->load('site.analytics')` to get the analytics code. - -Let's say we want an archive of versions of some software. We could use config files to store each version, and include links to download, documentation, and issue tracking. - - // config/versions.php - - array( - 'codename' => 'Frog', - 'download' => 'files/ourapp-1.0.0.tar.gz', - 'documentation' => 'docs/1.0.0', - 'released' => '06/05/2009', - 'issues' => 'link/to/bug/tracker', - ), - '1.1.0' => array( - 'codename' => 'Lizard', - 'download' => 'files/ourapp-1.1.0.tar.gz', - 'documentation' => 'docs/1.1.0', - 'released' => '10/15/2009', - 'issues' => 'link/to/bug/tracker', - ), - /// ... etc ... - ); - -You could then do the following: - - // In your controller - $view->versions = Kohana::$config->load('versions'); - - // In your view: - foreach ($versions as $version) - { - // echo some html to display each version - } diff --git a/includes/kohana/system/guide/kohana/files/i18n.md b/includes/kohana/system/guide/kohana/files/i18n.md deleted file mode 100644 index 52efc811..00000000 --- a/includes/kohana/system/guide/kohana/files/i18n.md +++ /dev/null @@ -1,67 +0,0 @@ -# I18n - -Kohana has a fairly simple and easy to use i18n system. It is slightly modeled after gettext, but is not as featureful. If you need the features of gettext, please use that :) - -## __() - -Kohana has a __() function to do your translations for you. This function is only meant for small sections of text, not entire paragraphs or pages of translated text. - -To echo a translated string: - - - -This will echo 'Home' unless you've changed the defined language, which is explained below. - -## Changing the displayed language - -Use the I18n::lang() method to change the displayed language: - - I18n::lang('fr'); - -This will change the language to 'es-es'. - -## Defining language files - -To define the language file for the above language change, create a `i18n/fr.php` that contains: - - 'Bonjour, monde!', - ); - -Now when you do `__('Hello, world!')`, you will get `Bonjour, monde!` - -## I18n variables - -You can define variables in your __() calls like so: - - echo __('Hello, :user', array(':user' => $username)); - -Your i18n key in your translation file will need to be defined as: - - 'Bonjour, :user', - ); - -## Defining your own __() function - -You can define your own __() function by simply defining your own i18n class: - - 'Hello, world!', - ); - -You can also look in subfolders and sub-keys: - - Kohana::message('forms/contact', 'foobar.bar'); - -This will look in the `messages/forms/contact.php` for the `[foobar][bar]` key: - - array( - 'bar' => 'Hello, world!', - ), - ); - -## Notes - - * Don't use __() in your messages files, as these files can be cached and will not work properly. - * Messages are merged by the cascading file system, not overwritten like classes and views. diff --git a/includes/kohana/system/guide/kohana/flow.md b/includes/kohana/system/guide/kohana/flow.md deleted file mode 100644 index 81a2e54b..00000000 --- a/includes/kohana/system/guide/kohana/flow.md +++ /dev/null @@ -1,27 +0,0 @@ -# Request Flow - -Every application follows the same flow: - -1. Application starts from `index.php`. - 1. The application, module, and system paths are set. (`APPPATH`, `MODPATH`, and `SYSPATH`) - 2. Error reporting levels are set. - 3. Install file is loaded, if it exists. - 4. The bootstrap file, `APPPATH/bootstrap.php`, is included. -2. Once we are in `bootstrap.php`: - 6. The [Kohana] class is loaded. - 7. [Kohana::init] is called, which sets up error handling, caching, and logging. - 8. [Kohana_Config] readers and [Kohana_Log] writers are attached. - 9. [Kohana::modules] is called to enable additional modules. - * Module paths are added to the [cascading filesystem](files). - * Includes each module's `init.php` file, if it exists. - * The `init.php` file can perform additional environment setup, including adding routes. - 10. [Route::set] is called multiple times to define the [application routes](routing). - 11. [Request::instance] is called to start processing the request. - 1. Checks each route that has been set until a match is found. - 2. Creates the controller instance and passes the request to it. - 3. Calls the [Controller::before] method. - 4. Calls the controller action, which generates the request response. - 5. Calls the [Controller::after] method. - * The above 5 steps can be repeated multiple times when using [HMVC sub-requests](requests). -3. Application flow returns to index.php - 12. The main [Request] response is displayed \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/fragments.md b/includes/kohana/system/guide/kohana/fragments.md deleted file mode 100644 index fa4f0e31..00000000 --- a/includes/kohana/system/guide/kohana/fragments.md +++ /dev/null @@ -1,135 +0,0 @@ -# Fragments - -Fragments are a quick and simple way to cache HTML or other output. Fragments are not useful for caching objects or raw database results, in which case you should use a more robust caching method, which can be achieved with the [Cache module](../cache). Fragments use [Kohana::cache()] and will be placed in the cache directory (`application/cache` by default). - -You should use Fragment (or any caching solution) when reading the cache is faster than reprocessing the result. Reading and parsing a remote file, parsing a complicated template, calculating something, etc. - -Fragments are typically used in view files. - -## Usage - -Fragments are used by calling [Fragment::load()] in an `if` statement at the beginning of what you want cached, and [Fragment::save()] at the end. They use [output buffering](http://www.php.net/manual/en/function.ob-start.php) to capture the output between the two function calls. - -You can specify the lifetime (in seconds) of the Fragment using the second parameter of [Fragment::load()]. The default lifetime is 30 seconds. You can use the [Date] helper to make more readable times. - -Fragments will store a different cache for each language (using [I18n]) if you pass `true` as the third parameter to [Fragment::load()]; - -You can force the deletion of a Fragment using [Fragment::delete()], or specify a lifetime of 0. - -~~~ -// Cache for 5 minutes, and cache each language -if ( ! Fragment::load('foobar', Date::MINUTE * 5, true)) -{ - // Anything that is echo'ed here will be saved - Fragment::save(); -} -~~~ - -## Example: Calculating Pi - -In this example we will calculate pi to 1000 places, and cache the result using a fragment. The first time you run this it will probably take a few seconds, but subsequent loads will be much faster, until the fragment lifetime runs out. - -~~~ -if ( ! Fragment::load('pi1000', Date::HOUR * 4)) -{ - // Change function nesting limit - ini_set('xdebug.max_nesting_level',1000); - - // Source: http://mgccl.com/2007/01/22/php-calculate-pi-revisited - function bcfact($n) - { - return ($n == 0 || $n== 1) ? 1 : bcmul($n,bcfact($n-1)); - } - function bcpi($precision) - { - $num = 0;$k = 0; - bcscale($precision+3); - $limit = ($precision+3)/14; - while($k < $limit) - { - $num = bcadd($num, bcdiv(bcmul(bcadd('13591409',bcmul('545140134', $k)),bcmul(bcpow(-1, $k), bcfact(6*$k))),bcmul(bcmul(bcpow('640320',3*$k+1),bcsqrt('640320')), bcmul(bcfact(3*$k), bcpow(bcfact($k),3))))); - ++$k; - } - return bcdiv(1,(bcmul(12,($num))),$precision); - } - - echo bcpi(1000); - - Fragment::save(); -} - -echo View::factory('profiler/stats'); - -?> -~~~ - -## Example: Recent Wikipedia edits - -In this example we will use the [Feed] class to retrieve and parse an RSS feed of recent edits to [http://en.wikipedia.org](http://en.wikipedia.org), then use Fragment to cache the results. - -~~~ -$feed = "http://en.wikipedia.org/w/index.php?title=Special:RecentChanges&feed=rss"; -$limit = 50; - -// Displayed feeds are cached for 30 seconds (default) -if ( ! Fragment::load('rss:'.$feed)): - - // Parse the feed - $items = Feed::parse($feed, $limit); - - foreach ($items as $item): - - // Convert $item to object - $item = (object) $item; - - echo HTML::anchor($item->link,$item->title); - - ?> -
-

author: creator ?>

-

date: pubDate ?>

-
- Home page stuff

"; - - // Pretend like we are actually doing something :) - sleep(2); - - // Cache this every hour since it doesn't change as often - if ( ! Fragment::load('homepage-subfragment', Date::HOUR)): - - echo "

Home page special thingy

"; - - // Pretend like this takes a long time - sleep(5); - - Fragment::save(); endif; - - echo "

More home page stuff

"; - - Fragment::save(); - -endif; - -echo View::factory('profiler/stats'); -~~~ \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/helpers.md b/includes/kohana/system/guide/kohana/helpers.md deleted file mode 100644 index fb0559dd..00000000 --- a/includes/kohana/system/guide/kohana/helpers.md +++ /dev/null @@ -1,53 +0,0 @@ -# Helpers - -Kohana comes with many static "helper" functions to make certain tasks easier. - -You can make your own helpers by simply making a class and putting it in the `classes` directory, and you can also extend any helper to modify or add new functions using transparent extension. - - - **[Arr]** - Array functions. Get an array key or default to a set value, get an array key by path, etc. - - - **[CLI]** - Parse command line options. - - - **[Cookie]** - Covered in more detail on the [Cookies](cookies) page. - - - **[Date]** - Useful date functions and constants. Time between two dates, convert between am/pm and military, date offset, etc. - - - **[Encrypt]** - Covered in more detail on the [Security](security) page. - - - **[Feed]** - Parse and create RSS feeds. - - - **[File]** - Get file type by mime, split and merge a file into small pieces. - - - **[Form]** - Create HTML form elements. - - - **[Fragment]** - Simple file based caching. Covered in more detail on the [Fragments](fragments) page. - - - **[HTML]** - Useful HTML functions. Encode, obfuscate, create script, anchor, and image tags, etc. - - - **[I18n]** - Internationalization helper for creating multilanguage sites. - - - **[Inflector]** - Change a word into plural or singular form, camelize or humanize a phrase, etc. - - - **[Kohana]** - The Kohana class is also a helper. Debug variables (like print_r but better), file loading, etc. - - - **[Num]** - Provides locale aware formating and english ordinals (th, st, nd, etc). - - - **[Profiler]** - Covered in more detail on the [Profiling](profiling) page. - - - **[Remote]** - Remote server access helper using [CURL](http://php.net/curl). - - - **[Request]** - Get the current request url, create expire tags, send a file, get the user agent, etc. - - - **[Route]** - Create routes, create an internal link using a route. - - - **[Security]** - Covered in more detail on the [Security](security) page. - - - **[Session]** - Covered in more detail on the [Sessions](sessions) page. - - - **[Text]** - Autolink, prevent window words, convert a number to text, etc. - - - **[URL]** - Create a relative or absolute URL, make a URL-safe title, etc. - - - **[UTF8]** - Provides multi-byte aware string functions like strlen, strpos, substr, etc. - - - **[Upload]** - Helper for uploading files from a form. diff --git a/includes/kohana/system/guide/kohana/index.md b/includes/kohana/system/guide/kohana/index.md deleted file mode 100644 index 699a5c19..00000000 --- a/includes/kohana/system/guide/kohana/index.md +++ /dev/null @@ -1,19 +0,0 @@ -# What is Kohana? - -Kohana is an open source, [object oriented](http://en.wikipedia.org/wiki/Object-oriented_programming) [MVC](http://en.wikipedia.org/wiki/Model–view–controller "Model View Controller") [web framework](http://en.wikipedia.org/wiki/Web_application_framework) built using [PHP5](http://php.net/manual/intro-whatis "PHP Hypertext Preprocessor") by a team of volunteers that aims to be swift, secure, and small. - -[!!] Kohana is licensed under a [BSD license](http://kohanaframework.org/license), so you can legally use it for any kind of open source, commercial, or personal project. - -## What makes Kohana great? - -Anything can be extended using the unique [filesystem](files) design, little or no [configuration](config) is necessary, [error handling](errors) helps locate the source of errors quickly, and [debugging](debugging) and [profiling](profiling) provide insight into the application. - -To help secure your applications, tools for [input validation](security/validation), [signed cookies](security/cookies), [form] and [HTML] generators are all included. The [database](security/database) layer provides protection against [SQL injection](http://wikipedia.org/wiki/SQL_injection). Of course, all official code is carefully written and reviewed for security. - -## Contribute to the Documentation - -We are working very hard to provide complete documentation. To help improve the guide, please [fork the userguide](http://github.com/kohana/userguide), make your changes, and send a pull request. If you are not familiar with Git, you can also submit a [feature request](http://dev.kohanaframework.org/projects/kohana3/issues) (requires registration). - -## Unofficial Documentation - -If you are having trouble finding an answer here, have a look through the [unofficial wiki](http://kerkness.ca/kowiki/doku.php). Your answer may also be found by searching the [forum](http://forum.kohanaframework.org/) or [Stack Overflow](http://stackoverflow.com/questions/tagged/kohana) followed by asking your question on either. Additionally, you can chat with the community of developers on the freenode [#kohana](irc://irc.freenode.net/kohana) IRC channel. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/install.md b/includes/kohana/system/guide/kohana/install.md deleted file mode 100644 index 77b504d2..00000000 --- a/includes/kohana/system/guide/kohana/install.md +++ /dev/null @@ -1,45 +0,0 @@ -# Installation - -1. Download the latest **stable** release from the [Kohana website](http://kohanaframework.org/). -2. Unzip the downloaded package to create a `kohana` directory. -3. Upload the contents of this folder to your webserver. -4. Open `application/bootstrap.php` and make the following changes: - - Set the default [timezone](http://php.net/timezones) for your application. - - ~~~ - // Example of changing timezone from Chicago to Sao Paulo, Brazil - date_default_timezone_set('America/Sao_Paulo'); - ~~~ - - Set the `base_url` in the [Kohana::init] call to reflect the location of the kohana folder on your server relative to the document root. - - ~~~ - // Example of kohana's installation at /var/www/mywebsite and - // Apache's DocumentRoot configured to /var/www - Kohana::init(array( - 'base_url' => '/mywebsite', - )); - ~~~ -6. Make sure the `application/cache` and `application/logs` directories are writable by the web server. - - ~~~ - sudo chmod 777 -R application/cache - sudo chmod 777 -R application/logs - ~~~ - -7. Test your installation by opening the URL you set as the `base_url` in your favorite browser. - -[!!] Depending on your platform, the installation's subdirs may have lost their permissions thanks to zip extraction. Chmod them all to 755 by running `find . -type d -exec chmod 0755 {} \;` from the root of your Kohana installation. - -You should see the installation page. If it reports any errors, you will need to correct them before continuing. - -![Install Page](install.png "Example of install page") - -Once your install page reports that your environment is set up correctly you need to either rename or delete `install.php` in the root directory. Kohana is now installed and you should see the output of the welcome controller: - -![Welcome Page](welcome.png "Example of welcome page") - -## Installing Kohana From GitHub - -The [source code](http://github.com/kohana/kohana) for Kohana is hosted with [GitHub](http://github.com). To install Kohana using the github source code first you need to install [git](http://git-scm.com/). Visit [http://help.github.com](http://help.github.com) for details on how to install git on your platform. - -[!!] For more information on installing Kohana using git submodules, see the [Working with Git](tutorials/git) tutorial. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/menu.md b/includes/kohana/system/guide/kohana/menu.md deleted file mode 100644 index a1246237..00000000 --- a/includes/kohana/system/guide/kohana/menu.md +++ /dev/null @@ -1,49 +0,0 @@ -## [Kohana]() - -- Getting Started - - [Installation](install) - - [Conventions and Style](conventions) - - [Model View Controller](mvc) - - [Controllers](mvc/controllers) - - [Models](mvc/models) - - [Views](mvc/views) - - [Cascading Filesystem](files) - - [Class Files](files/classes) - - [Config Files](files/config) - - [Translation Files](files/i18n) - - [Message Files](files/messages) - - [Configuration](config) - - [Request Flow](flow) - - [Bootstrap](bootstrap) - - [Modules](modules) - - [Routing](routing) - - [Error Handling](errors) - - [Tips & Common Mistakes](tips) - - [Upgrading from v3.2](upgrading) -- Basic Usage - - [Debugging](debugging) - - [Loading Classes](autoloading) - - [Transparent Extension](extension) - - [Helpers](helpers) - - [Requests](requests) - - [Sessions](sessions) - - [Cookies](cookies) - - [Fragments](fragments) - - [Profiling](profiling) -- [Security](security) - - [XSS](security/xss) - - [Validation](security/validation) - - [Cookies](security/cookies) - - [Database](security/database) - - [Encryption](security/encryption) - - [Deploying](security/deploying) -- [Tutorials](tutorials) - - [Hello World](tutorials/hello-world) - - [Simple MVC](tutorials/simple-mvc) - - [Custom Error Pages](tutorials/error-pages) - - [Content Translation](tutorials/translation) - - [Clean URLs](tutorials/clean-urls) - - [Sharing Kohana](tutorials/sharing-kohana) - - [Kohana as a Library](tutorials/library-kohana) - - [Template Driven Site](tutorials/templates) - - [Working with Git](tutorials/git) diff --git a/includes/kohana/system/guide/kohana/modules.md b/includes/kohana/system/guide/kohana/modules.md deleted file mode 100644 index bc906c4e..00000000 --- a/includes/kohana/system/guide/kohana/modules.md +++ /dev/null @@ -1,40 +0,0 @@ -# Modules - -Modules are simply an addition to the [Cascading Filesystem](files). A module can add any kind of file (controllers, views, classes, config files, etc.) to the filesystem available to Kohana (via [Kohana::find_file]). This is useful to make any part of your application more transportable or shareable between different apps. For example, creating a new modeling system, a search engine, a css/js manager, etc. - -## Where to find modules - -Kolanos has created [kohana-universe](http://github.com/kolanos/kohana-universe/tree/master/modules/), a fairly comprehensive list of modules that are available on Github. To get your module listed there, send him a message via Github. - -Mon Geslani created a [very nice site](http://kohana.mongeslani.com/) that allows you to sort Github modules by activity, watchers, forks, etc. It seems to not be as comprehensive as kohana-universe. - -Andrew Hutchings has created [kohana-modules](http://www.kohana-modules.com) which is similar to the above sites. - -## Enabling modules - -Modules are enabled by calling [Kohana::modules] and passing an array of `'name' => 'path'`. The name isn't important, but the path obviously is. A module's path does not have to be in `MODPATH`, but usually is. You can only call [Kohana::modules] once. - - Kohana::modules(array( - 'auth' => MODPATH.'auth', // Basic authentication - 'cache' => MODPATH.'cache', // Caching with multiple backends - 'codebench' => MODPATH.'codebench', // Benchmarking tool - 'database' => MODPATH.'database', // Database access - 'image' => MODPATH.'image', // Image manipulation - 'orm' => MODPATH.'orm', // Object Relationship Mapping - 'oauth' => MODPATH.'oauth', // OAuth authentication - 'pagination' => MODPATH.'pagination', // Paging of results - 'unittest' => MODPATH.'unittest', // Unit testing - 'userguide' => MODPATH.'userguide', // User guide and API documentation - )); - -## Init.php - -When a module is activated, if an `init.php` file exists in that module's directory, it is included. This is the ideal place to have a module include routes or other initialization necessary for the module to function. The Userguide and Codebench modules have init.php files you can look at. - -## How modules work - -A file in an enabled module is virtually the same as having that exact file in the same place in the application folder. The main difference being that it can be overwritten by a file of the same name in a higher location (a module enabled after it, or the application folder) via the [Cascading Filesystem](files). It also provides an easy way to organize and share your code. - -## Creating your own module - -To create a module simply create a folder (usually in `DOCROOT/modules`) and place the files you want to be in the module there, and activate that module in your bootstrap. To share your module, you can upload it to [Github](http://github.com). You can look at examples of modules made by [Kohana](http://github.com/kohana) or [other users](#where-to-find-modules). \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/mvc.md b/includes/kohana/system/guide/kohana/mvc.md deleted file mode 100644 index d57b7512..00000000 --- a/includes/kohana/system/guide/kohana/mvc.md +++ /dev/null @@ -1,3 +0,0 @@ - - -Discuss the MVC pattern, as it pertains to Kohana. Perhaps have an image, etc. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/mvc/controllers.md b/includes/kohana/system/guide/kohana/mvc/controllers.md deleted file mode 100644 index 52b41815..00000000 --- a/includes/kohana/system/guide/kohana/mvc/controllers.md +++ /dev/null @@ -1,181 +0,0 @@ -# Controllers - -A Controller is a class file that stands in between the models and the views in an application. It passes information on to the model when data needs to be changed and it requests information from the model when data needs to be loaded. Controllers then pass on the information of the model to the views where the final output can be rendered for the users. Controllers essentially control the flow of the application. - -Controllers are called by the [Request::execute()] function based on the [Route] that the url matched. Be sure to read the [routing](routing) page to understand how to use routes to map urls to your controllers. - -## Creating Controllers - -In order to function, a controller must do the following: - -* Reside in `classes/Controller` (or a sub-directory) -* Filename must match the class name exactly, e.g. `Articles.php` -* The class name must map to the filename (with `/` replaced with `_`) and each word is capitalized -* Must have the Controller class as a (grand)parent - -Some examples of controller names and file locations: - - // classes/Controller/Foobar.php - class Controller_Foobar extends Controller { - - // classes/Controller/Admin.php - class Controller_Admin extends Controller { - -Controllers can be in sub-folders: - - // classes/Controller/Baz/Bar.php - class Controller_Baz_Bar extends Controller { - - // classes/Controller/Product/Category.php - class Controller_Product_Category extends Controller { - -[!!] Note that controllers in sub-folders can not be called by the default route, you will need to define a route that has a [directory](routing#directory) param or sets a default value for directory. - -Controllers can extend other controllers. - - // classes/Controller/Users.php - class Controller_Users extends Controller_Template - - // classes/Controller/Api.php - class Controller_Api extends Controller_REST - -[!!] [Controller_Template] is an example controller provided in Kohana. - -You can also have a controller extend another controller to share common things, such as requiring you to be logged in to use all of those controllers. - - // classes/Controller/Admin.php - class Controller_Admin extends Controller { - // This controller would have a before() that checks if the user is logged in - - // classes/Controller/Admin/Plugins.php - class Controller_Admin_Plugins extends Controller_Admin { - // Because this controller extends Controller_Admin, it would have the same logged in check - -## $this->request - -Every controller has the `$this->request` property which is the [Request] object that called the controller. You can use this to get information about the current request, as well as set the response body via `$this->response->body($ouput)`. - -Here is a partial list of the properties and methods available to `$this->request`. These can also be accessed via `Request::instance()`, but `$this->request` is provided as a shortcut. See the [Request] class for more information on any of these. - -Property/method | What it does ---- | --- -[$this->request->route()](../api/Request#property:route) | The [Route] that matched the current request url -[$this->request->directory()](../api/Request#property:directory),
[$this->request->controller](../api/Request#property:controller),
[$this->request->action](../api/Request#property:action) | The directory, controller and action that matched for the current route -[$this->request->param()](../api/Request#param) | Any other params defined in your route - -## $this->response -[$this->response->body()](../api/Response#property:body) | The content to return for this request -[$this->response->status()](../api/Response#property:status) | The HTTP status for the request (200, 404, 500, etc.) -[$this->response->headers()](../api/Response#property:headers) | The HTTP headers to return with the response - - -## Actions - -You create actions for your controller by defining a public function with an `action_` prefix. Any method that is not declared as `public` and prefixed with `action_` can NOT be called via routing. - -An action method will decide what should be done based on the current request, it *controls* the application. Did the user want to save a blog post? Did they provide the necessary fields? Do they have permission to do that? The controller will call other classes, including models, to accomplish this. Every action should set `$this->response->body($view)` to the [view file](mvc/views) to be sent to the browser, unless it redirected or otherwise ended the script earlier. - -A very basic action method that simply loads a [view](mvc/views) file. - - public function action_hello() - { - $this->response->body(View::factory('hello/world')); // This will load views/hello/world.php - } - -### Parameters - -Parameters are accessed by calling `$this->request->param('name')` where `name` is the name defined in the route. - - // Assuming Route::set('example','(/(/(/)))'); - - public function action_foobar() - { - $id = $this->request->param('id'); - $new = $this->request->param('new'); - -If that parameter is not set it will be returned as NULL. You can provide a second parameter to set a default value if that param is not set. - - public function action_foobar() - { - // $id will be false if it was not supplied in the url - $id = $this->request->param('user',FALSE); - -### Examples - -A view action for a product page. - - public function action_view() - { - $product = new Model_Product($this->request->param('id')); - - if ( ! $product->loaded()) - { - throw HTTP_Exception::factory(404, 'Product not found!'); - } - - $this->response->body(View::factory('product/view') - ->set('product', $product)); - } - -A user login action. - - public function action_login() - { - $view = View::factory('user/login'); - - if ($this->request->post()) - { - // Try to login - if (Auth::instance()->login($this->request->post('username'), $this->request->post('password'))) - { - $this->redirect('home', 302); - } - - $view->errors = 'Invalid email or password'; - } - - $this->response->body($view); - } - -## Before and after - -You can use the `before()` and `after()` functions to have code executed before or after the action is executed. For example, you could check if the user is logged in, set a template view, loading a required file, etc. - -For example, if you look in `Controller_Template` you can see that in the be - -You can check what action has been requested (via `$this->request->action`) and do something based on that, such as requiring the user to be logged in to use a controller, unless they are using the login action. - - // Checking auth/login in before, and redirecting if necessary: - - Controller_Admin extends Controller { - - public function before() - { - // If this user doesn't have the admin role, and is not trying to login, redirect to login - if ( ! Auth::instance()->logged_in('admin') AND $this->request->action !== 'login') - { - $this->redirect('admin/login', 302); - } - } - - public function action_login() { - ... - -### Custom __construct() function - -In general, you should not have to change the `__construct()` function, as anything you need for all actions can be done in `before()`. If you need to change the controller constructor, you must preserve the parameters or PHP will complain. This is so the Request object that called the controller is available. *Again, in most cases you should probably be using `before()`, and not changing the constructor*, but if you really, *really* need to it should look like this: - - // You should almost never need to do this, use before() instead! - - // Be sure Kohana_Request is in the params - public function __construct(Request $request, Response $response) - { - // You must call parent::__construct at some point in your function - parent::__construct($request, $response); - - // Do whatever else you want - } - -## Extending other controllers - -TODO: More description and examples of extending other controllers, multiple extension, etc. diff --git a/includes/kohana/system/guide/kohana/mvc/models.md b/includes/kohana/system/guide/kohana/mvc/models.md deleted file mode 100644 index bfcf2400..00000000 --- a/includes/kohana/system/guide/kohana/mvc/models.md +++ /dev/null @@ -1,35 +0,0 @@ -# Models - -From Wikipedia: - - > The model manages the behavior and data of the application domain, - > responds to requests for information about its state (usually from the view), - > and responds to instructions to change state (usually from the controller). - -Creating a simple model: - - class Model_Post extends Model - { - public function do_stuff() - { - // This is where you do domain logic... - } - } - -If you want database access, have your model extend the Model_Database class: - - class Model_Post extends Model_Database - { - public function do_stuff() - { - // This is where you do domain logic... - } - - public function get_stuff() - { - // Get stuff from the database: - return $this->db->query(...); - } - } - -If you want CRUD/ORM capabilities, see the [ORM Module](../../guide/orm) \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/mvc/views.md b/includes/kohana/system/guide/kohana/mvc/views.md deleted file mode 100644 index 4ff0543b..00000000 --- a/includes/kohana/system/guide/kohana/mvc/views.md +++ /dev/null @@ -1,153 +0,0 @@ -# Views - -Views are files that contain the display information for your application. This is most commonly HTML, CSS and Javascript but can be anything you require such as XML or JSON for AJAX output. The purpose of views is to keep this information separate from your application logic for easy reusability and cleaner code. - -Views themselves can contain code used for displaying the data you pass into them. For example, looping through an array of product information and display each one on a new table row. Views are still PHP files so you can use any code you normally would. However, you should try to keep your views as "dumb" as possible and retreive all data you need in your controllers, then pass it to the view. - -# Creating View Files - -View files are stored in the `views` directory of the [filesystem](files). You can also create sub-directories within the `views` directory to organize your files. All of the following examples are reasonable view files: - - APPPATH/views/home.php - APPPATH/views/pages/about.php - APPPATH/views/products/details.php - MODPATH/error/views/errors/404.php - MODPATH/common/views/template.php - -## Loading Views - -[View] objects will typically be created inside a [Controller](mvc/controllers) using the [View::factory] method. Typically the view is then assigned as the [Request::$response] property or to another view. - - public function action_about() - { - $this->response->body(View::factory('pages/about')); - } - -When a view is assigned as the [Response::body], as in the example above, it will automatically be rendered when necessary. To get the rendered result of a view you can call the [View::render] method or just type cast it to a string. When a view is rendered, the view file is loaded and HTML is generated. - - public function action_index() - { - $view = View::factory('pages/about'); - - // Render the view - $about_page = $view->render(); - - // Or just type cast it to a string - $about_page = (string) $view; - - $this->response->body($about_page); - } - -## Variables in Views - -Once view has been loaded, variables can be assigned to it using the [View::set] and [View::bind] methods. - - public function action_roadtrip() - { - $view = View::factory('user/roadtrip') - ->set('places', array('Rome', 'Paris', 'London', 'New York', 'Tokyo')); - ->bind('user', $this->user); - - // The view will have $places and $user variables - $this->response->body($view); - } - -[!!] The only difference between `set()` and `bind()` is that `bind()` assigns the variable by reference. If you `bind()` a variable before it has been defined, the variable will be created with a value of `NULL`. - -You can also assign variables directly to the View object. This is identical to calling `set()`; - - public function action_roadtrip() - { - $view = View::factory('user/roadtrip'); - - $view->places = array('Rome', 'Paris', 'London', 'New York', 'Tokyo'); - $view->user = $this->user; - - // The view will have $places and $user variables - $this->response->body($view); - } - -### Global Variables - -An application may have several view files that need access to the same variables. For example, to display a page title in both the header of your template and in the body of the page content. You can create variables that are accessible in any view using the [View::set_global] and [View::bind_global] methods. - - // Assign $page_title to all views - View::bind_global('page_title', $page_title); - -If the application has three views that are rendered for the home page: `template`, `template/sidebar`, and `pages/home`. First, an abstract controller to create the template will be created: - - abstract class Controller_Website extends Controller_Template { - - public $page_title; - - public function before() - { - parent::before(); - - // Make $page_title available to all views - View::bind_global('page_title', $this->page_title); - - // Load $sidebar into the template as a view - $this->template->sidebar = View::factory('template/sidebar'); - } - - } - -Next, the home controller will extend `Controller_Website`: - - class Controller_Home extends Controller_Website { - - public function action_index() - { - $this->page_title = 'Home'; - - $this->template->content = View::factory('pages/home'); - } - - } - -## Views Within Views - -If you want to include another view within a view, there are two choices. By calling [View::factory] you can sandbox the included view. This means that you will have to provide all of the variables to the view using [View::set] or [View::bind]: - - // In your view file: - - // Only the $user variable will be available in "views/user/login.php" - bind('user', $user) ?> - -The other option is to include the view directly, which makes all of the current variables available to the included view: - - // In your view file: - - // Any variable defined in this view will be included in "views/message.php" - - -You can also assign a variable of your parent view to be the child view from within your controller. For example: - - // In your controller: - - public functin action_index() - { - $view = View::factory('common/template); - - $view->title = "Some title"; - $view->body = View::factory('pages/foobar'); - } - - // In views/common/template.php: - - - - <?php echo $title> - - - - - - - -Of course, you can also load an entire [Request] within a view: - - execute() ?> - -This is an example of \[HMVC], which makes it possible to create and read calls to other URLs within your application. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/profiling.md b/includes/kohana/system/guide/kohana/profiling.md deleted file mode 100644 index e7303c82..00000000 --- a/includes/kohana/system/guide/kohana/profiling.md +++ /dev/null @@ -1,54 +0,0 @@ -# Profiling - -Kohana provides a very simple way to display statistics about your application: - -1. Common [Kohana] method calls, such as [Kohana::find_file()]. -2. Requests. Including the main request, as well as any sub-requests. -3. [Database] queries -4. Average execution times for your application - -[!!] In order for profiling to work, the `profile` setting must be `TRUE` in your [Kohana::init()] call in your bootstrap. - -## Profiling your code - -You can easily add profiling to your own functions and code. This is done using the [Profiler::start()] function. The first parameter is the group, the second parameter is the name of the benchmark. - - public function foobar($input) - { - // Be sure to only profile if it's enabled - if (Kohana::$profiling === TRUE) - { - // Start a new benchmark - $benchmark = Profiler::start('Your Category', __FUNCTION__); - } - - // Do some stuff - - if (isset($benchmark)) - { - // Stop the benchmark - Profiler::stop($benchmark); - } - - return $something; - } - -## How to read the profiling report - -The benchmarks are sorted into groups. Each benchmark will show its name, how many times it was run (show in parenthesis after the benchmark name), and then the min, max, average, and total time and memory spent on that benchmark. The total column will have shaded backgrounds to show the relative times between benchmarks in the same group. - -At the very end is a group called "Application Execution". This keeps track of how long each execution has taken. The number in parenthesis is how many executions are being compared. It shows the fastest, slowest, and average time and memory usage of the last several requsets. The last box is the time and memory usage of the current request. - -((This could use a picture of a profiler with some database queries, etc. with annotations to point out each area as just described.)) - -## Displaying the profiler - -You can display or collect the current [profiler] statistics at any time: - - - -## Preview - -(This is the actual profiler stats for this page.) - -{{profiler/stats}} \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/requests.md b/includes/kohana/system/guide/kohana/requests.md deleted file mode 100644 index eca76a6e..00000000 --- a/includes/kohana/system/guide/kohana/requests.md +++ /dev/null @@ -1,150 +0,0 @@ -# Requests - -Kohana includes a flexible HMVC request system. It supports out of the box support for internal requests and external requests. - -HMVC stands for `Hierarchical Model View Controller` and basically means requests can each have MVC triads called from inside each other. - -The Request object in Kohana is HTTP/1.1 compliant. - -## Creating Requests - -Creating a request is very easy: - -### Internal Requests - -An internal request is a request calling to the internal application. It utilizes [routes](routing) to direct the application based on the URI that is passed to it. A basic internal request might look something like: - - $request = Request::factory('welcome'); - -In this example, the URI is 'welcome'. - -#### The initial request - -Since Kohana uses HMVC, you can call many requests inside each other. The first request (usually called from `index.php`) is called the "initial request". You can access this request via: - - Request::initial(); - -You should only use this method if you are absolutely sure you want the initial request. Otherwise you should use the `Request::current()` method. - -#### Sub-requests - -You can call a request at any time in your application by using the `Request::factory()` syntax. All of these requests will be considered sub-requests. - -Other than this difference, they are exactly the same. You can detect if the request is a sub-request in your controller with the is_initial() method: - - $sub_request = ! $this->request->is_initial() - -### External Requests - -An external request calls out to a third party website. - -You can use this to scrape HTML from a remote site, or make a REST call to a third party API: - - // This uses GET - $request = Request::factory('http://www.google.com/'); - - // This uses PUT - $request = Request::factory('http://example.com/put_api')->method(Request::PUT)->body(json_encode('the body'))->headers('Content-Type', 'application/json'); - - // This uses POST - $request = Request::factory('http://example.com/post_api')->method(Request::POST)->post(array('foo' => 'bar', 'bar' => 'baz')); - -## Executing Requests - -To execute a request, use the `execute()` method on it. This will give you a [response](responses) object. - - $request = Request::factory('welcome'); - $response = $request->execute(); - -### Header callbacks -The request client supports header callbacks - an array of callbacks that will be triggered when a specified header is included in the response from a server. Header callbacks provide a powerful way to deal with scenarios including authentication, rate limiting, redirects and other application-specific use cases: - - $request = Request::factory('http://example.com/user', array( - 'header_callbacks' => array( - 'Content-Encoding' => - function (Request $request, Response $response, Request_Client $client) - { - // Uncompress the response - $response->body(GZIP::expand($response->body())); - }, - 'X-Rate-Limited' => - function (Request $request, Response $response, Request_Client $client) - { - // Log the rate limit event - // And perhaps set a deadlock in cache to prevent further requests - }, - 'WWW-Authenticate' => - function (Request $request, Response $response, Request_Client $client) - { - // Execute a request to refresh your OAuth token somehow - // Have the original request resent - return Request::factory($request->uri()) - ->query($request->query()) - ->headers('Authorization', 'token'.$token); - })); - -Where multiple headers are present in the response, callbacks will be executed in sequence. Callbacks can be any valid PHP callback type and have three possible return types: - -Type | Function -------------------|--------- -[Request] object | If a new request is returned, the request client will automatically assign properties, callbacks etc to match the original request and then execute the request. No further callbacks will be triggered for the original request, but the new request may trigger callbacks when executed. -[Response] object | If the callback returns a new response instance it will be returned to the application. No further callbacks will be triggered for the original request. The callback is responsible for setting any relevant callbacks and properties for the request it executes -NULL | The callback can, if required, modify the provided Response object and return NULL. The modified response object will be passed into subsequent callbacks. - -#### Nested requests -If your callback returns a new Request object, the request client will apply the same callback and property definitions to it before execution. This allows for nested requests - for example, you might need to re-authenticate before submitting a POST request and then being redirected to a new location. To avoid infinite recursion and fatal errors, the request client keeps track of the number of subrequests and will throw a [Request_Client_Recursion_Exception] if the recursion gets too deep. This behaviour is controlled by two properties: [Request_Client::callback_depth()] and [Request_Client::max_callback_depth()]. The default limit is 5 subrequests. - -If your callback executes a new request itself and returns the response, it is responsible for dealing with any callbacks and request nesting itself. You may find the [Request_Client::assign_client_properties()] method useful in this case. - -#### Callback parameters -Arbitrary parameters can be passed to the callbacks through the [Request_Client::callback_params()] property: - - $request = Request::factory('http://example.com/foo', array( - 'header_callbacks' => array( - 'X-Custom-1' => - function (Request $request, Response $response, Request_Client $client) - { - // Do something that needs an external parameter - if ($client->callback_params('foo') == 'bar') - { - // etc - } - }, - ) - 'callback_params' => array( - 'foo' => 'bar' - ) - )); - - // later on - $request->client()->callback_params('foo',FALSE); - -As with nested requests, callback_params will automatically be passed to subrequests if the callback returns a new Request object. If the callback returns a Response object, it is responsible for passing on any relevant parameters. - -#### Following redirects -The request client ships with a standard callback to automatically follow redirects - [Request_Client::on_header_location()]. This will recursively follow redirects that are specified with a Location header and a status code in 201, 301, 302, 303, 307. This behaviour is disabled by default, but can be enabled by passing a set of options to the Request's constructor: - - $request = Request::factory('http://example.com/redirectme', array( - 'follow' => TRUE)); - -[!!] If you define additional header callbacks of your own, you will need to include the 'Location' callback in your callbacks array. - -A number of options are available to control the behaviour of the [Request_Client] when following redirects. - -Option |Default |Function ------------------|------------------------|--------- -follow | FALSE |Whether to follow redirects -follow_headers | array('Authorization') |The keys of headers that will be re-sent with the redirected request -strict_redirect | TRUE |Whether to use the original request method following to a 302 redirect (see below) - -[!!] HTTP/1.1 specifies that a 302 redirect should be followed using the original request method. However, the vast majority of clients and servers get this wrong, with 302 widely used for 'POST - 302 redirect - GET' patterns. By default, Kohana's client is fully compliant with the HTTP spec. If you need to interact with non-compliant third party sites you may need to set strict_redirect FALSE to force the client to switch to GET following a 302 response. - -You can easily alter this behaviour by configuring your own 'Location' header callback. - -## Request Cache Control - -You can cache requests for fast execution by passing a cache instance in as the second parameter of factory: - - $request = Request::factory('welcome', array('cache'=>Cache::instance())); - -TODO diff --git a/includes/kohana/system/guide/kohana/routing.md b/includes/kohana/system/guide/kohana/routing.md deleted file mode 100644 index 379c76d7..00000000 --- a/includes/kohana/system/guide/kohana/routing.md +++ /dev/null @@ -1,257 +0,0 @@ -# Routing - -Kohana provides a very powerful routing system. In essence, routes provide an interface between the urls and your controllers and actions. With the correct routes you could make almost any url scheme correspond to almost any arrangement of controllers, and you could change one without impacting the other. - -As mentioned in the [Request Flow](flow) section, a request is handled by the [Request] class, which will look for a matching [Route] and load the appropriate controller to handle that request. - -[!!] It is important to understand that **routes are matched in the order they are added**, and as soon as a URL matches a route, routing is essentially "stopped" and *the remaining routes are never tried*. Because the default route matches almost anything, including an empty url, new routes must be place before it. - -## Creating routes - -If you look in `APPPATH/bootstrap.php` you will see the "default" route as follows: - - Route::set('default', '((/(/)))') - ->defaults(array( - 'controller' => 'Welcome', - 'action' => 'index', - )); - -[!!] The default route is simply provided as a sample, you can remove it and replace it with your own routes. - -So this creates a route with the name `default` that will match urls in the format of `((/(/)))`. - -Let's take a closer look at each of the parameters of [Route::set], which are `name`, `uri`, and an optional array `regex`. - -### Name - -The name of the route must be a **unique** string. If it is not it will overwrite the older route with the same name. The name is used for creating urls by reverse routing, or checking which route was matched. - -### URI - -The uri is a string that represents the format of urls that should be matched. The tokens surrounded with `<>` are *keys* and anything surrounded with `()` are *optional* parts of the uri. In Kohana routes, any character is allowed and treated literally aside from `()<>`. The `/` has no meaning besides being a character that must match in the uri. Usually the `/` is used as a static seperator but as long as the regex makes sense, there are no restrictions to how you can format your routes. - -Lets look at the default route again, the uri is `((/(/)))`. We have three keys or params: controller, action, and id. In this case, the entire uri is optional, so a blank uri would match and the default controller and action (set by defaults(), [covered below](#defaults)) would be assumed resulting in the `Controller_Welcome` class being loaded and the `action_index` method being called to handle the request. - -You can use any name you want for your keys, but the following keys have special meaning to the [Request] object, and will influence which controller and action are called: - - * **Directory** - The sub-directory of `classes/Controller` to look for the controller (\[covered below]\(#directory)) - * **Controller** - The controller that the request should execute. - * **Action** - The action method to call. - -### Regex - -The Kohana route system uses [perl compatible regular expressions](http://perldoc.perl.org/perlre.html) in its matching process. By default each key (surrounded by `<>`) will match `[^/.,;?\n]++` (or in english: anything that is not a slash, period, comma, semicolon, question mark, or newline). You can define your own patterns for each key by passing an associative array of keys and patterns as an additional third argument to Route::set. - -In this example, we have controllers in two directories, `admin` and `affiliate`. Because this route will only match urls that begin with `admin` or `affiliate`, the default route would still work for controllers in `classes/Controller`. - - Route::set('sections', '(/(/(/)))', - array( - 'directory' => '(admin|affiliate)' - )) - ->defaults(array( - 'controller' => 'Home', - 'action' => 'index', - )); - -You can also use a less restrictive regex to match unlimited parameters, or to ignore overflow in a route. In this example, the url `foobar/baz/and-anything/else_that/is-on-the/url` would be routed to `Controller_Foobar::action_baz()` and the `"stuff"` parameter would be `"and-anything/else_that/is-on-the/url"`. If you wanted to use this for unlimited parameters, you could [explode](http://php.net/manual/en/function.explode.php) it, or you just ignore the overflow. - - Route::set('default', '((/(/)))', array('stuff' => '.*')) - ->defaults(array( - 'controller' => 'Welcome', - 'action' => 'index', - )); - - -### Default values - -If a key in a route is optional (or not present in the route), you can provide a default value for that key by passing an associated array of keys and default values to [Route::defaults], chained after your [Route::set]. This can be useful to provide a default controller or action for your site, among other things. - -[!!] The `controller` and `action` key must always have a value, so they either need to be required in your route (not inside of parentheses) or have a default value provided. - -[!!] Kohana automatically converts controllers to follow the standard naming convention. For example /blog/view/123 would look for the controller Controller_Blog in classes/Controller/Blog.php and trigger the action_view() method on it. - -In the default route, all the keys are optional, and the controller and action are given a default. If we called an empty url, the defaults would fill in and `Controller_Welcome::action_index()` would be called. If we called `foobar` then only the default for action would be used, so it would call `Controller_Foobar::action_index()` and finally, if we called `foobar/baz` then neither default would be used and `Controller_Foobar::action_baz()` would be called. - -TODO: need an example here - -You can also use defaults to set a key that isn't in the route at all. - -TODO: example of either using directory or controller where it isn't in the route, but set by defaults - -### Directory - -## Route Filters - -In 3.3, you can specify advanced routing schemes by using filter callbacks. When you need to match a route based on more than just the URI of a request, for example, based on the method request (GET/POST/DELETE), a filter will allow you to do so. These filters will receive the `Route` object being tested, the currently matched `$params` array, and the `Request` object as the three parameters. Here's a simple example: - - Route::set('save-form', 'save') - ->filter(function($route, $params, $request) - { - if ($request->method() !== HTTP_Request::POST) - { - return FALSE; // This route only matches POST requests - } - }); - -Filters can also replace or alter the array of parameters: - - Route::set('rest-api', 'api/') - ->filter(function($route, $params, $request) - { - // Prefix the method to the action name - $params['action'] = strtolower($request->method()).'_'.$params['action']; - return $params; // Returning an array will replace the parameters - }) - ->defaults(array( - 'controller' => 'api', - )); - -If you are using php 5.2, you can still use any valid callback for this behavior: - - Route::set('testing', 'foo') - ->filter(array('Class', 'method_to_process_my_uri')); - -## Examples - -There are countless other possibilities for routes. Here are some more examples: - - /* - * Authentication shortcuts - */ - Route::set('auth', '', - array( - 'action' => '(login|logout)' - )) - ->defaults(array( - 'controller' => 'Auth' - )); - - /* - * Multi-format feeds - * 452346/comments.rss - * 5373.json - */ - Route::set('feeds', '(/).', - array( - 'user_id' => '\d+', - 'format' => '(rss|atom|json)', - )) - ->defaults(array( - 'controller' => 'Feeds', - 'action' => 'status', - )); - - /* - * Static pages - */ - Route::set('static', '.html', - array( - 'path' => '[a-zA-Z0-9_/]+', - )) - ->defaults(array( - 'controller' => 'Static', - 'action' => 'index', - )); - - /* - * You don't like slashes? - * EditGallery:bahamas - * Watch:wakeboarding - */ - Route::set('gallery', '():', - array( - 'controller' => '[A-Z][a-z]++', - 'action' => '[A-Z][a-z]++', - )) - ->defaults(array( - 'controller' => 'Slideshow', - )); - - /* - * Quick search - */ - Route::set('search', ':', array('query' => '.*')) - ->defaults(array( - 'controller' => 'Search', - 'action' => 'index', - )); - -## Request parameters - -The `directory`, `controller` and `action` can be accessed from the [Request] as public properties like so: - - // From within a controller: - $this->request->action(); - $this->request->controller(); - $this->request->directory(); - - // Can be used anywhere: - Request::current()->action(); - Request::current()->controller(); - Request::current()->directory(); - -All other keys specified in a route can be accessed via [Request::param()]: - - // From within a controller: - $this->request->param('key_name'); - - // Can be used anywhere: - Request::current()->param('key_name'); - -The [Request::param] method takes an optional second argument to specify a default return value in case the key is not set by the route. If no arguments are given, all keys are returned as an associative array. In addition, `action`, `controller` and `directory` are not accessible via [Request::param()]. - -For example, with the following route: - - Route::set('ads','ad/(/)') - ->defaults(array( - 'controller' => 'ads', - 'action' => 'index', - )); - -If a url matches the route, then `Controller_Ads::index()` will be called. You can access the parameters by using the `param()` method of the controller's [Request]. Remember to define a default value (via the second, optional parameter of [Request::param]) if you didn't in `->defaults()`. - - class Controller_Ads extends Controller { - public function action_index() - { - $ad = $this->request->param('ad'); - $affiliate = $this->request->param('affiliate',NULL); - } - - -## Where should routes be defined? - -The established convention is to either place your custom routes in the `MODPATH//init.php` file of your module if the routes belong to a module, or simply insert them into the `APPPATH/bootstrap.php` file (be sure to put them **above** the default route) if they are specific to the application. Of course, nothing stops you from including them from an external file, or even generating them dynamically. - -## A deeper look at how routes work - -TODO: talk about how routes are compiled - -## Creating URLs and links using routes - -Along with Kohana's powerful routing capabilities are included some methods for generating URLs for your routes' uris. You can always specify your uris as a string using [URL::site] to create a full URL like so: - - URL::site('admin/edit/user/'.$user_id); - -However, Kohana also provides a method to generate the uri from the route's definition. This is extremely useful if your routing could ever change since it would relieve you from having to go back through your code and change everywhere that you specified a uri as a string. Here is an example of dynamic generation that corresponds to the `feeds` route example from above: - - Route::get('feeds')->uri(array( - 'user_id' => $user_id, - 'action' => 'comments', - 'format' => 'rss' - )); - -Let's say you decided later to make that route definition more verbose by changing it to `feeds/(/).`. If you wrote your code with the above uri generation method you wouldn't have to change a single line! When a part of the uri is enclosed in parentheses and specifies a key for which there in no value provided for uri generation and no default value specified in the route, then that part will be removed from the uri. An example of this is the `(/)` part of the default route; this will not be included in the generated uri if an id is not provided. - -One method you might use frequently is the shortcut [Request::uri] which is the same as the above except it assumes the current route, directory, controller and action. If our current route is the default and the uri was `users/list`, we can do the following to generate uris in the format `users/view/$id`: - - $this->request->uri(array('action' => 'view', 'id' => $user_id)); - -Or if within a view, the preferable method is: - - Request::instance()->uri(array('action' => 'view', 'id' => $user_id)); - -TODO: examples of using html::anchor in addition to the above examples - -## Testing routes - -TODO: mention bluehawk's devtools module \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/security.md b/includes/kohana/system/guide/kohana/security.md deleted file mode 100644 index 2f90a04b..00000000 --- a/includes/kohana/system/guide/kohana/security.md +++ /dev/null @@ -1 +0,0 @@ -General security concerns, like using the Security class, CSRF, and a brief intro to XSS, database security, etc. Also mention the security features that Kohana provides, like cleaning globals. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/security/cookies.md b/includes/kohana/system/guide/kohana/security/cookies.md deleted file mode 100644 index 3966f6c1..00000000 --- a/includes/kohana/system/guide/kohana/security/cookies.md +++ /dev/null @@ -1,3 +0,0 @@ -Discuss security of cookies, like changing the encryption key in the config. - -Not sure why I'm linking to this: \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/security/database.md b/includes/kohana/system/guide/kohana/security/database.md deleted file mode 100644 index e6190b7b..00000000 --- a/includes/kohana/system/guide/kohana/security/database.md +++ /dev/null @@ -1,5 +0,0 @@ -Discuss database security. - -How to avoid injection, etc. - -Not sure why I'm linking to this: \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/security/deploying.md b/includes/kohana/system/guide/kohana/security/deploying.md deleted file mode 100644 index 432e29f2..00000000 --- a/includes/kohana/system/guide/kohana/security/deploying.md +++ /dev/null @@ -1,31 +0,0 @@ -Changes that should happen when you deploy. (Production) - -Security settings from: - - - - -## Setting up a production environment - -There are a few things you'll want to do with your application before moving into production. - -1. See the [Bootstrap page](bootstrap) in the docs. - This covers most of the global settings that would change between environments. - As a general rule, you should enable caching and disable profiling ([Kohana::init] settings) for production sites. - [Route::cache] can also help if you have a lot of routes. -2. Turn on APC or some kind of opcode caching. - This is the single easiest performance boost you can make to PHP itself. The more complex your application, the bigger the benefit of using opcode caching. - - /** - * Set the environment string by the domain (defaults to Kohana::DEVELOPMENT). - */ - Kohana::$environment = ($_SERVER['SERVER_NAME'] !== 'localhost') ? Kohana::PRODUCTION : Kohana::DEVELOPMENT; - /** - * Initialise Kohana based on environment - */ - Kohana::init(array( - 'base_url' => '/', - 'index_file' => FALSE, - 'profile' => Kohana::$environment !== Kohana::PRODUCTION, - 'caching' => Kohana::$environment === Kohana::PRODUCTION, - )); diff --git a/includes/kohana/system/guide/kohana/security/encryption.md b/includes/kohana/system/guide/kohana/security/encryption.md deleted file mode 100644 index 2d9252fe..00000000 --- a/includes/kohana/system/guide/kohana/security/encryption.md +++ /dev/null @@ -1,107 +0,0 @@ -# Encryption - -Kohana supports built-in encryption and decryption via the [Encrypt] class, which is a convenient wrapper for the [Mcrypt library](http://www.php.net/mcrypt). - -To use the class, first start by ensuring you have the Mcrypt extension loaded to your PHP config. See the [Mcrypt Installation page](http://www.php.net/manual/en/mcrypt.installation.php) on php.net. The Mcrypt extension requires [libmcrypt](http://sourceforge.net/projects/mcrypt/files/). - -Next, copy the default config/encryption.php from system/config folder to your application/config folder. - -The default Encryption config file that ships with Kohana 3.2.x looks like this: - - array( - /** - * The following options must be set: - * - * string key secret passphrase - * integer mode encryption mode, one of MCRYPT_MODE_* - * integer cipher encryption cipher, one of the Mcrpyt cipher constants - */ - 'cipher' => MCRYPT_RIJNDAEL_128, - 'mode' => MCRYPT_MODE_NOFB, - ), - - ); - - -A couple of notes about the config. -First, you may have multiple first-level keys other than 'default' if you need to. -In this respect, the config file is similar to having multiple databases defined in your config/database.php file. -Second, notice there is no key provided. You need to add that. -It is strongly recommended that you choose a high-strength random key using the [pwgen linux program](http://linux.die.net/man/1/pwgen)... - - shell> pwgen 63 1 - trwQwVXX96TIJoKxyBHB9AJkwAOHixuV1ENZmIWyanI0j1zNgSVvqywy044Agaj - -...or by going to [GRC.com/passwords.htm](https://www.grc.com/passwords.htm). - -## Complete Config Example - -Here's a sample encryption configuration with three types of encryption defined. **If you copy this example, please change your keys!** - - array( - 'key' => 'trwQwVXX96TIJoKxyBHB9AJkwAOHixuV1ENZmIWyanI0j1zNgSVvqywy044Agaj', - 'cipher' => MCRYPT_RIJNDAEL_128, - 'mode' => MCRYPT_MODE_NOFB, - ), - 'blowfish' => array( - 'key' => '7bZJJkmNrelj5NaKoY6h6rMSRSmeUlJuTeOd5HHka5XknyMX4uGSfeVolTz4IYy', - 'cipher' => MCRYPT_BLOWFISH, - 'mode' => MCRYPT_MODE_ECB, - ), - 'tripledes' => array( - 'key' => 'a9hcSLRvA3LkFc7EJgxXIKQuz1ec91J7P6WNq1IaxMZp4CTj5m31gZLARLxI1jD', - 'cipher' => MCRYPT_3DES, - 'mode' => MCRYPT_MODE_CBC, - ), - ); - -You can view the available encryption ciphers and modes on your system by running... - - shell> php -r "print_r(get_defined_constants());" | grep MCRYPT - -For more information on Mcrypt ciphers, visit [php.net/mcrypt.ciphers](http://us3.php.net/manual/en/mcrypt.ciphers.php). - -## Basic Usage - -### Create an instance - -To use the Encryption class, obtain an instance of the Encrypt class by calling it's *instance* method, -optionally passing the desired configuration group. If you do not pass a config group to the instance method, -the default group will be used. - - $encrypt = Encrypt::instance('tripledes'); - -### Encoding Data - -Next, encode some data using the *encode* method: - - $encrypt = Encrypt::instance('tripledes'); - $encrypted_data = $encrypt->encode('Data to Encode'); - // $encrypted_data now contains pCD5Z6oVdb9hbLxxV+FgGrhwVzZuhQoH - -[!!] Raw encrypted strings usually won't print in a browser, and may not store properly in a VARCHAR or TEXT field. For this reason, Kohana's Encrypt class automatically calls base64_encode on encode, and base64_decode on decode, to prevent this problem. - -[!!] One word of caution. The length of the encoded data expands quite a bit, so be sure your database column is long enough to store the encrypted data. If even one character is truncated, the data will not be recoverable. - -### Decoding Data - -To decode some data, load it from the place you stored it (most likely your database) then pass it to the *decode* method: - - $encrypt = Encrypt::instance('tripledes'); - $decoded_string = $encrypt->decode($encrypted_data); - echo $decoded_string; - // prints 'Data to Encode' - -You can't know in advance what the encoded string will be, and it's not reproducible, either. -That is, you can encode the same value over and over, but you'll always obtain a different encoded version, -even without changing your key, cipher and mode. This is because Kohana adds some random entropy before encoding it with your value. -This ensures an attacker cannot easily discover your key and cipher, even given a collection of encoded values. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/security/validation.md b/includes/kohana/system/guide/kohana/security/validation.md deleted file mode 100644 index af67f229..00000000 --- a/includes/kohana/system/guide/kohana/security/validation.md +++ /dev/null @@ -1,266 +0,0 @@ -# Validation - -*This page needs to be reviewed for accuracy by the development team. Better examples would be helpful.* - -Validation can be performed on any array using the [Validation] class. Labels and rules can be attached to a Validation object by the array key, called a "field name". - -labels -: A label is a human-readable version of the field name. - -rules -: A rule is a callback or closure used to decide whether or not to add an error to a field - -[!!] Note that any valid [PHP callback](http://php.net/manual/language.pseudo-types.php#language.types.callback) can be used as a rule. - -Using `TRUE` as the field name when adding a rule will be applied to all named fields. - -Creating a validation object is done using the [Validation::factory] method: - - $object = Validation::factory($array); - -[!!] The `$object` object will be used for the rest of this tutorial. This tutorial will show you how to validate the registration of a new user. - -## Provided Rules - -Kohana provides a set of useful rules in the [Valid] class: - -Rule name | Function -------------------------- |------------------------------------------------- -[Valid::not_empty] | Value must be a non-empty value -[Valid::regex] | Match the value against a regular expression -[Valid::min_length] | Minimum number of characters for value -[Valid::max_length] | Maximum number of characters for value -[Valid::exact_length] | Value must be an exact number of characters -[Valid::email] | An email address is required -[Valid::email_domain] | Check that the domain of the email exists -[Valid::url] | Value must be a URL -[Valid::ip] | Value must be an IP address -[Valid::phone] | Value must be a phone number -[Valid::credit_card] | Require a credit card number -[Valid::date] | Value must be a date (and time) -[Valid::alpha] | Only alpha characters allowed -[Valid::alpha_dash] | Only alpha and hyphens allowed -[Valid::alpha_numeric] | Only alpha and numbers allowed -[Valid::digit] | Value must be an integer digit -[Valid::decimal] | Value must be a decimal or float value -[Valid::numeric] | Only numeric characters allowed -[Valid::range] | Value must be within a range -[Valid::color] | Value must be a valid HEX color -[Valid::matches] | Value matches another field value - -## Adding Rules - -All validation rules are defined as a field name, a method, a function (using the [PHP callback](http://php.net/callback) syntax) or [closure](http://php.net/manual/functions.anonymous.php), and an array of parameters: - - $object->rule($field, $callback, array($parameter1, $parameter2)); - -If no parameters are specified, the field value will be passed to the callback. The following two rules are equivalent: - - $object->rule($field, 'not_empty'); - $object->rule($field, 'not_empty', array(':value')); - -Rules defined in the [Valid] class can be added by using the method name alone. The following three rules are equivalent: - - $object->rule('number', 'phone'); - $object->rule('number', array('Valid', 'phone')); - $object->rule('number', 'Valid::phone'); - -### Adding Rules for multiple fields together - -To validate multiple fields together, you can do something like this: - - $object->rule('one', 'only_one', array(':validation', array('one', 'two'))); - $object->rule('two', 'only_one', array(':validation', array('one', 'two'))); - - public function only_one($validation, $fields) - { - // If more than 1 field is set, bail. - $matched = 0; - - foreach ($fields as $field) - { - if (isset($validation[$field])) - { - $matched++; - } - } - - if ($matched > 0) - { - // Add the error to all concerned fields - foreach ($fields as $field) - { - $validation->error($field, 'only_one'); - } - } - } - -## Binding Variables - -The [Validation] class allows you to bind variables to certain strings so that they can be used when defining rules. Variables are bound by calling the [Validation::bind] method. - - $object->bind(':model', $user_model); - // Future code will be able to use :model to reference the object - $object->rule('username', 'some_rule', array(':model')); - -By default, the validation object will automatically bind the following values for you to use as rule parameters: - -- `:validation` - references the validation object -- `:field` - references the field name the rule is for -- `:value` - references the value of the field the rule is for - -## Adding Errors - -The [Validation] class will add an error for a field if any of the rules associated to it return `FALSE`. This allows many built in PHP functions to be used as rules, like `in_array`. - - $object->rule('color', 'in_array', array(':value', array('red', 'green', 'blue'))); - -Rules added to empty fields will run, but returning `FALSE` will not automatically add an error for the field. In order for a rule to affect empty fields, you must add the error manually by calling the [Validation::error] method. In order to do this, you must pass the validation object to the rule. - - $object->rule($field, 'the_rule', array(':validation', ':field')); - - public function the_rule($validation, $field) - { - if (something went wrong) - { - $validation->error($field, 'the_rule'); - } - } - -[!!] `not_empty` and `matches` are the only rules that will run on empty fields and add errors by returning `FALSE`. - -## Example - -To start our example, we will perform validation on the HTTP POST data of the current request that contains user registration information: - -[!!] In Kohana controllers, we access `$this->request->post()` instead of `$_POST` for better request isolation. - - $object = Validation::factory($this->request->post()); - -Next we need to process the POST'ed information using [Validation]. To start, we need to add some rules: - - $object - ->rule('username', 'not_empty') - ->rule('username', 'regex', array(':value', '/^[a-z_.]++$/iD')) - ->rule('password', 'not_empty') - ->rule('password', 'min_length', array(':value', '6')) - ->rule('confirm', 'matches', array(':validation', 'confirm', 'password')) - ->rule('use_ssl', 'not_empty'); - -Any existing PHP function can also be used a rule. For instance, if we want to check if the user entered a proper value for the SSL question: - - $object->rule('use_ssl', 'in_array', array(':value', array('yes', 'no'))); - -Note that all array parameters must still be wrapped in an array! Without the wrapping array, `in_array` would be called as `in_array($value, 'yes', 'no')`, which would result in a PHP error. - -Any custom rules can be added using a [PHP callback](http://php.net/manual/language.pseudo-types.php#language.types.callback]: - - $object->rule('username', 'User_Model::unique_username'); - -The method `User_Model::unique_username()` would be defined similar to: - - public static function unique_username($username) - { - // Check if the username already exists in the database - return ! DB::select(array(DB::expr('COUNT(username)'), 'total')) - ->from('users') - ->where('username', '=', $username) - ->execute() - ->get('total'); - } - -[!!] Custom rules allow many additional checks to be reused for multiple purposes. These methods will almost always exist in a model, but may be defined in any class. - -# A Complete Example - -First, we need a [View] that contains the HTML form, which will be placed in `application/views/user/register.php`: - - - -

Some errors were encountered, please check the details you entered.

-
    - -
  • - - - -
    -
    -
    - -
    -
    -
    Passwords must be at least 6 characters long.
    -
    -
    - -
    -
    'Always', 'no' => 'Only when necessary'), $post['use_ssl']) ?>
    -
    For security, SSL is always used when making payments.
    -
    - - - - -[!!] This example uses the [Form] helper extensively. Using [Form] instead of writing HTML ensures that all of the form inputs will properly handle input that includes HTML characters. If you prefer to write the HTML yourself, be sure to use [HTML::chars] to escape user input. - -Next, we need a controller and action to process the registration, which will be placed in `application/classes/Controller/User.php`: - - class Controller_User extends Controller { - - public function action_register() - { - $user = Model::factory('user'); - - $validation = Validation::factory($this->request->post()) - ->rule('username', 'not_empty') - ->rule('username', 'regex', array(':value', '/^[a-z_.]++$/iD')) - ->rule('username', array($user, 'unique_username')) - - ->rule('password', 'not_empty') - ->rule('password', 'min_length', array(':value', 6)) - ->rule('confirm', 'matches', array(':validation', ':field', 'password')) - - ->rule('use_ssl', 'not_empty') - ->rule('use_ssl', 'in_array', array(':value', array('yes', 'no'))); - - if ($validation->check()) - { - // Data has been validated, register the user - $user->register($this->request->post()); - - // Always redirect after a successful POST to prevent refresh warnings - $this->redirect('user/profile', 302); - } - - // Validation failed, collect the errors - $errors = $validation->errors('user'); - - // Display the registration form - $this->response->body(View::factory('user/register')) - ->bind('post', $this->request->post()) - ->bind('errors', $errors); - } - - } - -We will also need a user model, which will be placed in `application/classes/Model/User.php`: - - class Model_User extends Model { - - public function register($array) - { - // Create a new user record in the database - $id = DB::insert(array_keys($array)) - ->values($array) - ->execute(); - - // Save the new user id to a cookie - cookie::set('user', $id); - - return $id; - } - - } - -That is it, we have a complete user registration example that properly checks user input! diff --git a/includes/kohana/system/guide/kohana/security/xss.md b/includes/kohana/system/guide/kohana/security/xss.md deleted file mode 100644 index d1e1c11e..00000000 --- a/includes/kohana/system/guide/kohana/security/xss.md +++ /dev/null @@ -1,17 +0,0 @@ -# Cross-Site Scripting (XSS) Security - -*This page is not comprehensive and should not be considered a complete guide to XSS prevention.* - -The first step to preventing [XSS](http://wikipedia.org/wiki/Cross-Site_Scripting) attacks is knowing when you need to protect yourself. XSS can only be triggered when it is displayed within HTML content, sometimes via a form input or being displayed from database results. Any global variable that contains client information can be tainted. This includes `$_GET`, `$_POST`, and `$_COOKIE` data. - -## Prevention - -There are a few simple rules to follow to guard your application HTML against XSS. If you do not want HTML in a variable, use [strip_tags](http://php.net/strip_tags) to remove all unwanted HTML tags from a value. - -[!!] If you allow users to submit HTML to your application, it is highly recommended to use an HTML cleaning tool such as [HTML Purifier](http://htmlpurifier.org/) or [HTML Tidy](http://php.net/tidy). - -The second is to always escape data when inserting into HTML. The [HTML] class provides generators for many common tags, including script and stylesheet links, anchors, images, and email (mailto) links. Any untrusted content should be escaped using [HTML::chars]. - -## References - -* [OWASP XSS Cheat Sheet](http://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet) \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/sessions.md b/includes/kohana/system/guide/kohana/sessions.md deleted file mode 100644 index d60e7096..00000000 --- a/includes/kohana/system/guide/kohana/sessions.md +++ /dev/null @@ -1,167 +0,0 @@ -# Sessions - -Kohana provides classes that make it easy to work with both cookies and sessions. At a high level both sessions and cookies provide the same functionality. They allow the developer to store temporary or persistent information about a specific client for later retrieval, usually to make something persistent between requests. - -Sessions should be used for storing temporary or private data. Very sensitive data should be stored using the [Session] class with the "database" or "native" adapters. When using the "cookie" adapter, the session should always be encrypted. - -[!!] For more information on best practices with session variables see [the seven deadly sins of sessions](http://lists.nyphp.org/pipermail/talk/2006-December/020358.html). - -## Storing, Retrieving, and Deleting Data - -[Cookie] and [Session] provide a very similar API for storing data. The main difference between them is that sessions are accessed using an object, and cookies are accessed using a static class. - -Accessing the session instance is done using the [Session::instance] method: - - // Get the session instance - $session = Session::instance(); - -When using sessions, you can also get all of the current session data using the [Session::as_array] method: - - // Get all of the session data as an array - $data = $session->as_array(); - -You can also use this to overload the `$_SESSION` global to get and set data in a way more similar to standard PHP: - - // Overload $_SESSION with the session data - $_SESSION =& $session->as_array(); - - // Set session data - $_SESSION[$key] = $value; - -### Storing Data - -Storing session or cookie data is done using the `set` method: - - // Set session data - $session->set($key, $value); - // Or - Session::instance()->set($key, $value); - - // Store a user id - $session->set('user_id', 10); - -### Retrieving Data - -Getting session or cookie data is done using the `get` method: - - // Get session data - $data = $session->get($key, $default_value); - - // Get the user id - $user = $session->get('user_id'); - -### Deleting Data - -Deleting session or cookie data is done using the `delete` method: - - // Delete session data - $session->delete($key); - - - // Delete the user id - $session->delete('user_id'); - -## Session Configuration - -Always check these settings before making your application live, as many of them will have a direct affect on the security of your application. - -## Session Adapters - -When creating or accessing an instance of the [Session] class you can decide which session adapter or driver you wish to use. The session adapters that are available to you are: - -Native -: Stores session data in the default location for your web server. The storage location is defined by [session.save_path](http://php.net/manual/session.configuration.php#ini.session.save-path) in `php.ini` or defined by [ini_set](http://php.net/ini_set). - -Database -: Stores session data in a database table using the [Session_Database] class. Requires the [Database] module to be enabled. - -Cookie -: Stores session data in a cookie using the [Cookie] class. **Sessions will have a 4KB limit when using this adapter, and should be encrypted.** - -The default adapter can be set by changing the value of [Session::$default]. The default adapter is "native". - -To access a Session using the default adapter, simply call [Session::instance()]. To access a Session using something other than the default, pass the adapter name to `instance()`, for example: `Session::instance('cookie')` - - -### Session Adapter Settings - -You can apply configuration settings to each of the session adapters by creating a session config file at `APPPATH/config/session.php`. The following sample configuration file defines all the settings for each adapter: - -[!!] As with cookies, a "lifetime" setting of "0" means that the session will expire when the browser is closed. - - return array( - 'native' => array( - 'name' => 'session_name', - 'lifetime' => 43200, - ), - 'cookie' => array( - 'name' => 'cookie_name', - 'encrypted' => TRUE, - 'lifetime' => 43200, - ), - 'database' => array( - 'name' => 'cookie_name', - 'encrypted' => TRUE, - 'lifetime' => 43200, - 'group' => 'default', - 'table' => 'table_name', - 'columns' => array( - 'session_id' => 'session_id', - 'last_active' => 'last_active', - 'contents' => 'contents' - ), - 'gc' => 500, - ), - ); - -#### Native Adapter - -Type | Setting | Description | Default -----------|-----------|---------------------------------------------------|----------- -`string` | name | name of the session | `"session"` -`integer` | lifetime | number of seconds the session should live for | `0` - -#### Cookie Adapter - -Type | Setting | Description | Default -----------|-----------|---------------------------------------------------|----------- -`string` | name | name of the cookie used to store the session data | `"session"` -`boolean` | encrypted | encrypt the session data using [Encrypt]? | `FALSE` -`integer` | lifetime | number of seconds the session should live for | `0` - -#### Database Adapter - -Type | Setting | Description | Default -----------|-----------|---------------------------------------------------|----------- -`string` | group | [Database::instance] group name | `"default"` -`string` | table | table name to store sessions in | `"sessions"` -`array` | columns | associative array of column aliases | `array` -`integer` | gc | 1:x chance that garbage collection will be run | `500` -`string` | name | name of the cookie used to store the session data | `"session"` -`boolean` | encrypted | encrypt the session data using [Encrypt]? | `FALSE` -`integer` | lifetime | number of seconds the session should live for | `0` - -##### Table Schema - -You will need to create the session storage table in the database. This is the default schema: - - CREATE TABLE `sessions` ( - `session_id` VARCHAR(24) NOT NULL, - `last_active` INT UNSIGNED NOT NULL, - `contents` TEXT NOT NULL, - PRIMARY KEY (`session_id`), - INDEX (`last_active`) - ) ENGINE = MYISAM; - -##### Table Columns - -You can change the column names to match an existing database schema when connecting to a legacy session table. The default value is the same as the key value. - -session_id -: the name of the "id" column - -last_active -: UNIX timestamp of the last time the session was updated - -contents -: session data stored as a serialized string, and optionally encrypted \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tips.md b/includes/kohana/system/guide/kohana/tips.md deleted file mode 100644 index 2d6b733b..00000000 --- a/includes/kohana/system/guide/kohana/tips.md +++ /dev/null @@ -1,41 +0,0 @@ -# Tips and Common Mistakes - -This is a collection of tips and common mistakes or errors you may encounter. - -## Never edit the `system` folder! - -You should (almost) never edit the system folder. Any change you want to make to files in system and modules can be made via the [cascading filesystem](files) and [transparent extension](extension) and won't break when you try to update your Kohana version. - -## Don't try and use one route for everything - -Kohana 3 [routes](routing) are very powerful and flexible, don't be afraid to use as many as you need to make your app function the way you want! - -## Files not found on some systems - -As of Kohana 3.3, classes are autoloaded using the case-sensitive PSR-0 autoloader. This means that using the class Foo {} with a file in classes/foo.php will work on case-insensitive file systems (such as the default HFS+ FS used in Mac OS X) but will fail when used on a case-sensitive FS (typical on many production Linux servers). - -## Handling lots of routes - -Sometimes your application is sufficiently complex that you have many routes and it becomes unmanageable to put them all in bootstrap.php. If this is the case, simply make a `routes.php` file in APPPATH and require that in your bootstrap: `require_once APPPATH.'routes'.EXT;` - -## Reflection_Exception - -If you get a Reflection_Exception when setting up your site, it is almost certainly because your [Kohana::init] 'base_url' setting is wrong. If your base url is correct something is probably wrong with your [routes](routing). - - ReflectionException [ -1 ]: Class controller_ does not exist - // where is part of the url you entered in your browser - -### Solution {#reflection-exception-solution} - -Set your [Kohana::init] 'base_url' to the correct setting. The base url should be the path to your index.php file relative to the webserver document root. - -## ORM/Session __sleep() bug - -There is a bug in php which can corrupt your session after a fatal error. A production server shouldn't have uncaught fatal errors, so this bug should only happen during development, when you do something stupid and cause a fatal error. On the next page load you will get a database connection error, then all subsequent page loads will display the following error: - - ErrorException [ Notice ]: Undefined index: id - MODPATH/orm/classes/kohana/orm.php [ 1308 ] - -### Solution {#orm-session-sleep-solution} - -To fix this, clear your cookies for that domain to reset your session. This should never happen on a production server, so you won't have to explain to your clients how to clear their cookies. You can see the [discussion on this issue](http://dev.kohanaframework.org/issues/3242) for more details. diff --git a/includes/kohana/system/guide/kohana/tutorials.md b/includes/kohana/system/guide/kohana/tutorials.md deleted file mode 100644 index c921bcd5..00000000 --- a/includes/kohana/system/guide/kohana/tutorials.md +++ /dev/null @@ -1,17 +0,0 @@ -# Tutorials - -## Tutorials in this guide - -## Tutorials written elsewhere - -### Ellisgl's KO3 tutorial on dealtaker.com: - -1. [Install and Basic Usage](http://www.dealtaker.com/blog/2009/11/20/kohana-php-3-0-ko3-tutorial-part-1/) -2. [Views](http://www.dealtaker.com/blog/2009/12/07/kohana-php-3-0-ko3-tutorial-part-2/) -3. [Controllers](http://www.dealtaker.com/blog/2009/12/30/kohana-php-3-0-ko3-tutorial-part-3/) -4. [Models](http://www.dealtaker.com/blog/2010/02/01/kohana-php-3-0-ko3-tutorial-part-4/) -5. [Subrequests](http://www.dealtaker.com/blog/2010/02/25/kohana-php-3-0-ko3-tutorial-part-5/) -6. [Routes](http://www.dealtaker.com/blog/2010/03/03/kohana-php-3-0-ko3-tutorial-part-6/) -7. [Helpers](http://www.dealtaker.com/blog/2010/03/26/kohana-php-3-0-ko3-tutorial-part-7/) -8. [Modules](http://www.dealtaker.com/blog/2010/04/30/kohana-php-3-0-ko3-tutorial-part-8/) -9. [Vendor Libraries](http://www.dealtaker.com/blog/2010/06/02/kohana-php-3-0-ko3-tutorial-part-9/) \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/clean-urls.md b/includes/kohana/system/guide/kohana/tutorials/clean-urls.md deleted file mode 100644 index e5a60c40..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/clean-urls.md +++ /dev/null @@ -1,93 +0,0 @@ -# Clean URLs - -Removing `index.php` from your urls. - -To keep your URLs clean, you will probably want to be able to access your app without having `/index.php/` in the URL. There are two steps to remove `index.php` from the URL. - -1. Edit the bootstrap file -2. Set up rewriting - -## 1. Configure Bootstrap - -The first thing you will need to change is the `index_file` setting of [Kohana::init] to false: - - Kohana::init(array( - 'base_url' => '/myapp/', - 'index_file' => FALSE, - )); - -This change will make it so all of the links generated using [URL::site], [URL::base], and [HTML::anchor] will no longer include "index.php" in the URL. All generated links will start with `/myapp/` instead of `/myapp/index.php/`. - -## 2. URL Rewriting - -Enabling rewriting is done differently, depending on your web server. - -Rewriting will make it so urls will be passed to index.php. - -## Apache - -Rename `example.htaccess` to only `.htaccess` and alter the `RewriteBase` line to match the `base_url` setting from your [Kohana::init] - - RewriteBase /myapp/ - -The rest of the `.htaccess file` rewrites all requests through index.php, unless the file exists on the server (so your css, images, favicon, etc. are still loaded like normal). In most cases, you are done! - -### 404 errors - -If you get a "404 Not Found" error when trying to view a page then it's likely Apache is not configured to read the `.htaccess` file. - -In the main apache configuration file (usually `httpd.conf`), or in the virtual server configuration file, check that the `AccessFileName` directive is set to `.htaccess` and the `AllowOverride` directive is set to `All`. - - AccessFileName .htaccess - - - AllowOverride All - - - -### Failed! - -If you get a "Internal Server Error" or "No input file specified" error, try changing: - - RewriteRule ^(?:application|modules|system)\b - [F,L] - -Instead, we can try a slash: - - RewriteRule ^(application|modules|system)/ - [F,L] - -If that doesn't work, try changing: - - RewriteRule .* index.php/$0 [PT] - -To something more simple: - - RewriteRule .* index.php [PT] - -### Still Failed! - -If you are still getting errors, check to make sure that your host supports URL `mod_rewrite`. If you can change the Apache configuration, add these lines to the configuration, usually `httpd.conf`: - - - Order allow,deny - Allow from all - AllowOverride All - - -You should also check your Apache logs to see if they can shed some light on the error. - -## NGINX - -It is hard to give examples of nginx configuration, but here is a sample for a server: - - location / { - index index.php index.html index.htm; - try_files $uri index.php; - } - - location = index.php { - include fastcgi.conf; - fastcgi_pass 127.0.0.1:9000; - fastcgi_index index.php; - } - -If you are having issues getting this working, enable debug level logging in nginx and check the access and error logs. diff --git a/includes/kohana/system/guide/kohana/tutorials/error-pages.md b/includes/kohana/system/guide/kohana/tutorials/error-pages.md deleted file mode 100644 index adb027f3..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/error-pages.md +++ /dev/null @@ -1,99 +0,0 @@ -# Custom Error Pages - -Custom error pages allow you to display a friendly error message to users, rather than the standard Kohana stack trace. - -## Prerequisites - -1. You will need `'errors' => TRUE` passed to [Kohana::init]. This will convert PHP-errors into exceptions which are easier to handle (The default value is `TRUE`). -2. Custom error pages will only be used to handle throw [HTTP_Exception]'s. If you simply set a status of, for example, 404 via [Respose::status] the custom page will not be used. - -## Extending the HTTP_Exception classes - -Handling [HTTP_Exception]'s in Kohana has become easier with the changes introduced in 3.3. - -For each [HTTP_Exception] class we can individually override the generation of the [Response] instance. - -[!!] Note: We can also use HMVC to issue a sub-request to another page rather than generating the [Response] in the [HTTP_Exception] itself. - -For example, to handle 404 pages we can do this in APPPATH/classes/HTTP/Exception/404.php: - - class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 { - - /** - * Generate a Response for the 404 Exception. - * - * The user should be shown a nice 404 page. - * - * @return Response - */ - public function get_response() - { - $view = View::factory('errors/404'); - - // Remembering that `$this` is an instance of HTTP_Exception_404 - $view->message = $this->getMessage(); - - $response = Response::factory() - ->status(404) - ->body($view->render()); - - return $response; - } - } - -Another example, this time to handle 401 Unauthorized errors (aka "Not Logged In") we can do this in APPPATH/classes/HTTP/Exception/401.php: - - class HTTP_Exception_401 extends Kohana_HTTP_Exception_401 { - - /** - * Generate a Response for the 401 Exception. - * - * The user should be redirect to a login page. - * - * @return Response - */ - public function get_response() - { - $response = Response::factory() - ->status(401) - ->headers('Location', URL::site('account/login')); - - return $response; - } - } - -Finally, to override the default [Response] for all [HTTP_Exception]'s without a more specific override we can do this in APPPATH/classes/HTTP/Exception.php: - - class HTTP_Exception extends Kohana_HTTP_Exception { - - /** - * Generate a Response for all Exceptions without a more specific override - * - * The user should see a nice error page, however, if we are in development - * mode we should show the normal Kohana error page. - * - * @return Response - */ - public function get_response() - { - // Lets log the Exception, Just in case it's important! - Kohana_Exception::log($this); - - if (Kohana::$environment >= Kohana::DEVELOPMENT) - { - // Show the normal Kohana error page. - return parent::get_response(); - } - else - { - // Generate a nicer looking "Oops" page. - $view = View::factory('errors/default'); - - $response = Response::factory() - ->status($this->getCode()) - ->body($view->render()); - - return $response; - } - } - } \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/git.md b/includes/kohana/system/guide/kohana/tutorials/git.md deleted file mode 100644 index 6487ed9a..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/git.md +++ /dev/null @@ -1,143 +0,0 @@ -# Creating a New Application - -[!!] The following examples assume that your web server is already set up, and you are going to create a new application at . - -Using your console, change to the empty directory `gitorial` and run `git init`. This will create the bare structure for a new git repository. - -Next, we will create a [submodule](http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html) for the `system` directory. Go to and copy the "Clone URL": - -![Github Clone URL](http://img.skitch.com/20091019-rud5mmqbf776jwua6hx9nm1n.png) - -Now use the URL to create the submodule for `system`: - - git submodule add git://github.com/kohana/core.git system - -[!!] This will create a link to the current development version of the next stable release. The development version should almost always be safe to use, have the same API as the current stable download with bugfixes applied. - -Now add whatever submodules you need. For example, if you need the [Database] module: - - git submodule add git://github.com/kohana/database.git modules/database - -After submodules are added, they must be initialized: - - git submodule init - -Now that the submodules are added, you can commit them: - - git commit -m 'Added initial submodules' - -Next, create the application directory structure. This is the bare minimum required: - - mkdir -p application/classes/{Controller,Model} - mkdir -p application/{config,views} - mkdir -m 0777 -p application/{cache,logs} - -If you run `find application` you should see this: - - application - application/cache - application/config - application/classes - application/classes/Controller - application/classes/Model - application/logs - application/views - -We don't want git to track log or cache files, so add a `.gitignore` file to each of the directories. This will ignore all non-hidden files: - - echo '[^.]*' > application/{logs,cache}/.gitignore - -[!!] Git ignores empty directories, so adding a `.gitignore` file also makes sure that git will track the directory, but not the files within it. - -Now we need the `index.php` and `bootstrap.php` files: - - wget https://github.com/kohana/kohana/raw/3.3/master/index.php --no-check-certificate - wget https://github.com/kohana/kohana/raw/3.3/master/application/bootstrap.php --no-check-certificate -O application/bootstrap.php - -Commit these changes too: - - git add application - git commit -m 'Added initial directory structure' - -That's all there is to it. You now have an application that is using Git for versioning. - -## Adding Submodules -To add a new submodule complete the following steps: - -1. run the following code - git submodule add repository path for each new submodule e.g.: - - git submodule add git://github.com/shadowhand/sprig.git modules/sprig - -2. then init and update the submodules: - - git submodule init - git submodule update - -## Updating Submodules - -At some point you will probably also want to upgrade your submodules. To update all of your submodules to the latest `HEAD` version: - - git submodule foreach 'git checkout 3.3/master && git pull origin 3.3/master' - -To update a single submodule, for example, `system`: - - cd system - git checkout 3.3/master - git pull origin 3.3/master - cd .. - git add system - git commit -m 'Updated system to latest version' - -If you want to update a single submodule to a specific commit: - - cd modules/database - git pull origin 3.3/master - git checkout fbfdea919028b951c23c3d99d2bc1f5bbeda0c0b - cd ../.. - git add database - git commit -m 'Updated database module' - -Note that you can also check out the commit at a tagged official release point, for example: - - git checkout v3.3.0 - -Simply run `git tag` without arguments to get a list of all tags. - -## Removing Submodules -To remove a submodule that is no longer needed complete the following steps: - -1. open .gitmodules and remove the reference to the to submodule - It will look something like this: - - [submodule "modules/auth"] - path = modules/auth - url = git://github.com/kohana/auth.git - -2. open .git/config and remove the reference to the to submodule\\ - - [submodule "modules/auth"] - url = git://github.com/kohana/auth.git - -3. run git rm --cached path/to/submodule, e.g. - - git rm --cached modules/auth - -**Note:** Do not put a trailing slash at the end of path. If you put a trailing slash at the end of the command, it will fail. - -## Updating Remote Repository URL - -During the development of a project, the source of a submodule may change for any reason (you've created your own fork, the server URL changed, the repository name or path changed, etc...) and you'll have to update those changes. To do so, you'll need to perform the following steps: - -1. edit the .gitmodules file, and change the URL for the submodules which changed. - -2. in your source tree's root run: - - git submodule sync - -3. run `git init` to update the project's repository configuration with the new URLs: - - git submodule init - -And it's done, now you can continue pushing and pulling your submodules with no problems. - -Source: http://jtrancas.wordpress.com/2011/02/06/git-submodule-location/ \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/hello-world.md b/includes/kohana/system/guide/kohana/tutorials/hello-world.md deleted file mode 100644 index 0d214095..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/hello-world.md +++ /dev/null @@ -1,106 +0,0 @@ -# Hello, World - -Just about every framework ever written has some kind of hello world example included, so it'd be pretty rude of us to break this tradition! - -We'll start out by creating a very very basic hello world, and then we'll expand it to follow MVC principles. - -## Bare bones - -First off we have to make a controller that Kohana can use to handle a request. - -Create the file `application/classes/Controller/Hello.php` in your application folder and fill it out like so: - - template->message = 'hello, world!'; - } - } - -`extends Controller_Template` -: We're now extending the template controller, it makes it more convenient to use views within our controller. - -`public $template = 'site';` -: The template controller needs to know what template you want to use. It'll automatically load the view defined in this variable and assign the view object to it. - -`$this->template->message = 'hello, world!';` -: `$this->template` is a reference to the view object for our site template. What we're doing here is assigning a variable called "message", with a value of "hello, world!" to the view. - -Now lets try running our code... - -![Hello, World!](hello_world_2_error.png "Hello, World!") - -For some reason Kohana's thrown a wobbly and isn't showing our amazing message. - -If we look at the error message we can see that the View library wasn't able to find our site template, probably because we haven't made it yet – *doh*! - -Let's go and make the view file `application/views/site.php` for our message: - - - - We've got a message for you! - - - -

    -

    We just wanted to say it! :)

    - - - -If we refresh the page then we can see the fruits of our labour: - -![hello, world! We just wanted to say it!](hello_world_2.png "hello, world! We just wanted to say it!") - -## Stage 3 – Profit! - -In this tutorial you've learnt how to create a controller and use a view to separate your logic from your display. - -This is obviously a very basic introduction to working with Kohana and doesn't even scrape the potential you have when developing applications with it. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/library-kohana.md b/includes/kohana/system/guide/kohana/tutorials/library-kohana.md deleted file mode 100644 index 91fa4953..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/library-kohana.md +++ /dev/null @@ -1,219 +0,0 @@ -# Importing Kohana as a Library - -If you're working with an existing codebase it's often difficult to modernise the code as it would mean a complete rewrite and there's rarely the time. An alternative is to improve the codebase incrementally as best you can, gradually outsourcing code to external libraries to reduce the amount of old code there is to maintain. - -This tutorial describes how to include the Kohana PHP framework into existing PHP applications, without having to use the routing and HMVC request handling features. - -[!!] The code modified in this tutorial was copied from Kohana version 3.1.x. You may need to update it to work with future releases. - -In normal usage of the Kohana framework, the `index.php` file acts as the request handler; it sets up the environment, loads the system configuration, and then handles the request (see [Request Flow](flow)). -We'll walk you through the steps required to create a file we'll call `include.php` which will allow you to include Kohana from exiting PHP applications. - -## Demo application - -The following file will serve as our (insultingly simple) demo application for this tutorial. - -### File: `demo.php` - -~~~ - - - - Demo page - - - - - -~~~ - -## Install Kohana - -[Download and install the Kohana framework](install); from this point on, we'll be referring to the location of the Kohana libraries as the `kohana` directory. - -## Create a common setup file - -Since `index.php` and `include.php` will duplicate a lot of code, we're going to move that code to a third file, `common.php`. The bulk of the code is unchanged; we've changed the install check to exit rather than return after rendering, and removed the request execution. - -The new file creates the initial request object, rather than fully executing the request, so that, if you do define routes, the `Request::$initial` variable will be set up correctly. - -### File: `kohana/common.php` - -~~~ - = 5.3, it is recommended to disable - * deprecated notices. Disable with: E_ALL & ~E_DEPRECATED - */ - error_reporting(E_ALL | E_STRICT); - - /** - * End of standard configuration! Changing any of the code below should only be - * attempted by those with a working knowledge of Kohana internals. - * - * @link http://kohanaframework.org/guide/using.configuration - */ - - // Set the full path to the docroot - define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR); - - // Make the application relative to the docroot, for symlink'd index.php - if ( ! is_dir($application) AND is_dir(DOCROOT.$application)) - $application = DOCROOT.$application; - - // Make the modules relative to the docroot, for symlink'd index.php - if ( ! is_dir($modules) AND is_dir(DOCROOT.$modules)) - $modules = DOCROOT.$modules; - - // Make the system relative to the docroot, for symlink'd index.php - if ( ! is_dir($system) AND is_dir(DOCROOT.$system)) - $system = DOCROOT.$system; - - // Define the absolute paths for configured directories - define('APPPATH', realpath($application).DIRECTORY_SEPARATOR); - define('MODPATH', realpath($modules).DIRECTORY_SEPARATOR); - define('SYSPATH', realpath($system).DIRECTORY_SEPARATOR); - - // Clean up the configuration vars - unset($application, $modules, $system); - - if (file_exists('install'.EXT)) - { - // Load the installation check - include 'install'.EXT; - exit; // Changes were made here - } - - /** - * Define the start time of the application, used for profiling. - */ - if ( ! defined('KOHANA_START_TIME')) - { - define('KOHANA_START_TIME', microtime(TRUE)); - } - - /** - * Define the memory usage at the start of the application, used for profiling. - */ - if ( ! defined('KOHANA_START_MEMORY')) - { - define('KOHANA_START_MEMORY', memory_get_usage()); - } - - // Bootstrap the application - require APPPATH.'bootstrap'.EXT; - - /** - * Instantiate the request object. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. - * If no source is specified, the URI will be automatically detected. - */ - Request::factory(); // Changes were made here -~~~ - -## Alter Kohana's `index.php` - -Having moved most of the code from Kohana's `index.php` to `common.php` the new `kohana/index.php` contains only this: - -### File: `kohana/index.php` - -~~~ - execute() - ->execute() - ->send_headers(TRUE) - ->body(); -~~~ - -## Create the include file - -Our `include.php` file is also pretty simple. The try-catch clause is needed because if the request matches no routes Kohana will throw an `HTTP_Exception_404` exception. - -### File: `kohana/include.php` - -~~~ - - - - Demo page - - - -
    - -
    - - - -~~~ \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/sharing-kohana.md b/includes/kohana/system/guide/kohana/tutorials/sharing-kohana.md deleted file mode 100644 index 193998a3..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/sharing-kohana.md +++ /dev/null @@ -1,54 +0,0 @@ -# Sharing Kohana - -Kohana follows a [front controller pattern](http://en.wikipedia.org/wiki/Front_Controller_pattern "Front Controller pattern") (which means that all requests are sent to `index.php`) and as such the [filesystem](files) is very configurable. Inside of `index.php` you can change the `$application`, `$modules`, and `$system` paths. - -[!!] There is a security check at the top of every Kohana file to prevent it from being accessed without using the front controller. Also, the `.htaccess` file should protect those folders as well. Moving the application, modules, and system directories to a location that cannot be accessed via the web can add another layer of security, but is optional. - -The `$application` variable lets you set the directory that contains your application files. By default, this is `application`. The `$modules` variable lets you set the directory that contains module files. The `$system` variable lets you set the directory that contains the default Kohana files. You can move these three directories anywhere. - -For instance, by default the directories are set up like this: - - www/ - index.php - application/ - modules/ - system/ - -You could move the directories out of the web root so they look like this: - - application/ - modules/ - system/ - www/ - index.php - -Then you would need to change the settings in `index.php` to be: - - $application = '../application'; - $modules = '../modules'; - $system = '../system'; - -## Sharing system and modules - -To take this a step further, we could point several Kohana apps to the same system and modules folders. For example (and this is just an example, you could arrange these anyway you want): - - apps/ - foobar/ - application/ - www/ - bazbar/ - application/ - www/ - kohana/ - 3.0.6/ - 3.0.7/ - 3.0.8/ - modules/ - -And you would need to change the settings in `index.php` to be: - - $application = '../application'; - $system = '../../../kohana/3.0.6'; - $modules = '../../../kohana/modules'; - -With this method each app can point to a central copy of Kohana, and when you add a new version, allow you to quickly update the apps by editing their respective `index.php` files. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/simple-mvc.md b/includes/kohana/system/guide/kohana/tutorials/simple-mvc.md deleted file mode 100644 index b3a475d4..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/simple-mvc.md +++ /dev/null @@ -1 +0,0 @@ -Simple example of controller model and view working together. \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/templates.md b/includes/kohana/system/guide/kohana/tutorials/templates.md deleted file mode 100644 index 4bfd9c26..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/templates.md +++ /dev/null @@ -1,7 +0,0 @@ -Making a template driven site. - - - - - - \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/tutorials/translation.md b/includes/kohana/system/guide/kohana/tutorials/translation.md deleted file mode 100644 index 12f7cfcf..00000000 --- a/includes/kohana/system/guide/kohana/tutorials/translation.md +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/includes/kohana/system/guide/kohana/upgrading.md b/includes/kohana/system/guide/kohana/upgrading.md deleted file mode 100644 index 5c149943..00000000 --- a/includes/kohana/system/guide/kohana/upgrading.md +++ /dev/null @@ -1,100 +0,0 @@ -# Migrating from 3.2.x - -## HVMC Isolation - -HVMC Sub-request isolation has been improved to prevent exceptions leaking from this inner to the outer request. If you were previously catching any exceptions from sub-requests, you should now be checking the [Response] object returned from [Request::execute]. - -## HTTP Exceptions - -The use of HTTP Exceptions is now encouraged over manually setting the [Response] status to, for example, '404'. This allows for easier custom error pages (detailed below); - -The full list of supported codes can be seen in the SYSPATH/classes/HTTP/Exception/ folder. - -Syntax: - - throw HTTP_Exception::factory($code, $message, array $variables, Exception $previous); - -Examples: - - // Page Not Found - throw HTTP_Exception::factory(404, 'The requested URL :uri was not found on this server.', array( - ':uri' => $this->request->uri(), - )); - - // Unauthorized / Login Requied - throw HTTP_Exception::factory(401)->authenticate('Basic realm="MySite"'); - - // Forbidden / Permission Deined - throw HTTP_Exception::factory(403); - -## Redirects (HTTP 300, 301, 302, 303, 307) - -Redirects are no longer issued against the [Request] object. The new syntax from inside a controller is: - - $this->redirect('http://www.google.com', 302); - -or from outside a controller: - - HTTP::redirect('http://www.google.com', 302); - -## Custom Error Pages (HTTP 500, 404, 403, 401 etc) - -Custom error pages are now easier than ever to implement, thanks to some of the changes brought about by the HVMC and Redirect changes above. - -See [Custom Error Pages](tutorials/error-pages) for more details. - -## Browser cache checking (ETags) - -The Response::check_cache method has moved to [HTTP::check_cache], with an alias at [Controller::check_cache]. Previously, this method would be used from a controller like this: - - $this->response->check_cache(sha1('my content'), Request $this->request); - -Now, there are two options for using the method: - - $this->check_cache(sha1('my content')); - -which is an alias for: - - HTTP::check_cache($this->request, $this->response, sha1('my content')); - -## PSR-0 support (file/class naming conventions) - -With the introduction of [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) support, the autoloading of classes is case sensitive. Now, the file (and folder) names must match the class name exactly. - -Examples: - - Kohana_Core - -would be located in - - classes/Kohana/Core.php - -and - - Kohana_HTTP_Header - -would be located in - - classes/Kohana/HTTP/Header.php - -This also affects dynamically named classes such as drivers and ORMs. So for example, in the database config using `'mysql'` as the type instead of `'MySQL'` would throw a class not found error. - -## Query Builder Identifier Escaping - -The query builder will no longer detect columns like `COUNT("*")`. Instead, you will need to use `DB::expr()` any time you need an unescaped column. For example: - - DB::select(DB::expr('COUNT(*)'))->from('users')->execute() - -## Route Filters - -In `3.3.0`, you can no longer pass a callback to `Route::uri()`. Instead, we've added the ability to define one or more filters which will be able to decide if the route matches and will also allow you to change any of the parameters. These filters will receive the `Route` object being tested, the currently matched `$params` array, and the `Request` object as the three parameters. - - Route::set('route-name', 'some/uri/') - ->filter(function($route, $params, $request) { - // Returning FALSE will make this route not match - // Returning an array will replace the $params sent to the controller - }); - -These filters can be used for things like prepending the request method to the action, checking if a resource exists before matching the route, or any other logic that the URI alone cannot provide. You can add as many filters as needed so it's useful to keep filters as small as possible to make them reusable. - -See [Routing](routing#route-filters) for more details. \ No newline at end of file diff --git a/includes/kohana/system/i18n/en.php b/includes/kohana/system/i18n/en.php deleted file mode 100644 index eda54471..00000000 --- a/includes/kohana/system/i18n/en.php +++ /dev/null @@ -1,3 +0,0 @@ - 'Español', - 'Hello, world!' => '¡Hola, mundo!', -); \ No newline at end of file diff --git a/includes/kohana/system/i18n/fr.php b/includes/kohana/system/i18n/fr.php deleted file mode 100644 index a2e86fab..00000000 --- a/includes/kohana/system/i18n/fr.php +++ /dev/null @@ -1,7 +0,0 @@ - 'Français', - 'Hello, world!' => 'Bonjour, monde!', -); \ No newline at end of file diff --git a/includes/kohana/system/media/guide/kohana/cascading_filesystem.png b/includes/kohana/system/media/guide/kohana/cascading_filesystem.png deleted file mode 100644 index 52a3576df98ae30b214ac4ad2f209dfe2d8690ef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001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o+OKX)hNRL|z%4Ne!j@hsEbyZEkHSP4Te;`i^TO`uZ{O$JP(PDf(=e9NRhi zkI0Wo4LIB;Cj_bFu)nN)i4rr_h%2J)fs@pzFImdRhr9q_ zNk*GOZ>QxupRj^{HIWsSRzQb{}7F1CHU@4X;$F zwDV%pT2EUupvsP4mr`g!o|Hw?JH67~s%~*_zU*6jcBj`|Z zs5N;0gk5U&)4X;5X_pTPun=>5R9aV8`CV=Hlr;^%fcm;!>VPWeFLMxTAnqmO=G3Y3t7etA#s8h;$LmdJ{EXqJJ>j7lsv zCGFVtFW76&J=eS+P-BL2_ckHZ)%=$kino-bet0`+D2`Zx&3~Bk18!g)R@9gm>Z30O zL{=;UCC<>ksTnG*OIo+ReE9u=YLR=Xe6U(uG>95^zpPH(o?Q6?C8(kIQuqKXvnN%z z!+3QQ5!X;tBLIq*Fvxq??QyN)vQT}5zRUL*nia7XVxW3j-YU{d2#7l!$q?o ziiZb10D!*px?Z8QHh~Fd`AA@e5U8okp9oz5w9UEABWexuq++i>1I)gZo)w182Uwc^ zKu!#Fq;e}?_vs4rY3^|~;-37CF7|+nopWHueckByr2L0yfeVx4%I9)D*C(86k!Va` z!~nK*_qfX2X3Lr}{e*b=K%{_;4X`{GXQeQsvQIGym&gMggq5!?;M9*ti^1XZs);RQ zH?Z5xh`ljp+G5#?d1#Jw?x*Jsw+v~S?kXy-I}#(HQ-ET($UFMrh3r58pgOv2IDzLr zI$Racw`PQ&>`~6u*CvgmHi>WLmRvthKHtrT$eQ;r<3{ARNy+!nSrUy>Do4o&W>QF? dB+&n({0jgausP9y310vJ002ovPDHLkV1nX1sLucZ diff --git a/includes/kohana/system/media/guide/kohana/hello_world_2.png b/includes/kohana/system/media/guide/kohana/hello_world_2.png deleted file mode 100644 index 9eb10f5676d980b0c689a531e822a542b6608224..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6681 zcma)hWl$VU)9n)6-JQkBLI@BbK#;{cIPqVVg0!Tz&(e{R zw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S07M`Z&`Jf#a2guwfa7SEBXFGOSOmooz){qj zmjNIsMi4mv_BP=gvopmi0{lHUH28m;AU`lZ|3>)y;XWT4qI)jT4GrnJ z72&_Qq5n1?4Dyjtd#g7Yx}hOG7wCqDKp?-Z2+$1;fqXi%hW|3>h3NnSfxH90LkR+b zz={BYKt9HA?lq`7WSLL%I#mq71cTi?jI_ls3Np%S+Blx?XJ+SQJD_W~GHH5dP8lZB z9zAB9o>rHpnSW7`QC9Ps<9Pspp{0|v$p+ruX$#)vT(yCA(KBhVD@ z@mb)B6Wajb7Y*^wE~ya-Ot)`8Fww=RH2vDFbq8jQ9K0j)(#E|Pg2q|{z^o6Pvh7sd z@pXOxa0G4|apdAC2c0)LBJ<((gw&$^937WQKYl%5`rz!om>U{e7Hj?)swNWMJ-`3K z{x-*n^VbHtV>p2m$cyI>qmEp{b&Qv-U1O%!zI*HTDkUK+Z5~Q=Yu^cULqmFVAAt~{ zrTKSu?upp+)#B$uLo0J5j%68@3IJf`G2BM1BbDZIW>(WiS$9>F86zjiGpoABK|o_@ zmkHW$R%%IoZEnWp+xZJtEXh4{`gvL1?T1;uL2LUdtHTf70SKsWP+Pb0+vk_V?mQ_H zibP~{>C#O*9VX1R7FCCZg`bMvncA)wFm-r!QB}7xL4OEzLqmFVM&LQ1reMKm61+zuCjPzDrRQ$-Xf`H@CF1EK8CU036A1 zFDtW8-AN5x{^d|BV|hm>Nh&T}yj@#Uk^H2UO3PV z4f*6M0t5o-{e1)o1Oh7p1OkD;iU5H?KH&cVUx0&XS#ih300000NkvXXu0mjfC(@>8 diff --git a/includes/kohana/system/media/guide/kohana/welcome.png b/includes/kohana/system/media/guide/kohana/welcome.png deleted file mode 100644 index 0d7ac3d8427e3ef55cb8b0ce9862d238bef17be9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 754 zcmVRq00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m?d01m?e$8V@)00007bV*G`2igk( z01gVyO9u@A00MGJL_t(o!|j(bZsRZzMc?EsvI@f|pikgUlWLDZl}@u=%I(rnWpad6 zZbF@4b%MY}sJr|vVkwGbTXqn@2#^mD(2$(@!*9*dGD+eGXWZe0ZV?G0igV}s6S_9a!#LTD)+dFS&H05%V zXy{WeZ8v+mUtvZ?g;{}_u{49Gq^S51^B7m#pQ@_Bte`L>ryTKGQFZ>q@*F{uLXyDA zfs}%LRQH@DITxf9)ZeS<4?ZVJxS$lABz1Oh?5yKx_bd9nwj_BUCB>s$DS80{k{qrRuqEz~6x>14eAI^|_i;?Yh14CS6(V}1UDW8` z;!JVv;~lQIXFZf_loXurL_OHkYUpl@@b=oV6B$Wl>wgE|-j~;L8Ri+lg68$*q(1Wd zI^(H!&^&WrLA=}Y_t8UBvMC!@f97Ap_4M4ZpoT0z?|<49wr>ia9CVRqZx?#C8Legc z;-nbs3~GNzb$<(+iq-0d+TT##-!k7mLw5ZoT#G#81)zC7xMv3BzvnILEt)DDRhC`eil8W zxpwp~5M1cy`+~Je4SUfLQIf}ZdxrK%?|t9Tk^lez07*qoM6N<$f(4^! array( - 'custom' => 'very nice email address you have there', - ), -); diff --git a/includes/kohana/system/messages/validation.php b/includes/kohana/system/messages/validation.php deleted file mode 100644 index 2d79cb44..00000000 --- a/includes/kohana/system/messages/validation.php +++ /dev/null @@ -1,27 +0,0 @@ - ':field must contain only letters', - 'alpha_dash' => ':field must contain only numbers, letters and dashes', - 'alpha_numeric' => ':field must contain only letters and numbers', - 'color' => ':field must be a color', - 'credit_card' => ':field must be a credit card number', - 'date' => ':field must be a date', - 'decimal' => ':field must be a decimal with :param2 places', - 'digit' => ':field must be a digit', - 'email' => ':field must be an email address', - 'email_domain' => ':field must contain a valid email domain', - 'equals' => ':field must equal :param2', - 'exact_length' => ':field must be exactly :param2 characters long', - 'in_array' => ':field must be one of the available options', - 'ip' => ':field must be an ip address', - 'matches' => ':field must be the same as :param3', - 'min_length' => ':field must be at least :param2 characters long', - 'max_length' => ':field must not exceed :param2 characters long', - 'not_empty' => ':field must not be empty', - 'numeric' => ':field must be numeric', - 'phone' => ':field must be a phone number', - 'range' => ':field must be within the range of :param2 to :param3', - 'regex' => ':field does not match the required format', - 'url' => ':field must be a url', -); diff --git a/includes/kohana/system/tests/kohana/ArrTest.php b/includes/kohana/system/tests/kohana/ArrTest.php deleted file mode 100644 index 150016f1..00000000 --- a/includes/kohana/system/tests/kohana/ArrTest.php +++ /dev/null @@ -1,696 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_ArrTest extends Unittest_TestCase -{ - /** - * Provides test data for test_callback() - * - * @return array - */ - public function provider_callback() - { - return array( - // Tests.... - // That no parameters returns null - array('function', array('function', NULL)), - // That we can get an array of parameters values - array('function(1,2,3)', array('function', array('1', '2', '3'))), - // That it's not just using the callback "function" - array('different_name(harry,jerry)', array('different_name', array('harry', 'jerry'))), - // That static callbacks are parsed into arrays - array('kohana::appify(this)', array(array('kohana', 'appify'), array('this'))), - // Spaces are preserved in parameters - array('deal::make(me, my mate )', array(array('deal', 'make'), array('me', ' my mate '))) - // TODO: add more cases - ); - } - - /** - * Tests Arr::callback() - * - * @test - * @dataProvider provider_callback - * @param string $str String to parse - * @param array $expected Callback and its parameters - */ - public function test_callback($str, $expected) - { - $result = Arr::callback($str); - - $this->assertSame(2, count($result)); - $this->assertSame($expected, $result); - } - - /** - * Provides test data for test_extract - * - * @return array - */ - public function provider_extract() - { - return array( - array( - array('kohana' => 'awesome', 'blueflame' => 'was'), - array('kohana', 'cakephp', 'symfony'), - NULL, - array('kohana' => 'awesome', 'cakephp' => NULL, 'symfony' => NULL) - ), - // I realise noone should EVER code like this in real life, - // but unit testing is very very very very boring - array( - array('chocolate cake' => 'in stock', 'carrot cake' => 'in stock'), - array('carrot cake', 'humble pie'), - 'not in stock', - array('carrot cake' => 'in stock', 'humble pie' => 'not in stock'), - ), - array( - // Source Array - array('level1' => array('level2a' => 'value 1', 'level2b' => 'value 2')), - // Paths to extract - array('level1.level2a', 'level1.level2b'), - // Default - NULL, - // Expected Result - array('level1' => array('level2a' => 'value 1', 'level2b' => 'value 2')), - ), - array( - // Source Array - array('level1a' => array('level2a' => 'value 1'), 'level1b' => array('level2b' => 'value 2')), - // Paths to extract - array('level1a', 'level1b.level2b'), - // Default - NULL, - // Expected Result - array('level1a' => array('level2a' => 'value 1'), 'level1b' => array('level2b' => 'value 2')), - ), - array( - // Source Array - array('level1a' => array('level2a' => 'value 1'), 'level1b' => array('level2b' => 'value 2')), - // Paths to extract - array('level1a', 'level1b.level2b', 'level1c', 'level1d.notfound'), - // Default - 'default', - // Expected Result - array('level1a' => array('level2a' => 'value 1'), 'level1b' => array('level2b' => 'value 2'), 'level1c' => 'default', 'level1d' => array('notfound' => 'default')), - ), - ); - } - - /** - * Tests Arr::extract() - * - * @test - * @dataProvider provider_extract - * @param array $array - * @param array $paths - * @param mixed $default - * @param array $expected - */ - public function test_extract(array $array, array $paths, $default, $expected) - { - $array = Arr::extract($array, $paths, $default); - - $this->assertSame(count($expected), count($array)); - $this->assertSame($expected, $array); - } - - /** - * Provides test data for test_pluck - * - * @return array - */ - public function provider_pluck() - { - return array( - array( - array( - array('id' => 20, 'name' => 'John Smith'), - array('name' => 'Linda'), - array('id' => 25, 'name' => 'Fred'), - ), - 'id', - array(20, 25) - ), - ); - } - - /** - * Tests Arr::pluck() - * - * @test - * @dataProvider provider_pluck - * @param array $array - * @param string $key - * @param array $expected - */ - public function test_pluck(array $array, $key, $expected) - { - $array = Arr::pluck($array, $key); - - $this->assertSame(count($expected), count($array)); - $this->assertSame($expected, $array); - } - - /** - * Provides test data for test_get() - * - * @return array - */ - public function provider_get() - { - return array( - array(array('uno', 'dos', 'tress'), 1, NULL, 'dos'), - array(array('we' => 'can', 'make' => 'change'), 'we', NULL, 'can'), - - array(array('uno', 'dos', 'tress'), 10, NULL, NULL), - array(array('we' => 'can', 'make' => 'change'), 'he', NULL, NULL), - array(array('we' => 'can', 'make' => 'change'), 'he', 'who', 'who'), - array(array('we' => 'can', 'make' => 'change'), 'he', array('arrays'), array('arrays')), - ); - } - - /** - * Tests Arr::get() - * - * @test - * @dataProvider provider_get() - * @param array $array Array to look in - * @param string|integer $key Key to look for - * @param mixed $default What to return if $key isn't set - * @param mixed $expected The expected value returned - */ - public function test_get(array $array, $key, $default, $expected) - { - $this->assertSame( - $expected, - Arr::get($array, $key, $default) - ); - } - - /** - * Provides test data for test_is_assoc() - * - * @return array - */ - public function provider_is_assoc() - { - return array( - array(array('one', 'two', 'three'), FALSE), - array(array('one' => 'o clock', 'two' => 'o clock', 'three' => 'o clock'), TRUE), - ); - } - - /** - * Tests Arr::is_assoc() - * - * @test - * @dataProvider provider_is_assoc - * @param array $array Array to check - * @param boolean $expected Is $array assoc - */ - public function test_is_assoc(array $array, $expected) - { - $this->assertSame( - $expected, - Arr::is_assoc($array) - ); - } - - /** - * Provides test data for test_is_array() - * - * @return array - */ - public function provider_is_array() - { - return array( - array($a = array('one', 'two', 'three'), TRUE), - array(new ArrayObject($a), TRUE), - array(new ArrayIterator($a), TRUE), - array('not an array', FALSE), - array(new stdClass, FALSE), - ); - } - - /** - * Tests Arr::is_array() - * - * @test - * @dataProvider provider_is_array - * @param mixed $value Value to check - * @param boolean $expected Is $value an array? - */ - public function test_is_array($array, $expected) - { - $this->assertSame( - $expected, - Arr::is_array($array) - ); - } - - public function provider_merge() - { - return array( - // Test how it merges arrays and sub arrays with assoc keys - array( - array('name' => 'mary', 'children' => array('fred', 'paul', 'sally', 'jane')), - array('name' => 'john', 'children' => array('fred', 'paul', 'sally', 'jane')), - array('name' => 'mary', 'children' => array('jane')), - ), - // See how it merges sub-arrays with numerical indexes - array( - array(array('test1'), array('test2'), array('test3')), - array(array('test1'), array('test2')), - array(array('test2'), array('test3')), - ), - array( - array(array(array('test1')), array(array('test2')), array(array('test3'))), - array(array(array('test1')), array(array('test2'))), - array(array(array('test2')), array(array('test3'))), - ), - array( - array('a' => array('test1','test2'), 'b' => array('test2','test3')), - array('a' => array('test1'), 'b' => array('test2')), - array('a' => array('test2'), 'b' => array('test3')), - ), - array( - array('digits' => array(0, 1, 2, 3)), - array('digits' => array(0, 1)), - array('digits' => array(2, 3)), - ), - // See how it manages merging items with numerical indexes - array( - array(0, 1, 2, 3), - array(0, 1), - array(2, 3), - ), - // Try and get it to merge assoc. arrays recursively - array( - array('foo' => 'bar', array('temp' => 'life')), - array('foo' => 'bin', array('temp' => 'name')), - array('foo' => 'bar', array('temp' => 'life')), - ), - // Bug #3139 - array( - array('foo' => array('bar')), - array('foo' => 'bar'), - array('foo' => array('bar')), - ), - array( - array('foo' => 'bar'), - array('foo' => array('bar')), - array('foo' => 'bar'), - ), - - // data set #9 - // Associative, Associative - array( - array('a' => 'K', 'b' => 'K', 'c' => 'L'), - array('a' => 'J', 'b' => 'K'), - array('a' => 'K', 'c' => 'L'), - ), - // Associative, Indexed - array( - array('a' => 'J', 'b' => 'K', 'L'), - array('a' => 'J', 'b' => 'K'), - array('K', 'L'), - ), - // Associative, Mixed - array( - array('a' => 'J', 'b' => 'K', 'K', 'c' => 'L'), - array('a' => 'J', 'b' => 'K'), - array('K', 'c' => 'L'), - ), - - // data set #12 - // Indexed, Associative - array( - array('J', 'K', 'a' => 'K', 'c' => 'L'), - array('J', 'K'), - array('a' => 'K', 'c' => 'L'), - ), - // Indexed, Indexed - array( - array('J', 'K', 'L'), - array('J', 'K'), - array('K', 'L'), - ), - // Indexed, Mixed - array( - array('K', 'K', 'c' => 'L'), - array('J', 'K'), - array('K', 'c' => 'L'), - ), - - // data set #15 - // Mixed, Associative - array( - array('a' => 'K', 'K', 'c' => 'L'), - array('a' => 'J', 'K'), - array('a' => 'K', 'c' => 'L'), - ), - // Mixed, Indexed - array( - array('a' => 'J', 'K', 'L'), - array('a' => 'J', 'K'), - array('J', 'L'), - ), - // Mixed, Mixed - array( - array('a' => 'K', 'L'), - array('a' => 'J', 'K'), - array('a' => 'K', 'L'), - ), - - // Bug #3141 - array( - array('servers' => array(array('1.1.1.1', 4730), array('2.2.2.2', 4730))), - array('servers' => array(array('1.1.1.1', 4730))), - array('servers' => array(array('2.2.2.2', 4730))), - ), - ); - } - - /** - * - * @test - * @dataProvider provider_merge - */ - public function test_merge($expected, $array1, $array2) - { - $this->assertSame( - $expected, - Arr::merge($array1,$array2) - ); - } - - /** - * Provides test data for test_path() - * - * @return array - */ - public function provider_path() - { - $array = array( - 'foobar' => array('definition' => 'lost'), - 'kohana' => 'awesome', - 'users' => array( - 1 => array('name' => 'matt'), - 2 => array('name' => 'john', 'interests' => array('hocky' => array('length' => 2), 'football' => array())), - 3 => 'frank', // Issue #3194 - ), - 'object' => new ArrayObject(array('iterator' => TRUE)), // Iterable object should work exactly the same - ); - - return array( - // Tests returns normal values - array($array['foobar'], $array, 'foobar'), - array($array['kohana'], $array, 'kohana'), - array($array['foobar']['definition'], $array, 'foobar.definition'), - // Custom delimiters - array($array['foobar']['definition'], $array, 'foobar/definition', NULL, '/'), - // We should be able to use NULL as a default, returned if the key DNX - array(NULL, $array, 'foobar.alternatives', NULL), - array(NULL, $array, 'kohana.alternatives', NULL), - // Try using a string as a default - array('nothing', $array, 'kohana.alternatives', 'nothing'), - // Make sure you can use arrays as defaults - array(array('far', 'wide'), $array, 'cheese.origins', array('far', 'wide')), - // Ensures path() casts ints to actual integers for keys - array($array['users'][1]['name'], $array, 'users.1.name'), - // Test that a wildcard returns the entire array at that "level" - array($array['users'], $array, 'users.*'), - // Now we check that keys after a wilcard will be processed - array(array(0 => array(0 => 2)), $array, 'users.*.interests.*.length'), - // See what happens when it can't dig any deeper from a wildcard - array(NULL, $array, 'users.*.fans'), - // Starting wildcards, issue #3269 - array(array('matt', 'john'), $array['users'], '*.name'), - // Path as array, issue #3260 - array($array['users'][2]['name'], $array, array('users', 2, 'name')), - array($array['object']['iterator'], $array, 'object.iterator'), - ); - } - - /** - * Tests Arr::path() - * - * @test - * @dataProvider provider_path - * @param string $path The path to follow - * @param mixed $default The value to return if dnx - * @param boolean $expected The expected value - * @param string $delimiter The path delimiter - */ - public function test_path($expected, $array, $path, $default = NULL, $delimiter = NULL) - { - $this->assertSame( - $expected, - Arr::path($array, $path, $default, $delimiter) - ); - } - - /** - * Provides test data for test_path() - * - * @return array - */ - public function provider_set_path() - { - return array( - // Tests returns normal values - array(array('foo' => 'bar'), array(), 'foo', 'bar'), - array(array('kohana' => array('is' => 'awesome')), array(), 'kohana.is', 'awesome'), - array(array('kohana' => array('is' => 'cool', 'and' => 'slow')), - array('kohana' => array('is' => 'cool')), 'kohana.and', 'slow'), - // Custom delimiters - array(array('kohana' => array('is' => 'awesome')), array(), 'kohana/is', 'awesome', '/'), - // Ensures set_path() casts ints to actual integers for keys - array(array('foo' => array('bar')), array('foo' => array('test')), 'foo.0', 'bar'), - ); - } - - /** - * Tests Arr::path() - * - * @test - * @dataProvider provider_set_path - * @param string $path The path to follow - * @param boolean $expected The expected value - * @param string $delimiter The path delimiter - */ - public function test_set_path($expected, $array, $path, $value, $delimiter = NULL) - { - Arr::set_path($array, $path, $value, $delimiter); - - $this->assertSame($expected, $array); - } - - /** - * Provides test data for test_range() - * - * @return array - */ - public function provider_range() - { - return array( - array(1, 2), - array(1, 100), - array(25, 10), - ); - } - - /** - * Tests Arr::range() - * - * @dataProvider provider_range - * @param integer $step The step between each value in the array - * @param integer $max The max value of the range (inclusive) - */ - public function test_range($step, $max) - { - $range = Arr::range($step, $max); - - $this->assertSame( (int) floor($max / $step), count($range)); - - $current = $step; - - foreach ($range as $key => $value) - { - $this->assertSame($key, $value); - $this->assertSame($current, $key); - $this->assertLessThanOrEqual($max, $key); - $current += $step; - } - } - - /** - * Provides test data for test_unshift() - * - * @return array - */ - public function provider_unshift() - { - return array( - array(array('one' => '1', 'two' => '2',), 'zero', '0'), - array(array('step 1', 'step 2', 'step 3'), 'step 0', 'wow') - ); - } - - /** - * Tests Arr::unshift() - * - * @test - * @dataProvider provider_unshift - * @param array $array - * @param string $key - * @param mixed $value - */ - public function test_unshift(array $array, $key, $value) - { - $original = $array; - - Arr::unshift($array, $key, $value); - - $this->assertNotSame($original, $array); - $this->assertSame(count($original) + 1, count($array)); - $this->assertArrayHasKey($key, $array); - - $this->assertSame($value, reset($array)); - $this->assertSame(key($array), $key); - } - - /** - * Provies test data for test_overwrite - * - * @return array Test Data - */ - public function provider_overwrite() - { - return array( - array( - array('name' => 'Henry', 'mood' => 'tired', 'food' => 'waffles', 'sport' => 'checkers'), - array('name' => 'John', 'mood' => 'bored', 'food' => 'bacon', 'sport' => 'checkers'), - array('name' => 'Matt', 'mood' => 'tired', 'food' => 'waffles'), - array('name' => 'Henry', 'age' => 18,), - ), - ); - } - - /** - * - * @test - * @dataProvider provider_overwrite - */ - public function test_overwrite($expected, $arr1, $arr2, $arr3 = array(), $arr4 = array()) - { - $this->assertSame( - $expected, - Arr::overwrite($arr1, $arr2, $arr3, $arr4) - ); - } - - /** - * Provides test data for test_map - * - * @return array Test Data - */ - public function provider_map() - { - return array( - array('strip_tags', array('

    foobar

    '), NULL, array('foobar')), - array('strip_tags', array(array('

    foobar

    '), array('

    foobar

    ')), NULL, array(array('foobar'), array('foobar'))), - array( - 'strip_tags', - array( - 'foo' => '

    foobar

    ', - 'bar' => '

    foobar

    ', - ), - NULL, - array( - 'foo' => 'foobar', - 'bar' => 'foobar', - ), - ), - array( - 'strip_tags', - array( - 'foo' => '

    foobar

    ', - 'bar' => '

    foobar

    ', - ), - array('foo'), - array( - 'foo' => 'foobar', - 'bar' => '

    foobar

    ', - ), - ), - array( - array( - 'strip_tags', - 'trim', - ), - array( - 'foo' => '

    foobar

    ', - 'bar' => '

    foobar

    ', - ), - NULL, - array( - 'foo' => 'foobar', - 'bar' => 'foobar', - ), - ), - ); - } - - /** - * - * @test - * @dataProvider provider_map - */ - public function test_map($method, $source, $keys, $expected) - { - $this->assertSame( - $expected, - Arr::map($method, $source, $keys) - ); - } - - /** - * Provides test data for test_flatten - * - * @return array Test Data - */ - public function provider_flatten() - { - return array( - array(array('set' => array('one' => 'something'), 'two' => 'other'), array('one' => 'something', 'two' => 'other')), - ); - } - - /** - * - * @test - * @dataProvider provider_flatten - */ - public function test_flatten($source, $expected) - { - $this->assertSame( - $expected, - Arr::flatten($source) - ); - } -} diff --git a/includes/kohana/system/tests/kohana/Config/File/ReaderTest.php b/includes/kohana/system/tests/kohana/Config/File/ReaderTest.php deleted file mode 100644 index ab22d14a..00000000 --- a/includes/kohana/system/tests/kohana/Config/File/ReaderTest.php +++ /dev/null @@ -1,94 +0,0 @@ - - * @author Matt Button - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Config_File_ReaderTest extends Kohana_Unittest_TestCase { - - /** - * If we don't pass a directory to the reader then it should assume - * that we want to search the dir 'config' by default - * - * @test - * @covers Kohana_Config_File_Reader - */ - public function test_default_search_dir_is_config() - { - $reader = new Kohana_Config_File_Reader; - - $this->assertAttributeSame('config', '_directory', $reader); - } - - /** - * If we pass a directory to the constructor of the file reader it - * should change the search directory - * - * @test - * @covers Kohana_Config_File_Reader - */ - public function test_constructor_sets_search_dir_from_param() - { - $reader = new Kohana_Config_File_Reader('gafloog'); - - $this->assertAttributeSame('gafloog', '_directory', $reader); - } - - /** - * If the config dir does not exist then the function should just - * return an empty array - * - * @test - * @covers Kohana_Config_File_Reader::load - */ - public function test_load_returns_empty_array_if_conf_dir_dnx() - { - $config = new Kohana_Config_File_Reader('gafloogle'); - - $this->assertSame(array(), $config->load('values')); - } - - /** - * If the requested config group does not exist then the reader - * should return an empty array - * - * @test - * @covers Kohana_Config_File_Reader::load - */ - public function test_load_returns_empty_array_if_conf_dnx() - { - $config = new Kohana_Config_File_Reader; - - $this->assertSame(array(), $config->load('gafloogle')); - } - - /** - * Test that the load() function is actually loading the - * configuration from the files. - * - * @test - * @covers Kohana_Config_File_Reader::load - */ - public function test_loads_config_from_files() - { - $config = new Kohana_Config_File_Reader; - - $values = $config->load('inflector'); - - // Due to the way the cascading filesystem works there could be - // any number of modifications to the system config in the - // actual output. Therefore to increase compatability we just - // check that we've got an array and that it's not empty - $this->assertNotSame(array(), $values); - $this->assertInternalType('array', $values); - } -} diff --git a/includes/kohana/system/tests/kohana/Config/GroupTest.php b/includes/kohana/system/tests/kohana/Config/GroupTest.php deleted file mode 100644 index 66fd0585..00000000 --- a/includes/kohana/system/tests/kohana/Config/GroupTest.php +++ /dev/null @@ -1,192 +0,0 @@ - - * @author Matt Button - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_Config_GroupTest extends Kohana_Unittest_TestCase -{ - /** - * Create a mock Kohana_Config instance - * - * @return Kohana_Config - */ - public function get_mock_config() - { - return new Kohana_Config; - } - - /** - * Gets a fresh instance of Kohana_Config_Group - * - * @param string $group Config Group name - * @param array $config Configuration - * @param Kohana_Config $instance Instance of Kohana_Config - * @return Kohana_Config_Group - */ - public function get_mock_group($group, $config = array(), $instance = NULL) - { - if ($instance === NULL) - { - $instance = $this->get_mock_config(); - } - - return new Kohana_Config_Group($instance, $group, $config); - } - - /** - * The group name and group's config values should be loaded into the object - * by the constructor - * - * @test - * @covers Kohana_Config_Group - */ - public function test_loads_group_name_and_values_in_constructor() - { - $group_name = 'information'; - $group_values = array('var' => 'value'); - - $group = $this->get_mock_group($group_name, $group_values); - - // Now usually we'd just use assertAttributeSame, but that tries to get at protected properties - // by casting the object in question into an array. This usually works fine, but as Kohana_Config_Group - // is a subclass of ArrayObject, casting to an array returns the config items! - // Therefore we have to use this little workaround - $this->assertSame($group_name, $group->group_name()); - $this->assertSame($group_values, $group->getArrayCopy()); - } - - /** - * A config group may not exist (or may not have any values) when it is loaded. - * The config group should allow for this situation and not complain - * - * @test - * @covers Kohana_Config_Group - */ - public function test_allows_empty_group_values() - { - $group = $this->get_mock_group('informatica'); - - $this->assertSame(array(), $group->getArrayCopy()); - } - - /** - * When get() is called it should fetch the config value specified - * - * @test - * @covers Kohana_Config_Group::get - */ - public function test_get_fetches_config_value() - { - $group = $this->get_mock_group('kohana', array('status' => 'awesome')); - - $this->assertSame('awesome', $group->get('status')); - } - - /** - * If a config option does not exist then get() should return the default value, which is - * NULL by default - * - * @test - * @covers Kohana_Config_Group::get - */ - public function test_get_returns_default_value_if_config_option_dnx() - { - $group = $this->get_mock_group('kohana'); - - $this->assertSame(NULL, $group->get('problems', NULL)); - $this->assertSame('nada', $group->get('problems', 'nada')); - } - - /** - * We should be able to modify existing configuration items using set() - * - * @test - * @covers Kohana_Config_Group::set - */ - public function test_set_modifies_existing_config() - { - $group = $this->get_mock_group('kohana', array('status' => 'pre-awesome')); - - $group->set('status', 'awesome'); - - $this->assertSame('awesome', $group->get('status')); - } - - /** - * If we modify the config via set() [$var] or ->$var then the change should be passed to - * the parent config instance so that the config writers can be notified. - * - * The modification to the config should also stick - * - * @test - * @covers Kohana_Config_Group::offsetSet - */ - public function test_writes_changes_to_config() - { - $mock = $this->getMock('Kohana_Config', array('_write_config')); - - $mock - ->expects($this->exactly(3)) - ->method('_write_config') - ->with('kohana', 'status', $this->LogicalOr('totally', 'maybe', 'not')); - - $group = $this->get_mock_group('kohana', array('status' => 'kool'), $mock); - - $group['status'] = 'totally'; - - $group->status = 'maybe'; - - $group->set('status', 'not'); - } - - /** - * Calling as_array() should return the full array, inc. any modifications - * - * @test - * @covers Kohana_Config_Group::as_array - */ - public function test_as_array_returns_full_array() - { - $config = $this->get_mock_group('something', array('var' => 'value')); - - $this->assertSame(array('var' => 'value'), $config->as_array()); - - // Now change some vars **ahem** - $config->var = 'LOLCAT'; - $config->lolcat = 'IN UR CODE'; - - $this->assertSame( - array('var' => 'LOLCAT', 'lolcat' => 'IN UR CODE'), - $config->as_array() - ); - - // And if we remove an item it should be removed from the exported array - unset($config['lolcat']); - $this->assertSame(array('var' => 'LOLCAT'), $config->as_array()); - } - - /** - * Casting the object to a string should serialize the output of as_array - * - * @test - * @covers Kohana_Config_Group::__toString - */ - public function test_to_string_serializes_array_output() - { - $vars = array('kohana' => 'cool', 'unit_tests' => 'boring'); - $config = $this->get_mock_group('hehehe', $vars); - - $this->assertSame(serialize($vars), (string) $config); - } -} - diff --git a/includes/kohana/system/tests/kohana/ConfigTest.php b/includes/kohana/system/tests/kohana/ConfigTest.php deleted file mode 100644 index 5766d6eb..00000000 --- a/includes/kohana/system/tests/kohana/ConfigTest.php +++ /dev/null @@ -1,406 +0,0 @@ - - * @author Matt Button - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_ConfigTest extends Unittest_TestCase -{ - - /** - * When a config object is initially created there should be - * no readers attached - * - * @test - * @covers Config - */ - public function test_initially_there_are_no_sources() - { - $config = new Config; - - $this->assertAttributeSame(array(), '_sources', $config); - } - - /** - * Test that calling attach() on a kohana config object - * adds the specified reader to the config object - * - * @test - * @covers Config::attach - */ - public function test_attach_adds_reader_and_returns_this() - { - $config = new Config; - $reader = $this->getMock('Kohana_Config_Reader'); - - $this->assertSame($config, $config->attach($reader)); - - $this->assertAttributeContains($reader, '_sources', $config); - } - - /** - * By default (or by passing TRUE as the second parameter) the config object - * should prepend the reader to the front of the readers queue - * - * @test - * @covers Config::attach - */ - public function test_attach_adds_reader_to_front_of_queue() - { - $config = new Config; - - $reader1 = $this->getMock('Kohana_Config_Reader'); - $reader2 = $this->getMock('Kohana_Config_Reader'); - - $config->attach($reader1); - $config->attach($reader2); - - // Rather than do two assertContains we'll do an assertSame to assert - // the order of the readers - $this->assertAttributeSame(array($reader2, $reader1), '_sources', $config); - - // Now we test using the second parameter - $config = new Config; - - $config->attach($reader1); - $config->attach($reader2, TRUE); - - $this->assertAttributeSame(array($reader2, $reader1), '_sources', $config); - } - - /** - * Test that attaching a new reader (and passing FALSE as second param) causes - * phpunit to append the reader rather than prepend - * - * @test - * @covers Config::attach - */ - public function test_attach_can_add_reader_to_end_of_queue() - { - $config = new Config; - $reader1 = $this->getMock('Kohana_Config_Reader'); - $reader2 = $this->getMock('Kohana_Config_Reader'); - - $config->attach($reader1); - $config->attach($reader2, FALSE); - - $this->assertAttributeSame(array($reader1, $reader2), '_sources', $config); - } - - /** - * Calling detach() on a config object should remove it from the queue of readers - * - * @test - * @covers Config::detach - */ - public function test_detach_removes_reader_and_returns_this() - { - $config = new Config; - - // Due to the way phpunit mock generator works if you try and mock a class - // that has already been used then it just re-uses the first's name - - // To get around this we have to specify a totally random name for the second mock object - $reader1 = $this->getMock('Kohana_Config_Reader'); - $reader2 = $this->getMock('Kohana_Config_Reader', array(), array(), 'MY_AWESOME_READER'); - - $config->attach($reader1); - $config->attach($reader2); - - $this->assertSame($config, $config->detach($reader1)); - - $this->assertAttributeNotContains($reader1, '_sources', $config); - $this->assertAttributeContains($reader2, '_sources', $config); - - $this->assertSame($config, $config->detach($reader2)); - - $this->assertAttributeNotContains($reader2, '_sources', $config); - } - - /** - * detach() should return $this even if the specified reader does not exist - * - * @test - * @covers Config::detach - */ - public function test_detach_returns_this_even_when_reader_dnx() - { - $config = new Config; - $reader = $this->getMock('Kohana_Config_Reader'); - - $this->assertSame($config, $config->detach($reader)); - } - - /** - * If we request a config variable with a dot path then - * Config::load() should load the group and return the requested variable - * - * @test - * @covers Config::load - */ - public function test_load_can_get_var_from_dot_path() - { - $config = new Config; - - $reader = $this->getMock('Kohana_Config_Reader', array('load')); - - $reader - ->expects($this->once()) - ->method('load') - ->with('beer') - ->will($this->returnValue(array('stout' => 'Guinness'))); - - $config->attach($reader); - - $this->assertSame('Guinness', $config->load('beer.stout')); - } - - /** - * If we've already loaded a config group then the correct variable - * should be returned if we use the dot path notation to to request - * a var - * - * @test - * @covers Config::load - */ - public function test_load_can_get_var_from_dot_path_for_loaded_group() - { - $config = new Config; - - $reader = $this->getMock('Kohana_Config_Reader', array('load')); - - $reader - ->expects($this->once()) - ->method('load') - ->with('beer') - ->will($this->returnValue(array('stout' => 'Guinness'))); - - $config->attach($reader); - - $config->load('beer'); - - $this->assertSame('Guinness', $config->load('beer.stout')); - } - - /** - * If load() is called and there are no readers present then it should throw - * a kohana exception - * - * @test - * @covers Config::load - * @expectedException Kohana_Exception - */ - public function test_load_throws_exception_if_there_are_no_sources() - { - // The following code should throw an exception and phpunit will catch / handle it - // (see the @expectedException doccomment) - $config = new Kohana_config; - - $config->load('random'); - } - - /** - * Provides test data for test_load_throws_exception_if_no_group_is_given() - * - * @return array - */ - public function provider_load_throws_exception_if_no_group_is_given() - { - return array( - array(NULL), - array(''), - array(array()), - array(array('foo' => 'bar')), - array(new StdClass), - ); - } - - /** - * If an invalid group name is specified then an exception should be thrown. - * - * Invalid means it's either a non-string value, or empty - * - * @test - * @dataProvider provider_load_throws_exception_if_no_group_is_given - * @covers Config::load - * @expectedException Kohana_Exception - */ - public function test_load_throws_exception_if_invalid_group($value) - { - $config = new Kohana_Config; - - $reader = $this->getMock('Kohana_Config_Reader'); - - $config->attach($reader); - - $config->load($value); - } - - /** - * Make sure that _write_config() passes the changed configuration to all - * writers in the queue - * - * @test - * @covers Kohana_Config - */ - public function test_write_config_passes_changed_config_to_all_writers() - { - $config = new Kohana_Config; - - $reader1 = $this->getMock('Kohana_Config_Reader'); - $writer1 = $this->getMock('Kohana_Config_Writer', array('write')); - $writer2 = $this->getMock('Kohana_Config_Writer', array('write')); - - $writer1 - ->expects($this->once()) - ->method('write') - ->with('some_group', 'key', 'value'); - - $writer2 - ->expects($this->once()) - ->method('write') - ->with('some_group', 'key', 'value'); - - $config->attach($reader1)->attach($writer1)->attach($writer2); - - $config->_write_config('some_group', 'key', 'value'); - } - - /** - * Config sources are stored in a stack, make sure that config at the bottom - * of the stack is overriden by config at the top - * - * @test - * @covers Config::load - */ - public function test_config_is_loaded_from_top_to_bottom_of_stack() - { - $group_name = 'lolumns'; - - $reader1 = $this->getMock('Kohana_Config_Reader', array('load'), array(), 'Unittest_Config_Reader_1'); - $reader2 = $this->getMock('Kohana_Config_Reader', array('load'), array(), 'Unittest_Config_Reader_2'); - - $reader1 - ->expects($this->once()) - ->method('load') - ->with($group_name) - ->will($this->returnValue(array('foo' => 'bar', 'kohana' => 'awesome', 'life' => array('normal', 'fated')))); - - $reader2 - ->expects($this->once()) - ->method('load') - ->with($group_name) - ->will($this->returnValue(array('kohana' => 'sweet', 'music' => 'tasteful', 'life' => array('extraordinary', 'destined')))); - - $config = new Kohana_Config; - - // Attach $reader1 at the "top" and reader2 at the "bottom" - $config->attach($reader1)->attach($reader2, FALSE); - - $this->assertSame( - array( - 'kohana' => 'awesome', - 'music' => 'tasteful', - 'life' => array( - 'extraordinary', - 'destined', - 'normal', - 'fated', - ), - 'foo' => 'bar', - ), - $config->load($group_name)->as_array() - ); - } - - /** - * load() should keep a record of what config groups have been requested and if - * a group is requested more than once the first instance should be returned - * - * @test - * @covers Config::load - */ - public function test_load_reuses_config_groups() - { - $reader = $this->getMock('Kohana_Config_Reader', array('load')); - $reader - ->expects($this->once()) - ->method('load') - ->with('something') - ->will($this->returnValue(array())); - - $config = new Kohana_Config; - - $config->attach($reader); - - $group = $config->load('something'); - - $this->assertSame($group, $config->load('something')); - } - - /** - * When we call copy() we expect it to copy the merged config to all writers - * - * @TODO This test sucks due to limitations in the phpunit mock generator. MAKE THIS AWESOME AGAIN! - * @test - * @covers Kohana_Config::copy - */ - public function test_copy_copies_merged_config_to_all_writers() - { - $config = new Kohana_Config; - - $reader1 = $this->getMock('Kohana_Config_Reader', array('load')); - $reader2 = $this->getMock('Kohana_Config_Reader', array('load')); - - $reader1 - ->expects($this->once()) - ->method('load') - ->with('something') - ->will($this->returnValue(array('pie' => 'good', 'kohana' => 'awesome'))); - - $reader2 - ->expects($this->once()) - ->method('load') - ->with('something') - ->will($this->returnValue(array('kohana' => 'good'))); - - $writer1 = $this->getMock('Kohana_Config_Writer', array('write')); - $writer2 = $this->getMock('Kohana_Config_Writer', array('write')); - - // Due to crazy limitations in phpunit's mocking engine we have to be fairly - // liberal here as to what order we receive the config items - // Good news is that order shouldn't matter *yay* - // - // Now save your eyes and skip the next... 13 lines! - $key = $this->logicalOr('pie', 'kohana'); - $val = $this->logicalOr('good', 'awesome'); - - $writer1 - ->expects($this->exactly(2)) - ->method('write') - ->with('something', clone $key, clone $val); - - $writer2 - ->expects($this->exactly(2)) - ->method('write') - ->with('something', clone $key, clone $val); - - $config - ->attach($reader1)->attach($reader2, FALSE) - ->attach($writer1)->attach($writer2); - - // Now let's get this thing going! - $config->copy('something'); - } -} diff --git a/includes/kohana/system/tests/kohana/CookieTest.php b/includes/kohana/system/tests/kohana/CookieTest.php deleted file mode 100644 index 9c1fe400..00000000 --- a/includes/kohana/system/tests/kohana/CookieTest.php +++ /dev/null @@ -1,177 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_CookieTest extends Unittest_TestCase -{ - - protected $_default_salt = 'AdaoidadnA£ASDNadnaoiwdnawd'; - /** - * Sets up the environment - */ - // @codingStandardsIgnoreStart - public function setUp() - // @codingStandardsIgnoreEnd - { - parent::setUp(); - - Cookie::$salt = $this->_default_salt; - } - - /** - * Tears down the environment - */ - // @codingStandardsIgnoreStart - public function tearDown() - // @codingStandardsIgnoreEnd - { - parent::tearDown(); - - Cookie::$salt = NULL; - } - - /** - * Provides test data for test_set() - * - * @return array - */ - public function provider_set() - { - return array( - array('foo', 'bar', NULL, TRUE), - array('foo', 'bar', 10, TRUE), - ); - } - - /** - * Tests cookie::set() - * - * @test - * @dataProvider provider_set - * @covers cookie::set - * @param mixed $key key to use - * @param mixed $value value to set - * @param mixed $exp exp to set - * @param boolean $expected Output for cookie::set() - */ - public function test_set($key, $value, $exp, $expected) - { - if (headers_sent()) { - $this->markTestSkipped('Cannot test setting cookies as headers have already been sent'); - } - - $this->assertSame($expected, cookie::set($key, $value, $exp)); - } - - /** - * Provides test data for test_get() - * - * @return array - */ - public function provider_get() - { - // setUp is called after the provider so we need to specify a - // salt here in order to use it in the provider - Cookie::$salt = $this->_default_salt; - - return array( - array('foo', Cookie::salt('foo', 'bar').'~bar', 'bar'), - array('bar', Cookie::salt('foo', 'bar').'~bar', NULL), - array(NULL, Cookie::salt('foo', 'bar').'~bar', NULL), - ); - } - - /** - * Tests cookie::set() - * - * @test - * @dataProvider provider_get - * @covers cookie::get - * @param mixed $key key to use - * @param mixed $value value to set - * @param boolean $expected Output for cookie::get() - */ - public function test_get($key, $value, $expected) - { - if (headers_sent()) { - $this->markTestSkipped('Cannot test setting cookies as headers have already been sent'); - } - - // Force $_COOKIE - if ($key !== NULL) - { - $_COOKIE[$key] = $value; - } - - $this->assertSame($expected, cookie::get($key)); - } - - /** - * Provides test data for test_delete() - * - * @return array - */ - public function provider_delete() - { - return array( - array('foo', TRUE), - ); - } - - /** - * Tests cookie::delete() - * - * @test - * @dataProvider provider_delete - * @covers cookie::delete - * @param mixed $key key to use - * @param boolean $expected Output for cookie::delete() - */ - public function test_delete($key, $expected) - { - if (headers_sent()) { - $this->markTestSkipped('Cannot test setting cookies as headers have already been sent'); - } - - $this->assertSame($expected, cookie::delete($key)); - } - - /** - * Provides test data for test_salt() - * - * @return array - */ - public function provider_salt() - { - return array( - array('foo', 'bar', 'b5773a6255d1deefc23f9f69bcc40fdc998e5802'), - ); - } - - /** - * Tests cookie::salt() - * - * @test - * @dataProvider provider_salt - * @covers cookie::salt - * @param mixed $key key to use - * @param mixed $value value to salt with - * @param boolean $expected Output for cookie::delete() - */ - public function test_salt($key, $value, $expected) - { - $this->assertSame($expected, cookie::salt($key, $value)); - } -} diff --git a/includes/kohana/system/tests/kohana/CoreTest.php b/includes/kohana/system/tests/kohana/CoreTest.php deleted file mode 100644 index 17d6a7ae..00000000 --- a/includes/kohana/system/tests/kohana/CoreTest.php +++ /dev/null @@ -1,369 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_CoreTest extends Unittest_TestCase -{ - - /** - * Provides test data for test_sanitize() - * - * @return array - */ - public function provider_sanitize() - { - return array( - // $value, $result - array('foo', 'foo'), - array("foo\r\nbar", "foo\nbar"), - array("foo\rbar", "foo\nbar"), - array("Is your name O\'reilly?", "Is your name O'reilly?") - ); - } - - /** - * Tests Kohana::santize() - * - * @test - * @dataProvider provider_sanitize - * @covers Kohana::sanitize - * @param boolean $value Input for Kohana::sanitize - * @param boolean $result Output for Kohana::sanitize - */ - public function test_sanitize($value, $result) - { - $this->setEnvironment(array('Kohana::$magic_quotes' => TRUE)); - - $this->assertSame($result, Kohana::sanitize($value)); - } - - /** - * Passing FALSE for the file extension should prevent appending any extension. - * See issue #3214 - * - * @test - * @covers Kohana::find_file - */ - public function test_find_file_no_extension() - { - // EXT is manually appened to the _file name_, not passed as the extension - $path = Kohana::find_file('classes', $file = 'Kohana/Core'.EXT, FALSE); - - $this->assertInternalType('string', $path); - - $this->assertStringEndsWith($file, $path); - } - - /** - * If a file can't be found then find_file() should return FALSE if - * only a single file was requested, or an empty array if multiple files - * (i.e. configuration files) were requested - * - * @test - * @covers Kohana::find_file - */ - public function test_find_file_returns_false_or_array_on_failure() - { - $this->assertFalse(Kohana::find_file('configy', 'zebra')); - - $this->assertSame(array(), Kohana::find_file('configy', 'zebra', NULL, TRUE)); - } - - /** - * Kohana::list_files() should return an array on success and an empty array on failure - * - * @test - * @covers Kohana::list_files - */ - public function test_list_files_returns_array_on_success_and_failure() - { - $files = Kohana::list_files('config'); - - $this->assertInternalType('array', $files); - $this->assertGreaterThan(3, count($files)); - - $this->assertSame(array(), Kohana::list_files('geshmuck')); - } - - /** - * Tests Kohana::globals() - * - * @test - * @covers Kohana::globals - */ - public function test_globals_removes_user_def_globals() - { - $GLOBALS = array('hackers' => 'foobar','name' => array('','',''), '_POST' => array()); - - Kohana::globals(); - - $this->assertEquals(array('_POST' => array()), $GLOBALS); - } - - /** - * Provides test data for testCache() - * - * @return array - */ - public function provider_cache() - { - return array( - // $value, $result - array('foo', 'hello, world', 10), - array('bar', NULL, 10), - array('bar', NULL, -10), - ); - } - - /** - * Tests Kohana::cache() - * - * @test - * @dataProvider provider_cache - * @covers Kohana::cache - * @param boolean $key Key to cache/get for Kohana::cache - * @param boolean $value Output from Kohana::cache - * @param boolean $lifetime Lifetime for Kohana::cache - */ - public function test_cache($key, $value, $lifetime) - { - Kohana::cache($key, $value, $lifetime); - $this->assertEquals($value, Kohana::cache($key)); - } - - /** - * Provides test data for test_message() - * - * @return array - */ - public function provider_message() - { - return array( - // $value, $result - array(':field must not be empty', 'validation', 'not_empty'), - array( - array( - 'alpha' => ':field must contain only letters', - 'alpha_dash' => ':field must contain only numbers, letters and dashes', - 'alpha_numeric' => ':field must contain only letters and numbers', - 'color' => ':field must be a color', - 'credit_card' => ':field must be a credit card number', - 'date' => ':field must be a date', - 'decimal' => ':field must be a decimal with :param2 places', - 'digit' => ':field must be a digit', - 'email' => ':field must be a email address', - 'email_domain' => ':field must contain a valid email domain', - 'equals' => ':field must equal :param2', - 'exact_length' => ':field must be exactly :param2 characters long', - 'in_array' => ':field must be one of the available options', - 'ip' => ':field must be an ip address', - 'matches' => ':field must be the same as :param2', - 'min_length' => ':field must be at least :param2 characters long', - 'max_length' => ':field must not exceed :param2 characters long', - 'not_empty' => ':field must not be empty', - 'numeric' => ':field must be numeric', - 'phone' => ':field must be a phone number', - 'range' => ':field must be within the range of :param2 to :param3', - 'regex' => ':field does not match the required format', - 'url' => ':field must be a url', - ), - 'validation', NULL, - ), - ); - } - - /** - * Tests Kohana::message() - * - * @test - * @dataProvider provider_message - * @covers Kohana::message - * @param boolean $expected Output for Kohana::message - * @param boolean $file File to look in for Kohana::message - * @param boolean $key Key for Kohana::message - */ - public function test_message($expected, $file, $key) - { - $this->markTestSkipped('This test is incredibly fragile and needs to be re-done'); - $this->assertEquals($expected, Kohana::message($file, $key)); - } - - /** - * Provides test data for test_error_handler() - * - * @return array - */ - public function provider_error_handler() - { - return array( - array(1, 'Foobar', 'foobar.php', __LINE__), - ); - } - - /** - * Tests Kohana::error_handler() - * - * @test - * @dataProvider provider_error_handler - * @covers Kohana::error_handler - * @param boolean $code Input for Kohana::sanitize - * @param boolean $error Input for Kohana::sanitize - * @param boolean $file Input for Kohana::sanitize - * @param boolean $line Output for Kohana::sanitize - */ - public function test_error_handler($code, $error, $file, $line) - { - $error_level = error_reporting(); - error_reporting(E_ALL); - try - { - Kohana::error_handler($code, $error, $file, $line); - } - catch (Exception $e) - { - $this->assertEquals($code, $e->getCode()); - $this->assertEquals($error, $e->getMessage()); - } - error_reporting($error_level); - } - - /** - * Provides test data for test_modules_sets_and_returns_valid_modules() - * - * @return array - */ - public function provider_modules_detects_invalid_modules() - { - return array( - array(array('unittest' => MODPATH.'fo0bar')), - array(array('unittest' => SMDPATH.'unittest', 'fo0bar' => MODPATH.'fo0bar')), - ); - } - - /** - * Tests Kohana::modules() - * - * @test - * @dataProvider provider_modules_detects_invalid_modules - * @expectedException Kohana_Exception - * @param boolean $source Input for Kohana::modules - * - */ - public function test_modules_detects_invalid_modules($source) - { - $modules = Kohana::modules(); - - try - { - Kohana::modules($source); - } - catch(Exception $e) - { - // Restore modules - Kohana::modules($modules); - - throw $e; - } - - // Restore modules - Kohana::modules($modules); - } - - /** - * Provides test data for test_modules_sets_and_returns_valid_modules() - * - * @return array - */ - public function provider_modules_sets_and_returns_valid_modules() - { - return array( - array(array(), array()), - array(array('unittest' => SMDPATH.'unittest'), array('unittest' => $this->dirSeparator(SMDPATH.'unittest/'))), - ); - } - - /** - * Tests Kohana::modules() - * - * @test - * @dataProvider provider_modules_sets_and_returns_valid_modules - * @param boolean $source Input for Kohana::modules - * @param boolean $expected Output for Kohana::modules - */ - public function test_modules_sets_and_returns_valid_modules($source, $expected) - { - $modules = Kohana::modules(); - - try - { - $this->assertEquals($expected, Kohana::modules($source)); - } - catch(Exception $e) - { - Kohana::modules($modules); - - throw $e; - } - - Kohana::modules($modules); - } - - /** - * To make the tests as portable as possible this just tests that - * you get an array of modules when you can Kohana::modules() and that - * said array contains unittest - * - * @test - * @covers Kohana::modules - */ - public function test_modules_returns_array_of_modules() - { - $modules = Kohana::modules(); - - $this->assertInternalType('array', $modules); - - $this->assertArrayHasKey('unittest', $modules); - } - - /** - * Tests Kohana::include_paths() - * - * The include paths must contain the apppath and syspath - * @test - * @covers Kohana::include_paths - */ - public function test_include_paths() - { - $include_paths = Kohana::include_paths(); - $modules = Kohana::modules(); - - $this->assertInternalType('array', $include_paths); - - // We must have at least 2 items in include paths (APP / SYS) - $this->assertGreaterThan(2, count($include_paths)); - // Make sure said paths are in the include paths - // And make sure they're in the correct positions - $this->assertSame(APPPATH, reset($include_paths)); - $this->assertSame(SYSPATH, end($include_paths)); - - foreach ($modules as $module) - { - $this->assertContains($module, $include_paths); - } - } -} - diff --git a/includes/kohana/system/tests/kohana/DateTest.php b/includes/kohana/system/tests/kohana/DateTest.php deleted file mode 100644 index 66c41ac9..00000000 --- a/includes/kohana/system/tests/kohana/DateTest.php +++ /dev/null @@ -1,790 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_DateTest extends Unittest_TestCase -{ - protected $_original_timezone = NULL; - - /** - * Ensures we have a consistant timezone for testing. - */ - // @codingStandardsIgnoreStart - public function setUp() - // @codingStandardsIgnoreEnd - { - parent::setUp(); - - $this->_original_timezone = date_default_timezone_get(); - - date_default_timezone_set('America/Chicago'); - } - - /** - * Restores original timezone after testing. - */ - // @codingStandardsIgnoreStart - public function tearDown() - // @codingStandardsIgnoreEnd - { - date_default_timezone_set($this->_original_timezone); - - parent::tearDown(); - } - - /** - * Provides test data for test_offset() - * - * @return array - */ - public function provider_offset() - { - return array( - array(30600, 'Asia/Calcutta', 'America/Argentina/Buenos_Aires'), - ); - } - - /** - * Tests Date::offset() - * - * @test - * @dataProvider provider_offset - * @covers Date::offset - * @param integer $expected Expected offset - * @param string $remote Remote TZ - * @param string $local Local TZ - * @param integer $now Current timestamp - */ - public function test_offset($expected, $remote, $local, $now = NULL) - { - $this->assertSame($expected, Date::offset($remote, $local, $now)); - } - - /** - * Provides test data for test_date() - * - * @return array - */ - public function provider_am_pm() - { - return array( - // All possible values - array(0, 'AM'), - array(1, 'AM'), - array(2, 'AM'), - array(3, 'AM'), - array(4, 'AM'), - array(5, 'AM'), - array(6, 'AM'), - array(7, 'AM'), - array(8, 'AM'), - array(9, 'AM'), - array(10, 'AM'), - array(11, 'AM'), - array(12, 'PM'), - array(13, 'PM'), - array(14, 'PM'), - array(15, 'PM'), - array(16, 'PM'), - array(17, 'PM'), - array(18, 'PM'), - array(19, 'PM'), - array(20, 'PM'), - array(21, 'PM'), - array(22, 'PM'), - array(23, 'PM'), - array(24, 'PM'), - // ampm doesn't validate the hour, so I don't think we should test it.. - // test strings are converted - array('0', 'AM'), - array('12', 'PM'), - ); - } - - /** - * Tests Date::ampm() - * - * @test - * @covers Date::ampm - * @dataProvider provider_am_pm - * @param $hour - * @param $expected - */ - public function test_am_pm($hour, $expected) - { - $this->assertSame( - $expected, - Date::ampm($hour) - ); - } - - /** - * Provides test data for test_adjust() - * - * @return array - */ - public function provider_adjust() - { - return array( - // Might as well test all possibilities - array(1, 'am', '01'), - array(2, 'am', '02'), - array(3, 'am', '03'), - array(4, 'am', '04'), - array(5, 'am', '05'), - array(6, 'am', '06'), - array(7, 'am', '07'), - array(8, 'am', '08'), - array(9, 'am', '09'), - array(10, 'am', '10'), - array(11, 'am', '11'), - array(12, 'am', '00'), - array(1, 'pm', '13'), - array(2, 'pm', '14'), - array(3, 'pm', '15'), - array(4, 'pm', '16'), - array(5, 'pm', '17'), - array(6, 'pm', '18'), - array(7, 'pm', '19'), - array(8, 'pm', '20'), - array(9, 'pm', '21'), - array(10, 'pm', '22'), - array(11, 'pm', '23'), - array(12, 'pm', '12'), - // It should also work with strings instead of ints - array('10', 'pm', '22'), - array('10', 'am', '10'), - ); - } - - /** - * Tests Date::ampm() - * - * @test - * @dataProvider provider_adjust - * @param integer $hour Hour in 12 hour format - * @param string $ampm Either am or pm - * @param string $expected Expected result - */ - public function test_adjust($hour, $ampm, $expected) - { - $this->assertSame( - $expected, - Date::adjust($hour, $ampm) - ); - } - - /** - * Provides test data for test_days() - * - * @return array - */ - public function provider_days() - { - return array( - // According to "the rhyme" these should be the same every year - array(9, FALSE, 30), - array(4, FALSE, 30), - array(6, FALSE, 30), - array(11, FALSE, 30), - array(1, FALSE, 31), - array(3, FALSE, 31), - array(5, FALSE, 31), - array(7, FALSE, 31), - array(8, FALSE, 31), - array(10, FALSE, 31), - // February is such a pain - array(2, 2001, 28), - array(2, 2000, 29), - array(2, 2012, 29), - ); - } - - /** - * Tests Date::days() - * - * @test - * @covers Date::days - * @dataProvider provider_days - * @param integer $month - * @param integer $year - * @param integer $expected - */ - public function test_days($month, $year, $expected) - { - $days = Date::days($month, $year); - - $this->assertSame( - $expected, - count($days) - ); - - // This should be a mirrored array, days => days - for ($i = 1; $i <= $expected; ++$i) - { - $this->assertArrayHasKey($i, $days); - // Combining the type check into this saves about 400-500 assertions! - $this->assertSame( (string) $i, $days[$i]); - } - } - - /** - * Provides test data for test_formatted_time() - * - * @return array - */ - public function provider_formatted_time() - { - return array( - // Test the default format - array('2010-04-16 17:00:00', '5:00PM 16th April 2010'), - // Now we use our own format - // Binary date! - array('01/01/2010 01:00', '1AM 1st January 2010', 'd/m/Y H:i'), - // Timezones (see #3902) - array('2011-04-01 01:23:45 Antarctica/South_Pole', '2011-04-01 01:23:45', 'Y-m-d H:i:s e', 'Antarctica/South_Pole'), - array('2011-04-01 01:23:45 Antarctica/South_Pole', '2011-03-31 14:23:45 Europe/Paris', 'Y-m-d H:i:s e', 'Antarctica/South_Pole'), - array('2011-04-01 01:23:45 Antarctica/South_Pole', '@1301574225', 'Y-m-d H:i:s e', 'Antarctica/South_Pole'), - ); - } - - /** - * Tests Date::formatted_time() - * - * @test - * @dataProvider provider_formatted_time - * @covers Date::formatted_time - * @ticket 3035 3902 - * @param string $expected Expected output - * @param string|integer $datetime_str The datetime timestamp / string - * @param string|null $timestamp_format The output format - * @param string|null $timezone The timezone identifier - */ - public function test_formatted_time($expected, $datetime_str, $timestamp_format = NULL, $timezone = NULL) - { - $timestamp = Date::formatted_time($datetime_str, $timestamp_format, $timezone); - - $this->assertSame($expected, $timestamp); - } - - /** - * Provider for test_months() - * - * @return array Test data - */ - public function provider_months() - { - return array( - array( - array( - 1 => "1", - 2 => "2", - 3 => "3", - 4 => "4", - 5 => "5", - 6 => "6", - 7 => "7", - 8 => "8", - 9 => "9", - 10 => "10", - 11 => "11", - 12 => "12" - ), - NULL - ), - array( - array( - 1 => "1", - 2 => "2", - 3 => "3", - 4 => "4", - 5 => "5", - 6 => "6", - 7 => "7", - 8 => "8", - 9 => "9", - 10 => "10", - 11 => "11", - 12 => "12" - ), - 'Guinness' - ), - array( - array( - 1 => "January", - 2 => "February", - 3 => "March", - 4 => "April", - 5 => "May", - 6 => "June", - 7 => "July", - 8 => "August", - 9 => "September", - 10 => "October", - 11 => "November", - 12 => "December" - ), - Date::MONTHS_LONG - ), - array( - array( - 1 => "Jan", - 2 => "Feb", - 3 => "Mar", - 4 => "Apr", - 5 => "May", - 6 => "Jun", - 7 => "Jul", - 8 => "Aug", - 9 => "Sep", - 10 => "Oct", - 11 => "Nov", - 12 => "Dec" - ), - Date::MONTHS_SHORT - ) - - ); - } - - /** - * Date::months() should allow the user to specify different format types, defaulting - * to a mirrored month number => month number array if format is NULL or unrecognised - * - * @test - * @dataProvider provider_months - * @covers Date::months - */ - public function test_months($expected, $format) - { - $months = Date::months($format); - - $this->assertSame($expected, $months); - } - - /** - * Provides test data for test_span() - * - * @return array - */ - public function provider_span() - { - $time = time(); - return array( - // Test that it must specify an output format - array( - $time, - $time, - '', - FALSE - ), - // Test that providing only one output just returns that output - array( - $time - 30, - $time, - 'seconds', - 30 - ), - // Random tests - array( - $time - 30, - $time, - 'years,months,weeks,days,hours,minutes,seconds', - array('years' => 0, 'months' => 0, 'weeks' => 0, 'days' => 0, 'hours' => 0, 'minutes' => 0, 'seconds' => 30), - ), - array( - $time - (60 * 60 * 24 * 782) + (60 * 25), - $time, - 'years,months,weeks,days,hours,minutes,seconds', - array('years' => 2, 'months' => 1, 'weeks' => 3, 'days' => 0, 'hours' => 1, 'minutes' => 28, 'seconds' => 24), - ), - // Should be able to compare with the future & that it only uses formats specified - array( - $time + (60 * 60 * 24 * 15) + (60 * 5), - $time, - 'weeks,days,hours,minutes,seconds', - array('weeks' => 2, 'days' => 1, 'hours' => 0, 'minutes' => 5, 'seconds' => 0), - ), - array( - // Add a bit of extra time to account for phpunit processing - $time + (14 * 31 * 24* 60 * 60) + (79 * 80), - NULL, - 'months,years', - array('months' => 2, 'years' => 1), - ), - ); - } - - /** - * Tests Date::span() - * - * @test - * @covers Date::span - * @dataProvider provider_span - * @param integer $time1 Time in the past - * @param integer $time2 Time to compare against - * @param string $output Units to output - * @param array $expected Array of $outputs => values - */ - public function test_span($time1, $time2, $output, $expected) - { - $this->assertSame( - $expected, - Date::span($time1, $time2, $output) - ); - } - - /** - * Provides test data to test_fuzzy_span - * - * This test data is provided on the assumption that it - * won't take phpunit more than 30 seconds to get the - * data from this provider to the test... ;) - * - * @return array Test Data - */ - public function provider_fuzzy_span() - { - $now = time(); - - return array( - array('moments ago', $now - 30, $now), - array('in moments', $now + 30, $now), - - array('a few minutes ago', $now - 10*60, $now), - array('in a few minutes', $now + 10*60, $now), - - array('less than an hour ago', $now - 45*60, $now), - array('in less than an hour', $now + 45*60, $now), - - array('a couple of hours ago', $now - 2*60*60, $now), - array('in a couple of hours', $now + 2*60*60, $now), - - array('less than a day ago', $now - 12*60*60, $now), - array('in less than a day', $now + 12*60*60, $now), - - array('about a day ago', $now - 30*60*60, $now), - array('in about a day', $now + 30*60*60, $now), - - array('a couple of days ago', $now - 3*24*60*60, $now), - array('in a couple of days', $now + 3*24*60*60, $now), - - array('less than a week ago', $now - 5*24*60*60, $now), - array('in less than a week', $now + 5*24*60*60, $now), - - array('about a week ago', $now - 9*24*60*60, $now), - array('in about a week', $now + 9*24*60*60, $now), - - array('less than a month ago', $now - 20*24*60*60, $now), - array('in less than a month', $now + 20*24*60*60, $now), - - array('about a month ago', $now - 40*24*60*60, $now), - array('in about a month', $now + 40*24*60*60, $now), - - array('a couple of months ago', $now - 3*30*24*60*60, $now), - array('in a couple of months', $now + 3*30*24*60*60, $now), - - array('less than a year ago', $now - 7*31*24*60*60, $now), - array('in less than a year', $now + 7*31*24*60*60, $now), - - array('about a year ago', $now - 18*31*24*60*60, $now), - array('in about a year', $now + 18*31*24*60*60, $now), - - array('a couple of years ago', $now - 3*12*31*24*60*60, $now), - array('in a couple of years', $now + 3*12*31*24*60*60, $now), - - array('a few years ago', $now - 5*12*31*24*60*60, $now), - array('in a few years', $now + 5*12*31*24*60*60, $now), - - array('about a decade ago', $now - 11*12*31*24*60*60, $now), - array('in about a decade', $now + 11*12*31*24*60*60, $now), - - array('a couple of decades ago', $now - 20*12*31*24*60*60, $now), - array('in a couple of decades', $now + 20*12*31*24*60*60, $now), - - array('several decades ago', $now - 50*12*31*24*60*60, $now), - array('in several decades', $now + 50*12*31*24*60*60, $now), - - array('a long time ago', $now - pow(10,10), $now), - array('in a long time', $now + pow(10,10), $now), - ); - } - - /** - * Test of Date::fuzy_span() - * - * @test - * @dataProvider provider_fuzzy_span - * @param string $expected Expected output - * @param integer $timestamp Timestamp to use - * @param integer $local_timestamp The local timestamp to use - */ - public function test_fuzzy_span($expected, $timestamp, $local_timestamp) - { - $this->assertSame( - $expected, - Date::fuzzy_span($timestamp, $local_timestamp) - ); - } - - /** - * Provides test data for test_years() - * - * @return array Test Data - */ - public function provider_years() - { - return array( - array( - array ( - 2005 => '2005', - 2006 => '2006', - 2007 => '2007', - 2008 => '2008', - 2009 => '2009', - 2010 => '2010', - 2011 => '2011', - 2012 => '2012', - 2013 => '2013', - 2014 => '2014', - 2015 => '2015', - ), - 2005, - 2015 - ), - ); - } - - /** - * Tests Data::years() - * - * @test - * @dataProvider provider_years - */ - public function test_years($expected, $start = FALSE, $end = FALSE) - { - $this->assertSame( - $expected, - Date::years($start, $end) - ); - } - - public function provider_hours() - { - return array( - array( - array( - 1 => '1', - 2 => '2', - 3 => '3', - 4 => '4', - 5 => '5', - 6 => '6', - 7 => '7', - 8 => '8', - 9 => '9', - 10 => '10', - 11 => '11', - 12 => '12', - ), - ), - ); - } - - /** - * Test for Date::hours - * - * @test - * @dataProvider provider_hours - */ - public function test_hours($expected, $step = 1, $long = FALSE, $start = NULL) - { - $this->assertSame( - $expected, - Date::hours($step, $long, $start) - ); - } - - /** - * Provides test data for test_seconds - * - * @return array Test data - */ - public function provider_seconds() - { - return array( - array( - // Thank god for var_export() - array ( - 0 => '00', 1 => '01', 2 => '02', 3 => '03', 4 => '04', - 5 => '05', 6 => '06', 7 => '07', 8 => '08', 9 => '09', - 10 => '10', 11 => '11', 12 => '12', 13 => '13', 14 => '14', - 15 => '15', 16 => '16', 17 => '17', 18 => '18', 19 => '19', - 20 => '20', 21 => '21', 22 => '22', 23 => '23', 24 => '24', - 25 => '25', 26 => '26', 27 => '27', 28 => '28', 29 => '29', - 30 => '30', 31 => '31', 32 => '32', 33 => '33', 34 => '34', - 35 => '35', 36 => '36', 37 => '37', 38 => '38', 39 => '39', - 40 => '40', 41 => '41', 42 => '42', 43 => '43', 44 => '44', - 45 => '45', 46 => '46', 47 => '47', 48 => '48', 49 => '49', - 50 => '50', 51 => '51', 52 => '52', 53 => '53', 54 => '54', - 55 => '55', 56 => '56', 57 => '57', 58 => '58', 59 => '59', - ), - 1, - 0, - 60 - ), - ); - } - - /** - * - * @test - * @dataProvider provider_seconds - * @covers Date::seconds - */ - public function test_seconds($expected, $step = 1, $start = 0, $end = 60) - { - $this->assertSame( - $expected, - Date::seconds($step, $start, $end) - ); - } - - /** - * Provides test data for test_minutes - * - * @return array Test data - */ - public function provider_minutes() - { - return array( - array( - array( - 0 => '00', 5 => '05', 10 => '10', - 15 => '15', 20 => '20', 25 => '25', - 30 => '30', 35 => '35', 40 => '40', - 45 => '45', 50 => '50', 55 => '55', - ), - 5, - ), - ); - } - - /** - * - * @test - * @dataProvider provider_minutes - */ - public function test_minutes($expected, $step) - { - $this->assertSame( - $expected, - Date::minutes($step) - ); - } - - /** - * This tests that the minutes helper defaults to using a $step of 5 - * and thus returns an array of 5 minute itervals - * - * @test - * @covers Date::minutes - */ - public function test_minutes_defaults_to_using_step_of5() - { - $minutes = array( - 0 => '00', 5 => '05', 10 => '10', - 15 => '15', 20 => '20', 25 => '25', - 30 => '30', 35 => '35', 40 => '40', - 45 => '45', 50 => '50', 55 => '55', - ); - - $this->assertSame( - $minutes, - Date::minutes() - ); - } - - /** - * Provids for test_unix2dos - * - * @return array Test Data - */ - public function provider_unix2dos() - { - return array( - array( - 1024341746, - 1281786936 - ), - array( - 2162688, - 315554400 - ) - ); - } - - /** - * Test Date::unix2dos() - * - * You should always pass a timestamp as otherwise the current - * date/time would be used and that's oviously variable - * - * Geert seems to be the only person who knows how unix2dos() works - * so we just throw in some random values and see what happens - * - * @test - * @dataProvider provider_unix2dos - * @covers Date::unix2dos - * @param integer $expected Expected output - * @param integer $timestamp Input timestamp - */ - public function test_unix2dos($expected, $timestamp) - { - $this->assertSame($expected, Date::unix2dos($timestamp)); - } - - /** - * Provides test data for test_dos2unix - * - * @return array Test data - */ - public function provider_dos2unix() - { - return array( - array( - 1281786936, - 1024341746, - ), - array( - 315554400, - 2162688, - ), - ); - } - - /** - * Tests Date::dos2unix - * - * @test - * @dataProvider provider_dos2unix - * @param integer $expected Expected output - * @param integer $timestamp Input timestamp - */ - public function test_dos2unix($expected, $timestamp) - { - $this->assertEquals($expected, Date::dos2unix($timestamp)); - } -} diff --git a/includes/kohana/system/tests/kohana/DebugTest.php b/includes/kohana/system/tests/kohana/DebugTest.php deleted file mode 100644 index 5bc7149e..00000000 --- a/includes/kohana/system/tests/kohana/DebugTest.php +++ /dev/null @@ -1,126 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaphp.com/license - */ -class Kohana_DebugTest extends Unittest_TestCase -{ - - /** - * Provides test data for test_debug() - * - * @return array - */ - public function provider_vars() - { - return array( - // $thing, $expected - array(array('foobar'), "
    array(1) (\n    0 => string(6) \"foobar\"\n)
    "), - ); - } - - /** - * Tests Debug::vars() - * - * @test - * @dataProvider provider_vars - * @covers Debug::vars - * @param boolean $thing The thing to debug - * @param boolean $expected Output for Debug::vars - */ - public function test_var($thing, $expected) - { - $this->assertEquals($expected, Debug::vars($thing)); - } - - /** - * Provides test data for testDebugPath() - * - * @return array - */ - public function provider_debug_path() - { - return array( - array( - SYSPATH.'classes'.DIRECTORY_SEPARATOR.'kohana'.EXT, - 'SYSPATH'.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'kohana.php' - ), - array( - SMDPATH.$this->dirSeparator('unittest/classes/kohana/unittest/runner').EXT, - $this->dirSeparator('SMDPATH/unittest/classes/kohana/unittest/runner').EXT - ), - ); - } - - /** - * Tests Debug::path() - * - * @test - * @dataProvider provider_debug_path - * @covers Debug::path - * @param boolean $path Input for Debug::path - * @param boolean $expected Output for Debug::path - */ - public function test_debug_path($path, $expected) - { - $this->assertEquals($expected, Debug::path($path)); - } - - /** - * Provides test data for test_dump() - * - * @return array - */ - public function provider_dump() - { - return array( - array('foobar', 128, 10, 'string(6) "foobar"'), - array('foobar', 2, 10, 'string(6) "fo …"'), - array(NULL, 128, 10, 'NULL'), - array(TRUE, 128, 10, 'bool TRUE'), - array(array('foobar'), 128, 10, "array(1) (\n 0 => string(6) \"foobar\"\n)"), - array(new StdClass, 128, 10, "object stdClass(0) {\n}"), - array("fo\x6F\xFF\x00bar\x8F\xC2\xB110", 128, 10, 'string(10) "foobar±10"'), - array(array('level1' => array('level2' => array('level3' => array('level4' => array('value' => 'something'))))), 128, 4, -'array(1) ( - "level1" => array(1) ( - "level2" => array(1) ( - "level3" => array(1) ( - "level4" => array(1) ( - ... - ) - ) - ) - ) -)'), - ); - } - - /** - * Tests Debug::dump() - * - * @test - * @dataProvider provider_dump - * @covers Debug::dump - * @covers Debug::_dump - * @param object $exception exception to test - * @param string $expected expected output - */ - public function test_dump($input, $length, $limit, $expected) - { - $this->assertEquals($expected, Debug::dump($input, $length, $limit)); - } -} diff --git a/includes/kohana/system/tests/kohana/ExceptionTest.php b/includes/kohana/system/tests/kohana/ExceptionTest.php deleted file mode 100644 index 7c35afb9..00000000 --- a/includes/kohana/system/tests/kohana/ExceptionTest.php +++ /dev/null @@ -1,99 +0,0 @@ - 'b')), 'b', 0), - array(array(':a :b', array(':a' => 'c', ':b' => 'd')), 'c d', 0), - - array(array(':a', NULL, 5), ':a', 5), - // #3358 - array(array(':a', NULL, '3F000'), ':a', '3F000'), - // #3404 - array(array(':a', NULL, '42S22'), ':a', '42S22'), - // #3927 - array(array(':a', NULL, 'b'), ':a', 'b'), - // #4039 - array(array(':a', NULL, '25P01'), ':a', '25P01'), - ); - } - - /** - * Tests Kohana_Kohana_Exception::__construct() - * - * @test - * @dataProvider provider_constructor - * @covers Kohana_Kohana_Exception::__construct - * @param array $arguments Arguments - * @param string $expected_message Value from getMessage() - * @param integer|string $expected_code Value from getCode() - */ - public function test_constructor($arguments, $expected_message, $expected_code) - { - switch (count($arguments)) - { - case 1: - $exception = new Kohana_Exception(reset($arguments)); - break; - case 2: - $exception = new Kohana_Exception(reset($arguments), next($arguments)); - break; - default: - $exception = new Kohana_Exception(reset($arguments), next($arguments), next($arguments)); - } - - $this->assertSame($expected_code, $exception->getCode()); - $this->assertSame($expected_message, $exception->getMessage()); - } - - /** - * Provides test data for test_text() - * - * @return array - */ - public function provider_text() - { - return array( - array(new Kohana_Exception('foobar'), $this->dirSeparator('Kohana_Exception [ 0 ]: foobar ~ SYSPATH/tests/kohana/ExceptionTest.php [ '.__LINE__.' ]')), - ); - } - - /** - * Tests Kohana_Exception::text() - * - * @test - * @dataProvider provider_text - * @covers Kohana_Exception::text - * @param object $exception exception to test - * @param string $expected expected output - */ - public function test_text($exception, $expected) - { - $this->assertEquals($expected, Kohana_Exception::text($exception)); - } -} diff --git a/includes/kohana/system/tests/kohana/FeedTest.php b/includes/kohana/system/tests/kohana/FeedTest.php deleted file mode 100644 index 40986303..00000000 --- a/includes/kohana/system/tests/kohana/FeedTest.php +++ /dev/null @@ -1,123 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_FeedTest extends Unittest_TestCase -{ - /** - * Provides test data for test_parse() - * - * @return array - */ - public function provider_parse() - { - return array( - // $source, $expected - array('http://dev.kohanaframework.org/projects/kohana3/activity.atom', 15), - ); - } - - /** - * Tests that Feed::parse gets the correct number of elements - * - * @test - * @dataProvider provider_parse - * @covers feed::parse - * @param string $source URL to test - * @param integer $expected Count of items - */ - public function test_parse($source, $expected) - { - $this->markTestSkipped('We don\'t go to the internet for tests.'); - - $this->assertEquals($expected, count(Feed::parse($source))); - } - - /** - * Provides test data for test_create() - * - * @return array - */ - public function provider_create() - { - $info = array('pubDate' => 123, 'image' => array('link' => 'http://kohanaframework.org/image.png', 'url' => 'http://kohanaframework.org/', 'title' => 'title')); - - return array( - // $source, $expected - array($info, array('foo' => array('foo' => 'bar', 'pubDate' => 123, 'link' => 'foo')), array('_SERVER' => array('HTTP_HOST' => 'localhost')+$_SERVER), - array( - 'tag' => 'channel', - 'descendant' => array( - 'tag' => 'item', - 'child' => array( - 'tag' => 'foo', - 'content' => 'bar' - ) - ) - ), - array( - $this->matcher_composer($info, 'image', 'link'), - $this->matcher_composer($info, 'image', 'url'), - $this->matcher_composer($info, 'image', 'title') - ) - ), - ); - } - - /** - * Helper for handy matcher composing - * - * @param array $data - * @param string $tag - * @param string $child - * @return array - */ - private function matcher_composer($data, $tag, $child) - { - return array( - 'tag' => 'channel', - 'descendant' => array( - 'tag' => $tag, - 'child' => array( - 'tag' => $child, - 'content' => $data[$tag][$child] - ) - ) - ); - } - - /** - * @test - * - * @dataProvider provider_create - * - * @covers feed::create - * - * @param string $info info to pass - * @param integer $items items to add - * @param integer $matcher output - */ - public function test_create($info, $items, $enviroment, $matcher_item, $matchers_image) - { - $this->setEnvironment($enviroment); - - $this->assertTag($matcher_item, Feed::create($info, $items), '', FALSE); - - foreach ($matchers_image as $matcher_image) - { - $this->assertTag($matcher_image, Feed::create($info, $items), '', FALSE); - } - } -} diff --git a/includes/kohana/system/tests/kohana/FileTest.php b/includes/kohana/system/tests/kohana/FileTest.php deleted file mode 100644 index 8d4c4911..00000000 --- a/includes/kohana/system/tests/kohana/FileTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_FileTest extends Unittest_TestCase -{ - /** - * Provides test data for test_sanitize() - * - * @return array - */ - public function provider_mime() - { - return array( - // $value, $result - array(Kohana::find_file('classes', 'File')), - array(Kohana::find_file('tests', 'test_data/github', 'png')), - ); - } - - /** - * Tests File::mime() - * - * @test - * @dataProvider provider_mime - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_mime($input) - { - $this->markTestSkipped( - 'This test doesn\'t do anything useful!' - ); - $this->assertSame(1, preg_match('/^(?:application|audio|image|message|multipart|text|video)\/[a-z.+0-9-]+$/i', File::mime($input))); - } - - /** - * Provides test data for test_split_join() - * - * @return array - */ - public function provider_split_join() - { - return array( - // $value, $result - array(Kohana::find_file('tests', 'test_data/github', 'png'), .01, 1), - ); - } - - /** - * Tests File::mime() - * - * @test - * @dataProvider provider_split_join - * @param boolean $input Input for File::split - * @param boolean $peices Input for File::split - * @param boolean $expected Output for File::splut - */ - public function test_split_join($input, $peices, $expected) - { - $this->assertSame($expected, File::split($input, $peices)); - $this->assertSame($expected, File::join($input)); - - foreach (glob(Kohana::find_file('tests', 'test_data/github', 'png').'.*') as $file) - { - unlink($file); - } - } -} diff --git a/includes/kohana/system/tests/kohana/FormTest.php b/includes/kohana/system/tests/kohana/FormTest.php deleted file mode 100644 index a3ade946..00000000 --- a/includes/kohana/system/tests/kohana/FormTest.php +++ /dev/null @@ -1,408 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_FormTest extends Unittest_TestCase -{ - /** - * Defaults for this test - * @var array - */ - // @codingStandardsIgnoreStart - protected $environmentDefault = array( - 'Kohana::$base_url' => '/', - 'HTTP_HOST' => 'kohanaframework.org', - 'Kohana::$index_file' => '', - ); - // @codingStandardsIgnoreEnd - - /** - * Provides test data for test_open() - * - * @return array - */ - public function provider_open() - { - return array( - array( - array('', NULL), - array('action' => '') - ), - array( - array(NULL, NULL), - array('action' => '') - ), - array( - array('foo', NULL), - array('action' => '/foo') - ), - array( - array('foo', array('method' => 'get')), - array('action' => '/foo', 'method' => 'get') - ), - ); - } - - /** - * Tests Form::open() - * - * @test - * @dataProvider provider_open - * @param boolean $input Input for Form::open - * @param boolean $expected Output for Form::open - */ - public function test_open($input, $expected) - { - list($action, $attributes) = $input; - - $tag = Form::open($action, $attributes); - - $matcher = array( - 'tag' => 'form', - // Default attributes - 'attributes' => array( - 'method' => 'post', - 'accept-charset' => 'utf-8', - ), - ); - - $matcher['attributes'] = $expected + $matcher['attributes']; - - $this->assertTag($matcher, $tag); - } - - /** - * Tests Form::close() - * - * @test - */ - public function test_close() - { - $this->assertSame('', Form::close()); - } - - /** - * Provides test data for test_input() - * - * @return array - */ - public function provider_input() - { - return array( - // $value, $result - array('input', 'foo', 'bar', NULL, 'input'), - array('input', 'foo', NULL, NULL, 'input'), - array('hidden', 'foo', 'bar', NULL, 'hidden'), - array('password', 'foo', 'bar', NULL, 'password'), - ); - } - - /** - * Tests Form::input() - * - * @test - * @dataProvider provider_input - * @param boolean $input Input for Form::input - * @param boolean $expected Output for Form::input - */ - public function test_input($type, $name, $value, $attributes) - { - $matcher = array( - 'tag' => 'input', - 'attributes' => array('name' => $name, 'type' => $type) - ); - - // Form::input creates a text input - if ($type === 'input') - { - $matcher['attributes']['type'] = 'text'; - } - - // NULL just means no value - if ($value !== NULL) - { - $matcher['attributes']['value'] = $value; - } - - // Add on any attributes - if (is_array($attributes)) - { - $matcher['attributes'] = $attributes + $matcher['attributes']; - } - - $tag = Form::$type($name, $value, $attributes); - - $this->assertTag($matcher, $tag, $tag); - } - - /** - * Provides test data for test_file() - * - * @return array - */ - public function provider_file() - { - return array( - // $value, $result - array('foo', NULL, ''), - ); - } - - /** - * Tests Form::file() - * - * @test - * @dataProvider provider_file - * @param boolean $input Input for Form::file - * @param boolean $expected Output for Form::file - */ - public function test_file($name, $attributes, $expected) - { - $this->assertSame($expected, Form::file($name, $attributes)); - } - - /** - * Provides test data for test_check() - * - * @return array - */ - public function provider_check() - { - return array( - // $value, $result - array('checkbox', 'foo', NULL, FALSE, NULL), - array('checkbox', 'foo', NULL, TRUE, NULL), - array('checkbox', 'foo', 'bar', TRUE, NULL), - - array('radio', 'foo', NULL, FALSE, NULL), - array('radio', 'foo', NULL, TRUE, NULL), - array('radio', 'foo', 'bar', TRUE, NULL), - ); - } - - /** - * Tests Form::check() - * - * @test - * @dataProvider provider_check - * @param boolean $input Input for Form::check - * @param boolean $expected Output for Form::check - */ - public function test_check($type, $name, $value, $checked, $attributes) - { - $matcher = array('tag' => 'input', 'attributes' => array('name' => $name, 'type' => $type)); - - if ($value !== NULL) - { - $matcher['attributes']['value'] = $value; - } - - if (is_array($attributes)) - { - $matcher['attributes'] = $attributes + $matcher['attributes']; - } - - if ($checked === TRUE) - { - $matcher['attributes']['checked'] = 'checked'; - } - - $tag = Form::$type($name, $value, $checked, $attributes); - $this->assertTag($matcher, $tag, $tag); - } - - /** - * Provides test data for test_text() - * - * @return array - */ - public function provider_text() - { - return array( - // $value, $result - array('textarea', 'foo', 'bar', NULL), - array('textarea', 'foo', 'bar', array('rows' => 20, 'cols' => 20)), - array('button', 'foo', 'bar', NULL), - array('label', 'foo', 'bar', NULL), - array('label', 'foo', NULL, NULL), - ); - } - - /** - * Tests Form::textarea() - * - * @test - * @dataProvider provider_text - * @param boolean $input Input for Form::textarea - * @param boolean $expected Output for Form::textarea - */ - public function test_text($type, $name, $body, $attributes) - { - $matcher = array( - 'tag' => $type, - 'attributes' => array(), - 'content' => $body, - ); - - if ($type !== 'label') - { - $matcher['attributes'] = array('name' => $name); - } - else - { - $matcher['attributes'] = array('for' => $name); - } - - - if (is_array($attributes)) - { - $matcher['attributes'] = $attributes + $matcher['attributes']; - } - - $tag = Form::$type($name, $body, $attributes); - - $this->assertTag($matcher, $tag, $tag); - } - - - /** - * Provides test data for test_select() - * - * @return array - */ - public function provider_select() - { - return array( - // $value, $result - array('foo', NULL, NULL, ""), - array('foo', array('bar' => 'bar'), NULL, ""), - array('foo', array('bar' => 'bar'), 'bar', ""), - array('foo', array('bar' => array('foo' => 'bar')), NULL, ""), - array('foo', array('bar' => array('foo' => 'bar')), 'foo', ""), - // #2286 - array('foo', array('bar' => 'bar', 'unit' => 'test', 'foo' => 'foo'), array('bar', 'foo'), ""), - ); - } - - /** - * Tests Form::select() - * - * @test - * @dataProvider provider_select - * @param boolean $input Input for Form::select - * @param boolean $expected Output for Form::select - */ - public function test_select($name, $options, $selected, $expected) - { - // Much more efficient just to assertSame() rather than assertTag() on each element - $this->assertSame($expected, Form::select($name, $options, $selected)); - } - - /** - * Provides test data for test_submit() - * - * @return array - */ - public function provider_submit() - { - return array( - // $value, $result - array('foo', 'Foobar!', ''), - ); - } - - /** - * Tests Form::submit() - * - * @test - * @dataProvider provider_submit - * @param boolean $input Input for Form::submit - * @param boolean $expected Output for Form::submit - */ - public function test_submit($name, $value, $expected) - { - $matcher = array( - 'tag' => 'input', - 'attributes' => array('name' => $name, 'type' => 'submit', 'value' => $value) - ); - - $this->assertTag($matcher, Form::submit($name, $value)); - } - - - /** - * Provides test data for test_image() - * - * @return array - */ - public function provider_image() - { - return array( - // $value, $result - array('foo', 'bar', array('src' => 'media/img/login.png'), ''), - ); - } - - /** - * Tests Form::image() - * - * @test - * @dataProvider provider_image - * @param boolean $name Input for Form::image - * @param boolean $value Input for Form::image - * @param boolean $attributes Input for Form::image - * @param boolean $expected Output for Form::image - */ - public function test_image($name, $value, $attributes, $expected) - { - $this->assertSame($expected, Form::image($name, $value, $attributes)); - } - - /** - * Provides test data for test_label() - * - * @return array - */ - function provider_label() - { - return array( - // $value, $result - // Single for provided - array('email', NULL, NULL, ''), - array('email_address', NULL, NULL, ''), - array('email-address', NULL, NULL, ''), - // For and text values provided - array('name', 'First name', NULL, ''), - // with attributes - array('lastname', 'Last name', array('class' => 'text'), ''), - array('lastname', 'Last name', array('class' => 'text', 'id'=>'txt_lastname'), ''), - ); - } - - /** - * Tests Form::label() - * - * @test - * @dataProvider provider_label - * @param boolean $for Input for Form::label - * @param boolean $text Input for Form::label - * @param boolean $attributes Input for Form::label - * @param boolean $expected Output for Form::label - */ - function test_label($for, $text, $attributes, $expected) - { - $this->assertSame($expected, Form::label($for, $text, $attributes)); - } -} diff --git a/includes/kohana/system/tests/kohana/HTMLTest.php b/includes/kohana/system/tests/kohana/HTMLTest.php deleted file mode 100644 index 015a65da..00000000 --- a/includes/kohana/system/tests/kohana/HTMLTest.php +++ /dev/null @@ -1,367 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_HTMLTest extends Unittest_TestCase -{ - /** - * Defaults for this test - * @var array - */ - // @codingStandardsIgnoreStart - protected $environmentDefault = array( - 'Kohana::$base_url' => '/kohana/', - 'Kohana::$index_file' => 'index.php', - 'HTML::$strict' => TRUE, - 'HTTP_HOST' => 'www.kohanaframework.org', - ); - // @codingStandardsIgnoreStart - - /** - * Provides test data for test_attributes() - * - * @return array - */ - public function provider_attributes() - { - return array( - array( - array('name' => 'field', 'random' => 'not_quite', 'id' => 'unique_field'), - array(), - ' id="unique_field" name="field" random="not_quite"' - ), - array( - array('invalid' => NULL), - array(), - '' - ), - array( - array(), - array(), - '' - ), - array( - array('name' => 'field', 'checked'), - array(), - ' name="field" checked="checked"', - ), - array( - array('id' => 'disabled_field', 'disabled'), - array('HTML::$strict' => FALSE), - ' id="disabled_field" disabled', - ), - ); - } - - /** - * Tests HTML::attributes() - * - * @test - * @dataProvider provider_attributes - * @param array $attributes Attributes to use - * @param array $options Environment options to use - * @param string $expected Expected output - */ - public function test_attributes(array $attributes, array $options, $expected) - { - $this->setEnvironment($options); - - $this->assertSame( - $expected, - HTML::attributes($attributes) - ); - } - - /** - * Provides test data for test_script - * - * @return array Array of test data - */ - public function provider_script() - { - return array( - array( - '', - 'http://google.com/script.js', - ), - array( - '', - 'my/script.js', - NULL, - 'http', - TRUE - ), - array( - '', - 'my/script.js', - NULL, - 'https', - FALSE - ), - array( - '', - '/my/script.js', // Test absolute paths - NULL, - 'https', - FALSE - ), - - ); - } - - /** - * Tests HTML::script() - * - * @test - * @dataProvider provider_script - * @param string $expected Expected output - * @param string $file URL to script - * @param array $attributes HTML attributes for the anchor - * @param string $protocol Protocol to use - * @param bool $index Should the index file be included in url? - */ - public function test_script($expected, $file, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - $this->assertSame( - $expected, - HTML::script($file, $attributes, $protocol, $index) - ); - } - - /** - * Data provider for the style test - * - * @return array Array of test data - */ - public function provider_style() - { - return array( - array( - '', - 'http://google.com/style.css', - array(), - NULL, - FALSE - ), - array( - '', - 'my/style.css', - array(), - NULL, - FALSE - ), - array( - '', - 'my/style.css', - array(), - 'https', - FALSE - ), - array( - '', - 'my/style.css', - array(), - 'https', - TRUE - ), - array( - '', - '/my/style.css', - array(), - 'https', - TRUE - ), - array( - // #4283: http://dev.kohanaframework.org/issues/4283 - '', - 'my/style.css', - array( - 'rel' => 'stylesheet/less' - ), - 'https', - TRUE - ), - ); - } - - /** - * Tests HTML::style() - * - * @test - * @dataProvider provider_style - * @param string $expected The expected output - * @param string $file The file to link to - * @param array $attributes Any extra attributes for the link - * @param string $protocol Protocol to use - * @param bool $index Whether the index file should be added to the link - */ - public function test_style($expected, $file, array $attributes = NULL, $protocol = NULL, $index = FALSE) - { - $this->assertSame( - $expected, - HTML::style($file, $attributes, $protocol, $index) - ); - } - - /** - * Provides test data for test_anchor - * - * @return array Test data - */ - public function provider_anchor() - { - return array( - array( - '
    Kohana', - array(), - 'http://kohanaframework.org', - 'Kohana', - ), - array( - 'GOOGLE', - array(), - 'http://google.com', - 'GOOGLE', - array('target' => '_blank'), - 'http', - ), - array( - 'Kohana', - array(), - 'users/example', - 'Kohana', - NULL, - 'https', - FALSE, - ), - array( - 'Kohana', - array(), - 'users/example', - 'Kohana', - NULL, - 'https', - TRUE, - ), - array( - 'Kohana', - array(), - 'users/example', - 'Kohana', - NULL, - 'https', - ), - array( - 'Kohana', - array(), - 'users/example', - 'Kohana', - NULL, - 'https', - TRUE, - ), - array( - 'Kohana', - array(), - 'users/example', - 'Kohana', - NULL, - 'https', - FALSE, - ), - array( - 'Kohana', - array(), - '/users/example', - 'Kohana', - NULL, - 'https', - FALSE, - ), - ); - } - - /** - * Tests HTML::anchor - * - * @test - * @dataProvider provider_anchor - */ - public function test_anchor($expected, array $options, $uri, $title = NULL, array $attributes = NULL, $protocol = NULL, $index = TRUE) - { - // $this->setEnvironment($options); - - $this->assertSame( - $expected, - HTML::anchor($uri, $title, $attributes, $protocol, $index) - ); - } - - /** - * Data provider for test_file_anchor - * - * @return array - */ - public function provider_file_anchor() - { - return array( - array( - 'My picture file', - array(), - 'mypic.png', - 'My picture file', - ), - array( - 'My picture file', - array('attr' => 'value'), - 'mypic.png', - 'My picture file', - 'https', - TRUE - ), - array( - 'My picture file', - array(), - 'mypic.png', - 'My picture file', - 'ftp', - FALSE - ), - array( - 'My picture file', - array(), - '/mypic.png', - 'My picture file', - 'ftp', - FALSE - ), - ); - } - - /** - * Test for HTML::file_anchor() - * - * @test - * @covers HTML::file_anchor - * @dataProvider provider_file_anchor - */ - public function test_file_anchor($expected, array $attributes, $file, $title = NULL, $protocol = NULL, $index = FALSE) - { - $this->assertSame( - $expected, - HTML::file_anchor($file, $title, $attributes, $protocol, $index) - ); - } -} diff --git a/includes/kohana/system/tests/kohana/HTTPTest.php b/includes/kohana/system/tests/kohana/HTTPTest.php deleted file mode 100644 index 0f805489..00000000 --- a/includes/kohana/system/tests/kohana/HTTPTest.php +++ /dev/null @@ -1,87 +0,0 @@ - '/kohana/', - 'Kohana::$index_file' => 'index.php', - 'HTTP_HOST' => 'www.example.com', - ); - // @codingStandardsIgnoreEnd - - /** - * Provides test data for test_attributes() - * - * @return array - */ - public function provider_redirect() - { - return array( - array( - 'http://www.example.org/', - 301, - 'HTTP_Exception_301', - 'http://www.example.org/' - ), - array( - '/page_one', - 302, - 'HTTP_Exception_302', - 'http://www.example.com/kohana/index.php/page_one' - ), - array( - 'page_two', - 303, - 'HTTP_Exception_303', - 'http://www.example.com/kohana/index.php/page_two' - ), - ); - } - - /** - * Tests HTTP::redirect() - * - * @test - * @dataProvider provider_redirect - * @param array $location Location to redirect to - * @param array $code HTTP Code to use for the redirect - * @param string $expected_exception Expected exception - * @param string $expected_location Expected exception - */ - public function test_redirect($location, $code, $expected_exception, $expected_location) - { - try - { - HTTP::redirect($location, $code); - } - catch (HTTP_Exception_Redirect $e) - { - $response = $e->get_response(); - - $this->assertInstanceOf($expected_exception, $e); - $this->assertEquals($expected_location, $response->headers('Location')); - - return; - } - - $this->fail('HTTP_Exception_Redirect not thrown'); - } -} diff --git a/includes/kohana/system/tests/kohana/Http/HeaderTest.php b/includes/kohana/system/tests/kohana/Http/HeaderTest.php deleted file mode 100644 index 0894b468..00000000 --- a/includes/kohana/system/tests/kohana/Http/HeaderTest.php +++ /dev/null @@ -1,1491 +0,0 @@ - (float) 1, - 'text/plain' => 0.5, - 'application/json' => 0.1, - 'text/*' => (float) 1 - ) - ), - array( - array( - 'text/*', - 'text/html; level=1; q=0.4', - 'application/xml+rss; q=0.5; level=4' - ), - array( - 'text/*' => (float) 1, - 'text/html; level=1' => 0.4, - 'application/xml+rss; level=4' => 0.5 - ) - ) - ); - } - - /** - * Tests the `accept_quality` method parses the quality values - * correctly out of header parts - * - * @dataProvider provider_accept_quality - * - * @param array $parts input - * @param array $expected expected output - * @return void - */ - public function test_accept_quality(array $parts, array $expected) - { - $out = HTTP_Header::accept_quality($parts); - - foreach ($out as $key => $value) - { - $this->assertInternalType('float', $value); - } - - $this->assertSame($expected, $out); - } - - /** - * Data provider for test_parse_accept_header - * - * @return array - */ - public function provider_parse_accept_header() - { - return array( - array( - 'text/html, text/plain, text/*, */*', - array( - 'text' => array( - 'html' => (float) 1, - 'plain' => (float) 1, - '*' => (float) 1 - ), - '*' => array( - '*' => (float) 1 - ) - ) - ), - array( - 'text/html; q=.5, application/json, application/xml+rss; level=1; q=.7, text/*, */*', - array( - 'text' => array( - 'html' => 0.5, - '*' => (float) 1 - ), - 'application' => array( - 'json' => (float) 1, - 'xml+rss; level=1' => 0.7 - ), - '*' => array( - '*' => (float) 1 - ) - ) - ) - ); - } - - /** - * Tests the `parse_accept_header` method parses the Accept: header - * correctly and returns expected output - * - * @dataProvider provider_parse_accept_header - * - * @param string $accept accept in - * @param array $expected expected out - * @return void - */ - public function test_parse_accept_header($accept, array $expected) - { - $this->assertSame($expected, HTTP_Header::parse_accept_header($accept)); - } - - /** - * Provides data for test_parse_charset_header - * - * @return array - */ - public function provider_parse_charset_header() - { - return array( - array( - 'utf-8, utf-10, utf-16, iso-8859-1', - array( - 'utf-8' => (float) 1, - 'utf-10' => (float) 1, - 'utf-16' => (float) 1, - 'iso-8859-1'=> (float) 1 - ) - ), - array( - 'utf-8, utf-10; q=.9, utf-16; q=.5, iso-8859-1; q=.75', - array( - 'utf-8' => (float) 1, - 'utf-10' => 0.9, - 'utf-16' => 0.5, - 'iso-8859-1'=> 0.75 - ) - ), - array( - NULL, - array( - '*' => (float) 1 - ) - ) - ); - } - - /** - * Tests the `parse_charset_header` method parsed the Accept-Charset header - * correctly - * - * @dataProvider provider_parse_charset_header - * - * @param string $accept accept - * @param array $expected expected - * @return void - */ - public function test_parse_charset_header($accept, array $expected) - { - $this->assertSame($expected, HTTP_Header::parse_charset_header($accept)); - } - - /** - * Provides data for test_parse_charset_header - * - * @return array - */ - public function provider_parse_encoding_header() - { - return array( - array( - 'compress, gzip, blowfish', - array( - 'compress' => (float) 1, - 'gzip' => (float) 1, - 'blowfish' => (float) 1 - ) - ), - array( - 'compress, gzip; q=0.12345, blowfish; q=1.0', - array( - 'compress' => (float) 1, - 'gzip' => 0.12345, - 'blowfish' => (float) 1 - ) - ), - array( - NULL, - array( - '*' => (float) 1 - ) - ), - array( - '', - array( - 'identity' => (float) 1 - ) - ) - ); - } - - /** - * Tests the `parse_encoding_header` method parses the Accept-Encoding header - * correctly - * - * @dataProvider provider_parse_encoding_header - * - * @param string $accept accept - * @param array $expected expected - * @return void - */ - public function test_parse_encoding_header($accept, array $expected) - { - $this->assertSame($expected, HTTP_Header::parse_encoding_header($accept)); - } - - /** - * Provides data for test_parse_charset_header - * - * @return array - */ - public function provider_parse_language_header() - { - return array( - array( - 'en, en-us, en-gb, fr, fr-fr, es-es', - array( - 'en' => array( - '*' => (float) 1, - 'us' => (float) 1, - 'gb' => (float) 1 - ), - 'fr' => array( - '*' => (float) 1, - 'fr' => (float) 1 - ), - 'es' => array( - 'es' => (float) 1 - ) - ) - ), - array( - 'en; q=.9, en-us, en-gb, fr; q=.5, fr-fr; q=0.4, es-es; q=0.9, en-gb-gb; q=.45', - array( - 'en' => array( - '*' => 0.9, - 'us' => (float) 1, - 'gb' => (float) 1, - 'gb-gb' => 0.45 - ), - 'fr' => array( - '*' => 0.5, - 'fr' => 0.4 - ), - 'es' => array( - 'es' => 0.9 - ) - ) - ), - array( - NULL, - array( - '*' => array( - '*' => (float) 1 - ) - ) - ) - ); - } - - /** - * Tests the `parse_language_header` method parses the Accept-Language header - * correctly - * - * @dataProvider provider_parse_language_header - * - * @param string $accept accept - * @param array $expected expected - * @return void - */ - public function test_parse_language_header($accept, array $expected) - { - $this->assertSame($expected, HTTP_Header::parse_language_header($accept)); - } - - /** - * Data provider for test_create_cache_control - * - * @return array - */ - public function provider_create_cache_control() - { - return array( - array( - array( - 'public', - 'max-age' => 1800, - 'must-revalidate', - 's-max-age' => 3600 - ), - 'public, max-age=1800, must-revalidate, s-max-age=3600' - ), - array( - array( - 'max-age' => 1800, - 's-max-age' => 1800, - 'public', - 'must-revalidate', - ), - 'max-age=1800, s-max-age=1800, public, must-revalidate' - ), - array( - array( - 'private', - 'no-cache', - 'max-age' => 0, - 'must-revalidate' - ), - 'private, no-cache, max-age=0, must-revalidate' - ) - ); - } - - /** - * Tests that `create_cache_control()` outputs the correct cache control - * string from the supplied input - * - * @dataProvider provider_create_cache_control - * - * @param array $input input - * @param string $expected expected - * @return void - */ - public function test_create_cache_control(array $input, $expected) - { - $this->assertSame($expected, HTTP_Header::create_cache_control($input)); - } - - /** - * Data provider for parse_cache_control - * - * @return array - */ - public function provider_parse_cache_control() - { - return array( - array( - 'public, max-age=1800, must-revalidate, s-max-age=3600', - array( - 'public', - 'max-age' => 1800, - 'must-revalidate', - 's-max-age' => 3600 - ) - ), - array( - 'max-age=1800, s-max-age=1800, public, must-revalidate', - array( - 'max-age' => 1800, - 's-max-age' => 1800, - 'public', - 'must-revalidate', - ) - ), - array( - 'private, no-cache, max-age=0, must-revalidate', - array( - 'private', - 'no-cache', - 'max-age' => 0, - 'must-revalidate' - ) - ) - ); - } - - /** - * Tests that `parse_cache_control()` outputs the correct cache control - * parsed data from the input string - * - * @dataProvider provider_parse_cache_control - * - * @param string $input input - * @param array $expected expected - * @return void - */ - public function test_parse_cache_control($input, array $expected) - { - $parsed = HTTP_Header::parse_cache_control($input); - - $this->assertInternalType('array', $parsed); - - foreach ($expected as $key => $value) - { - if (is_int($key)) - { - $this->assertTrue(in_array($value, $parsed)); - } - else - { - $this->assertTrue(array_key_exists($key, $parsed)); - $this->assertSame($value, $parsed[$key]); - } - } - } - - /** - * Data provider for test_offsetSet - * - * @return array - */ - // @codingStandardsIgnoreStart - public function provider_offsetSet() - // @codingStandardsIgnoreEnd - { - return array( - array( - array( - 'Content-Type' => 'application/x-www-form-urlencoded', - 'Accept' => 'text/html, text/plain; q=.1, */*', - 'Accept-Language' => 'en-gb, en-us, en; q=.1' - ), - array( - array( - 'Accept-Encoding', - 'compress, gzip', - FALSE - ) - ), - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'accept' => 'text/html, text/plain; q=.1, */*', - 'accept-language' => 'en-gb, en-us, en; q=.1', - 'accept-encoding' => 'compress, gzip' - ) - ), - array( - array( - 'Content-Type' => 'application/x-www-form-urlencoded', - 'Accept' => 'text/html, text/plain; q=.1, */*', - 'Accept-Language' => 'en-gb, en-us, en; q=.1' - ), - array( - array( - 'Accept-Encoding', - 'compress, gzip', - FALSE - ), - array( - 'Accept-Encoding', - 'bzip', - FALSE - ) - ), - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'accept' => 'text/html, text/plain; q=.1, */*', - 'accept-language' => 'en-gb, en-us, en; q=.1', - 'accept-encoding' => array( - 'compress, gzip', - 'bzip' - ) - ) - ), - array( - array( - 'Content-Type' => 'application/x-www-form-urlencoded', - 'Accept' => 'text/html, text/plain; q=.1, */*', - 'Accept-Language' => 'en-gb, en-us, en; q=.1' - ), - array( - array( - 'Accept-Encoding', - 'compress, gzip', - FALSE - ), - array( - 'Accept-Encoding', - 'bzip', - TRUE - ), - array( - 'Accept', - 'text/*', - FALSE - ) - ), - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'accept' => array( - 'text/html, text/plain; q=.1, */*', - 'text/*' - ), - 'accept-language' => 'en-gb, en-us, en; q=.1', - 'accept-encoding' => 'bzip' - ) - ), - ); - } - - /** - * Ensures that offsetSet normalizes the array keys - * - * @dataProvider provider_offsetSet - * - * @param array $constructor constructor - * @param array $to_set to_set - * @param array $expected expected - * @return void - */ - // @codingStandardsIgnoreStart - public function test_offsetSet(array $constructor, array $to_set, array $expected) - // @codingStandardsIgnoreEnd - { - $http_header = new HTTP_Header($constructor); - - $reflection = new ReflectionClass($http_header); - $method = $reflection->getMethod('offsetSet'); - - foreach ($to_set as $args) - { - $method->invokeArgs($http_header, $args); - } - - $this->assertSame($expected, $http_header->getArrayCopy()); - } - - /** - * Data provider for test_offsetGet - * - * @return array - */ - // @codingStandardsIgnoreStart - public function provider_offsetGet() - // @codingStandardsIgnoreEnd - { - return array( - array( - array( - 'FoO' => 'bar', - 'START' => 'end', - 'true' => TRUE - ), - 'FOO', - 'bar' - ), - array( - array( - 'FoO' => 'bar', - 'START' => 'end', - 'true' => TRUE - ), - 'true', - TRUE - ), - array( - array( - 'FoO' => 'bar', - 'START' => 'end', - 'true' => TRUE - ), - 'True', - TRUE - ), - array( - array( - 'FoO' => 'bar', - 'START' => 'end', - 'true' => TRUE - ), - 'Start', - 'end' - ), - array( - array( - 'content-type' => 'bar', - 'Content-Type' => 'end', - 'Accept' => '*/*' - ), - 'content-type', - 'end' - ) - ); - } - - /** - * Ensures that offsetGet normalizes the array keys - * - * @dataProvider provider_offsetGet - * - * @param array start state - * @param string key to retrieve - * @param mixed expected - * @return void - */ - // @codingStandardsIgnoreStart - public function test_offsetGet(array $state, $key, $expected) - // @codingStandardsIgnoreEnd - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->offsetGet($key)); - } - - /** - * Data provider for test_offsetExists - * - * @return array - */ - // @codingStandardsIgnoreStart - public function provider_offsetExists() - // @codingStandardsIgnoreEnd - { - return array( - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'Content-Type', - TRUE - ), - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'CONTENT-TYPE', - TRUE - ), - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'accept-language', - TRUE - ), - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'x-powered-by', - FALSE - ) - ); - } - - /** - * Ensures that offsetExists normalizes the array key - * - * @dataProvider provider_offsetExists - * - * @param array $state state - * @param string $key key - * @param boolean $expected expected - * @return void - */ - // @codingStandardsIgnoreStart - public function test_offsetExists(array $state, $key, $expected) - // @codingStandardsIgnoreEnd - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->offsetExists($key)); - } - - /** - * Data provider for test_offsetUnset - * - * @return array - */ - // @codingStandardsIgnoreStart - public function provider_offsetUnset() - // @codingStandardsIgnoreEnd - { - return array( - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'Accept-Language', - array( - 'accept' => 'text/html, application/json', - 'content-type' => 'application/x-www-form-urlencoded' - ) - ), - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'ACCEPT', - array( - 'accept-language' => 'en, en-GB', - 'content-type' => 'application/x-www-form-urlencoded' - ) - ), - array( - array( - 'Accept' => 'text/html, application/json', - 'Accept-Language' => 'en, en-GB', - 'Content-Type' => 'application/x-www-form-urlencoded' - ), - 'content-type', - array( - 'accept' => 'text/html, application/json', - 'accept-language' => 'en, en-GB', - ) - ) - ); - } - - /** - * Tests that `offsetUnset` normalizes the key names properly - * - * @dataProvider provider_offsetUnset - * - * @param array $state state - * @param string $remove remove - * @param array $expected expected - * @return void - */ - // @codingStandardsIgnoreStart - public function test_offsetUnset(array $state, $remove, array $expected) - // @codingStandardsIgnoreEnd - { - $header = new HTTP_Header($state); - $header->offsetUnset($remove); - - $this->assertSame($expected, $header->getArrayCopy()); - } - - /** - * Provides data for test_parse_header_string - * - * @return array - */ - public function provider_parse_header_string() - { - return array( - array( - array( - "Content-Type: application/x-www-form-urlencoded\r\n", - "Accept: text/html, text/plain; q=.5, application/json, */* \r\n", - "X-Powered-By: Kohana Baby \r\n" - ), - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'accept' => 'text/html, text/plain; q=.5, application/json, */* ', - 'x-powered-by' => 'Kohana Baby ' - ) - ), - array( - array( - "Content-Type: application/x-www-form-urlencoded\r\n", - "Accept: text/html, text/plain; q=.5, application/json, */* \r\n", - "X-Powered-By: Kohana Baby \r\n", - "Content-Type: application/json\r\n" - ), - array( - 'content-type' => array( - 'application/x-www-form-urlencoded', - 'application/json' - ), - 'accept' => 'text/html, text/plain; q=.5, application/json, */* ', - 'x-powered-by' => 'Kohana Baby ' - ) - ) - ); - } - - /** - * Tests that `parse_header_string` performs as expected - * - * @dataProvider provider_parse_header_string - * - * @param array headers - * @param array expected - * @return void - */ - public function test_parse_header_string(array $headers, array $expected) - { - $http_header = new HTTP_Header(array()); - - foreach ($headers as $header) - { - - $this->assertEquals(strlen($header), $http_header->parse_header_string(NULL, $header)); - } - - $this->assertSame($expected, $http_header->getArrayCopy()); - } - - /** - * Data Provider for test_accepts_at_quality - * - * @return array - */ - public function provider_accepts_at_quality() - { - return array( - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'application/json', - FALSE, - 1.0 - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'text/html', - FALSE, - 0.5 - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'text/plain', - FALSE, - 0.1 - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'text/plain', - TRUE, - FALSE - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'application/xml', - FALSE, - 1.0 - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - 'application/xml', - TRUE, - FALSE - ), - array( - array(), - 'application/xml', - FALSE, - 1.0 - ), - array( - array(), - 'application/xml', - TRUE, - FALSE - ) - ); - } - - /** - * Tests `accepts_at_quality` parsed the Accept: header as expected - * - * @dataProvider provider_accepts_at_quality - * - * @param array starting state - * @param string accept header to test - * @param boolean explicitly check - * @param mixed expected output - * @return void - */ - public function test_accepts_at_quality(array $state, $accept, $explicit, $expected) - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->accepts_at_quality($accept, $explicit)); - } - - /** - * Data provider for test_preferred_accept - * - * @return array - */ - public function provider_preferred_accept() - { - return array( - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - array( - 'text/html', - 'application/json', - 'text/plain' - ), - FALSE, - 'application/json' - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - array( - 'text/plain', - 'application/xml', - 'image/jpeg' - ), - FALSE, - 'application/xml' - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1' - ), - array( - 'text/plain', - 'application/xml', - 'image/jpeg' - ), - FALSE, - 'text/plain' - ), - array( - array( - 'Accept' => 'application/json, text/html; q=.5, text/*; q=.1, */*' - ), - array( - 'text/plain', - 'application/xml', - 'image/jpeg' - ), - TRUE, - FALSE - ), - - ); - } - - /** - * Tests `preferred_accept` returns the correct preferred type - * - * @dataProvider provider_preferred_accept - * - * @param array state - * @param array accepts - * @param string explicit - * @param string expected - * @return void - */ - public function test_preferred_accept(array $state, array $accepts, $explicit, $expected) - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->preferred_accept($accepts, $explicit)); - } - - /** - * Data provider for test_accepts_charset_at_quality - * - * @return array - */ - public function provider_accepts_charset_at_quality() - { - return array( - array( - array( - 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' - ), - 'utf-8', - 1.0 - ), - array( - array( - 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' - ), - 'utf-16', - 1.0 - ), - array( - array( - 'Accept-Charset' => 'utf-8; q=.1, utf-10, utf-16; q=.2, iso-8859-1' - ), - 'utf-8', - 0.1 - ), - array( - array( - 'Accept-Charset' => 'utf-8; q=.1, utf-10, utf-16; q=.2, iso-8859-1; q=.5' - ), - 'iso-8859-1', - 0.5 - ) - ); - } - - /** - * Tests `accepts_charset_at_quality` works as expected, returning the correct - * quality value - * - * @dataProvider provider_accepts_charset_at_quality - * - * @param array state - * @param string charset - * @param string expected - * @return void - */ - public function test_accepts_charset_at_quality(array $state, $charset, $expected) - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->accepts_charset_at_quality($charset)); - } - - /** - * Data provider for test_preferred_charset - * - * @return array - */ - public function provider_preferred_charset() - { - return array( - array( - array( - 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' - ), - array( - 'utf-8', - 'utf-16' - ), - 'utf-8' - ), - array( - array( - 'Accept-Charset' => 'utf-8, utf-10, utf-16, iso-8859-1' - ), - array( - 'UTF-10' - ), - 'UTF-10' - ), - ); - } - - /** - * Tests `preferred_charset` works as expected, returning the correct charset - * from the list supplied - * - * @dataProvider provider_preferred_charset - * - * @param array state - * @param array charsets - * @param string expected - * @return void - */ - public function test_preferred_charset(array $state, array $charsets, $expected) - { - $header = new HTTP_Header($state); - - $this->assertSame($expected, $header->preferred_charset($charsets)); - } - - /** - * Data provider for test_accepts_encoding_at_quality - * - * @return array - */ - public function provider_accepts_encoding_at_quality() - { - return array( - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - 'gzip', - FALSE, - 1.0 - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - 'gzip', - TRUE, - 1.0 - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - 'blowfish', - FALSE, - 0.7 - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - 'bzip', - FALSE, - 0.5 - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - 'bzip', - TRUE, - (float) 0 - ) - ); - } - - /** - * Tests `accepts_encoding_at_quality` parses and returns the correct - * quality value for Accept-Encoding headers - * - * @dataProvider provider_accepts_encoding_at_quality - * - * @param array state - * @param string encoding - * @param boolean explicit - * @param float expected - * @return void - */ - public function test_accepts_encoding_at_quality(array $state, $encoding, $explicit, $expected) - { - $header = new HTTP_Header($state); - $this->assertSame($expected, $header->accepts_encoding_at_quality($encoding, $explicit)); - } - - /** - * Data provider for test_preferred_encoding - * - * @return array - */ - public function provider_preferred_encoding() - { - return array( - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - array('gzip', 'blowfish', 'bzip'), - FALSE, - 'gzip' - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - array('bzip', 'ROT-13'), - FALSE, - 'bzip' - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.7, *; q=.5' - ), - array('bzip', 'ROT-13'), - TRUE, - FALSE - ), - array( - array( - 'accept-encoding' => 'compress, gzip, blowfish; q=.2, *; q=.5' - ), - array('ROT-13', 'blowfish'), - FALSE, - 'ROT-13' - ), - ); - } - - /** - * Tests that `preferred_encoding` parses and returns the correct - * encoding type - * - * @dataProvider provider_preferred_encoding - * - * @param array state in - * @param array encodings to interrogate - * @param boolean explicit check - * @param string expected output - * @return void - */ - public function test_preferred_encoding(array $state, array $encodings, $explicit, $expected) - { - $header = new HTTP_Header($state); - $this->assertSame($expected, $header->preferred_encoding($encodings, $explicit)); - } - - /** - * Data provider for test_accepts_language_at_quality - * - * @return array - */ - public function provider_accepts_language_at_quality() - { - return array( - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - 'en', - FALSE, - 0.5 - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - 'en-gb', - FALSE, - 0.7 - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - 'en', - TRUE, - 0.5 - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - 'fr-ni', - FALSE, - 0.8 - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - 'fr-ni', - TRUE, - (float) 0 - ), - array( - array( - 'accept-language' => 'en-US' - ), - 'en-us', - TRUE, - (float) 1 - ), - ); - } - - /** - * Tests `accepts_language_at_quality` parses the Accept-Language header - * correctly and identifies the correct quality supplied, explicit or not - * - * @dataProvider provider_accepts_language_at_quality - * - * @param array state in - * @param string language to interrogate - * @param boolean explicit check - * @param float expected output - * @return void - */ - public function test_accepts_language_at_quality(array $state, $language, $explicit, $expected) - { - $header = new HTTP_Header($state); - $this->assertSame($expected, $header->accepts_language_at_quality($language, $explicit)); - } - - /** - * Data provider for test_preferred_language - * - * @return array - */ - public function provider_preferred_language() - { - return array( - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - array( - 'en', - 'fr', - 'en-gb' - ), - FALSE, - 'fr' - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - array( - 'en', - 'fr', - 'en-gb' - ), - TRUE, - 'fr' - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - array( - 'en-au', - 'fr-ni', - 'fr' - ), - FALSE, - 'fr-ni' - ), - array( - array( - 'accept-language' => 'en-us; q=.9, en-gb; q=.7, en; q=.5, fr-fr; q=.9, fr; q=.8' - ), - array( - 'en-au', - 'fr-ni', - 'fr' - ), - TRUE, - 'fr' - ), - array( - array( - 'accept-language' => 'en-US' - ), - array( - 'en-us' - ), - TRUE, - 'en-us' - ), - ); - } - - /** - * Tests that `preferred_language` correctly identifies the right - * language based on the Accept-Language header and `$explicit` setting - * - * @dataProvider provider_preferred_language - * - * @param array state in - * @param array languages to interrogate - * @param boolean explicit check - * @param string expected output - * @return void - */ - public function test_preferred_language(array $state, array $languages, $explicit, $expected) - { - $header = new HTTP_Header($state); - $this->assertSame($expected, $header->preferred_language($languages, $explicit)); - } - - /** - * Data provider for test_send_headers - * - * @return array - */ - public function provider_send_headers() - { - $content_type = Kohana::$content_type.'; charset='.Kohana::$charset; - - return array( - array( - array(), - array( - 'HTTP/1.1 200 OK', - 'Content-Type: '.$content_type, - ), - FALSE, - ), - array( - array(), - array( - 'HTTP/1.1 200 OK', - 'Content-Type: '.$content_type, - 'X-Powered-By: '.Kohana::version(), - ), - TRUE, - ), - array( - array( - 'accept' => 'text/html, text/plain, text/*, */*', - 'accept-charset' => 'utf-8, utf-10, iso-8859-1', - 'accept-encoding' => 'compress, gzip', - 'accept-language' => 'en, en-gb, en-us' - ), - array( - 'HTTP/1.1 200 OK', - 'Accept: text/html, text/plain, text/*, */*', - 'Accept-Charset: utf-8, utf-10, iso-8859-1', - 'Accept-Encoding: compress, gzip', - 'Accept-Language: en, en-gb, en-us', - 'Content-Type: '.$content_type, - ), - FALSE - ), - array( - array( - 'accept' => 'text/html, text/plain, text/*, */*', - 'accept-charset' => 'utf-8, utf-10, iso-8859-1', - 'accept-encoding' => 'compress, gzip', - 'accept-language' => 'en, en-gb, en-us', - 'content-type' => 'application/json', - 'x-powered-by' => 'Mohana', - 'x-ssl-enabled' => 'TRUE' - ), - array( - 'HTTP/1.1 200 OK', - 'Accept: text/html, text/plain, text/*, */*', - 'Accept-Charset: utf-8, utf-10, iso-8859-1', - 'Accept-Encoding: compress, gzip', - 'Accept-Language: en, en-gb, en-us', - 'Content-Type: application/json', - 'X-Powered-By: Mohana', - 'X-Ssl-Enabled: TRUE' - ), - TRUE - ) - ); - } - - /** - * Tests that send headers processes the headers sent to PHP correctly - * - * @dataProvider provider_send_headers - * - * @param array state in - * @param array expected out - * @return void - */ - public function test_send_headers(array $state, array $expected, $expose) - { - Kohana::$expose = $expose; - - $response = new Response; - $response->headers($state); - - $this->assertSame( - $expected, - $response->send_headers(FALSE, array($this, 'send_headers_handler')) - ); - } - - /** - * Callback handler for send headers - * - * @param array headers - * @param boolean replace - * @return array - */ - public function send_headers_handler($response, $headers, $replace) - { - return $headers; - } -} // End Kohana_HTTP_HeaderTest \ No newline at end of file diff --git a/includes/kohana/system/tests/kohana/I18nTest.php b/includes/kohana/system/tests/kohana/I18nTest.php deleted file mode 100644 index b91fdd4b..00000000 --- a/includes/kohana/system/tests/kohana/I18nTest.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_I18nTest extends Unittest_TestCase { - - /** - * Default values for the environment, see setEnvironment - * @var array - */ - // @codingStandardsIgnoreStart - protected $environmentDefault = array( - 'I18n::$lang' => 'en-us', - ); - // @codingStandardsIgnoreEnd - - /** - * Provides test data for test_lang() - * - * @return array - */ - public function provider_lang() - { - return array( - // $input, $expected_result - array(NULL, 'en-us'), - array('es-es', 'es-es'), - ); - } - - /** - * Tests I18n::lang() - * - * @test - * @dataProvider provider_lang - * @param boolean $input Input for I18n::lang - * @param boolean $expected Output for I18n::lang - */ - public function test_lang($input, $expected_result) - { - $this->assertSame($expected_result, I18n::lang($input)); - $this->assertSame($expected_result, I18n::lang()); - } - - /** - * Provides test data for test_get() - * - * @return array - */ - public function provider_get() - { - return array( - // $value, $result - array('en-us', 'Hello, world!', 'Hello, world!'), - array('es-es', 'Hello, world!', '¡Hola, mundo!'), - array('fr-fr', 'Hello, world!', 'Bonjour, monde!'), - ); - } - - /** - * Tests i18n::get() - * - * @test - * @dataProvider provider_get - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_get($lang, $input, $expected) - { - I18n::lang($lang); - $this->assertSame($expected, I18n::get($input)); - - // Test immediate translation, issue #3085 - I18n::lang('en-us'); - $this->assertSame($expected, I18n::get($input, $lang)); - } - -} diff --git a/includes/kohana/system/tests/kohana/InflectorTest.php b/includes/kohana/system/tests/kohana/InflectorTest.php deleted file mode 100644 index 9478a0d3..00000000 --- a/includes/kohana/system/tests/kohana/InflectorTest.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_InflectorTest extends Unittest_TestCase -{ - /** - * Provides test data for test_lang() - * - * @return array - */ - public function provider_uncountable() - { - return array( - // $value, $result - array('fish', TRUE), - array('cat', FALSE), - array('deer', TRUE), - array('bison', TRUE), - array('friend', FALSE), - ); - } - - /** - * Tests Inflector::uncountable - * - * @test - * @dataProvider provider_uncountable - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_uncountable($input, $expected) - { - $this->assertSame($expected, Inflector::uncountable($input)); - } - - /** - * Provides test data for test_lang() - * - * @return array - */ - public function provider_singular() - { - return array( - // $value, $result - array('fish', NULL, 'fish'), - array('cats', NULL, 'cat'), - array('cats', 2, 'cats'), - array('cats', '2', 'cats'), - array('children', NULL, 'child'), - array('meters', 0.6, 'meters'), - array('meters', 1.6, 'meters'), - array('meters', 1.0, 'meter'), - array('status', NULL, 'status'), - array('statuses', NULL, 'status'), - array('heroes', NULL, 'hero'), - ); - } - - /** - * Tests Inflector::singular - * - * @test - * @dataProvider provider_singular - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_singular($input, $count, $expected) - { - $this->assertSame($expected, Inflector::singular($input, $count)); - } - - /** - * Provides test data for test_lang() - * - * @return array - */ - public function provider_plural() - { - return array( - // $value, $result - array('fish', NULL, 'fish'), - array('cat', NULL, 'cats'), - array('cats', 1, 'cats'), - array('cats', '1', 'cats'), - array('movie', NULL, 'movies'), - array('meter', 0.6, 'meters'), - array('meter', 1.6, 'meters'), - array('meter', 1.0, 'meter'), - array('hero', NULL, 'heroes'), - array('Dog', NULL, 'Dogs'), // Titlecase - array('DOG', NULL, 'DOGS'), // Uppercase - ); - } - - /** - * Tests Inflector::plural - * - * @test - * @dataProvider provider_plural - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_plural($input, $count, $expected) - { - $this->assertSame($expected, Inflector::plural($input, $count)); - } - - /** - * Provides test data for test_camelize() - * - * @return array - */ - public function provider_camelize() - { - return array( - // $value, $result - array('mother cat', 'camelize', 'motherCat'), - array('kittens in bed', 'camelize', 'kittensInBed'), - array('mother cat', 'underscore', 'mother_cat'), - array('kittens in bed', 'underscore', 'kittens_in_bed'), - array('kittens-are-cats', 'humanize', 'kittens are cats'), - array('dogs_as_well', 'humanize', 'dogs as well'), - ); - } - - /** - * Tests Inflector::camelize - * - * @test - * @dataProvider provider_camelize - * @param boolean $input Input for File::mime - * @param boolean $expected Output for File::mime - */ - public function test_camelize($input, $method, $expected) - { - $this->assertSame($expected, Inflector::$method($input)); - } - - /** - * Provides data for test_decamelize() - * - * @return array - */ - public function provider_decamelize() - { - return array( - array('getText', '_', 'get_text'), - array('getJSON', '_', 'get_json'), - array('getLongText', '_', 'get_long_text'), - array('getI18N', '_', 'get_i18n'), - array('getL10n', '_', 'get_l10n'), - array('getTe5t1ng', '_', 'get_te5t1ng'), - array('OpenFile', '_', 'open_file'), - array('CloseIoSocket', '_', 'close_io_socket'), - array('fooBar', ' ', 'foo bar'), - array('camelCase', '+', 'camel+case'), - ); - } - - /** - * Tests Inflector::decamelize() - * - * @test - * @dataProvider provider_decamelize - * @param string $input Camelized string - * @param string $glue Glue - * @param string $expected Expected string - */ - public function test_decamelize($input, $glue, $expected) - { - $this->assertSame($expected, Inflector::decamelize($input, $glue)); - } -} diff --git a/includes/kohana/system/tests/kohana/LogTest.php b/includes/kohana/system/tests/kohana/LogTest.php deleted file mode 100644 index df77c397..00000000 --- a/includes/kohana/system/tests/kohana/LogTest.php +++ /dev/null @@ -1,111 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_LogTest extends Unittest_TestCase -{ - - /** - * Tests that when a new logger is created the list of messages is initially - * empty - * - * @test - * @covers Log - */ - public function test_messages_is_initially_empty() - { - $logger = new Log; - - $this->assertAttributeSame(array(), '_messages', $logger); - } - - /** - * Tests that when a new logger is created the list of writers is initially - * empty - * - * @test - * @covers Log - */ - public function test_writers_is_initially_empty() - { - $logger = new Log; - - $this->assertAttributeSame(array(), '_writers', $logger); - } - - /** - * Test that attaching a log writer using an array of levels adds it to the array of log writers - * - * @TODO Is this test too specific? - * - * @test - * @covers Log::attach - */ - public function test_attach_attaches_log_writer_and_returns_this() - { - $logger = new Log; - $writer = $this->getMockForAbstractClass('Log_Writer'); - - $this->assertSame($logger, $logger->attach($writer)); - - $this->assertAttributeSame( - array(spl_object_hash($writer) => array('object' => $writer, 'levels' => array())), - '_writers', - $logger - ); - } - - /** - * Test that attaching a log writer using a min/max level adds it to the array of log writers - * - * @TODO Is this test too specific? - * - * @test - * @covers Log::attach - */ - public function test_attach_attaches_log_writer_min_max_and_returns_this() - { - $logger = new Log; - $writer = $this->getMockForAbstractClass('Log_Writer'); - - $this->assertSame($logger, $logger->attach($writer, Log::NOTICE, Log::CRITICAL)); - - $this->assertAttributeSame( - array(spl_object_hash($writer) => array('object' => $writer, 'levels' => array(Log::CRITICAL, Log::ERROR, Log::WARNING, Log::NOTICE))), - '_writers', - $logger - ); - } - - /** - * When we call detach() we expect the specified log writer to be removed - * - * @test - * @covers Log::detach - */ - public function test_detach_removes_log_writer_and_returns_this() - { - $logger = new Log; - $writer = $this->getMockForAbstractClass('Log_Writer'); - - $logger->attach($writer); - - $this->assertSame($logger, $logger->detach($writer)); - - $this->assertAttributeSame(array(), '_writers', $logger); - } - - -} diff --git a/includes/kohana/system/tests/kohana/ModelTest.php b/includes/kohana/system/tests/kohana/ModelTest.php deleted file mode 100644 index 8e33d847..00000000 --- a/includes/kohana/system/tests/kohana/ModelTest.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_ModelTest extends Unittest_TestCase -{ - /** - * Test the model's factory. - * - * @test - * @covers Model::factory - */ - public function test_create() - { - $foobar = Model::factory('Foobar'); - - $this->assertEquals(TRUE, $foobar instanceof Model); - } -} - -class Model_Foobar extends Model -{ - -} diff --git a/includes/kohana/system/tests/kohana/NumTest.php b/includes/kohana/system/tests/kohana/NumTest.php deleted file mode 100644 index ddb9bac0..00000000 --- a/includes/kohana/system/tests/kohana/NumTest.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_NumTest extends Unittest_TestCase -{ - protected $default_locale; - - /** - * SetUp test enviroment - */ - // @codingStandardsIgnoreStart - public function setUp() - // @codingStandardsIgnoreEnd - { - parent::setUp(); - - setlocale(LC_ALL, 'en_US.utf8'); - } - - /** - * Tear down environment - */ - // @codingStandardsIgnoreStart - public function tearDown() - // @codingStandardsIgnoreEnd - { - parent::tearDown(); - - setlocale(LC_ALL, $this->default_locale); - } - - /** - * Provides test data for test_bytes() - * - * @return array - */ - public function provider_bytes() - { - return array( - array(204800.0, '200K'), - array(5242880.0, '5MiB'), - array(1000.0, 1000), - array(2684354560.0, '2.5GB'), - ); - } - - /** - * Tests Num::bytes() - * - * @test - * @covers Num::bytes - * @dataProvider provider_bytes - * @param integer Expected Value - * @param string Input value - */ - public function test_bytes($expected, $size) - { - $this->assertSame($expected, Num::bytes($size)); - } - - /** - * Provides test data for test_ordinal() - * @return array - */ - public function provider_ordinal() - { - return array( - array(0, 'th'), - array(1, 'st'), - array(21, 'st'), - array(112, 'th'), - array(23, 'rd'), - array(42, 'nd'), - ); - } - - /** - * - * @test - * @dataProvider provider_ordinal - * @param integer $number - * @param $expected - */ - public function test_ordinal($number, $expected) - { - $this->assertSame($expected, Num::ordinal($number)); - } - - /** - * Provides test data for test_format() - * @return array - */ - public function provider_format() - { - return array( - // English - array(10000, 2, FALSE, '10,000.00'), - array(10000, 2, TRUE, '10,000.00'), - - // Additional dp's should be removed - array(123.456, 2, FALSE, '123.46'), - array(123.456, 2, TRUE, '123.46'), - ); - } - - /** - * @todo test locales - * @test - * @dataProvider provider_format - * @param integer $number - * @param integer $places - * @param boolean $monetary - * @param string $expected - */ - public function test_format($number, $places, $monetary, $expected) - { - $this->assertSame($expected, Num::format($number, $places, $monetary)); - } - - /** - * Provides data for test_round() - * @return array - */ - function provider_round() - { - return array( - array(5.5, 0, array( - 6.0, - 5.0, - 6.0, - 5.0, - )), - array(42.5, 0, array( - 43.0, - 42.0, - 42.0, - 43.0, - )), - array(10.4, 0, array( - 10.0, - 10.0, - 10.0, - 10.0, - )), - array(10.8, 0, array( - 11.0, - 11.0, - 11.0, - 11.0, - )), - array(-5.5, 0, array( - -6.0, - -5.0, - -6.0, - -5.0, - )), - array(-10.5, 0, array( - -11.0, - -10.0, - -10.0, - -11.0, - )), - array(26.12375, 4, array( - 26.1238, - 26.1237, - 26.1238, - 26.1237, - )), - array(26.12325, 4, array( - 26.1233, - 26.1232, - 26.1232, - 26.1233, - )), - ); - } - - /** - * @test - * @dataProvider provider_round - * @param number $input - * @param integer $precision - * @param integer $mode - * @param number $expected - */ - function test_round($input, $precision, $expected) - { - foreach (array(Num::ROUND_HALF_UP, Num::ROUND_HALF_DOWN, Num::ROUND_HALF_EVEN, Num::ROUND_HALF_ODD) as $i => $mode) - { - $this->assertSame($expected[$i], Num::round($input, $precision, $mode, FALSE)); - } - } -} diff --git a/includes/kohana/system/tests/kohana/RequestTest.php b/includes/kohana/system/tests/kohana/RequestTest.php deleted file mode 100644 index 3ba516f3..00000000 --- a/includes/kohana/system/tests/kohana/RequestTest.php +++ /dev/null @@ -1,720 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_RequestTest extends Unittest_TestCase -{ - protected $_inital_request; - - // @codingStandardsIgnoreStart - public function setUp() - // @codingStandardsIgnoreEnd - { - parent::setUp(); - $this->_initial_request = Request::$initial; - Request::$initial = new Request('/'); - } - - // @codingStandardsIgnoreStart - public function tearDown() - // @codingStandardsIgnoreEnd - { - Request::$initial = $this->_initial_request; - parent::tearDown(); - } - - public function test_initial() - { - $this->setEnvironment(array( - 'Request::$initial' => NULL, - 'Request::$client_ip' => NULL, - 'Request::$user_agent' => NULL, - '_SERVER' => array( - 'HTTPS' => NULL, - 'PATH_INFO' => '/', - 'HTTP_REFERER' => 'http://example.com/', - 'HTTP_USER_AGENT' => 'whatever (Mozilla 5.0/compatible)', - 'REMOTE_ADDR' => '127.0.0.1', - 'REQUEST_METHOD' => 'GET', - 'HTTP_X_REQUESTED_WITH' => 'ajax-or-something', - ), - '_GET' => array(), - '_POST' => array(), - )); - - $request = Request::factory(); - - $this->assertEquals(Request::$initial, $request); - - $this->assertEquals(Request::$client_ip, '127.0.0.1'); - - $this->assertEquals(Request::$user_agent, 'whatever (Mozilla 5.0/compatible)'); - - $this->assertEquals($request->protocol(), 'HTTP/1.1'); - - $this->assertEquals($request->referrer(), 'http://example.com/'); - - $this->assertEquals($request->requested_with(), 'ajax-or-something'); - - $this->assertEquals($request->query(), array()); - - $this->assertEquals($request->post(), array()); - } - - /** - * Tests that the allow_external flag prevents an external request. - * - * @return null - */ - public function test_disable_external_tests() - { - $this->setEnvironment( - array( - 'Request::$initial' => NULL, - ) - ); - - $request = new Request('http://www.google.com/', array(), FALSE); - - $this->assertEquals(FALSE, $request->is_external()); - } - - /** - * Provides the data for test_create() - * @return array - */ - public function provider_create() - { - return array( - array('foo/bar', 'Request_Client_Internal'), - array('http://google.com', 'Request_Client_External'), - ); - } - - /** - * Ensures the create class is created with the correct client - * - * @test - * @dataProvider provider_create - */ - public function test_create($uri, $client_class) - { - $request = Request::factory($uri); - - $this->assertInstanceOf($client_class, $request->client()); - } - - /** - * Ensure that parameters can be read - * - * @test - */ - public function test_param() - { - $route = new Route('((/(/)))'); - - $uri = 'foo/bar/id'; - $request = Request::factory($uri, NULL, TRUE, array($route)); - - // We need to execute the request before it has matched a route - try - { - $request->execute(); - } - catch (Exception $e) {} - - $this->assertArrayHasKey('id', $request->param()); - $this->assertArrayNotHasKey('foo', $request->param()); - $this->assertEquals($request->uri(), $uri); - - // Ensure the params do not contain contamination from controller, action, route, uri etc etc - $params = $request->param(); - - // Test for illegal components - $this->assertArrayNotHasKey('controller', $params); - $this->assertArrayNotHasKey('action', $params); - $this->assertArrayNotHasKey('directory', $params); - $this->assertArrayNotHasKey('uri', $params); - $this->assertArrayNotHasKey('route', $params); - - $route = new Route('()', array('uri' => '.+')); - $route->defaults(array('controller' => 'foobar', 'action' => 'index')); - $request = Request::factory('foobar', NULL, TRUE, array($route)); - - // We need to execute the request before it has matched a route - try - { - $request->execute(); - } - catch (Exception $e) {} - - $this->assertSame('foobar', $request->param('uri')); - } - - /** - * Tests Request::method() - * - * @test - */ - public function test_method() - { - $request = Request::factory('foo/bar'); - - $this->assertEquals($request->method(), 'GET'); - $this->assertEquals(($request->method('post') === $request), TRUE); - $this->assertEquals(($request->method() === 'POST'), TRUE); - } - - /** - * Tests Request::route() - * - * @test - */ - public function test_route() - { - $request = Request::factory(''); // This should always match something, no matter what changes people make - - // We need to execute the request before it has matched a route - try - { - $request->execute(); - } - catch (Exception $e) {} - - $this->assertInstanceOf('Route', $request->route()); - } - - /** - * Tests Request::route() - * - * @test - */ - public function test_route_is_not_set_before_execute() - { - $request = Request::factory(''); // This should always match something, no matter what changes people make - - // The route should be NULL since the request has not been executed yet - $this->assertEquals($request->route(), NULL); - } - - /** - * Tests Request::accept_type() - * - * @test - * @covers Request::accept_type - */ - public function test_accept_type() - { - $this->assertEquals(array('*/*' => 1), Request::accept_type()); - } - - /** - * Provides test data for Request::accept_lang() - * @return array - */ - public function provider_accept_lang() - { - return array( - array('en-us', 1, array('_SERVER' => array('HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5'))), - array('en-us', 1, array('_SERVER' => array('HTTP_ACCEPT_LANGUAGE' => 'en-gb'))), - array('en-us', 1, array('_SERVER' => array('HTTP_ACCEPT_LANGUAGE' => 'sp-sp;q=0.5'))) - ); - } - - /** - * Tests Request::accept_lang() - * - * @test - * @covers Request::accept_lang - * @dataProvider provider_accept_lang - * @param array $params Query string - * @param string $expected Expected result - * @param array $enviroment Set environment - */ - public function test_accept_lang($params, $expected, $enviroment) - { - $this->setEnvironment($enviroment); - - $this->assertEquals( - $expected, - Request::accept_lang($params) - ); - } - - /** - * Provides test data for Request::url() - * @return array - */ - public function provider_url() - { - return array( - array( - 'foo/bar', - 'http', - 'http://localhost/kohana/foo/bar' - ), - array( - 'foo', - 'http', - 'http://localhost/kohana/foo' - ), - ); - } - - /** - * Tests Request::url() - * - * @test - * @dataProvider provider_url - * @covers Request::url - * @param string $uri the uri to use - * @param string $protocol the protocol to use - * @param array $expected The string we expect - */ - public function test_url($uri, $protocol, $expected) - { - if ( ! isset($_SERVER['argc'])) - { - $_SERVER['argc'] = 1; - } - - $this->setEnvironment(array( - 'Kohana::$base_url' => '/kohana/', - '_SERVER' => array('HTTP_HOST' => 'localhost', 'argc' => $_SERVER['argc']), - 'Kohana::$index_file' => FALSE, - )); - - $this->assertEquals(Request::factory($uri)->url($protocol), $expected); - } - - /** - * Data provider for test_set_protocol() test - * - * @return array - */ - public function provider_set_protocol() - { - return array( - array( - 'http/1.1', - 'HTTP/1.1', - ), - array( - 'ftp', - 'FTP', - ), - array( - 'hTTp/1.0', - 'HTTP/1.0', - ), - ); - } - - /** - * Tests the protocol() method - * - * @dataProvider provider_set_protocol - * - * @return null - */ - public function test_set_protocol($protocol, $expected) - { - $request = Request::factory(); - - // Set the supplied protocol - $result = $request->protocol($protocol); - - // Test the set value - $this->assertSame($expected, $request->protocol()); - - // Test the return value - $this->assertTrue($request instanceof $result); - } - - /** - * Provides data for test_post_max_size_exceeded() - * - * @return array - */ - public function provider_post_max_size_exceeded() - { - // Get the post max size - $post_max_size = Num::bytes(ini_get('post_max_size')); - - return array( - array( - $post_max_size+200000, - TRUE - ), - array( - $post_max_size-20, - FALSE - ), - array( - $post_max_size, - FALSE - ) - ); - } - - /** - * Tests the post_max_size_exceeded() method - * - * @dataProvider provider_post_max_size_exceeded - * - * @param int content_length - * @param bool expected - * @return void - */ - public function test_post_max_size_exceeded($content_length, $expected) - { - // Ensure the request method is set to POST - Request::$initial->method(HTTP_Request::POST); - - // Set the content length - $_SERVER['CONTENT_LENGTH'] = $content_length; - - // Test the post_max_size_exceeded() method - $this->assertSame(Request::post_max_size_exceeded(), $expected); - } - - /** - * Provides data for test_uri_only_trimed_on_internal() - * - * @return array - */ - public function provider_uri_only_trimed_on_internal() - { - $old_request = Request::$initial; - Request::$initial = new Request(TRUE); - - $result = array( - array( - new Request('http://www.google.com'), - 'http://www.google.com' - ), - array( - new Request('http://www.google.com/'), - 'http://www.google.com/' - ), - array( - new Request('foo/bar/'), - 'foo/bar' - ), - array( - new Request('foo/bar'), - 'foo/bar' - ), - array( - new Request('/'), - '/' - ), - array( - new Request(''), - '/' - ) - ); - - Request::$initial = $old_request; - return $result; - } - - /** - * Tests that the uri supplied to Request is only trimed - * for internal requests. - * - * @dataProvider provider_uri_only_trimed_on_internal - * - * @return void - */ - public function test_uri_only_trimed_on_internal(Request $request, $expected) - { - $this->assertSame($request->uri(), $expected); - } - - /** - * Data provider for test_options_set_to_external_client() - * - * @return array - */ - public function provider_options_set_to_external_client() - { - $provider = array( - array( - array( - CURLOPT_PROXYPORT => 8080, - CURLOPT_PROXYTYPE => CURLPROXY_HTTP, - CURLOPT_VERBOSE => TRUE - ), - array( - CURLOPT_PROXYPORT => 8080, - CURLOPT_PROXYTYPE => CURLPROXY_HTTP, - CURLOPT_VERBOSE => TRUE - ) - ) - ); - - return $provider; - } - - /** - * Test for Request_Client_External::options() to ensure options - * can be set to the external client (for cURL and PECL_HTTP) - * - * @dataProvider provider_options_set_to_external_client - * - * @param array settings - * @param array expected - * @return void - */ - public function test_options_set_to_external_client($settings, $expected) - { - $request_client = Request_Client_External::factory(array(), 'Request_Client_Curl'); - - // Test for empty array - $this->assertSame(array(), $request_client->options()); - - // Test that set works as expected - $this->assertSame($request_client->options($settings), $request_client); - - // Test that each setting is present and returned - foreach ($expected as $key => $value) - { - $this->assertSame($request_client->options($key), $value); - } - } - - /** - * Provides data for test_headers_get() - * - * @return array - */ - public function provider_headers_get() - { - $x_powered_by = 'Kohana Unit Test'; - $content_type = 'application/x-www-form-urlencoded'; - - return array( - array( - $request = Request::factory('foo/bar') - ->headers(array( - 'x-powered-by' => $x_powered_by, - 'content-type' => $content_type - ) - ), - array( - 'x-powered-by' => $x_powered_by, - 'content-type' => $content_type - ) - ) - ); - } - - /** - * Tests getting headers from the Request object - * - * @dataProvider provider_headers_get - * - * @param Request request to test - * @param array headers to test against - * @return void - */ - public function test_headers_get($request, $headers) - { - foreach ($headers as $key => $expected_value) - { - $this->assertSame( (string) $request->headers($key), $expected_value); - } - } - - /** - * Provides data for test_headers_set - * - * @return array - */ - public function provider_headers_set() - { - return array( - array( - Request::factory(), - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'x-test-header' => 'foo' - ), - "Content-Type: application/x-www-form-urlencoded\r\nX-Test-Header: foo\r\n\r\n" - ), - array( - Request::factory(), - array( - 'content-type' => 'application/json', - 'x-powered-by' => 'kohana' - ), - "Content-Type: application/json\r\nX-Powered-By: kohana\r\n\r\n" - ) - ); - } - - /** - * Tests the setting of headers to the request object - * - * @dataProvider provider_headers_set - * - * @param Request request object - * @param array header(s) to set to the request object - * @param string expected http header - * @return void - */ - public function test_headers_set(Request $request, $headers, $expected) - { - $request->headers($headers); - $this->assertSame($expected, (string) $request->headers()); - } - - /** - * Provides test data for test_query_parameter_parsing() - * - * @return array - */ - public function provider_query_parameter_parsing() - { - return array( - array( - new Request('foo/bar'), - array( - 'foo' => 'bar', - 'sna' => 'fu' - ), - array( - 'foo' => 'bar', - 'sna' => 'fu' - ), - ), - array( - new Request('foo/bar?john=wayne&peggy=sue'), - array( - 'foo' => 'bar', - 'sna' => 'fu' - ), - array( - 'john' => 'wayne', - 'peggy' => 'sue', - 'foo' => 'bar', - 'sna' => 'fu' - ), - ), - array( - new Request('http://host.tld/foo/bar?john=wayne&peggy=sue'), - array( - 'foo' => 'bar', - 'sna' => 'fu' - ), - array( - 'john' => 'wayne', - 'peggy' => 'sue', - 'foo' => 'bar', - 'sna' => 'fu' - ), - ), - ); - } - - /** - * Tests that query parameters are parsed correctly - * - * @dataProvider provider_query_parameter_parsing - * - * @param Request request - * @param array query - * @param array expected - * @return void - */ - public function test_query_parameter_parsing(Request $request, $query, $expected) - { - foreach ($query as $key => $value) - { - $request->query($key, $value); - } - - $this->assertSame($expected, $request->query()); - } - - /** - * Provides data for test_client - * - * @return array - */ - public function provider_client() - { - $internal_client = new Request_Client_Internal; - $external_client = new Request_Client_Stream; - - return array( - array( - new Request('http://kohanaframework.org'), - $internal_client, - $internal_client - ), - array( - new Request('foo/bar'), - $external_client, - $external_client - ) - ); - } - - /** - * Tests the getter/setter for request client - * - * @dataProvider provider_client - * - * @param Request $request - * @param Request_Client $client - * @param Request_Client $expected - * @return void - */ - public function test_client(Request $request, Request_Client $client, Request_Client $expected) - { - $request->client($client); - $this->assertSame($expected, $request->client()); - } - - /** - * Tests that the Request constructor passes client params on to the - * Request_Client once created. - */ - public function test_passes_client_params() - { - $request = Request::factory('http://example.com/', array( - 'follow' => TRUE, - 'strict_redirect' => FALSE - )); - - $client = $request->client(); - - $this->assertEquals($client->follow(), TRUE); - $this->assertEquals($client->strict_redirect(), FALSE); - } - - - -} // End Kohana_RequestTest - -class Controller_Kohana_RequestTest_Dummy extends Controller -{ - public function action_index() - { - - } -} // End Kohana_RequestTest diff --git a/includes/kohana/system/tests/kohana/ResponseTest.php b/includes/kohana/system/tests/kohana/ResponseTest.php deleted file mode 100644 index d5e8870c..00000000 --- a/includes/kohana/system/tests/kohana/ResponseTest.php +++ /dev/null @@ -1,208 +0,0 @@ -getMock('View'); - $view->expects($this->any()) - ->method('__toString') - ->will($this->returnValue('foo')); - - return array( - array('unit test', 'unit test'), - array($view, 'foo'), - ); - } - - /** - * Tests that we can set and read a body of a response - * - * @test - * @dataProvider provider_body - * - * @return null - */ - public function test_body($source, $expected) - { - $response = new Response; - $response->body($source); - $this->assertSame($response->body(), $expected); - - $response = (string) $response; - $this->assertSame($response, $expected); - } - - /** - * Provides data for test_body_string_zero() - * - * @return array - */ - public function provider_body_string_zero() - { - return array( - array('0', '0'), - array("0", '0'), - array(0, '0') - ); - } - - /** - * Test that Response::body() handles numerics correctly - * - * @test - * @dataProvider provider_body_string_zero - * @param string $string - * @param string $expected - * @return void - */ - public function test_body_string_zero($string, $expected) - { - $response = new Response; - $response->body($string); - - $this->assertSame($expected, $response->body()); - } - - /** - * provider for test_cookie_set() - * - * @return array - */ - public function provider_cookie_set() - { - return array( - array( - 'test1', - 'foo', - array( - 'test1' => array( - 'value' => 'foo', - 'expiration' => Cookie::$expiration - ), - ) - ), - array( - array( - 'test2' => 'stfu', - 'test3' => array( - 'value' => 'snafu', - 'expiration' => 123456789 - ) - ), - NULL, - array( - 'test2' => array( - 'value' => 'stfu', - 'expiration' => Cookie::$expiration - ), - 'test3' => array( - 'value' => 'snafu', - 'expiration' => 123456789 - ) - ) - ) - ); - } - - /** - * Tests the Response::cookie() method, ensures - * correct values are set, including defaults - * - * @test - * @dataProvider provider_cookie_set - * @param string $key - * @param string $value - * @param string $expected - * @return void - */ - public function test_cookie_set($key, $value, $expected) - { - // Setup the Response and apply cookie - $response = new Response; - $response->cookie($key, $value); - - foreach ($expected as $_key => $_value) - { - $cookie = $response->cookie($_key); - - $this->assertSame($_value['value'], $cookie['value']); - $this->assertSame($_value['expiration'], $cookie['expiration']); - } - } - - /** - * Tests the Response::cookie() get functionality - * - * @return void - */ - public function test_cookie_get() - { - $response = new Response; - - // Test for empty cookies - $this->assertSame(array(), $response->cookie()); - - // Test for no specific cookie - $this->assertNull($response->cookie('foobar')); - - $response->cookie('foo', 'bar'); - $cookie = $response->cookie('foo'); - - $this->assertSame('bar', $cookie['value']); - $this->assertSame(Cookie::$expiration, $cookie['expiration']); - } - - /** - * Tests that the headers are not sent by PHP in CLI mode - * - * @return void - */ - public function test_send_headers_cli() - { - if (headers_sent()) - { - $this->markTestSkipped('Cannot test this feature as headers have already been sent!'); - } - - $content_type = 'application/json'; - $response = new Response; - $response->headers('content-type', $content_type) - ->send_headers(); - - $this->assertFalse(headers_sent()); - - } - - /** - * Test the content type is sent when set - * - * @test - */ - public function test_content_type_when_set() - { - $content_type = 'application/json'; - $response = new Response; - $response->headers('content-type', $content_type); - $headers = $response->send_headers()->headers(); - $this->assertSame($content_type, (string) $headers['content-type']); - } -} \ No newline at end of file diff --git a/includes/kohana/system/tests/kohana/RouteTest.php b/includes/kohana/system/tests/kohana/RouteTest.php deleted file mode 100644 index ef37f994..00000000 --- a/includes/kohana/system/tests/kohana/RouteTest.php +++ /dev/null @@ -1,840 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ - -include Kohana::find_file('tests', 'test_data/callback_routes'); - -class Kohana_RouteTest extends Unittest_TestCase -{ - /** - * Remove all caches - */ - // @codingStandardsIgnoreStart - public function setUp() - // @codingStandardsIgnoreEnd - { - parent::setUp(); - - $this->cleanCacheDir(); - } - - /** - * Removes cache files created during tests - */ - // @codingStandardsIgnoreStart - public function tearDown() - // @codingStandardsIgnoreEnd - { - parent::tearDown(); - - $this->cleanCacheDir(); - } - - /** - * If Route::get() is asked for a route that does not exist then - * it should throw a Kohana_Exception - * - * Note use of @expectedException - * - * @test - * @covers Route::get - * @expectedException Kohana_Exception - */ - public function test_get_throws_exception_if_route_dnx() - { - Route::get('HAHAHAHAHAHAHAHAHA'); - } - - /** - * Route::all() should return all routes defined via Route::set() - * and not through new Route() - * - * @test - * @covers Route::all - */ - public function test_all_returns_all_defined_routes() - { - $defined_routes = self::readAttribute('Route', '_routes'); - - $this->assertSame($defined_routes, Route::all()); - } - - /** - * Route::name() should fetch the name of a passed route - * If route is not found then it should return FALSE - * - * @TODO: This test needs to segregate the Route::$_routes singleton - * @test - * @covers Route::name - */ - public function test_name_returns_routes_name_or_false_if_dnx() - { - $route = Route::set('flamingo_people', 'flamingo/dance'); - - $this->assertSame('flamingo_people', Route::name($route)); - - $route = new Route('dance/dance'); - - $this->assertFalse(Route::name($route)); - } - - /** - * If Route::cache() was able to restore routes from the cache then - * it should return TRUE and load the cached routes - * - * @test - * @covers Route::cache - */ - public function test_cache_stores_route_objects() - { - $routes = Route::all(); - - // First we create the cache - Route::cache(TRUE); - - // Now lets modify the "current" routes - Route::set('nonsensical_route', 'flabbadaga/ding_dong'); - - // Then try and load said cache - $this->assertTrue(Route::cache()); - - // Check the route cache flag - $this->assertTrue(Route::$cache); - - // And if all went ok the nonsensical route should be gone... - $this->assertEquals($routes, Route::all()); - } - - /** - * Check appending cached routes. See http://dev.kohanaframework.org/issues/4347 - * - * @test - * @covers Route::cache - */ - public function test_cache_append_routes() - { - $cached = Route::all(); - - // First we create the cache - Route::cache(TRUE); - - // Now lets modify the "current" routes - Route::set('nonsensical_route', 'flabbadaga/ding_dong'); - - $modified = Route::all(); - - // Then try and load said cache - $this->assertTrue(Route::cache(NULL, TRUE)); - - // Check the route cache flag - $this->assertTrue(Route::$cache); - - // And if all went ok the nonsensical route should exist with the other routes... - $this->assertEquals(Route::all(), $cached + $modified); - } - - /** - * Route::cache() should return FALSE if cached routes could not be found - * - * The cache is cleared before and after each test in setUp tearDown - * by cleanCacheDir() - * - * @test - * @covers Route::cache - */ - public function test_cache_returns_false_if_cache_dnx() - { - $this->assertSame(FALSE, Route::cache(), 'Route cache was not empty'); - - // Check the route cache flag - $this->assertFalse(Route::$cache); - } - - /** - * If the constructor is passed a NULL uri then it should assume it's - * being loaded from the cache & therefore shouldn't override the cached attributes - * - * @test - * @covers Route::__construct - */ - public function test_constructor_returns_if_uri_is_null() - { - // We use a mock object to make sure that the route wasn't recompiled - $route = $this->getMock('Route', array('_compile'), array(), '', FALSE); - - $route - ->expects($this->never()) - ->method('_compile'); - - $route->__construct(NULL,NULL); - - $this->assertAttributeSame('', '_uri', $route); - $this->assertAttributeSame(array(), '_regex', $route); - $this->assertAttributeSame(array('action' => 'index', 'host' => FALSE), '_defaults', $route); - $this->assertAttributeSame(NULL, '_route_regex', $route); - } - - /** - * Provider for test_constructor_only_changes_custom_regex_if_passed - * - * @return array - */ - public function provider_constructor_only_changes_custom_regex_if_passed() - { - return array( - array('/', '/'), - ); - } - - /** - * The constructor should only use custom regex if passed a non-empty array - * - * Technically we can't "test" this as the default regex is an empty array, this - * is purely for improving test coverage - * - * @dataProvider provider_constructor_only_changes_custom_regex_if_passed - * - * @test - * @covers Route::__construct - */ - public function test_constructor_only_changes_custom_regex_if_passed($uri, $uri2) - { - $route = new Route($uri, array()); - - $this->assertAttributeSame(array(), '_regex', $route); - - $route = new Route($uri2, NULL); - - $this->assertAttributeSame(array(), '_regex', $route); - } - - /** - * When we pass custom regex to the route's constructor it should it - * in leu of the default. This does not apply to callback/lambda routes - * - * @test - * @covers Route::__construct - * @covers Route::compile - */ - public function test_route_uses_custom_regex_passed_to_constructor() - { - $regex = array('id' => '[0-9]{1,2}'); - - $route = new Route('(/(/))', $regex); - - $this->assertAttributeSame($regex, '_regex', $route); - $this->assertAttributeContains( - $regex['id'], - '_route_regex', - $route - ); - } - - /** - * Provider for test_matches_returns_false_on_failure - * - * @return array - */ - public function provider_matches_returns_false_on_failure() - { - return array( - array('projects/(/((/(/))))', 'apple/pie'), - ); - } - - /** - * Route::matches() should return false if the route doesn't match against a uri - * - * @dataProvider provider_matches_returns_false_on_failure - * - * @test - * @covers Route::matches - */ - public function test_matches_returns_false_on_failure($uri, $match) - { - $route = new Route($uri); - - // Mock a request class with the $match uri - $stub = $this->getMock('Request', array('uri'), array($match)); - $stub->expects($this->any()) - ->method('uri') - // Request::uri() called by Route::matches() will return $match - ->will($this->returnValue($match)); - - $this->assertSame(FALSE, $route->matches($stub)); - } - - /** - * Provider for test_matches_returns_array_of_parameters_on_successful_match - * - * @return array - */ - public function provider_matches_returns_array_of_parameters_on_successful_match() - { - return array( - array( - '((/(/)))', - 'welcome/index', - 'Welcome', - 'index', - ), - ); - } - - /** - * Route::matches() should return an array of parameters when a match is made - * An parameters that are not matched should not be present in the array of matches - * - * @dataProvider provider_matches_returns_array_of_parameters_on_successful_match - * - * @test - * @covers Route::matches - */ - public function test_matches_returns_array_of_parameters_on_successful_match($uri, $m, $c, $a) - { - $route = new Route($uri); - - // Mock a request class with the $m uri - $request = $this->getMock('Request', array('uri'), array($m)); - $request->expects($this->any()) - ->method('uri') - // Request::uri() called by Route::matches() will return $m - ->will($this->returnValue($m)); - - $matches = $route->matches($request); - - $this->assertInternalType('array', $matches); - $this->assertArrayHasKey('controller', $matches); - $this->assertArrayHasKey('action', $matches); - $this->assertArrayNotHasKey('id', $matches); - // $this->assertSame(5, count($matches)); - $this->assertSame($c, $matches['controller']); - $this->assertSame($a, $matches['action']); - } - - /** - * Provider for test_matches_returns_array_of_parameters_on_successful_match - * - * @return array - */ - public function provider_defaults_are_used_if_params_arent_specified() - { - return array( - array( - '(/(/))', - NULL, - array('controller' => 'Welcome', 'action' => 'index'), - 'Welcome', - 'index', - 'unit/test/1', - array( - 'controller' => 'unit', - 'action' => 'test', - 'id' => '1' - ), - 'Welcome', - ), - array( - '((/(/)))', - NULL, - array('controller' => 'welcome', 'action' => 'index'), - 'Welcome', - 'index', - 'unit/test/1', - array( - 'controller' => 'unit', - 'action' => 'test', - 'id' => '1' - ), - '', - ), - /** - * Specifying this should cause controller and action to show up - * refs #4113 - */ - array( - '((/(/)))', - NULL, - array('controller' => 'welcome', 'action' => 'index'), - 'Welcome', - 'index', - 'welcome/index/1', - array( - 'id' => '1' - ), - '', - ), - array( - '(/(/))', - NULL, - array('controller' => 'welcome', 'action' => 'index'), - 'Welcome', - 'index', - 'welcome/foo', - array( - 'action' => 'foo', - ), - 'welcome', - ), - ); - } - - /** - * Defaults specified with defaults() should be used if their values aren't - * present in the uri - * - * @dataProvider provider_defaults_are_used_if_params_arent_specified - * - * @test - * @covers Route::matches - */ - public function test_defaults_are_used_if_params_arent_specified($uri, $regex, $defaults, $c, $a, $test_uri, $test_uri_array, $default_uri) - { - $route = new Route($uri, $regex); - $route->defaults($defaults); - - $this->assertSame($defaults, $route->defaults()); - - // Mock a request class - $request = $this->getMock('Request', array('uri'), array($default_uri)); - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue($default_uri)); - - $matches = $route->matches($request); - - $this->assertInternalType('array', $matches); - $this->assertArrayHasKey('controller', $matches); - $this->assertArrayHasKey('action', $matches); - $this->assertArrayNotHasKey('id', $matches); - // $this->assertSame(4, count($matches)); - $this->assertSame($c, $matches['controller']); - $this->assertSame($a, $matches['action']); - $this->assertSame($test_uri, $route->uri($test_uri_array)); - $this->assertSame($default_uri, $route->uri()); - } - - /** - * Optional params should not be used if what is passed in is identical - * to the default. - * - * refs #4116 - * - * @test - * @covers Route::uri - */ - public function test_defaults_are_not_used_if_param_is_identical() - { - $route = new Route('((/(/)))'); - $route->defaults(array( - 'controller' => 'welcome', - 'action' => 'index' - )); - - $this->assertSame('', $route->uri(array('controller' => 'welcome'))); - $this->assertSame('welcome2', $route->uri(array('controller' => 'welcome2'))); - } - - /** - * Provider for test_required_parameters_are_needed - * - * @return array - */ - public function provider_required_parameters_are_needed() - { - return array( - array( - 'admin(/(/(/)))', - 'admin', - 'admin/users/add', - ), - ); - } - - /** - * This tests that routes with required parameters will not match uris without them present - * - * @dataProvider provider_required_parameters_are_needed - * - * @test - * @covers Route::matches - */ - public function test_required_parameters_are_needed($uri, $matches_route1, $matches_route2) - { - $route = new Route($uri); - - // Mock a request class that will return empty uri - $request = $this->getMock('Request', array('uri'), array('')); - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue('')); - - $this->assertFalse($route->matches($request)); - - // Mock a request class that will return route1 - $request = $this->getMock('Request', array('uri'), array($matches_route1)); - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue($matches_route1)); - - $matches = $route->matches($request); - - $this->assertInternalType('array', $matches); - - // Mock a request class that will return route2 uri - $request = $this->getMock('Request', array('uri'), array($matches_route2)); - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue($matches_route2)); - - $matches = $route->matches($request); - - $this->assertInternalType('array', $matches); - // $this->assertSame(5, count($matches)); - $this->assertArrayHasKey('controller', $matches); - $this->assertArrayHasKey('action', $matches); - } - - /** - * Provider for test_required_parameters_are_needed - * - * @return array - */ - public function provider_reverse_routing_returns_routes_uri_if_route_is_static() - { - return array( - array( - 'info/about_us', - NULL, - 'info/about_us', - array('some' => 'random', 'params' => 'to confuse'), - ), - ); - } - - /** - * This tests the reverse routing returns the uri specified in the route - * if it's a static route - * - * A static route is a route without any parameters - * - * @dataProvider provider_reverse_routing_returns_routes_uri_if_route_is_static - * - * @test - * @covers Route::uri - */ - public function test_reverse_routing_returns_routes_uri_if_route_is_static($uri, $regex, $target_uri, $uri_params) - { - $route = new Route($uri, $regex); - - $this->assertSame($target_uri, $route->uri($uri_params)); - } - - /** - * Provider for test_uri_throws_exception_if_required_params_are_missing - * - * @return array - */ - public function provider_uri_throws_exception_if_required_params_are_missing() - { - return array( - array( - '(/ 'awesome-action'), - ), - ); - } - - /** - * When Route::uri is working on a uri that requires certain parameters to be present - * (i.e. in 'uri($uri_array); - - $this->fail('Route::uri should throw exception if required param is not provided'); - } - catch(Exception $e) - { - $this->assertInstanceOf('Kohana_Exception', $e); - // Check that the error in question is about the controller param - $this->assertContains('controller', $e->getMessage()); - } - } - - /** - * Provider for test_uri_fills_required_uri_segments_from_params - * - * @return array - */ - public function provider_uri_fills_required_uri_segments_from_params() - { - return array( - array( - '/(/)', - NULL, - 'users/edit', - array( - 'controller' => 'users', - 'action' => 'edit', - ), - 'users/edit/god', - array( - 'controller' => 'users', - 'action' => 'edit', - 'id' => 'god', - ), - ), - ); - } - - /** - * The logic for replacing required segments is separate (but similar) to that for - * replacing optional segments. - * - * This test asserts that Route::uri will replace required segments with provided - * params - * - * @dataProvider provider_uri_fills_required_uri_segments_from_params - * - * @test - * @covers Route::uri - */ - public function test_uri_fills_required_uri_segments_from_params($uri, $regex, $uri_string1, $uri_array1, $uri_string2, $uri_array2) - { - $route = new Route($uri, $regex); - - $this->assertSame( - $uri_string1, - $route->uri($uri_array1) - ); - - $this->assertSame( - $uri_string2, - $route->uri($uri_array2) - ); - } - - /** - * Provides test data for test_composing_url_from_route() - * @return array - */ - public function provider_composing_url_from_route() - { - return array( - array('/'), - array('/news/view/42', array('controller' => 'news', 'action' => 'view', 'id' => 42)), - array('http://kohanaframework.org/news', array('controller' => 'news'), 'http') - ); - } - - /** - * Tests Route::url() - * - * Checks the url composing from specific route via Route::url() shortcut - * - * @test - * @dataProvider provider_composing_url_from_route - * @param string $expected - * @param array $params - * @param boolean $protocol - */ - public function test_composing_url_from_route($expected, $params = NULL, $protocol = NULL) - { - Route::set('foobar', '((/(/)))') - ->defaults(array( - 'controller' => 'welcome', - ) - ); - - $this->setEnvironment(array( - '_SERVER' => array('HTTP_HOST' => 'kohanaframework.org'), - 'Kohana::$base_url' => '/', - 'Kohana::$index_file' => '', - )); - - $this->assertSame($expected, Route::url('foobar', $params, $protocol)); - } - - /** - * Tests Route::compile() - * - * Makes sure that compile will use custom regex if specified - * - * @test - * @covers Route::compile - */ - public function test_compile_uses_custom_regex_if_specificed() - { - $compiled = Route::compile( - '(/(/))', - array( - 'controller' => '[a-z]+', - 'id' => '\d+', - ) - ); - - $this->assertSame('#^(?P[a-z]+)(?:/(?P[^/.,;?\n]++)(?:/(?P\d+))?)?$#uD', $compiled); - } - - /** - * Tests Route::is_external(), ensuring the host can return - * whether internal or external host - */ - public function test_is_external_route_from_host() - { - // Setup local route - Route::set('internal', 'local/test/route') - ->defaults(array( - 'controller' => 'foo', - 'action' => 'bar' - ) - ); - - // Setup external route - Route::set('external', 'local/test/route') - ->defaults(array( - 'controller' => 'foo', - 'action' => 'bar', - 'host' => 'http://kohanaframework.org' - ) - ); - - // Test internal route - $this->assertFalse(Route::get('internal')->is_external()); - - // Test external route - $this->assertTrue(Route::get('external')->is_external()); - } - - /** - * Provider for test_external_route_includes_params_in_uri - * - * @return array - */ - public function provider_external_route_includes_params_in_uri() - { - return array( - array( - '/', - array( - 'controller' => 'foo', - 'action' => 'bar', - 'host' => 'kohanaframework.org' - ), - 'http://kohanaframework.org/foo/bar' - ), - array( - '/', - array( - 'controller' => 'foo', - 'action' => 'bar', - 'host' => 'http://kohanaframework.org' - ), - 'http://kohanaframework.org/foo/bar' - ), - array( - 'foo/bar', - array( - 'controller' => 'foo', - 'host' => 'http://kohanaframework.org' - ), - 'http://kohanaframework.org/foo/bar' - ), - ); - } - - /** - * Tests the external route include route parameters - * - * @dataProvider provider_external_route_includes_params_in_uri - */ - public function test_external_route_includes_params_in_uri($route, $defaults, $expected_uri) - { - Route::set('test', $route) - ->defaults($defaults); - - $this->assertSame($expected_uri, Route::get('test')->uri()); - } - - /** - * Provider for test_route_filter_modify_params - * - * @return array - */ - public function provider_route_filter_modify_params() - { - return array( - array( - '/', - array( - 'controller' => 'Test', - 'action' => 'same', - ), - array('Route_Holder', 'route_filter_modify_params_array'), - 'test/different', - array( - 'controller' => 'Test', - 'action' => 'modified', - ), - ), - array( - '/', - array( - 'controller' => 'test', - 'action' => 'same', - ), - array('Route_Holder', 'route_filter_modify_params_false'), - 'test/fail', - FALSE, - ), - ); - } - - /** - * Tests that route filters can modify parameters - * - * @covers Route::filter - * @dataProvider provider_route_filter_modify_params - */ - public function test_route_filter_modify_params($route, $defaults, $filter, $uri, $expected_params) - { - $route = new Route($route); - - // Mock a request class - $request = $this->getMock('Request', array('uri'), array($uri)); - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue($uri)); - - $params = $route->defaults($defaults)->filter($filter)->matches($request); - - $this->assertSame($expected_params, $params); - } - -} diff --git a/includes/kohana/system/tests/kohana/SecurityTest.php b/includes/kohana/system/tests/kohana/SecurityTest.php deleted file mode 100644 index 4c3b368f..00000000 --- a/includes/kohana/system/tests/kohana/SecurityTest.php +++ /dev/null @@ -1,108 +0,0 @@ -"), - ); - } - - /** - * Tests Security::encode_php_tags() - * - * @test - * @dataProvider provider_encode_php_tags - * @covers Security::encode_php_tags - */ - public function test_encode_php_tags($expected, $input) - { - $this->assertSame($expected, Security::encode_php_tags($input)); - } - - /** - * Provides test data for test_strip_image_tags() - * - * @return array Test data sets - */ - public function provider_strip_image_tags() - { - return array( - array('foo', ''), - ); - } - - /** - * Tests Security::strip_image_tags() - * - * @test - * @dataProvider provider_strip_image_tags - * @covers Security::strip_image_tags - */ - public function test_strip_image_tags($expected, $input) - { - $this->assertSame($expected, Security::strip_image_tags($input)); - } - - /** - * Provides test data for Security::token() - * - * @return array Test data sets - */ - public function provider_csrf_token() - { - // Unfortunately this data provider has to use the session in order to - // generate its data. If headers have already been sent then this method - // throws an error, even if the test is does not run. If we return an - // empty array then this also causes an error, so the only way to get - // around it is to return an array of misc data and have the test skip - // if headers have been sent. It's annoying this hack has to be - // implemented, but the security code isn't exactly brilliantly - // implemented. Ideally we'd be able to inject a session instance - if (headers_sent()) - return array(array('', '', 0)); - - $array = array(); - for ($i = 0; $i <= 4; $i++) - { - Security::$token_name = 'token_'.$i; - $array[] = array(Security::token(TRUE), Security::check(Security::token(FALSE)), $i); - } - return $array; - } - - /** - * Tests Security::token() - * - * @test - * @dataProvider provider_csrf_token - * @covers Security::token - */ - public function test_csrf_token($expected, $input, $iteration) - { - if (headers_sent()) { - $this->markTestSkipped('Headers have already been sent, session not available'); - } - - Security::$token_name = 'token_'.$iteration; - $this->assertSame(TRUE, $input); - $this->assertSame($expected, Security::token(FALSE)); - Session::instance()->delete(Security::$token_name); - } -} diff --git a/includes/kohana/system/tests/kohana/SessionTest.php b/includes/kohana/system/tests/kohana/SessionTest.php deleted file mode 100644 index 1f34fa80..00000000 --- a/includes/kohana/system/tests/kohana/SessionTest.php +++ /dev/null @@ -1,502 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_SessionTest extends Unittest_TestCase -{ - - /** - * Gets a mock of the session class - * - * @return Session - */ - // @codingStandardsIgnoreStart - public function getMockSession(array $config = array()) - // @codingStandardsIgnoreEnd - { - return $this->getMockForAbstractClass('Session', array($config)); - } - - /** - * Provides test data for - * - * test_constructor_uses_name_from_config_and_casts() - * - * @return array - */ - public function provider_constructor_uses_settings_from_config_and_casts() - { - return array( - // array(expected, input) - // data set 0 - array( - array( - 'name' => 'awesomeness', - 'lifetime' => 1231456421, - 'encrypted' => FALSE - ), - array( - 'name' => 'awesomeness', - 'lifetime' => '1231456421', - 'encrypted' => FALSE, - ), - ), - // data set 1 - array( - array( - 'name' => '123', - 'encrypted' => 'default', - ), - array( - 'name' => 123, - 'encrypted' => TRUE, - ), - ), - ); - } - - /** - * The constructor should change its attributes based on config - * passed as the first parameter - * - * @test - * @dataProvider provider_constructor_uses_settings_from_config_and_casts - * @covers Session::__construct - */ - public function test_constructor_uses_settings_from_config_and_casts($expected, $config) - { - $session = $this->getMockForAbstractClass('Session', array($config)); - - foreach ($expected as $var => $value) - { - $this->assertAttributeSame($value, '_'.$var, $session); - } - } - - /** - * Check that the constructor will load a session if it's provided - * witha session id - * - * @test - * @covers Session::__construct - * @covers Session::read - */ - public function test_constructor_loads_session_with_session_id() - { - $this->markTestIncomplete( - 'Need to work out why constructor is not being called' - ); - - $config = array(); - $session_id = 'lolums'; - - // Don't auto-call constructor, we need to setup the mock first - $session = $this->getMockForAbstractClass( - 'Session', - array(), - '', - FALSE - ); - - $session - ->expects($this->once()) - ->method('read') - ->with($session_id); - - $session->__construct($config, $session_id); - } - - /** - * Calling $session->bind() should allow you to bind a variable - * to a session variable - * - * @test - * @covers Session::bind - * @ticket 3164 - */ - public function test_bind_actually_binds_variable() - { - $session = $this->getMockForAbstractClass('Session'); - - $var = 'asd'; - - $session->bind('our_var', $var); - - $var = 'foobar'; - - $this->assertSame('foobar', $session->get('our_var')); - } - - - /** - * When a session is initially created it should have no data - * - * - * @test - * @covers Session::__construct - * @covers Session::set - */ - public function test_initially_session_has_no_data() - { - $session = $this->getMockSession(); - - $this->assertAttributeSame(array(), '_data', $session); - } - - /** - * Make sure that the default session name (the one used if the - * driver does not set one) is 'session' - * - * @test - * @covers Session::__construct - */ - public function test_default_session_name_is_set() - { - $session = $this->getMockSession(); - - $this->assertAttributeSame('session', '_name', $session); - } - - /** - * By default sessions are unencrypted - * - * @test - * @covers Session::__construct - */ - public function test_default_session_is_unencrypted() - { - $session = $this->getMockSession(); - - $this->assertAttributeSame(FALSE, '_encrypted', $session); - } - - /** - * A new session should not be classed as destroyed - * - * @test - * @covers Session::__construct - */ - public function test_default_session_is_not_classed_as_destroyed() - { - $session = $this->getMockSession(); - - $this->assertAttributeSame(FALSE, '_destroyed', $session); - } - - /** - * Provides test data for test_get_returns_default_if_var_dnx() - * - * @return array - */ - public function provider_get_returns_default_if_var_dnx() - { - return array( - array('something_crazy', FALSE), - array('a_true', TRUE), - array('an_int', 158163158), - ); - } - - /** - * Make sure that get() is using the default value we provide and - * isn't tampering with it - * - * @test - * @dataProvider provider_get_returns_default_if_var_dnx - * @covers Session::get - */ - public function test_get_returns_default_if_var_dnx($var, $default) - { - $session = $this->getMockSession(); - - $this->assertSame($default, $session->get($var, $default)); - } - - /** - * By default get() should be using null as the var DNX return value - * - * @test - * @covers Session::get - */ - public function test_get_uses_null_as_default_return_value() - { - $session = $this->getMockSession(); - - $this->assertSame(NULL, $session->get('level_of_cool')); - } - - /** - * This test makes sure that session is using array_key_exists - * as isset will return FALSE if the value is NULL - * - * @test - * @covers Session::get - */ - public function test_get_returns_value_if_it_equals_null() - { - $session = $this->getMockSession(); - - $session->set('arkward', NULL); - - $this->assertSame(NULL, $session->get('arkward', 'uh oh')); - } - - /** - * as_array() should return the session data by reference. - * - * i.e. if we modify the returned data, the session data also changes - * - * @test - * @covers Session::as_array - */ - public function test_as_array_returns_data_by_ref_or_copy() - { - $session = $this->getMockSession(); - - $data_ref =& $session->as_array(); - - $data_ref['something'] = 'pie'; - - $this->assertAttributeSame($data_ref, '_data', $session); - - $data_copy = $session->as_array(); - - $data_copy['pie'] = 'awesome'; - - $this->assertAttributeNotSame($data_copy, '_data', $session); - } - - /** - * set() should add new session data and modify existing ones - * - * Also makes sure that set() returns $this - * - * @test - * @covers Session::set - */ - public function test_set_adds_and_modifies_to_session_data() - { - $session = $this->getMockSession(); - - $this->assertSame($session, $session->set('pork', 'pie')); - - $this->assertAttributeSame( - array('pork' => 'pie'), - '_data', - $session - ); - - $session->set('pork', 'delicious'); - - $this->assertAttributeSame( - array('pork' => 'delicious'), - '_data', - $session - ); - } - - /** - * This tests that delete() removes specified session data - * - * @test - * @covers Session::delete - */ - public function test_delete_removes_select_session_data() - { - $session = $this->getMockSession(); - - // Bit of a hack for mass-loading session data - $data =& $session->as_array(); - - $data += array( - 'a' => 'A', - 'b' => 'B', - 'c' => 'C', - 'easy' => '123' - ); - - // Make a copy of $data for testing purposes - $copy = $data; - - // First we make sure we can delete one item - // Also, check that delete returns $this - $this->assertSame($session, $session->delete('a')); - - unset($copy['a']); - - // We could test against $data but then we'd be testing - // that as_array() is returning by ref - $this->assertAttributeSame($copy, '_data', $session); - - // Now we make sure we can delete multiple items - // We're checking $this is returned just in case - $this->assertSame($session, $session->delete('b', 'c')); - unset($copy['b'], $copy['c']); - - $this->assertAttributeSame($copy, '_data', $session); - } - - /** - * Provides test data for test_read_loads_session_data() - * - * @return array - */ - public function provider_read_loads_session_data() - { - return array( - // If driver returns array then just load it up - array( - array(), - 'wacka_wacka', - array() - ), - array( - array('the it' => 'crowd'), - 'the_it_crowd', - array('the it' => 'crowd'), - ), - // If it's a string an encrpytion is disabled (by default) base64decode and unserialize - array( - array('dead' => 'arrival'), - 'lolums', - 'YToxOntzOjQ6ImRlYWQiO3M6NzoiYXJyaXZhbCI7fQ==' - ), - ); - } - - /** - * This is one of the "big" tests for the session lib - * - * The test makes sure that - * - * 1. Session asks the driver for the data relating to $session_id - * 2. That it will load the returned data into the session - * - * @test - * @dataProvider provider_read_loads_session_data - * @covers Session::read - */ - public function test_read_loads_session_data($expected_data, $session_id, $driver_data, array $config = array()) - { - $session = $this->getMockSession($config); - - $session->expects($this->once()) - ->method('_read') - ->with($session_id) - ->will($this->returnValue($driver_data)); - - $session->read($session_id); - $this->assertAttributeSame($expected_data, '_data', $session); - } - - /** - * regenerate() should tell the driver to regenerate its id - * - * @test - * @covers Session::regenerate - */ - public function test_regenerate_tells_driver_to_regenerate() - { - $session = $this->getMockSession(); - - $new_session_id = 'asdnoawdnoainf'; - - $session->expects($this->once()) - ->method('_regenerate') - ->with() - ->will($this->returnValue($new_session_id)); - - $this->assertSame($new_session_id, $session->regenerate()); - } - - /** - * If the driver destroys the session then all session data should be - * removed - * - * @test - * @covers Session::destroy - */ - public function test_destroy_deletes_data_if_driver_destroys_session() - { - $session = $this->getMockSession(); - - $session - ->set('asd', 'dsa') - ->set('dog', 'god'); - - $session - ->expects($this->once()) - ->method('_destroy') - ->with() - ->will($this->returnValue(TRUE)); - - $this->assertTrue($session->destroy()); - - $this->assertAttributeSame(array(), '_data', $session); - } - - /** - * The session data should only be deleted if the driver reports - * that the session was destroyed ok - * - * @test - * @covers Session::destroy - */ - public function test_destroy_only_deletes_data_if_driver_destroys_session() - { - $session = $this->getMockSession(); - - $session - ->set('asd', 'dsa') - ->set('dog', 'god'); - - $session - ->expects($this->once()) - ->method('_destroy') - ->with() - ->will($this->returnValue(FALSE)); - - $this->assertFalse($session->destroy()); - $this->assertAttributeSame( - array('asd' => 'dsa', 'dog' => 'god'), - '_data', - $session - ); - } - - /** - * If a session variable exists then get_once should get it then remove it. - * If the variable does not exist then it should return the default - * - * @test - * @covers Session::get_once - */ - public function test_get_once_gets_once_or_returns_default() - { - $session = $this->getMockSession(); - - $session->set('foo', 'bar'); - - // Test that a default is returned - $this->assertSame('mud', $session->get_once('fud', 'mud')); - - // Now test that it actually removes the value - $this->assertSame('bar', $session->get_once('foo')); - - $this->assertAttributeSame(array(), '_data', $session); - - $this->assertSame('maybe', $session->get_once('foo', 'maybe')); - } -} diff --git a/includes/kohana/system/tests/kohana/TextTest.php b/includes/kohana/system/tests/kohana/TextTest.php deleted file mode 100644 index a59bd593..00000000 --- a/includes/kohana/system/tests/kohana/TextTest.php +++ /dev/null @@ -1,642 +0,0 @@ -assertSame('', Text::auto_p('')); - } - - /** - * - * @return array Test Data - */ - function provider_auto_para_does_not_enclose_html_tags_in_paragraphs() - { - return array( - array( - array('div'), - '
    Pick a plum of peppers
    ', - ), - array( - array('div'), - '
    Tangas
    ', - ), - ); - } - - /** - * This test makes sure that auto_p doesn't enclose HTML tags - * in paragraphs - * - * @test - * @covers Text::auto_p - * @dataProvider provider_auto_para_does_not_enclose_html_tags_in_paragraphs - */ - function test_auto_para_does_not_enclose_html_tags_in_paragraphs(array $tags, $text) - { - $output = Text::auto_p($text); - - foreach ($tags as $tag) - { - $this->assertNotTag( - array('tag' => $tag, 'ancestor' => array('tag' => 'p')), - $output - ); - } - } - - /** - * This test makes sure that auto_p surrounds a single line of text - * with paragraph tags - * - * @test - * @covers Text::auto_p - */ - function test_auto_para_encloses_slot_in_paragraph() - { - $text = 'Pick a pinch of purple pepper'; - - $this->assertSame('

    '.$text.'

    ', Text::auto_p($text)); - } - - /** - * Make sure that multiple new lines are replaced with paragraph tags - * - * @test - * @covers Text::auto_p - */ - public function test_auto_para_replaces_multiple_newlines_with_paragraph() - { - $this->assertSame( - "

    My name is john

    \n\n

    I'm a developer

    ", - Text::auto_p("My name is john\n\n\n\nI'm a developer") - ); - } - - /** - * Data provider for test_limit_words - * - * @return array Array of test data - */ - function provider_limit_words() - { - return array - ( - array('', '', 100, NULL), - array('…', 'The rain in spain', -10, NULL), - array('The rain…', 'The rain in spain', 2, NULL), - array('The rain...', 'The rain in spain', 2, '...'), - ); - } - - /** - * - * @test - * @dataProvider provider_limit_words - */ - function test_limit_words($expected, $str, $limit, $end_char) - { - $this->assertSame($expected, Text::limit_words($str, $limit, $end_char)); - } - - /** - * Provides test data for test_limit_chars() - * - * @return array Test data - */ - function provider_limit_chars() - { - return array - ( - array('', '', 100, NULL, FALSE), - array('…', 'BOO!', -42, NULL, FALSE), - array('making php bet…', 'making php better for the sane', 14, NULL, FALSE), - array('Garçon! Un café s.v.p.', 'Garçon! Un café s.v.p.', 50, '__', FALSE), - array('Garçon!__', 'Garçon! Un café s.v.p.', 8, '__', FALSE), - // @issue 3238 - array('making php…', 'making php better for the sane', 14, NULL, TRUE), - array('Garçon!__', 'Garçon! Un café s.v.p.', 9, '__', TRUE), - array('Garçon!__', 'Garçon! Un café s.v.p.', 7, '__', TRUE), - array('__', 'Garçon! Un café s.v.p.', 5, '__', TRUE), - ); - } - - /** - * Tests Text::limit_chars() - * - * @test - * @dataProvider provider_limit_chars - */ - function test_limit_chars($expected, $str, $limit, $end_char, $preserve_words) - { - $this->assertSame($expected, Text::limit_chars($str, $limit, $end_char, $preserve_words)); - } - - /** - * Test Text::alternate() - * - * @test - */ - function test_alternate_alternates_between_parameters() - { - list($val_a, $val_b, $val_c) = array('good', 'bad', 'ugly'); - - $this->assertSame('good', Text::alternate($val_a, $val_b, $val_c)); - $this->assertSame('bad', Text::alternate($val_a, $val_b, $val_c)); - $this->assertSame('ugly', Text::alternate($val_a, $val_b, $val_c)); - - $this->assertSame('good', Text::alternate($val_a, $val_b, $val_c)); - } - - /** - * Tests Text::alternate() - * - * @test - * @covers Text::alternate - */ - function test_alternate_resets_when_called_with_no_params_and_returns_empty_string() - { - list($val_a, $val_b, $val_c) = array('yes', 'no', 'maybe'); - - $this->assertSame('yes', Text::alternate($val_a, $val_b, $val_c)); - - $this->assertSame('', Text::alternate()); - - $this->assertSame('yes', Text::alternate($val_a, $val_b, $val_c)); - } - - /** - * Provides test data for test_reducde_slashes() - * - * @returns array Array of test data - */ - function provider_reduce_slashes() - { - return array - ( - array('/', '//'), - array('/google/php/kohana/', '//google/php//kohana//'), - ); - } - - /** - * Covers Text::reduce_slashes() - * - * @test - * @dataProvider provider_reduce_slashes - */ - function test_reduce_slashes($expected, $str) - { - $this->assertSame($expected, Text::reduce_slashes($str)); - } - - /** - * Provides test data for test_censor() - * - * @return array Test data - */ - function provider_censor() - { - - return array - ( - // If the replacement is 1 character long it should be repeated for the length of the removed word - array("A donkey is also an ***", 'A donkey is also an ass', array('ass'), '*', TRUE), - array("Cake### isn't nearly as good as kohana###", "CakePHP isn't nearly as good as kohanaphp", array('php'), '#', TRUE), - // If it's > 1 then it's just replaced straight out - array("If you're born out of wedlock you're a --expletive--", "If you're born out of wedlock you're a child", array('child'), '--expletive--', TRUE), - - array('class', 'class', array('ass'), '*', FALSE), - ); - } - - /** - * Tests Text::censor - * - * @test - * @dataProvider provider_censor - */ - function test_censor($expected, $str, $badwords, $replacement, $replace_partial_words) - { - $this->assertSame($expected, Text::censor($str, $badwords, $replacement, $replace_partial_words)); - } - - /** - * Provides test data for test_random - * - * @return array Test Data - */ - function provider_random() - { - return array( - array('alnum', 8), - array('alpha', 10), - array('hexdec', 20), - array('nozero', 5), - array('numeric', 14), - array('distinct', 12), - array('aeiou', 4), - array('‹¡›«¿»', 8), // UTF8 characters - array(NULL, 8), // Issue #3256 - ); - } - - /** - * Tests Text::random() as well as possible - * - * Obviously you can't compare a randomly generated string against a - * pre-generated one and check that they are the same as this goes - * against the whole ethos of random. - * - * This test just makes sure that the value returned is of the correct - * values and length - * - * @test - * @dataProvider provider_random - */ - function test_random($type, $length) - { - if ($type === NULL) - { - $type = 'alnum'; - } - - $pool = (string) $type; - - switch ($pool) - { - case 'alnum': - $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - break; - case 'alpha': - $pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - break; - case 'hexdec': - $pool = '0123456789abcdef'; - break; - case 'numeric': - $pool = '0123456789'; - break; - case 'nozero': - $pool = '123456789'; - break; - case 'distinct': - $pool = '2345679ACDEFHJKLMNPRSTUVWXYZ'; - break; - } - - $this->assertRegExp('/^['.$pool.']{'.$length.'}$/u', Text::random($type, $length)); - } - - /** - * Provides test data for test_similar - * - * @return array - */ - function provider_similar() - { - return array - ( - // TODO: add some more cases - array('foo', array('foobar', 'food', 'fooberry')), - ); - } - - /** - * Tests Text::similar() - * - * @test - * @dataProvider provider_similar - * @covers Text::similar - */ - function test_similar($expected, $words) - { - $this->assertSame($expected, Text::similar($words)); - } - - /** - * Provides test data for test_bytes - * - * @return array - */ - public function provider_bytes() - { - return array - ( - // TODO: cover the other units - array('256.00 B', 256, NULL, NULL, TRUE), - array('1.02 kB', 1024, NULL, NULL, TRUE), - - // In case you need to know the size of a floppy disk in petabytes - array('0.00147 GB', 1.44 * 1000 * 1024, 'GB', '%01.5f %s', TRUE), - - // SI is the standard, but lets deviate slightly - array('1.00 MiB', 1024 * 1024, 'MiB', NULL, FALSE), - ); - } - - /** - * Tests Text::bytes() - * - * @test - * @dataProvider provider_bytes - */ - function test_bytes($expected, $bytes, $force_unit, $format, $si) - { - $this->assertSame($expected, Text::bytes($bytes, $force_unit, $format, $si)); - } - - /** - * Provides test data for test_widont() - * - * @return array Test data - */ - function provider_widont() - { - return array - ( - array('No gain, no pain', 'No gain, no pain'), - array("spaces?what'rethey?", "spaces?what'rethey?"), - array('', ''), - ); - } - - /** - * Tests Text::widont() - * - * @test - * @dataProvider provider_widont - */ - function test_widont($expected, $string) - { - $this->assertSame($expected, Text::widont($string)); - } - - - /** - * This checks that auto_link_emails() respects word boundaries and does not - * just blindly replace all occurences of the email address in the text. - * - * In the sample below the algorithm was replacing all occurences of voorzitter@xxxx.com - * inc the copy in the second list item. - * - * It was updated in 6c199366efc1115545ba13108b876acc66c54b2d to respect word boundaries - * - * @test - * @covers Text::auto_link_emails - * @ticket 2772 - */ - function test_auto_link_emails_respects_word_boundaries() - { - $original = '
      -
    • voorzitter@xxxx.com
    • -
    • vicevoorzitter@xxxx.com
    • -
    '; - - $this->assertFalse(strpos('vice', Text::auto_link_emails($original))); - } - - - /** - * Provides some test data for test_number() - * - * @return array - */ - public function provider_number() - { - return array( - array('one', 1), - array('twenty-three', 23), - array('fourty-two', 42), - array('five million, six hundred and thirty-two', 5000632), - array('five million, six hundred and thirty', 5000630), - array('nine hundred million', 900000000), - array('thirty-seven thousand', 37000), - array('one thousand and twenty-four', 1024), - ); - } - - /** - * Checks that Text::number formats a number into english text - * - * @test - * @dataProvider provider_number - */ - public function test_number($expected, $number) - { - $this->assertSame($expected, Text::number($number)); - } - - /** - * Provides test data for test_auto_link_urls() - * - * @return array - */ - public function provider_auto_link_urls() - { - return array( - // First we try with the really obvious url - array( - 'Some random text http://www.google.com', - 'Some random text http://www.google.com', - ), - // Then we try with varying urls - array( - 'Some random www.google.com', - 'Some random www.google.com', - ), - array( - 'Some random google.com', - 'Some random google.com', - ), - // Check that it doesn't link urls in a href - array( - 'Look at me Awesome stuff', - 'Look at me Awesome stuff', - ), - array( - 'Look at me http://www.google.com', - 'Look at me http://www.google.com', - ), - // Punctuation at the end of the URL - array( - 'Wow http://www.google.com!', - 'Wow http://www.google.com!', - ), - array( - 'Zomg www.google.com!', - 'Zomg www.google.com!', - ), - array( - 'Well this, www.google.com, is cool', - 'Well this, www.google.com, is cool', - ), - // @issue 3190 - array( - 'www.google.com', - 'www.google.com', - ), - array( - 'www.google.com http://www.google.com/', - 'www.google.com http://www.google.com/', - ), - // @issue 3436 - array( - 'http://www.google.com/', - 'http://www.google.com/', - ), - // @issue 4208, URLs with a path - array( - 'Foobar www.google.com/analytics cake', - 'Foobar www.google.com/analytics cake', - ), - array( - 'Look at this www.google.com/analytics!', - 'Look at this www.google.com/analytics!', - ), - array( - 'Path http://www.google.com/analytics works?', - 'Path http://www.google.com/analytics works?', - ), - array( - 'Path http://www.google.com/analytics', - 'Path http://www.google.com/analytics', - ), - array( - 'Path www.google.com/analytics', - 'Path www.google.com/analytics', - ), - ); - } - - /** - * Runs tests for Test::auto_link_urls - * - * @test - * @dataProvider provider_auto_link_urls - */ - public function test_auto_link_urls($expected, $text) - { - $this->assertSame($expected, Text::auto_link_urls($text)); - } - - /** - * Provides test data for test_auto_link_emails() - * - * @return array - */ - public function provider_auto_link_emails() - { - return array( - // @issue 3162 - array( - 'info@test.com', - 'info@test.com', - ), - array( - 'info@test.com', - 'info@test.com', - ), - // @issue 3189 - array( - 'email@address.com email@address.com', - 'email@address.com email@address.com', - ), - ); - } - - /** - * Runs tests for Test::auto_link_emails - * - * @test - * @dataProvider provider_auto_link_emails - */ - public function test_auto_link_emails($expected, $text) - { - // Use html_entity_decode because emails will be randomly encoded by HTML::mailto - $this->assertSame($expected, html_entity_decode(Text::auto_link_emails($text))); - } - - /** - * Provides test data for test_auto_link - * - * @return array Test data - */ - public function provider_auto_link() - { - return array( - array( - 'Hi there, my site is kohanaframework.org and you can email me at nobody@kohanaframework.org', - array('kohanaframework.org'), - ), - - array( - 'Hi my.domain.com@domain.com you came from', - FALSE, - array('my.domain.com@domain.com'), - ), - ); - } - - /** - * Tests Text::auto_link() - * - * @test - * @dataProvider provider_auto_link - */ - public function test_auto_link($text, $urls = array(), $emails = array()) - { - $linked_text = Text::auto_link($text); - - if ($urls === FALSE) - { - $this->assertNotContains('http://', $linked_text); - } - elseif (count($urls)) - { - foreach ($urls as $url) - { - // Assert that all the urls have been caught by text auto_link_urls() - $this->assertContains(Text::auto_link_urls($url), $linked_text); - } - } - - foreach ($emails as $email) - { - $this->assertContains('mailto:'.$email, $linked_text); - } - - } - -} diff --git a/includes/kohana/system/tests/kohana/URLTest.php b/includes/kohana/system/tests/kohana/URLTest.php deleted file mode 100644 index ed5d9f16..00000000 --- a/includes/kohana/system/tests/kohana/URLTest.php +++ /dev/null @@ -1,279 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_URLTest extends Unittest_TestCase -{ - /** - * Default values for the environment, see setEnvironment - * @var array - */ - // @codingStandardsIgnoreStart - protected $environmentDefault = array( - 'Kohana::$base_url' => '/kohana/', - 'Kohana::$index_file'=> 'index.php', - 'HTTP_HOST' => 'example.com', - '_GET' => array(), - ); - // @codingStandardsIgnoreEnd - - /** - * Provides test data for test_base() - * - * @return array - */ - public function provider_base() - { - return array( - // $protocol, $index, $expected, $enviroment - - // Test with different combinations of parameters for max code coverage - array(NULL, FALSE, '/kohana/'), - array('http', FALSE, 'http://example.com/kohana/'), - array(NULL, TRUE, '/kohana/index.php/'), - array(NULL, TRUE, '/kohana/index.php/'), - array('http', TRUE, 'http://example.com/kohana/index.php/'), - array('https', TRUE, 'https://example.com/kohana/index.php/'), - array('ftp', TRUE, 'ftp://example.com/kohana/index.php/'), - - // Test for automatic protocol detection, protocol = TRUE - array(TRUE, TRUE, 'cli://example.com/kohana/index.php/', array('HTTPS' => FALSE, 'Request::$initial' => Request::factory('/')->protocol('cli'))), - - // Change base url' - array('https', FALSE, 'https://example.com/kohana/', array('Kohana::$base_url' => 'omglol://example.com/kohana/')), - - // Use port in base url, issue #3307 - array('http', FALSE, 'http://example.com:8080/', array('Kohana::$base_url' => 'example.com:8080/')), - - // Use protocol from base url if none specified - array(NULL, FALSE, 'http://www.example.com/', array('Kohana::$base_url' => 'http://www.example.com/')), - - // Use HTTP_HOST before SERVER_NAME - array('http', FALSE, 'http://example.com/kohana/', array('HTTP_HOST' => 'example.com', 'SERVER_NAME' => 'example.org')), - - // Use SERVER_NAME if HTTP_HOST DNX - array('http', FALSE, 'http://example.org/kohana/', array('HTTP_HOST' => NULL, 'SERVER_NAME' => 'example.org')), - ); - } - - /** - * Tests URL::base() - * - * @test - * @dataProvider provider_base - * @param boolean $protocol Parameter for Url::base() - * @param boolean $index Parameter for Url::base() - * @param string $expected Expected url - * @param array $enviroment Array of enviroment vars to change @see Kohana_URLTest::setEnvironment() - */ - public function test_base($protocol, $index, $expected, array $enviroment = array()) - { - $this->setEnvironment($enviroment); - - $this->assertSame( - $expected, - URL::base($protocol, $index) - ); - } - - /** - * Provides test data for test_site() - * - * @return array - */ - public function provider_site() - { - return array( - array('', NULL, '/kohana/index.php/'), - array('', 'http', 'http://example.com/kohana/index.php/'), - - array('my/site', NULL, '/kohana/index.php/my/site'), - array('my/site', 'http', 'http://example.com/kohana/index.php/my/site'), - - // @ticket #3110 - array('my/site/page:5', NULL, '/kohana/index.php/my/site/page:5'), - array('my/site/page:5', 'http', 'http://example.com/kohana/index.php/my/site/page:5'), - - array('my/site?var=asd&kohana=awesome', NULL, '/kohana/index.php/my/site?var=asd&kohana=awesome'), - array('my/site?var=asd&kohana=awesome', 'http', 'http://example.com/kohana/index.php/my/site?var=asd&kohana=awesome'), - - array('?kohana=awesome&life=good', NULL, '/kohana/index.php/?kohana=awesome&life=good'), - array('?kohana=awesome&life=good', 'http', 'http://example.com/kohana/index.php/?kohana=awesome&life=good'), - - array('?kohana=awesome&life=good#fact', NULL, '/kohana/index.php/?kohana=awesome&life=good#fact'), - array('?kohana=awesome&life=good#fact', 'http', 'http://example.com/kohana/index.php/?kohana=awesome&life=good#fact'), - - array('some/long/route/goes/here?kohana=awesome&life=good#fact', NULL, '/kohana/index.php/some/long/route/goes/here?kohana=awesome&life=good#fact'), - array('some/long/route/goes/here?kohana=awesome&life=good#fact', 'http', 'http://example.com/kohana/index.php/some/long/route/goes/here?kohana=awesome&life=good#fact'), - - array('/route/goes/here?kohana=awesome&life=good#fact', 'https', 'https://example.com/kohana/index.php/route/goes/here?kohana=awesome&life=good#fact'), - array('/route/goes/here?kohana=awesome&life=good#fact', 'ftp', 'ftp://example.com/kohana/index.php/route/goes/here?kohana=awesome&life=good#fact'), - ); - } - - /** - * Tests URL::site() - * - * @test - * @dataProvider provider_site - * @param string $uri URI to use - * @param boolean|string $protocol Protocol to use - * @param string $expected Expected result - * @param array $enviroment Array of enviroment vars to set - */ - public function test_site($uri, $protocol, $expected, array $enviroment = array()) - { - $this->setEnvironment($enviroment); - - $this->assertSame( - $expected, - URL::site($uri, $protocol) - ); - } - - /** - * Provides test data for test_site_url_encode_uri() - * See issue #2680 - * - * @return array - */ - public function provider_site_url_encode_uri() - { - $provider = array( - array('test', 'encode'), - array('test', 'éñçø∂ë∂'), - array('†é߆', 'encode'), - array('†é߆', 'éñçø∂ë∂', 'µåñ¥'), - ); - - foreach ($provider as $i => $params) - { - // Every non-ASCII character except for forward slash should be encoded... - $expected = implode('/', array_map('rawurlencode', $params)); - - // ... from a URI that is not encoded - $uri = implode('/', $params); - - $provider[$i] = array("/kohana/index.php/{$expected}", $uri); - } - - return $provider; - } - - /** - * Tests URL::site for proper URL encoding when working with non-ASCII characters. - * - * @test - * @dataProvider provider_site_url_encode_uri - */ - public function test_site_url_encode_uri($expected, $uri) - { - $this->assertSame($expected, URL::site($uri, FALSE)); - } - - /** - * Provides test data for test_title() - * @return array - */ - public function provider_title() - { - return array( - // Tests that.. - // Title is converted to lowercase - array('we-shall-not-be-moved', 'WE SHALL NOT BE MOVED', '-'), - // Excessive white space is removed and replaced with 1 char - array('thissssss-is-it', 'THISSSSSS IS IT ', '-'), - // separator is either - (dash) or _ (underscore) & others are converted to underscores - array('some-title', 'some title', '-'), - array('some_title', 'some title', '_'), - array('some!title', 'some title', '!'), - array('some:title', 'some title', ':'), - // Numbers are preserved - array('99-ways-to-beat-apple', '99 Ways to beat apple', '-'), - // ... with lots of spaces & caps - array('99_ways_to_beat_apple', '99 ways TO beat APPLE', '_'), - array('99-ways-to-beat-apple', '99 ways TO beat APPLE', '-'), - // Invalid characters are removed - array('each-gbp-is-now-worth-32-usd', 'Each GBP(£) is now worth 32 USD($)', '-'), - // ... inc. separator - array('is-it-reusable-or-re-usable', 'Is it reusable or re-usable?', '-'), - // Doing some crazy UTF8 tests - array('espana-wins', 'España-wins', '-', TRUE), - ); - } - - /** - * Tests URL::title() - * - * @test - * @dataProvider provider_title - * @param string $title Input to convert - * @param string $separator Seperate to replace invalid characters with - * @param string $expected Expected result - */ - public function test_title($expected, $title, $separator, $ascii_only = FALSE) - { - $this->assertSame( - $expected, - URL::title($title, $separator, $ascii_only) - ); - } - - /** - * Provides test data for URL::query() - * @return array - */ - public function provider_query() - { - return array( - array(array(), '', NULL), - array(array('_GET' => array('test' => 'data')), '?test=data', NULL), - array(array(), '?test=data', array('test' => 'data')), - array(array('_GET' => array('more' => 'data')), '?more=data&test=data', array('test' => 'data')), - array(array('_GET' => array('sort' => 'down')), '?test=data', array('test' => 'data'), FALSE), - - // http://dev.kohanaframework.org/issues/3362 - array(array(), '', array('key' => NULL)), - array(array(), '?key=0', array('key' => FALSE)), - array(array(), '?key=1', array('key' => TRUE)), - array(array('_GET' => array('sort' => 'down')), '?sort=down&key=1', array('key' => TRUE)), - array(array('_GET' => array('sort' => 'down')), '?sort=down&key=0', array('key' => FALSE)), - - // @issue 4240 - array(array('_GET' => array('foo' => array('a' => 100))), '?foo%5Ba%5D=100&foo%5Bb%5D=bar', array('foo' => array('b' => 'bar'))), - array(array('_GET' => array('a' => 'a')), '?a=b', array('a' => 'b')), - ); - } - - /** - * Tests URL::query() - * - * @test - * @dataProvider provider_query - * @param array $enviroment Set environment - * @param string $expected Expected result - * @param array $params Query string - * @param boolean $use_get Combine with GET parameters - */ - public function test_query($enviroment, $expected, $params, $use_get = TRUE) - { - $this->setEnvironment($enviroment); - - $this->assertSame( - $expected, - URL::query($params, $use_get) - ); - } -} diff --git a/includes/kohana/system/tests/kohana/UTF8Test.php b/includes/kohana/system/tests/kohana/UTF8Test.php deleted file mode 100644 index fec2d518..00000000 --- a/includes/kohana/system/tests/kohana/UTF8Test.php +++ /dev/null @@ -1,631 +0,0 @@ -assertSame($expected, UTF8::clean($input)); - } - - /** - * Provides test data for test_is_ascii() - */ - public function provider_is_ascii() - { - return array( - array("\0", TRUE), - array("\$eno\r", TRUE), - array('Señor', FALSE), - array(array('Se', 'nor'), TRUE), - array(array('Se', 'ñor'), FALSE), - ); - } - - /** - * Tests UTF8::is_ascii - * - * @test - * @dataProvider provider_is_ascii - */ - public function test_is_ascii($input, $expected) - { - $this->assertSame($expected, UTF8::is_ascii($input)); - } - - /** - * Provides test data for test_strip_ascii_ctrl() - */ - public function provider_strip_ascii_ctrl() - { - return array( - array("\0", ''), - array("→foo\021", '→foo'), - array("\x7Fbar", 'bar'), - array("\xFF", "\xFF"), - array("\x41", 'A'), - ); - } - - /** - * Tests UTF8::strip_ascii_ctrl - * - * @test - * @dataProvider provider_strip_ascii_ctrl - */ - public function test_strip_ascii_ctrl($input, $expected) - { - $this->assertSame($expected, UTF8::strip_ascii_ctrl($input)); - } - - /** - * Provides test data for test_strip_non_ascii() - */ - public function provider_strip_non_ascii() - { - return array( - array("\0\021\x7F", "\0\021\x7F"), - array('I ♥ cocoñùт', 'I coco'), - ); - } - - /** - * Tests UTF8::strip_non_ascii - * - * @test - * @dataProvider provider_strip_non_ascii - */ - public function test_strip_non_ascii($input, $expected) - { - $this->assertSame($expected, UTF8::strip_non_ascii($input)); - } - - /** - * Provides test data for test_transliterate_to_ascii() - */ - public function provider_transliterate_to_ascii() - { - return array( - array('Cocoñùт', -1, 'CoconuÑ‚'), - array('COCOÑÙТ', -1, 'COCOÑÙТ'), - array('Cocoñùт', 0, 'CoconuÑ‚'), - array('COCOÑÙТ', 0, 'COCONUТ'), - array('Cocoñùт', 1, 'Cocoñùт'), - array('COCOÑÙТ', 1, 'COCONUТ'), - ); - } - - /** - * Tests UTF8::transliterate_to_ascii - * - * @test - * @dataProvider provider_transliterate_to_ascii - */ - public function test_transliterate_to_ascii($input, $case, $expected) - { - $this->assertSame($expected, UTF8::transliterate_to_ascii($input, $case)); - } - - /** - * Provides test data for test_strlen() - */ - public function provider_strlen() - { - return array( - array('Cocoñùт', 7), - array('Coconut', 7), - ); - } - - /** - * Tests UTF8::strlen - * - * @test - * @dataProvider provider_strlen - */ - public function test_strlen($input, $expected) - { - $this->assertSame($expected, UTF8::strlen($input)); - } - - /** - * Provides test data for test_strpos() - */ - public function provider_strpos() - { - return array( - array('Cocoñùт', 'o', 0, 1), - array('Cocoñùт', 'ñ', 1, 4), - ); - } - - /** - * Tests UTF8::strpos - * - * @test - * @dataProvider provider_strpos - */ - public function test_strpos($input, $str, $offset, $expected) - { - $this->assertSame($expected, UTF8::strpos($input, $str, $offset)); - } - - /** - * Provides test data for test_strrpos() - */ - public function provider_strrpos() - { - return array( - array('Cocoñùт', 'o', 0, 3), - array('Cocoñùт', 'ñ', 2, 4), - ); - } - - /** - * Tests UTF8::strrpos - * - * @test - * @dataProvider provider_strrpos - */ - public function test_strrpos($input, $str, $offset, $expected) - { - $this->assertSame($expected, UTF8::strrpos($input, $str, $offset)); - } - - /** - * Provides test data for test_substr() - */ - public function provider_substr() - { - return array( - array('Cocoñùт', 3, 2, 'oñ'), - array('Cocoñùт', 3, 9, 'oñùт'), - array('Cocoñùт', 3, NULL, 'oñùт'), - array('Cocoñùт', 3, -2, 'oñ'), - ); - } - - /** - * Tests UTF8::substr - * - * @test - * @dataProvider provider_substr - */ - public function test_substr($input, $offset, $length, $expected) - { - $this->assertSame($expected, UTF8::substr($input, $offset, $length)); - } - - /** - * Provides test data for test_substr_replace() - */ - public function provider_substr_replace() - { - return array( - array('Cocoñùт', 'Å¡Å¡', 3, 2, 'Cocššùт'), - array('Cocoñùт', 'Å¡Å¡', 3, 9, 'CocÅ¡Å¡'), - ); - } - - /** - * Tests UTF8::substr_replace - * - * @test - * @dataProvider provider_substr_replace - */ - public function test_substr_replace($input, $replacement, $offset, $length, $expected) - { - $this->assertSame($expected, UTF8::substr_replace($input, $replacement, $offset, $length)); - } - - /** - * Provides test data for test_strtolower() - */ - public function provider_strtolower() - { - return array( - array('COCOÑÙТ', 'cocoñùт'), - array('JÄGER', 'jäger'), - ); - } - - /** - * Tests UTF8::strtolower - * - * @test - * @dataProvider provider_strtolower - */ - public function test_strtolower($input, $expected) - { - $this->assertSame($expected, UTF8::strtolower($input)); - } - - /** - * Provides test data for test_strtoupper() - */ - public function provider_strtoupper() - { - return array( - array('Cocoñùт', 'COCOÑÙТ'), - array('jäger', 'JÄGER'), - ); - } - - /** - * Tests UTF8::strtoupper - * - * @test - * @dataProvider provider_strtoupper - */ - public function test_strtoupper($input, $expected) - { - $this->assertSame($expected, UTF8::strtoupper($input)); - } - - /** - * Provides test data for test_ucfirst() - */ - public function provider_ucfirst() - { - return array( - array('ñùт', 'Ñùт'), - ); - } - - /** - * Tests UTF8::ucfirst - * - * @test - * @dataProvider provider_ucfirst - */ - public function test_ucfirst($input, $expected) - { - $this->assertSame($expected, UTF8::ucfirst($input)); - } - - /** - * Provides test data for test_strip_non_ascii() - */ - public function provider_ucwords() - { - return array( - array('ExAmple', 'ExAmple'), - array('i ♥ Cocoñùт', 'I ♥ Cocoñùт'), - ); - } - - /** - * Tests UTF8::ucwords - * - * @test - * @dataProvider provider_ucwords - */ - public function test_ucwords($input, $expected) - { - $this->assertSame($expected, UTF8::ucwords($input)); - } - - /** - * Provides test data for test_strcasecmp() - */ - public function provider_strcasecmp() - { - return array( - array('Cocoñùт', 'Cocoñùт', 0), - array('ÄŒau', 'ÄŒauo', -1), - array('ÄŒau', 'ÄŒa', 1), - array('Cocoñùт', 'Cocoñ', 4), - array('Cocoñùт', 'Coco', 6), - ); - } - - /** - * Tests UTF8::strcasecmp - * - * @test - * @dataProvider provider_strcasecmp - */ - public function test_strcasecmp($input, $input2, $expected) - { - $this->assertSame($expected, UTF8::strcasecmp($input, $input2)); - } - - /** - * Provides test data for test_str_ireplace() - */ - public function provider_str_ireplace() - { - return array( - array('Ñ‚', 't', 'cocoñuÑ‚', 'cocoñut'), - array('Ñ', 'N', 'cocoñuÑ‚', 'cocoNuÑ‚'), - array(array('Ñ‚', 'Ñ', 'k' => 'k'), array('t', 'N', 'K'), array('cocoñuÑ‚'), array('cocoNut')), - array(array('ñ'), 'n', 'cocoñuÑ‚', 'coconuÑ‚'), - ); - } - - /** - * Tests UTF8::str_ireplace - * - * @test - * @dataProvider provider_str_ireplace - */ - public function test_str_ireplace($search, $replace, $subject, $expected) - { - $this->assertSame($expected, UTF8::str_ireplace($search, $replace, $subject)); - } - - /** - * Provides test data for test_stristr() - */ - public function provider_stristr() - { - return array( - array('Cocoñùт', 'oñ', 'oñùт'), - array('Cocoñùт', 'o', 'ocoñùт'), - array('Cocoñùт', 'k', FALSE), - ); - } - - /** - * Tests UTF8::stristr - * - * @test - * @dataProvider provider_stristr - */ - public function test_stristr($input, $input2, $expected) - { - $this->assertSame($expected, UTF8::stristr($input, $input2)); - } - - /** - * Provides test data for test_strspn() - */ - public function provider_strspn() - { - return array( - array("foo", "o", 1, 2, 2), - array('Cocoñùт', 'oñ', NULL, NULL, 1), - array('Cocoñùт', 'oñ', 2, 4, 1), - array('Cocoñùт', 'Å¡Å¡', 3, 9, 4), - ); - } - - /** - * Tests UTF8::strspn - * - * @test - * @dataProvider provider_strspn - */ - public function test_strspn($input, $mask, $offset, $length, $expected) - { - $this->assertSame($expected, UTF8::strspn($input, $mask, $offset, $length)); - } - - /** - * Provides test data for test_strcspn() - */ - public function provider_strcspn() - { - return array( - array('Cocoñùт', 'oñ', NULL, NULL, 1), - array('Cocoñùт', 'oñ', 2, 4, 1), - array('Cocoñùт', 'Å¡Å¡', 3, 9, 4), - ); - } - - /** - * Tests UTF8::strcspn - * - * @test - * @dataProvider provider_strcspn - */ - public function test_strcspn($input, $mask, $offset, $length, $expected) - { - $this->assertSame($expected, UTF8::strcspn($input, $mask, $offset, $length)); - } - - /** - * Provides test data for test_str_pad() - */ - public function provider_str_pad() - { - return array( - array('Cocoñùт', 10, 'Å¡', STR_PAD_RIGHT, 'Cocoñùтššš'), - array('Cocoñùт', 10, 'Å¡', STR_PAD_LEFT, 'Å¡Å¡Å¡Cocoñùт'), - array('Cocoñùт', 10, 'Å¡', STR_PAD_BOTH, 'Å¡Cocoñùтšš'), - ); - } - - /** - * Tests UTF8::str_pad - * - * @test - * @dataProvider provider_str_pad - */ - public function test_str_pad($input, $length, $pad, $type, $expected) - { - $this->assertSame($expected, UTF8::str_pad($input, $length, $pad, $type)); - } - - /** - * Tests UTF8::str_pad error - * - * @test - * @expectedException UTF8_Exception - */ - public function test_str_pad_error() - { - UTF8::str_pad('Cocoñùт', 10, 'Å¡', 15, 'Å¡Cocoñùтšš'); - } - - /** - * Provides test data for test_str_split() - */ - public function provider_str_split() - { - return array( - array('Bár', 1, array('B', 'á', 'r')), - array('Cocoñùт', 2, array('Co', 'co', 'ñù', 'Ñ‚')), - array('Cocoñùт', 3, array('Coc', 'oñù', 'Ñ‚')), - ); - } - - /** - * Tests UTF8::str_split - * - * @test - * @dataProvider provider_str_split - */ - public function test_str_split($input, $split_length, $expected) - { - $this->assertSame($expected, UTF8::str_split($input, $split_length)); - } - - /** - * Provides test data for test_strrev() - */ - public function provider_strrev() - { - return array( - array('Cocoñùт', 'тùñocoC'), - ); - } - - /** - * Tests UTF8::strrev - * - * @test - * @dataProvider provider_strrev - */ - public function test_strrev($input, $expected) - { - $this->assertSame($expected, UTF8::strrev($input)); - } - - /** - * Provides test data for test_trim() - */ - public function provider_trim() - { - return array( - array(' bar ', NULL, 'bar'), - array('bar', 'b', 'ar'), - array('barb', 'b', 'ar'), - ); - } - - /** - * Tests UTF8::trim - * - * @test - * @dataProvider provider_trim - */ - public function test_trim($input, $input2, $expected) - { - $this->assertSame($expected, UTF8::trim($input, $input2)); - } - - /** - * Provides test data for test_ltrim() - */ - public function provider_ltrim() - { - return array( - array(' bar ', NULL, 'bar '), - array('bar', 'b', 'ar'), - array('barb', 'b', 'arb'), - array('ñùт', 'ñ', 'ùт'), - ); - } - - /** - * Tests UTF8::ltrim - * - * @test - * @dataProvider provider_ltrim - */ - public function test_ltrim($input, $charlist, $expected) - { - $this->assertSame($expected, UTF8::ltrim($input, $charlist)); - } - - /** - * Provides test data for test_rtrim() - */ - public function provider_rtrim() - { - return array( - array(' bar ', NULL, ' bar'), - array('bar', 'b', 'bar'), - array('barb', 'b', 'bar'), - array('Cocoñùт', 'Ñ‚', 'Cocoñù'), - ); - } - - /** - * Tests UTF8::rtrim - * - * @test - * @dataProvider provider_rtrim - */ - public function test_rtrim($input, $input2, $expected) - { - $this->assertSame($expected, UTF8::rtrim($input, $input2)); - } - - /** - * Provides test data for test_ord() - */ - public function provider_ord() - { - return array( - array('f', 102), - array('ñ', 241), - array('Ñ', 209), - ); - } - - /** - * Tests UTF8::ord - * - * @test - * @dataProvider provider_ord - */ - public function test_ord($input, $expected) - { - $this->assertSame($expected, UTF8::ord($input)); - } -} diff --git a/includes/kohana/system/tests/kohana/UploadTest.php b/includes/kohana/system/tests/kohana/UploadTest.php deleted file mode 100644 index 026ba8ab..00000000 --- a/includes/kohana/system/tests/kohana/UploadTest.php +++ /dev/null @@ -1,225 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_UploadTest extends Unittest_TestCase -{ - /** - * Provides test data for test_size() - * - * @return array - */ - public function provider_size() - { - return array( - // $field, $bytes, $environment, $expected - array( - 'unit_test', - 5, - array('_FILES' => array('unit_test' => array('error' => UPLOAD_ERR_INI_SIZE))), - FALSE - ), - array( - 'unit_test', - 5, - array('_FILES' => array('unit_test' => array('error' => UPLOAD_ERR_NO_FILE))), - TRUE - ), - array( - 'unit_test', - '6K', - array('_FILES' => array( - 'unit_test' => array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ) - ), - TRUE - ), - array( - 'unit_test', - '1B', - array('_FILES' => array( - 'unit_test' => array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ) - ), - FALSE - ), - ); - } - - /** - * Tests Upload::size - * - * @test - * @dataProvider provider_size - * @covers upload::size - * @param string $field the files field to test - * @param string $bytes valid bite size - * @param array $environment set the $_FILES array - * @param bool $expected what to expect - */ - public function test_size($field, $bytes, $environment, $expected) - { - $this->setEnvironment($environment); - - $this->assertSame($expected, Upload::size($_FILES[$field], $bytes)); - } - - /** - * size() should throw an exception of the supplied max size is invalid - * - * @test - * @covers upload::size - * @expectedException Kohana_Exception - */ - public function test_size_throws_exception_for_invalid_size() - { - $this->setEnvironment(array( - '_FILES' => array( - 'unit_test' => array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ) - )); - - Upload::size($_FILES['unit_test'], '1DooDah'); - } - - /** - * Provides test data for test_vali() - * - * @test - * @return array - */ - public function provider_valid() - { - return array( - array( - TRUE, - array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ), - array( - FALSE, - array( - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ), - array( - FALSE, - array( - 'error' => UPLOAD_ERR_OK, - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ), - array( - FALSE, - array( - 'name' => 'Unit_Test File', - 'error' => UPLOAD_ERR_OK, - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ), - array( - FALSE, - array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ), - array( - FALSE, - array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'Unit_Test File', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - ) - ), - - ); - } - - /** - * Test Upload::valid - * - * @test - * @dataProvider provider_valid - * @covers Upload::valid - */ - public function test_valid($expected, $file) - { - $this->setEnvironment(array( - '_FILES' => array( - 'unit_test' => $file, - ), - )); - - $this->assertSame($expected, Upload::valid($_FILES['unit_test'])); - } - - /** - * Tests Upload::type - * - * @test - * @covers Upload::type - */ - public function test_type() - { - $this->setEnvironment(array( - '_FILES' => array( - 'unit_test' => array( - 'error' => UPLOAD_ERR_OK, - 'name' => 'github.png', - 'type' => 'image/png', - 'tmp_name' => Kohana::find_file('tests', 'test_data/github', 'png'), - 'size' => filesize(Kohana::find_file('tests', 'test_data/github', 'png')), - ) - ) - )); - - $this->assertTrue(Upload::type($_FILES['unit_test'], array('jpg', 'png', 'gif'))); - - $this->assertFalse(Upload::type($_FILES['unit_test'], array('docx'))); - } -} diff --git a/includes/kohana/system/tests/kohana/ValidTest.php b/includes/kohana/system/tests/kohana/ValidTest.php deleted file mode 100644 index 929e0f00..00000000 --- a/includes/kohana/system/tests/kohana/ValidTest.php +++ /dev/null @@ -1,985 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_ValidTest extends Unittest_TestCase -{ - - /** - * Provides test data for test_alpha() - * @return array - */ - public function provider_alpha() - { - return array( - array('asdavafaiwnoabwiubafpowf', TRUE), - array('!aidhfawiodb', FALSE), - array('51535oniubawdawd78', FALSE), - array('!"£$(G$W£(HFW£F(HQ)"n', FALSE), - // UTF-8 tests - array('ã‚ã„ã†ãˆãŠ', TRUE, TRUE), - array('Â¥', FALSE, TRUE), - // Empty test - array('', FALSE, FALSE), - array(NULL, FALSE, FALSE), - array(FALSE, FALSE, FALSE), - ); - } - - /** - * Tests Valid::alpha() - * - * Checks whether a string consists of alphabetical characters only. - * - * @test - * @dataProvider provider_alpha - * @param string $string - * @param boolean $expected - */ - public function test_alpha($string, $expected, $utf8 = FALSE) - { - $this->assertSame( - $expected, - Valid::alpha($string, $utf8) - ); - } - - /* - * Provides test data for test_alpha_numeric - */ - public function provide_alpha_numeric() - { - return array( - array('abcd1234', TRUE), - array('abcd', TRUE), - array('1234', TRUE), - array('abc123&^/-', FALSE), - // UTF-8 tests - array('ã‚ã„ã†ãˆãŠ', TRUE, TRUE), - array('零一二三四五', TRUE, TRUE), - array('ã‚ã„四五£^£^', FALSE, TRUE), - // Empty test - array('', FALSE, FALSE), - array(NULL, FALSE, FALSE), - array(FALSE, FALSE, FALSE), - ); - } - - /** - * Tests Valid::alpha_numeric() - * - * Checks whether a string consists of alphabetical characters and numbers only. - * - * @test - * @dataProvider provide_alpha_numeric - * @param string $input The string to test - * @param boolean $expected Is $input valid - */ - public function test_alpha_numeric($input, $expected, $utf8 = FALSE) - { - $this->assertSame( - $expected, - Valid::alpha_numeric($input, $utf8) - ); - } - - /** - * Provides test data for test_alpha_dash - */ - public function provider_alpha_dash() - { - return array( - array('abcdef', TRUE), - array('12345', TRUE), - array('abcd1234', TRUE), - array('abcd1234-', TRUE), - array('abc123&^/-', FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::alpha_dash() - * - * Checks whether a string consists of alphabetical characters, numbers, underscores and dashes only. - * - * @test - * @dataProvider provider_alpha_dash - * @param string $input The string to test - * @param boolean $contains_utf8 Does the string contain utf8 specific characters - * @param boolean $expected Is $input valid? - */ - public function test_alpha_dash($input, $expected, $contains_utf8 = FALSE) - { - if ( ! $contains_utf8) - { - $this->assertSame( - $expected, - Valid::alpha_dash($input) - ); - } - - $this->assertSame( - $expected, - Valid::alpha_dash($input, TRUE) - ); - } - - /** - * DataProvider for the valid::date() test - */ - public function provider_date() - { - return array( - array('now',TRUE), - array('10 September 2010',TRUE), - array('+1 day',TRUE), - array('+1 week',TRUE), - array('+1 week 2 days 4 hours 2 seconds',TRUE), - array('next Thursday',TRUE), - array('last Monday',TRUE), - - array('blarg',FALSE), - array('in the year 2000',FALSE), - array('324824',FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::date() - * - * @test - * @dataProvider provider_date - * @param string $date The date to validate - * @param integer $expected - */ - public function test_date($date, $expected) - { - $this->assertSame( - $expected, - Valid::date($date, $expected) - ); - } - - /** - * DataProvider for the valid::decimal() test - */ - public function provider_decimal() - { - return array( - // Empty test - array('', 2, NULL, FALSE), - array(NULL, 2, NULL, FALSE), - array(FALSE, 2, NULL, FALSE), - array('45.1664', 3, NULL, FALSE), - array('45.1664', 4, NULL, TRUE), - array('45.1664', 4, 2, TRUE), - array('-45.1664', 4, NULL, TRUE), - array('+45.1664', 4, NULL, TRUE), - array('-45.1664', 3, NULL, FALSE), - ); - } - - /** - * Tests Valid::decimal() - * - * @test - * @dataProvider provider_decimal - * @param string $decimal The decimal to validate - * @param integer $places The number of places to check to - * @param integer $digits The number of digits preceding the point to check - * @param boolean $expected Whether $decimal conforms to $places AND $digits - */ - public function test_decimal($decimal, $places, $digits, $expected) - { - $this->assertSame( - $expected, - Valid::decimal($decimal, $places, $digits), - 'Decimal: "'.$decimal.'" to '.$places.' places and '.$digits.' digits (preceeding period)' - ); - } - - /** - * Provides test data for test_digit - * @return array - */ - public function provider_digit() - { - return array( - array('12345', TRUE), - array('10.5', FALSE), - array('abcde', FALSE), - array('abcd1234', FALSE), - array('-5', FALSE), - array(-5, FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::digit() - * - * @test - * @dataProvider provider_digit - * @param mixed $input Input to validate - * @param boolean $expected Is $input valid - */ - public function test_digit($input, $expected, $contains_utf8 = FALSE) - { - if ( ! $contains_utf8) - { - $this->assertSame( - $expected, - Valid::digit($input) - ); - } - - $this->assertSame( - $expected, - Valid::digit($input, TRUE) - ); - - } - - /** - * DataProvider for the valid::color() test - */ - public function provider_color() - { - return array( - array('#000000', TRUE), - array('#GGGGGG', FALSE), - array('#AbCdEf', TRUE), - array('#000', TRUE), - array('#abc', TRUE), - array('#DEF', TRUE), - array('000000', TRUE), - array('GGGGGG', FALSE), - array('AbCdEf', TRUE), - array('000', TRUE), - array('DEF', TRUE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::color() - * - * @test - * @dataProvider provider_color - * @param string $color The color to test - * @param boolean $expected Is $color valid - */ - public function test_color($color, $expected) - { - $this->assertSame( - $expected, - Valid::color($color) - ); - } - - /** - * Provides test data for test_credit_card() - */ - public function provider_credit_card() - { - return array( - array('4222222222222', 'visa', TRUE), - array('4012888888881881', 'visa', TRUE), - array('4012888888881881', NULL, TRUE), - array('4012888888881881', array('mastercard', 'visa'), TRUE), - array('4012888888881881', array('discover', 'mastercard'), FALSE), - array('4012888888881881', 'mastercard', FALSE), - array('5105105105105100', 'mastercard', TRUE), - array('6011111111111117', 'discover', TRUE), - array('6011111111111117', 'visa', FALSE), - // Empty test - array('', NULL, FALSE), - array(NULL, NULL, FALSE), - array(FALSE, NULL, FALSE), - ); - } - - /** - * Tests Valid::credit_card() - * - * @test - * @covers Valid::credit_card - * @dataProvider provider_credit_card() - * @param string $number Credit card number - * @param string $type Credit card type - * @param boolean $expected - */ - public function test_credit_card($number, $type, $expected) - { - $this->assertSame( - $expected, - Valid::credit_card($number, $type) - ); - } - - /** - * Provides test data for test_credit_card() - */ - public function provider_luhn() - { - return array( - array('4222222222222', TRUE), - array('4012888888881881', TRUE), - array('5105105105105100', TRUE), - array('6011111111111117', TRUE), - array('60111111111111.7', FALSE), - array('6011111111111117X', FALSE), - array('6011111111111117 ', FALSE), - array('WORD ', FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::luhn() - * - * @test - * @covers Valid::luhn - * @dataProvider provider_luhn() - * @param string $number Credit card number - * @param boolean $expected - */ - public function test_luhn($number, $expected) - { - $this->assertSame( - $expected, - Valid::luhn($number) - ); - } - - /** - * Provides test data for test_email() - * - * @return array - */ - public function provider_email() - { - return array( - array('foo', TRUE, FALSE), - array('foo', FALSE, FALSE), - - array('foo@bar', TRUE, TRUE), - // RFC is less strict than the normal regex, presumably to allow - // admin@localhost, therefore we IGNORE IT!!! - array('foo@bar', FALSE, FALSE), - array('foo@bar.com', FALSE, TRUE), - array('foo@barcom:80', FALSE, FALSE), - array('foo@bar.sub.com', FALSE, TRUE), - array('foo+asd@bar.sub.com', FALSE, TRUE), - array('foo.asd@bar.sub.com', FALSE, TRUE), - // RFC says 254 length max #4011 - array(Text::random(NULL, 200).'@'.Text::random(NULL, 50).'.com', FALSE, FALSE), - // Empty test - array('', TRUE, FALSE), - array(NULL, TRUE, FALSE), - array(FALSE, TRUE, FALSE), - ); - } - - /** - * Tests Valid::email() - * - * Check an email address for correct format. - * - * @test - * @dataProvider provider_email - * @param string $email Address to check - * @param boolean $strict Use strict settings - * @param boolean $correct Is $email address valid? - */ - public function test_email($email, $strict, $correct) - { - $this->assertSame( - $correct, - Valid::email($email, $strict) - ); - } - - /** - * Returns test data for test_email_domain() - * - * @return array - */ - public function provider_email_domain() - { - return array( - array('google.com', TRUE), - // Don't anybody dare register this... - array('DAWOMAWIDAIWNDAIWNHDAWIHDAIWHDAIWOHDAIOHDAIWHD.com', FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::email_domain() - * - * Validate the domain of an email address by checking if the domain has a - * valid MX record. - * - * Test skips on windows - * - * @test - * @dataProvider provider_email_domain - * @param string $email Email domain to check - * @param boolean $correct Is it correct? - */ - public function test_email_domain($email, $correct) - { - if ( ! $this->hasInternet()) - { - $this->markTestSkipped('An internet connection is required for this test'); - } - - if ( ! Kohana::$is_windows OR version_compare(PHP_VERSION, '5.3.0', '>=')) - { - $this->assertSame( - $correct, - Valid::email_domain($email) - ); - } - else - { - $this->markTestSkipped('checkdnsrr() was not added on windows until PHP 5.3'); - } - } - - /** - * Provides data for test_exact_length() - * - * @return array - */ - public function provider_exact_length() - { - return array( - array('somestring', 10, TRUE), - array('somestring', 11, FALSE), - array('anotherstring', 13, TRUE), - // Empty test - array('', 10, FALSE), - array(NULL, 10, FALSE), - array(FALSE, 10, FALSE), - // Test array of allowed lengths - array('somestring', array(1, 3, 5, 7, 9, 10), TRUE), - array('somestring', array(1, 3, 5, 7, 9), FALSE), - ); - } - - /** - * - * Tests Valid::exact_length() - * - * Checks that a field is exactly the right length. - * - * @test - * @dataProvider provider_exact_length - * @param string $string The string to length check - * @param integer $length The length of the string - * @param boolean $correct Is $length the actual length of the string? - * @return bool - */ - public function test_exact_length($string, $length, $correct) - { - return $this->assertSame( - $correct, - Valid::exact_length($string, $length), - 'Reported string length is not correct' - ); - } - - /** - * Provides data for test_equals() - * - * @return array - */ - public function provider_equals() - { - return array( - array('foo', 'foo', TRUE), - array('1', '1', TRUE), - array(1, '1', FALSE), - array('011', 011, FALSE), - // Empty test - array('', 123, FALSE), - array(NULL, 123, FALSE), - array(FALSE, 123, FALSE), - ); - } - - /** - * Tests Valid::equals() - * - * @test - * @dataProvider provider_equals - * @param string $string value to check - * @param integer $required required value - * @param boolean $correct is $string the same as $required? - * @return boolean - */ - public function test_equals($string, $required, $correct) - { - return $this->assertSame( - $correct, - Valid::equals($string, $required), - 'Values are not equal' - ); - } - - /** - * DataProvider for the valid::ip() test - * @return array - */ - public function provider_ip() - { - return array( - array('75.125.175.50', FALSE, TRUE), - // PHP 5.3.6 fixed a bug that allowed 127.0.0.1 as a public ip: http://bugs.php.net/53150 - array('127.0.0.1', FALSE, version_compare(PHP_VERSION, '5.3.6', '<')), - array('256.257.258.259', FALSE, FALSE), - array('255.255.255.255', FALSE, FALSE), - array('192.168.0.1', FALSE, FALSE), - array('192.168.0.1', TRUE, TRUE), - // Empty test - array('', TRUE, FALSE), - array(NULL, TRUE, FALSE), - array(FALSE, TRUE, FALSE), - ); - } - - /** - * Tests Valid::ip() - * - * @test - * @dataProvider provider_ip - * @param string $input_ip - * @param boolean $allow_private - * @param boolean $expected_result - */ - public function test_ip($input_ip, $allow_private, $expected_result) - { - $this->assertEquals( - $expected_result, - Valid::ip($input_ip, $allow_private) - ); - } - - /** - * Returns test data for test_max_length() - * - * @return array - */ - public function provider_max_length() - { - return array( - // Border line - array('some', 4, TRUE), - // Exceeds - array('KOHANARULLLES', 2, FALSE), - // Under - array('CakeSucks', 10, TRUE), - // Empty test - array('', -10, FALSE), - array(NULL, -10, FALSE), - array(FALSE, -10, FALSE), - ); - } - - /** - * Tests Valid::max_length() - * - * Checks that a field is short enough. - * - * @test - * @dataProvider provider_max_length - * @param string $string String to test - * @param integer $maxlength Max length for this string - * @param boolean $correct Is $string <= $maxlength - */ - public function test_max_length($string, $maxlength, $correct) - { - $this->assertSame( - $correct, - Valid::max_length($string, $maxlength) - ); - } - - /** - * Returns test data for test_min_length() - * - * @return array - */ - public function provider_min_length() - { - return array( - array('This is obviously long enough', 10, TRUE), - array('This is not', 101, FALSE), - array('This is on the borderline', 25, TRUE), - // Empty test - array('', 10, FALSE), - array(NULL, 10, FALSE), - array(FALSE, 10, FALSE), - ); - } - - /** - * Tests Valid::min_length() - * - * Checks that a field is long enough. - * - * @test - * @dataProvider provider_min_length - * @param string $string String to compare - * @param integer $minlength The minimum allowed length - * @param boolean $correct Is $string 's length >= $minlength - */ - public function test_min_length($string, $minlength, $correct) - { - $this->assertSame( - $correct, - Valid::min_length($string, $minlength) - ); - } - - /** - * Returns test data for test_not_empty() - * - * @return array - */ - public function provider_not_empty() - { - // Create a blank arrayObject - $ao = new ArrayObject; - - // arrayObject with value - $ao1 = new ArrayObject; - $ao1['test'] = 'value'; - - return array( - array(array(), FALSE), - array(NULL, FALSE), - array('', FALSE), - array($ao, FALSE), - array($ao1, TRUE), - array(array(NULL), TRUE), - array(0, TRUE), - array('0', TRUE), - array('Something', TRUE), - ); - } - - /** - * Tests Valid::not_empty() - * - * Checks if a field is not empty. - * - * @test - * @dataProvider provider_not_empty - * @param mixed $value Value to check - * @param boolean $empty Is the value really empty? - */ - public function test_not_empty($value, $empty) - { - return $this->assertSame( - $empty, - Valid::not_empty($value) - ); - } - - /** - * DataProvider for the Valid::numeric() test - */ - public function provider_numeric() - { - return array( - array(12345, TRUE), - array(123.45, TRUE), - array('12345', TRUE), - array('10.5', TRUE), - array('-10.5', TRUE), - array('10.5a', FALSE), - // @issue 3240 - array(.4, TRUE), - array(-.4, TRUE), - array(4., TRUE), - array(-4., TRUE), - array('.5', TRUE), - array('-.5', TRUE), - array('5.', TRUE), - array('-5.', TRUE), - array('.', FALSE), - array('1.2.3', FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - } - - /** - * Tests Valid::numeric() - * - * @test - * @dataProvider provider_numeric - * @param string $input Input to test - * @param boolean $expected Whether or not $input is numeric - */ - public function test_numeric($input, $expected) - { - $this->assertSame( - $expected, - Valid::numeric($input) - ); - } - - /** - * Provides test data for test_phone() - * @return array - */ - public function provider_phone() - { - return array( - array('0163634840', NULL, TRUE), - array('+27173634840', NULL, TRUE), - array('123578', NULL, FALSE), - // Some uk numbers - array('01234456778', NULL, TRUE), - array('+0441234456778', NULL, FALSE), - // Google UK case you're interested - array('+44 20-7031-3000', array(12), TRUE), - // BT Corporate - array('020 7356 5000', NULL, TRUE), - // Empty test - array('', NULL, FALSE), - array(NULL, NULL, FALSE), - array(FALSE, NULL, FALSE), - ); - } - - /** - * Tests Valid::phone() - * - * @test - * @dataProvider provider_phone - * @param string $phone Phone number to test - * @param boolean $expected Is $phone valid - */ - public function test_phone($phone, $lengths, $expected) - { - $this->assertSame( - $expected, - Valid::phone($phone, $lengths) - ); - } - - /** - * DataProvider for the valid::regex() test - */ - public function provider_regex() - { - return array( - array('hello world', '/[a-zA-Z\s]++/', TRUE), - array('123456789', '/[0-9]++/', TRUE), - array('£$%£%', '/[abc]/', FALSE), - array('Good evening', '/hello/', FALSE), - // Empty test - array('', '/hello/', FALSE), - array(NULL, '/hello/', FALSE), - array(FALSE, '/hello/', FALSE), - ); - } - - /** - * Tests Valid::range() - * - * Tests if a number is within a range. - * - * @test - * @dataProvider provider_regex - * @param string $value Value to test against - * @param string $regex Valid pcre regular expression - * @param bool $expected Does the value match the expression? - */ - public function test_regex($value, $regex, $expected) - { - $this->AssertSame( - $expected, - Valid::regex($value, $regex) - ); - } - - /** - * DataProvider for the valid::range() test - */ - public function provider_range() - { - return array( - array(1, 0, 2, NULL, TRUE), - array(-1, -5, 0, NULL, TRUE), - array(-1, 0, 1, NULL, FALSE), - array(1, 0, 0, NULL, FALSE), - array(2147483647, 0, 200000000000000, NULL, TRUE), - array(-2147483647, -2147483655, 2147483645, NULL, TRUE), - // #4043 - array(2, 0, 10, 2, TRUE), - array(3, 0, 10, 2, FALSE), - // Empty test - array('', 5, 10, NULL, FALSE), - array(NULL, 5, 10, NULL, FALSE), - array(FALSE, 5, 10, NULL, FALSE), - ); - } - - /** - * Tests Valid::range() - * - * Tests if a number is within a range. - * - * @test - * @dataProvider provider_range - * @param integer $number Number to test - * @param integer $min Lower bound - * @param integer $max Upper bound - * @param boolean $expected Is Number within the bounds of $min && $max - */ - public function test_range($number, $min, $max, $step, $expected) - { - $this->AssertSame( - $expected, - Valid::range($number, $min, $max, $step) - ); - } - - /** - * Provides test data for test_url() - * - * @return array - */ - public function provider_url() - { - $data = array( - array('http://google.com', TRUE), - array('http://google.com/', TRUE), - array('http://google.com/?q=abc', TRUE), - array('http://google.com/#hash', TRUE), - array('http://localhost', TRUE), - array('http://hello-world.pl', TRUE), - array('http://hello--world.pl', TRUE), - array('http://h.e.l.l.0.pl', TRUE), - array('http://server.tld/get/info', TRUE), - array('http://127.0.0.1', TRUE), - array('http://127.0.0.1:80', TRUE), - array('http://user@127.0.0.1', TRUE), - array('http://user:pass@127.0.0.1', TRUE), - array('ftp://my.server.com', TRUE), - array('rss+xml://rss.example.com', TRUE), - - array('http://google.2com', FALSE), - array('http://google.com?q=abc', FALSE), - array('http://google.com#hash', FALSE), - array('http://hello-.pl', FALSE), - array('http://hel.-lo.world.pl', FALSE), - array('http://ww£.google.com', FALSE), - array('http://127.0.0.1234', FALSE), - array('http://127.0.0.1.1', FALSE), - array('http://user:@127.0.0.1', FALSE), - array("http://finalnewline.com\n", FALSE), - // Empty test - array('', FALSE), - array(NULL, FALSE), - array(FALSE, FALSE), - ); - - $data[] = array('http://'.str_repeat('123456789.', 25).'com/', TRUE); // 253 chars - $data[] = array('http://'.str_repeat('123456789.', 25).'info/', FALSE); // 254 chars - - return $data; - } - - /** - * Tests Valid::url() - * - * @test - * @dataProvider provider_url - * @param string $url The url to test - * @param boolean $expected Is it valid? - */ - public function test_url($url, $expected) - { - $this->assertSame( - $expected, - Valid::url($url) - ); - } - - /** - * DataProvider for the valid::matches() test - */ - public function provider_matches() - { - return array( - array(array('a' => 'hello', 'b' => 'hello'), 'a', 'b', TRUE), - array(array('a' => 'hello', 'b' => 'hello '), 'a', 'b', FALSE), - array(array('a' => '1', 'b' => 1), 'a', 'b', FALSE), - // Empty test - array(array('a' => '', 'b' => 'hello'), 'a', 'b', FALSE), - array(array('a' => NULL, 'b' => 'hello'), 'a', 'b', FALSE), - array(array('a' => FALSE, 'b' => 'hello'), 'a', 'b', FALSE), - ); - } - - /** - * Tests Valid::matches() - * - * Tests if a field matches another from an array of data - * - * @test - * @dataProvider provider_matches - * @param array $data Array of fields - * @param integer $field First field name - * @param integer $match Field name that must match $field in $data - * @param boolean $expected Do the two fields match? - */ - public function test_matches($data, $field, $match, $expected) - { - $this->AssertSame( - $expected, - Valid::matches($data, $field, $match) - ); - } -} diff --git a/includes/kohana/system/tests/kohana/ValidationTest.php b/includes/kohana/system/tests/kohana/ValidationTest.php deleted file mode 100644 index c9fce26f..00000000 --- a/includes/kohana/system/tests/kohana/ValidationTest.php +++ /dev/null @@ -1,676 +0,0 @@ - - * @copyright (c) 2008-2012 Kohana Team - * @license http://kohanaframework.org/license - */ -class Kohana_ValidationTest extends Unittest_TestCase -{ - /** - * Tests Validation::factory() - * - * Makes sure that the factory method returns an instance of Validation lib - * and that it uses the variables passed - * - * @test - */ - public function test_factory_method_returns_instance_with_values() - { - $values = array( - 'this' => 'something else', - 'writing tests' => 'sucks', - 'why the hell' => 'amIDoingThis', - ); - - $instance = Validation::factory($values); - - $this->assertTrue($instance instanceof Validation); - - $this->assertSame( - $values, - $instance->data() - ); - } - - /** - * When we copy() a validation object, we should have a new validation object - * with the exact same attributes, apart from the data, which should be the - * same as the array we pass to copy() - * - * @test - * @covers Validation::copy - */ - public function test_copy_copies_all_attributes_except_data() - { - $validation = new Validation(array('foo' => 'bar', 'fud' => 'fear, uncertainty, doubt', 'num' => 9)); - - $validation->rule('num', 'is_int')->rule('foo', 'is_string'); - - $copy_data = array('foo' => 'no', 'fud' => 'maybe', 'num' => 42); - - $copy = $validation->copy($copy_data); - - $this->assertNotSame($validation, $copy); - - foreach (array('_rules', '_bound', '_labels', '_empty_rules', '_errors') as $attribute) - { - // This is just an easy way to check that the attributes are identical - // Without hardcoding the expected values - $this->assertAttributeSame( - self::readAttribute($validation, $attribute), - $attribute, - $copy - ); - } - - $this->assertSame($copy_data, $copy->data()); - } - - /** - * When the validation object is initially created there should be no labels - * specified - * - * @test - */ - public function test_initially_there_are_no_labels() - { - $validation = new Validation(array()); - - $this->assertAttributeSame(array(), '_labels', $validation); - } - - /** - * Adding a label to a field should set it in the labels array - * If the label already exists it should overwrite it - * - * In both cases thefunction should return a reference to $this - * - * @test - * @covers Validation::label - */ - public function test_label_adds_and_overwrites_label_and_returns_this() - { - $validation = new Validation(array()); - - $this->assertSame($validation, $validation->label('email', 'Email Address')); - - $this->assertAttributeSame(array('email' => 'Email Address'), '_labels', $validation); - - $this->assertSame($validation, $validation->label('email', 'Your Email')); - - $validation->label('name', 'Your Name'); - - $this->assertAttributeSame( - array('email' => 'Your Email', 'name' => 'Your Name'), - '_labels', - $validation - ); - } - - /** - * Using labels() we should be able to add / overwrite multiple labels - * - * The function should also return $this for chaining purposes - * - * @test - * @covers Validation::labels - */ - public function test_labels_adds_and_overwrites_multiple_labels_and_returns_this() - { - $validation = new Validation(array()); - $initial_data = array('kung fu' => 'fighting', 'fast' => 'cheetah'); - - $this->assertSame($validation, $validation->labels($initial_data)); - - $this->assertAttributeSame($initial_data, '_labels', $validation); - - $this->assertSame($validation, $validation->labels(array('fast' => 'lightning'))); - - $this->assertAttributeSame( - array('fast' => 'lightning', 'kung fu' => 'fighting'), - '_labels', - $validation - ); - } - - /** - * Using bind() we should be able to add / overwrite multiple bound variables - * - * The function should also return $this for chaining purposes - * - * @test - * @covers Validation::bind - */ - public function test_bind_adds_and_overwrites_multiple_variables_and_returns_this() - { - $validation = new Validation(array()); - $data = array('kung fu' => 'fighting', 'fast' => 'cheetah'); - $bound = array(':foo' => 'some value'); - - // Test binding an array of values - $this->assertSame($validation, $validation->bind($bound)); - $this->assertAttributeSame($bound, '_bound', $validation); - - // Test binding one value - $this->assertSame($validation, $validation->bind(':foo', 'some other value')); - $this->assertAttributeSame(array(':foo' => 'some other value'), '_bound', $validation); - } - - /** - * We should be able to used bound variables in callbacks - * - * @test - * @covers Validation::check - */ - public function test_bound_callback() - { - $data = array( - 'kung fu' => 'fighting', - 'fast' => 'cheetah', - ); - $validation = new Validation($data); - $validation->bind(':class', 'Valid') - // Use the bound value in a callback - ->rule('fast', array(':class', 'max_length'), array(':value', 2)); - - // The rule should have run and check() should fail - $this->assertSame($validation->check(), FALSE); - } - - /** - * Provides test data for test_check - * - * @return array - */ - public function provider_check() - { - // $data_array, $rules, $labels, $first_expected, $expected_error - return array( - array( - array('foo' => 'bar'), - array('foo' => array(array('not_empty', NULL))), - array(), - TRUE, - array(), - ), - array( - array('unit' => 'test'), - array( - 'foo' => array(array('not_empty', NULL)), - 'unit' => array(array('min_length', array(':value', 6)) - ), - ), - array(), - FALSE, - array( - 'foo' => 'foo must not be empty', - 'unit' => 'unit must be at least 6 characters long' - ), - ), - array( - array('foo' => 'bar'), - array( - // Tests wildcard rules - TRUE => array(array('min_length', array(':value', 4))), - 'foo' => array( - array('not_empty', NULL), - // Tests the array syntax for callbacks - array(array('Valid', 'exact_length'), array(':value', 3)), - // Tests the Class::method syntax for callbacks - array('Valid::exact_length', array(':value', 3)), - // Tests the lambda function syntax for callbacks - // Commented out for PHP 5.2 support - // array(function($value){return TRUE;}, array(':value')), - // Tests using a function as a rule - array('is_string', array(':value')), - ), - // Tests that rules do not run on empty fields unless they are in _empty_rules - 'unit' => array(array('exact_length', array(':value', 4))), - ), - array(), - FALSE, - array('foo' => 'foo must be at least 4 characters long'), - ), - // Switch things around and make :value an array - array( - array('foo' => array('test', 'data')), - array('foo' => array(array('in_array', array('kohana', ':value')))), - array(), - FALSE, - array('foo' => 'foo must be one of the available options'), - ), - // Test wildcard rules with no other rules - array( - array('foo' => array('test')), - array(TRUE => array(array('is_string', array(':value')))), - array('foo' => 'foo'), - FALSE, - array('foo' => '1.foo.is_string'), - ), - // Test array rules use method as error name - array( - array('foo' => 'test'), - array('foo' => array(array(array('Valid', 'min_length'), array(':value', 10)))), - array(), - FALSE, - array('foo' => 'foo must be at least 10 characters long'), - ), - ); - } - - /** - * Tests Validation::check() - * - * @test - * @covers Validation::check - * @covers Validation::rule - * @covers Validation::rules - * @covers Validation::errors - * @covers Validation::error - * @dataProvider provider_check - * @param array $array The array of data - * @param array $rules The array of rules - * @param array $labels The array of labels - * @param boolean $expected Is it valid? - * @param boolean $expected_errors Array of expected errors - */ - public function test_check($array, $rules, $labels, $expected, $expected_errors) - { - $validation = new Validation($array); - - foreach ($labels as $field => $label) - { - $validation->label($field, $label); - } - - foreach ($rules as $field => $field_rules) - { - foreach ($field_rules as $rule) - $validation->rule($field, $rule[0], $rule[1]); - } - - $status = $validation->check(); - $errors = $validation->errors(TRUE); - $this->assertSame($expected, $status); - $this->assertSame($expected_errors, $errors); - - $validation = new validation($array); - foreach ($rules as $field => $rules) - { - $validation->rules($field, $rules); - } - $validation->labels($labels); - - $this->assertSame($expected, $validation->check()); - } - - /** - * Tests Validation::check() - * - * @test - * @covers Validation::check - */ - public function test_check_stops_when_error_added_by_callback() - { - $validation = new Validation(array( - 'foo' => 'foo', - )); - - $validation - ->rule('foo', array($this, '_validation_callback'), array(':validation')) - // This rule should never run - ->rule('foo', 'min_length', array(':value', 20)); - - $validation->check(); - $errors = $validation->errors(); - - $expected = array( - 'foo' => array( - 0 => '_validation_callback', - 1 => NULL, - ), - ); - - $this->assertSame($errors, $expected); - } - - public function _validation_callback(Validation $object) - { - // Simply add the error - $object->error('foo', '_validation_callback'); - } - - /** - * Provides test data for test_errors() - * - * @return array - */ - public function provider_errors() - { - // [data, rules, expected], ... - return array( - // No Error - array( - array('username' => 'frank'), - array('username' => array(array('not_empty', NULL))), - array(), - ), - // Error from message file - array( - array('username' => ''), - array('username' => array(array('not_empty', NULL))), - array('username' => 'username must not be empty'), - ), - // No error message exists, display the path expected - array( - array('username' => 'John'), - array('username' => array(array('strpos', array(':value', 'Kohana')))), - array('username' => 'Validation.username.strpos'), - ), - ); - } - - /** - * Tests Validation::errors() - * - * @test - * @covers Validation::errors - * @dataProvider provider_errors - * @param array $array The array of data - * @param array $rules The array of rules - * @param array $expected Array of expected errors - */ - public function test_errors($array, $rules, $expected) - { - $validation = Validation::factory($array); - - foreach ($rules as $field => $field_rules) - { - $validation->rules($field, $field_rules); - } - - $validation->check(); - - $this->assertSame($expected, $validation->errors('Validation', FALSE)); - // Should be able to get raw errors array - $this->assertAttributeSame($validation->errors(NULL), '_errors', $validation); - } - - /** - * Provides test data for test_translated_errors() - * - * @return array - */ - public function provider_translated_errors() - { - // [data, rules, expected], ... - return array( - array( - array('Spanish' => ''), - array('Spanish' => array(array('not_empty', NULL))), - // Errors are not translated yet so only the label will translate - array('Spanish' => 'Español must not be empty'), - array('Spanish' => 'Spanish must not be empty'), - ), - ); - } - - /** - * Tests Validation::errors() - * - * @test - * @covers Validation::errors - * @dataProvider provider_translated_errors - * @param array $data The array of data to test - * @param array $rules The array of rules to add - * @param array $translated_expected The array of expected errors when translated - * @param array $untranslated_expected The array of expected errors when not translated - */ - public function test_translated_errors($data, $rules, $translated_expected, $untranslated_expected) - { - $validation = Validation::factory($data); - - $current = i18n::lang(); - i18n::lang('es'); - - foreach ($rules as $field => $field_rules) - { - $validation->rules($field, $field_rules); - } - - $validation->check(); - - $result_1 = $validation->errors('Validation', TRUE); - $result_2 = $validation->errors('Validation', 'en'); - $result_3 = $validation->errors('Validation', FALSE); - - // Restore the current language - i18n::lang($current); - - $this->assertSame($translated_expected, $result_1); - $this->assertSame($translated_expected, $result_2); - $this->assertSame($untranslated_expected, $result_3); - } - - /** - * Tests Validation::errors() - * - * @test - * @covers Validation::errors - */ - public function test_parameter_labels() - { - $validation = Validation::factory(array('foo' => 'bar')) - ->rule('foo', 'equals', array(':value', 'something')) - ->label('something', 'Spanish'); - - $current = i18n::lang(); - i18n::lang('es'); - - $validation->check(); - - $translated_expected = array('foo' => 'foo must equal Español'); - $untranslated_expected = array('foo' => 'foo must equal Spanish'); - - $result_1 = $validation->errors('Validation', TRUE); - $result_2 = $validation->errors('Validation', 'en'); - $result_3 = $validation->errors('Validation', FALSE); - - // Restore the current language - i18n::lang($current); - - $this->assertSame($translated_expected, $result_1); - $this->assertSame($translated_expected, $result_2); - $this->assertSame($untranslated_expected, $result_3); - } - - /** - * Tests Validation::errors() - * - * @test - * @covers Validation::errors - */ - public function test_arrays_in_parameters() - { - $validation = Validation::factory(array('foo' => 'bar')) - ->rule('foo', 'equals', array(':value', array('one', 'two'))); - - $validation->check(); - - $expected = array('foo' => 'foo must equal one, two'); - - $this->assertSame($expected, $validation->errors('Validation', FALSE)); - } - - /** - * Tests Validation::check() - * - * @test - * @covers Validation::check - */ - public function test_data_stays_unaltered() - { - $validation = Validation::factory(array('foo' => 'bar')) - ->rule('something', 'not_empty'); - - $before = $validation->data(); - $validation->check(); - $after = $validation->data(); - - $expected = array('foo' => 'bar'); - - $this->assertSame($expected, $before); - $this->assertSame($expected, $after); - } - - /** - * Tests Validation::errors() - * - * @test - * @covers Validation::errors - */ - public function test_object_parameters_not_in_messages() - { - $validation = Validation::factory(array('foo' => 'foo')) - ->rule('bar', 'matches', array(':validation', ':field', 'foo')); - - $validation->check(); - $errors = $validation->errors('validation'); - $expected = array('bar' => 'bar must be the same as foo'); - - $this->assertSame($expected, $errors); - } - - /** - * Tests Validation::as_array() - * - * @test - * @covers Validation::as_array - */ - public function test_as_array_returns_original_array() - { - $data = array( - 'one' => 'hello', - 'two' => 'world', - 'ten' => '', - ); - - $validation = Validation::factory($data); - - $this->assertSame($data, $validation->as_array()); - } - - /** - * Tests Validation::data() - * - * @test - * @covers Validation::data - */ - public function test_data_returns_original_array() - { - $data = array( - 'one' => 'hello', - 'two' => 'world', - 'ten' => '', - ); - - $validation = Validation::factory($data); - - $this->assertSame($data, $validation->data()); - } - - // @codingStandardsIgnoreStart - public function test_offsetExists() - // @codingStandardsIgnoreEnd - { - $array = array( - 'one' => 'Hello', - 'two' => 'World', - 'ten' => NULL, - ); - - $validation = Validation::factory($array); - - $this->assertTrue(isset($validation['one'])); - $this->assertFalse(isset($validation['ten'])); - $this->assertFalse(isset($validation['five'])); - } - - // @codingStandardsIgnoreStart - public function test_offsetSet_throws_exception() - // @codingStandardsIgnoreEnd - { - $this->setExpectedException('Kohana_Exception'); - - $validation = Validation::factory(array()); - - // Validation is read-only - $validation['field'] = 'something'; - } - - // @codingStandardsIgnoreStart - public function test_offsetGet() - // @codingStandardsIgnoreEnd - { - $array = array( - 'one' => 'Hello', - 'two' => 'World', - 'ten' => NULL, - ); - - $validation = Validation::factory($array); - - $this->assertSame($array['one'], $validation['one']); - $this->assertSame($array['two'], $validation['two']); - $this->assertSame($array['ten'], $validation['ten']); - } - - // @codingStandardsIgnoreStart - public function test_offsetUnset() - // @codingStandardsIgnoreEnd - { - $this->setExpectedException('Kohana_Exception'); - - $validation = Validation::factory(array( - 'one' => 'Hello, World!', - )); - - // Validation is read-only - unset($validation['one']); - } - - /** - * http://dev.kohanaframework.org/issues/4365 - * - * @test - * @covers Validation::errors - */ - public function test_error_type_check() - { - $array = array( - 'email' => 'not an email address', - ); - - $validation = Validation::factory($array) - ->rule('email', 'not_empty') - ->rule('email', 'email') - ; - - $validation->check(); - - $errors = $validation->errors('tests/validation/error_type_check'); - - $this->assertSame($errors, $validation->errors('validation')); - } - -} diff --git a/includes/kohana/system/tests/kohana/ViewTest.php b/includes/kohana/system/tests/kohana/ViewTest.php deleted file mode 100644 index 543f411e..00000000 --- a/includes/kohana/system/tests/kohana/ViewTest.php +++ /dev/null @@ -1,83 +0,0 @@ - realpath(dirname(__FILE__).'/../test_data/') - ); - Kohana::modules($new_modules); - } - - /** - * Restores the module list - * - * @return null - */ - // @codingStandardsIgnoreStart - public static function teardownAfterClass() - // @codingStandardsIgnoreEnd - { - Kohana::modules(self::$old_modules); - } - - /** - * Provider for test_instaniate - * - * @return array - */ - public function provider_instantiate() - { - return array( - array('kohana/error', FALSE), - array('test.css', FALSE), - array('doesnt_exist', TRUE), - ); - } - - /** - * Tests that we can instantiate a view file - * - * @test - * @dataProvider provider_instantiate - * - * @return null - */ - public function test_instantiate($path, $expects_exception) - { - try - { - $view = new View($path); - $this->assertSame(FALSE, $expects_exception); - } - catch(View_Exception $e) - { - $this->assertSame(TRUE, $expects_exception); - } - } -} diff --git a/includes/kohana/system/tests/kohana/request/ClientTest.php b/includes/kohana/system/tests/kohana/request/ClientTest.php deleted file mode 100644 index fffc1d5d..00000000 --- a/includes/kohana/system/tests/kohana/request/ClientTest.php +++ /dev/null @@ -1,488 +0,0 @@ -getProperty('_routes'); - $routes_prop->setAccessible(TRUE); - - self::$_original_routes = $routes_prop->getValue('Route'); - - $routes = array( - 'ko_request_clienttest' => new Route('//',array('data'=>'.+')) - ) + self::$_original_routes; - - $routes_prop->setValue('Route',$routes); - - } - - // @codingStandardsIgnoreStart - PHPUnit does not follow standards - /** - * Resets the application's routes to their state prior to this test case - */ - public static function tearDownAfterClass() - { - // @codingStandardsIgnoreEnd - // Reset routes - $route_class = new ReflectionClass('Route'); - $routes_prop = $route_class->getProperty('_routes'); - $routes_prop->setAccessible(TRUE); - $routes_prop->setValue('Route',self::$_original_routes); - - parent::tearDownAfterClass(); - } - - // @codingStandardsIgnoreStart - PHPUnit does not follow standards - public function setUp() - { - // @codingStandardsIgnoreEnd - parent::setUp(); - $this->_initial_request = Request::$initial; - Request::$initial = new Request('/'); - } - - // @codingStandardsIgnoreStart - PHPUnit does not follow standards - public function tearDown() - { - // @codingStandardsIgnoreEnd - Request::$initial = $this->_initial_request; - parent::tearDown(); - } - - /** - * Generates an internal URI to the [Controller_RequestClientDummy] shunt - * controller - the URI contains an encoded form of the required server - * response. - * - * @param string $status HTTP response code to issue - * @param array $headers HTTP headers to send with the response - * @param string $body A string to send back as response body (included in the JSON response) - * @return string - */ - protected function _dummy_uri($status, $headers, $body) - { - $data = array( - 'status' => $status, - 'header' => $headers, - 'body' => $body - ); - return "/requestclientdummy/fake".'/'.urlencode(http_build_query($data)); - } - - /** - * Shortcut method to generate a simple redirect URI - the first request will - * receive a redirect with the given HTTP status code and the second will - * receive a 200 response. The 'body' data value in the first response will - * be 'not-followed' and in the second response it will be 'followed'. This - * allows easy assertion that a redirect has taken place. - * - * @param string $status HTTP response code to issue - * @return string - */ - protected function _dummy_redirect_uri($status) - { - return $this->_dummy_uri($status, - array('Location' => $this->_dummy_uri(200, NULL, 'followed')), - 'not-followed'); - } - - /** - * Provider for test_follows_redirects - * @return array - */ - public function provider_follows_redirects() - { - return array( - array(TRUE, $this->_dummy_uri(200, NULL, 'not-followed'), 'not-followed'), - array(TRUE, $this->_dummy_redirect_uri(200), 'not-followed'), - array(TRUE, $this->_dummy_redirect_uri(302), 'followed'), - array(FALSE, $this->_dummy_redirect_uri(302), 'not-followed'), - ); - } - - /** - * Tests that the client optionally follows properly formed redirects - * - * @dataProvider provider_follows_redirects - * - * @param bool $follow Option value to set - * @param string $request_url URL to request initially (contains data to set up redirect etc) - * @param string $expect_body Body text expected in the eventual result - */ - public function test_follows_redirects($follow, $request_url, $expect_body) - { - $response = Request::factory($request_url, - array('follow' => $follow)) - ->execute(); - - $data = json_decode($response->body(), TRUE); - $this->assertEquals($expect_body, $data['body']); - } - - /** - * Tests that only specified headers are resent following a redirect - */ - public function test_follows_with_headers() - { - $response = Request::factory( - $this->_dummy_redirect_uri(301), - array( - 'follow' => TRUE, - 'follow_headers' => array('Authorization', 'X-Follow-With-Value') - )) - ->headers(array( - 'Authorization' => 'follow', - 'X-Follow-With-Value' => 'follow', - 'X-Not-In-Follow' => 'no-follow' - )) - ->execute(); - - $data = json_decode($response->body(),TRUE); - $headers = $data['rq_headers']; - - $this->assertEquals('followed', $data['body']); - $this->assertEquals('follow', $headers['authorization']); - $this->assertEquals('follow', $headers['x-follow-with-value']); - $this->assertFalse(isset($headers['x-not-in-follow']), 'X-Not-In-Follow should not be passed to next request'); - } - - /** - * Provider for test_follows_with_strict_method - * - * @return array - */ - public function provider_follows_with_strict_method() - { - return array( - array(201, NULL, Request::POST, Request::GET), - array(301, NULL, Request::GET, Request::GET), - array(302, TRUE, Request::POST, Request::POST), - array(302, FALSE, Request::POST, Request::GET), - array(303, NULL, Request::POST, Request::GET), - array(307, NULL, Request::POST, Request::POST), - ); - } - - /** - * Tests that the correct method is used (allowing for the strict_redirect setting) - * for follow requests. - * - * @dataProvider provider_follows_with_strict_method - * - * @param string $status_code HTTP response code to fake - * @param bool $strict_redirect Option value to set - * @param string $orig_method Request method for the original request - * @param string $expect_method Request method expected for the follow request - */ - public function test_follows_with_strict_method($status_code, $strict_redirect, $orig_method, $expect_method) - { - $response = Request::factory($this->_dummy_redirect_uri($status_code), - array( - 'follow' => TRUE, - 'strict_redirect' => $strict_redirect - )) - ->method($orig_method) - ->execute(); - - $data = json_decode($response->body(), TRUE); - - $this->assertEquals('followed', $data['body']); - $this->assertEquals($expect_method, $data['rq_method']); - } - - /** - * Provider for test_follows_with_body_if_not_get - * - * @return array - */ - public function provider_follows_with_body_if_not_get() - { - return array( - array('GET','301',NULL), - array('POST','303',NULL), - array('POST','307','foo-bar') - ); - } - - /** - * Tests that the original request body is sent when following a redirect - * (unless redirect method is GET) - * - * @dataProvider provider_follows_with_body_if_not_get - * @depends test_follows_with_strict_method - * @depends test_follows_redirects - * - * @param string $original_method Request method to use for the original request - * @param string $status Redirect status that will be issued - * @param string $expect_body Expected value of body() in the second request - */ - public function test_follows_with_body_if_not_get($original_method, $status, $expect_body) - { - $response = Request::factory($this->_dummy_redirect_uri($status), - array('follow' => TRUE)) - ->method($original_method) - ->body('foo-bar') - ->execute(); - - $data = json_decode($response->body(), TRUE); - - $this->assertEquals('followed', $data['body']); - $this->assertEquals($expect_body, $data['rq_body']); - } - - /** - * Provider for test_triggers_header_callbacks - * - * @return array - */ - public function provider_triggers_header_callbacks() - { - return array( - // Straightforward response manipulation - array( - array('X-test-1' => - function($request, $response, $client) - { - $response->body(json_encode(array('body'=>'test1-body-changed'))); - return $response; - }), - $this->_dummy_uri(200, array('X-test-1' => 'foo'), 'test1-body'), - 'test1-body-changed' - ), - // Subsequent request execution - array( - array('X-test-2' => - function($request, $response, $client) - { - return Request::factory($response->headers('X-test-2')); - }), - $this->_dummy_uri(200, - array('X-test-2' => $this->_dummy_uri(200, NULL, 'test2-subsequent-body')), - 'test2-orig-body'), - 'test2-subsequent-body' - ), - // No callbacks triggered - array( - array('X-test-3' => - function ($request, $response, $client) - { - throw new Exception("Unexpected execution of X-test-3 callback"); - }), - $this->_dummy_uri(200, array('X-test-1' => 'foo'), 'test3-body'), - 'test3-body' - ), - // Callbacks not triggered once a previous callback has created a new response - array( - array( - 'X-test-1' => - function($request, $response, $client) - { - return Request::factory($response->headers('X-test-1')); - }, - 'X-test-2' => - function($request, $response, $client) - { - return Request::factory($response->headers('X-test-2')); - } - ), - $this->_dummy_uri(200, - array( - 'X-test-1' => $this->_dummy_uri(200, NULL, 'test1-subsequent-body'), - 'X-test-2' => $this->_dummy_uri(200, NULL, 'test2-subsequent-body') - ), - 'test2-orig-body'), - 'test1-subsequent-body' - ), - // Nested callbacks are supported if callback creates new request - array( - array( - 'X-test-1' => - function($request, $response, $client) - { - return Request::factory($response->headers('X-test-1')); - }, - 'X-test-2' => - function($request, $response, $client) - { - return Request::factory($response->headers('X-test-2')); - } - ), - $this->_dummy_uri(200, - array( - 'X-test-1' => $this->_dummy_uri( - 200, - array('X-test-2' => $this->_dummy_uri(200, NULL, 'test2-subsequent-body')), - 'test1-subsequent-body'), - ), - 'test-orig-body'), - 'test2-subsequent-body' - ), - ); - } - - /** - * Tests that header callbacks are triggered in sequence when specific headers - * are present in the response - * - * @dataProvider provider_triggers_header_callbacks - * - * @param array $callbacks Array of header callbacks - * @param array $headers Headers that will be received in the response - * @param string $expect_body Response body content to expect - */ - public function test_triggers_header_callbacks($callbacks, $uri, $expect_body) - { - $response = Request::factory($uri, - array('header_callbacks' => $callbacks)) - ->execute(); - - $data = json_decode($response->body(), TRUE); - - $this->assertEquals($expect_body, $data['body']); - } - - /** - * Tests that the Request_Client is protected from too many recursions of - * requests triggered by header callbacks. - * - */ - public function test_deep_recursive_callbacks_are_aborted() - { - $uri = $this->_dummy_uri('200', array('x-cb' => '1'), 'body'); - - // Temporary property to track requests - $this->requests_executed = 0; - - try - { - $response = Request::factory( - $uri, - array( - 'header_callbacks' => array( - 'x-cb' => - function ($request, $response, $client) - { - $client->callback_params('testcase')->requests_executed++; - // Recurse into a new request - return Request::factory($request->uri()); - }), - 'max_callback_depth' => 2, - 'callback_params' => array( - 'testcase' => $this, - ) - )) - ->execute(); - } - catch (Request_Client_Recursion_Exception $e) - { - // Verify that two requests were executed - $this->assertEquals(2, $this->requests_executed); - return; - } - - $this->fail('Expected Request_Client_Recursion_Exception was not thrown'); - } - - /** - * Header callback for testing that arbitrary callback_params are available - * to the callback. - * - * @param Request $request - * @param Response $response - * @param Request_Client $client - */ - public function callback_assert_params($request, $response, $client) - { - $this->assertEquals('foo', $client->callback_params('constructor_param')); - $this->assertEquals('bar', $client->callback_params('setter_param')); - $response->body('assertions_ran'); - } - - /** - * Test that arbitrary callback_params can be passed to the callback through - * the Request_Client and are assigned to subsequent requests - */ - public function test_client_can_hold_params_for_callbacks() - { - // Test with param in constructor - $request = Request::factory( - $this->_dummy_uri( - 302, - array('Location' => $this->_dummy_uri('200',array('X-cb'=>'1'), 'followed')), - 'not-followed'), - array( - 'follow' => TRUE, - 'header_callbacks' => array( - 'x-cb' => array($this, 'callback_assert_params'), - 'location' => 'Request_Client::on_header_location', - ), - 'callback_params' => array( - 'constructor_param' => 'foo' - ) - )); - - // Test passing param to setter - $request->client()->callback_params('setter_param', 'bar'); - - // Callback will throw assertion exceptions when executed - $response = $request->execute(); - $this->assertEquals('assertions_ran', $response->body()); - } - -} // End Kohana_Request_ClientTest - - -/** - * Dummy controller class that acts as a shunt - passing back request information - * in the response to allow inspection. - */ -class Controller_RequestClientDummy extends Controller { - - /** - * Takes a urlencoded 'data' parameter from the route and uses it to craft a - * response. Redirect chains can be tested by passing another encoded uri - * as a location header with an appropriate status code. - */ - public function action_fake() - { - parse_str(urldecode($this->request->param('data')), $data); - $this->response->status(Arr::get($data, 'status', 200)); - $this->response->headers(Arr::get($data, 'header', array())); - $this->response->body(json_encode(array( - 'body'=> Arr::get($data,'body','ok'), - 'rq_headers' => $this->request->headers(), - 'rq_body' => $this->request->body(), - 'rq_method' => $this->request->method(), - ))); - } - -} // End Controller_RequestClientDummy diff --git a/includes/kohana/system/tests/kohana/request/client/ExternalTest.php b/includes/kohana/system/tests/kohana/request/client/ExternalTest.php deleted file mode 100644 index 63d792fb..00000000 --- a/includes/kohana/system/tests/kohana/request/client/ExternalTest.php +++ /dev/null @@ -1,191 +0,0 @@ -assertInstanceOf($expected, Request_Client_External::factory($params, $client)); - } - - /** - * Data provider for test_options - * - * @return array - */ - public function provider_options() - { - return array( - array( - NULL, - NULL, - array() - ), - array( - array('foo' => 'bar', 'stfu' => 'snafu'), - NULL, - array('foo' => 'bar', 'stfu' => 'snafu') - ), - array( - 'foo', - 'bar', - array('foo' => 'bar') - ), - array( - array('foo' => 'bar'), - 'foo', - array('foo' => 'bar') - ) - ); - } - - /** - * Tests the [Request_Client_External::options()] method - * - * @dataProvider provider_options - * - * @param mixed $key key - * @param mixed $value value - * @param array $expected expected - * @return void - */ - public function test_options($key, $value, $expected) - { - // Create a mock external client - $client = new Request_Client_Stream; - - $client->options($key, $value); - $this->assertSame($expected, $client->options()); - } - - /** - * Data provider for test_execute - * - * @return array - */ - public function provider_execute() - { - $json = '{"foo": "bar", "snafu": "stfu"}'; - $post = array('foo' => 'bar', 'snafu' => 'stfu'); - - return array( - array( - 'application/json', - $json, - array(), - array( - 'content-type' => 'application/json', - 'body' => $json - ) - ), - array( - 'application/json', - $json, - $post, - array( - 'content-type' => 'application/x-www-form-urlencoded', - 'body' => http_build_query($post, NULL, '&') - ) - ) - ); - } - - /** - * Tests the [Request_Client_External::_send_message()] method - * - * @dataProvider provider_execute - * - * @return void - */ - public function test_execute($content_type, $body, $post, $expected) - { - $old_request = Request::$initial; - Request::$initial = TRUE; - - // Create a mock Request - $request = new Request('http://kohanaframework.org/'); - $request->method(HTTP_Request::POST) - ->headers('content-type', $content_type) - ->body($body) - ->post($post); - - $client = $this->getMock('Request_Client_External', array('_send_message')); - $client->expects($this->once()) - ->method('_send_message') - ->with($request) - ->will($this->returnValue($this->getMock('Response'))); - - $request->client($client); - - $this->assertInstanceOf('Response', $request->execute()); - $this->assertSame($expected['body'], $request->body()); - $this->assertSame($expected['content-type'], (string) $request->headers('content-type')); - - Request::$initial = $old_request; - } -} \ No newline at end of file diff --git a/includes/kohana/system/tests/kohana/request/client/InternalTest.php b/includes/kohana/system/tests/kohana/request/client/InternalTest.php deleted file mode 100644 index 2c87893c..00000000 --- a/includes/kohana/system/tests/kohana/request/client/InternalTest.php +++ /dev/null @@ -1,68 +0,0 @@ -getMock('Request', array('directory', 'controller', 'action', 'uri', 'response'), array($uri)); - - $request->expects($this->any()) - ->method('directory') - ->will($this->returnValue($directory)); - - $request->expects($this->any()) - ->method('controller') - ->will($this->returnValue($controller)); - - $request->expects($this->any()) - ->method('action') - ->will($this->returnValue($action)); - - $request->expects($this->any()) - ->method('uri') - ->will($this->returnValue($uri)); - - $request->expects($this->any()) - ->method('response') - ->will($this->returnValue($this->getMock('Response'))); - - $internal_client = new Request_Client_Internal; - - $response = $internal_client->execute($request); - - $this->assertSame($expected, $response->status()); - } -} \ No newline at end of file diff --git a/includes/kohana/system/tests/test_data/callback_routes.php b/includes/kohana/system/tests/test_data/callback_routes.php deleted file mode 100644 index 6e69f5a3..00000000 --- a/includes/kohana/system/tests/test_data/callback_routes.php +++ /dev/null @@ -1,100 +0,0 @@ - 'welcome', - 'action' => 'index', - ); - } - - /** - * Route callback for test_required_parameters_are_needed - * - * @return array - */ - public static function required_parameters_are_needed($uri) - { - if (substr($uri, 0, 5) == 'admin') - { - return array( - 'controller' => 'foo', - 'action' => 'bar', - ); - } - } - - /** - * Route callback for test reverse_routing_returns_routes_uri_if_route_is_static - * - * @return array - */ - public static function reverse_routing_returns_routes_uri_if_route_is_static($uri) - { - if ($uri == 'info/about_us') - { - return array( - - ); - } - } - - /** - * Route callback for test route_filter_modify_params - * - * @return array - */ - public static function route_filter_modify_params_array(Route $route, $params) - { - $params['action'] = 'modified'; - - return $params; - } - - /** - * Route callback for test route_filter_modify_params - * - * @return array - */ - public static function route_filter_modify_params_false(Route $route, $params) - { - return FALSE; - } - -} \ No newline at end of file diff --git a/includes/kohana/system/tests/test_data/github.png b/includes/kohana/system/tests/test_data/github.png deleted file mode 100644 index 81176849612fc7d246de8e4e03a68d51e1a90ca8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5101 zcmVd4%jY}e!hzlAQ)I^Qqb4d(}qM#s~ z%Az0|6a+yOg#UkE{Z!*H%>N?-mwWGfeNLT!X1b=Qx~seDtLg?Lspg9#Xf>!4=niNJ z=xPnLy8_e_RKoYBpcA0oQr(t*pgExDAT7uUqyhPW@?N$PtyWtr!nFkzv0!Bs9v=Q1 zKKN!e+kT*IcgT<-H_`4k(BwK)$oopUh~nepgCW-zP{Ws1NNp%(yP9w#MvTyMdA%BK zpI5d!Z{9r7?)ExV$Z)kjXJusx+3c#K5aSva?k%;4(b3W3(ytnA7bqVX85xPo+&Waq zBjtno_3KMbn>H1<&#KZ`O)KP~+CvhMi*q&FHZnB9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wZbD;~Jht0;$ahoIeZSR{%M4(dHiu7cQKJ zx;^@EnT{FaAaiUdMJ$?_=g0g zW&ec0!NbGj4Vc65)2C1W9VTo8crU}8U1EUHK^_QlDighcEaWqF&3UBZ<=)%80!e@3YYN diff --git a/includes/kohana/system/tests/test_data/views/test.css.php b/includes/kohana/system/tests/test_data/views/test.css.php deleted file mode 100644 index 5c294dcf..00000000 --- a/includes/kohana/system/tests/test_data/views/test.css.php +++ /dev/null @@ -1 +0,0 @@ -This is a view with a dot in the filename. \ No newline at end of file diff --git a/includes/kohana/system/utf8/from_unicode.php b/includes/kohana/system/utf8/from_unicode.php deleted file mode 100644 index 75471aef..00000000 --- a/includes/kohana/system/utf8/from_unicode.php +++ /dev/null @@ -1,72 +0,0 @@ -= 0) AND ($arr[$k] <= 0x007f)) - { - echo chr($arr[$k]); - } - // 2 byte sequence - elseif ($arr[$k] <= 0x07ff) - { - echo chr(0xc0 | ($arr[$k] >> 6)); - echo chr(0x80 | ($arr[$k] & 0x003f)); - } - // Byte order mark (skip) - elseif ($arr[$k] == 0xFEFF) - { - // nop -- zap the BOM - } - // Test for illegal surrogates - elseif ($arr[$k] >= 0xD800 AND $arr[$k] <= 0xDFFF) - { - // Found a surrogate - throw new UTF8_Exception("UTF8::from_unicode: Illegal surrogate at index: ':index', value: ':value'", array( - ':index' => $k, - ':value' => $arr[$k], - )); - } - // 3 byte sequence - elseif ($arr[$k] <= 0xffff) - { - echo chr(0xe0 | ($arr[$k] >> 12)); - echo chr(0x80 | (($arr[$k] >> 6) & 0x003f)); - echo chr(0x80 | ($arr[$k] & 0x003f)); - } - // 4 byte sequence - elseif ($arr[$k] <= 0x10ffff) - { - echo chr(0xf0 | ($arr[$k] >> 18)); - echo chr(0x80 | (($arr[$k] >> 12) & 0x3f)); - echo chr(0x80 | (($arr[$k] >> 6) & 0x3f)); - echo chr(0x80 | ($arr[$k] & 0x3f)); - } - // Out of range - else - { - throw new UTF8_Exception("UTF8::from_unicode: Codepoint out of Unicode range at index: ':index', value: ':value'", array( - ':index' => $k, - ':value' => $arr[$k], - )); - } - } - - $result = ob_get_contents(); - ob_end_clean(); - return $result; -} diff --git a/includes/kohana/system/utf8/ltrim.php b/includes/kohana/system/utf8/ltrim.php deleted file mode 100644 index c49e131d..00000000 --- a/includes/kohana/system/utf8/ltrim.php +++ /dev/null @@ -1,22 +0,0 @@ -= 0 AND $ord0 <= 127) - return $ord0; - - if ( ! isset($chr[1])) - { - throw new UTF8_Exception('Short sequence - at least 2 bytes expected, only 1 seen'); - } - - $ord1 = ord($chr[1]); - - if ($ord0 >= 192 AND $ord0 <= 223) - return ($ord0 - 192) * 64 + ($ord1 - 128); - - if ( ! isset($chr[2])) - { - throw new UTF8_Exception('Short sequence - at least 3 bytes expected, only 2 seen'); - } - - $ord2 = ord($chr[2]); - - if ($ord0 >= 224 AND $ord0 <= 239) - return ($ord0 - 224) * 4096 + ($ord1 - 128) * 64 + ($ord2 - 128); - - if ( ! isset($chr[3])) - { - throw new UTF8_Exception('Short sequence - at least 4 bytes expected, only 3 seen'); - } - - $ord3 = ord($chr[3]); - - if ($ord0 >= 240 AND $ord0 <= 247) - return ($ord0 - 240) * 262144 + ($ord1 - 128) * 4096 + ($ord2-128) * 64 + ($ord3 - 128); - - if ( ! isset($chr[4])) - { - throw new UTF8_Exception('Short sequence - at least 5 bytes expected, only 4 seen'); - } - - $ord4 = ord($chr[4]); - - if ($ord0 >= 248 AND $ord0 <= 251) - return ($ord0 - 248) * 16777216 + ($ord1-128) * 262144 + ($ord2 - 128) * 4096 + ($ord3 - 128) * 64 + ($ord4 - 128); - - if ( ! isset($chr[5])) - { - throw new UTF8_Exception('Short sequence - at least 6 bytes expected, only 5 seen'); - } - - if ($ord0 >= 252 AND $ord0 <= 253) - return ($ord0 - 252) * 1073741824 + ($ord1 - 128) * 16777216 + ($ord2 - 128) * 262144 + ($ord3 - 128) * 4096 + ($ord4 - 128) * 64 + (ord($chr[5]) - 128); - - if ($ord0 >= 254 AND $ord0 <= 255) - { - throw new UTF8_Exception("Invalid UTF-8 with surrogate ordinal ':ordinal'", array( - ':ordinal' => $ord0, - )); - } -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/rtrim.php b/includes/kohana/system/utf8/rtrim.php deleted file mode 100644 index 9dfca8e7..00000000 --- a/includes/kohana/system/utf8/rtrim.php +++ /dev/null @@ -1,22 +0,0 @@ - $val) - { - $str[$key] = UTF8::str_ireplace($search, $replace, $val, $count); - } - return $str; - } - - if (is_array($search)) - { - $keys = array_keys($search); - - foreach ($keys as $k) - { - if (is_array($replace)) - { - if (array_key_exists($k, $replace)) - { - $str = UTF8::str_ireplace($search[$k], $replace[$k], $str, $count); - } - else - { - $str = UTF8::str_ireplace($search[$k], '', $str, $count); - } - } - else - { - $str = UTF8::str_ireplace($search[$k], $replace, $str, $count); - } - } - return $str; - } - - $search = UTF8::strtolower($search); - $str_lower = UTF8::strtolower($str); - - $total_matched_strlen = 0; - $i = 0; - - while (preg_match('/(.*?)'.preg_quote($search, '/').'/s', $str_lower, $matches)) - { - $matched_strlen = strlen($matches[0]); - $str_lower = substr($str_lower, $matched_strlen); - - $offset = $total_matched_strlen + strlen($matches[1]) + ($i * (strlen($replace) - 1)); - $str = substr_replace($str, $replace, $offset, strlen($search)); - - $total_matched_strlen += $matched_strlen; - $i++; - } - - $count += $i; - return $str; -} diff --git a/includes/kohana/system/utf8/str_pad.php b/includes/kohana/system/utf8/str_pad.php deleted file mode 100644 index 1ef11876..00000000 --- a/includes/kohana/system/utf8/str_pad.php +++ /dev/null @@ -1,52 +0,0 @@ - $pad_type, - )); -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/str_split.php b/includes/kohana/system/utf8/str_split.php deleted file mode 100644 index 97cfa245..00000000 --- a/includes/kohana/system/utf8/str_split.php +++ /dev/null @@ -1,27 +0,0 @@ -0x0061, 0x03A6=>0x03C6, 0x0162=>0x0163, 0x00C5=>0x00E5, 0x0042=>0x0062, - 0x0139=>0x013A, 0x00C1=>0x00E1, 0x0141=>0x0142, 0x038E=>0x03CD, 0x0100=>0x0101, - 0x0490=>0x0491, 0x0394=>0x03B4, 0x015A=>0x015B, 0x0044=>0x0064, 0x0393=>0x03B3, - 0x00D4=>0x00F4, 0x042A=>0x044A, 0x0419=>0x0439, 0x0112=>0x0113, 0x041C=>0x043C, - 0x015E=>0x015F, 0x0143=>0x0144, 0x00CE=>0x00EE, 0x040E=>0x045E, 0x042F=>0x044F, - 0x039A=>0x03BA, 0x0154=>0x0155, 0x0049=>0x0069, 0x0053=>0x0073, 0x1E1E=>0x1E1F, - 0x0134=>0x0135, 0x0427=>0x0447, 0x03A0=>0x03C0, 0x0418=>0x0438, 0x00D3=>0x00F3, - 0x0420=>0x0440, 0x0404=>0x0454, 0x0415=>0x0435, 0x0429=>0x0449, 0x014A=>0x014B, - 0x0411=>0x0431, 0x0409=>0x0459, 0x1E02=>0x1E03, 0x00D6=>0x00F6, 0x00D9=>0x00F9, - 0x004E=>0x006E, 0x0401=>0x0451, 0x03A4=>0x03C4, 0x0423=>0x0443, 0x015C=>0x015D, - 0x0403=>0x0453, 0x03A8=>0x03C8, 0x0158=>0x0159, 0x0047=>0x0067, 0x00C4=>0x00E4, - 0x0386=>0x03AC, 0x0389=>0x03AE, 0x0166=>0x0167, 0x039E=>0x03BE, 0x0164=>0x0165, - 0x0116=>0x0117, 0x0108=>0x0109, 0x0056=>0x0076, 0x00DE=>0x00FE, 0x0156=>0x0157, - 0x00DA=>0x00FA, 0x1E60=>0x1E61, 0x1E82=>0x1E83, 0x00C2=>0x00E2, 0x0118=>0x0119, - 0x0145=>0x0146, 0x0050=>0x0070, 0x0150=>0x0151, 0x042E=>0x044E, 0x0128=>0x0129, - 0x03A7=>0x03C7, 0x013D=>0x013E, 0x0422=>0x0442, 0x005A=>0x007A, 0x0428=>0x0448, - 0x03A1=>0x03C1, 0x1E80=>0x1E81, 0x016C=>0x016D, 0x00D5=>0x00F5, 0x0055=>0x0075, - 0x0176=>0x0177, 0x00DC=>0x00FC, 0x1E56=>0x1E57, 0x03A3=>0x03C3, 0x041A=>0x043A, - 0x004D=>0x006D, 0x016A=>0x016B, 0x0170=>0x0171, 0x0424=>0x0444, 0x00CC=>0x00EC, - 0x0168=>0x0169, 0x039F=>0x03BF, 0x004B=>0x006B, 0x00D2=>0x00F2, 0x00C0=>0x00E0, - 0x0414=>0x0434, 0x03A9=>0x03C9, 0x1E6A=>0x1E6B, 0x00C3=>0x00E3, 0x042D=>0x044D, - 0x0416=>0x0436, 0x01A0=>0x01A1, 0x010C=>0x010D, 0x011C=>0x011D, 0x00D0=>0x00F0, - 0x013B=>0x013C, 0x040F=>0x045F, 0x040A=>0x045A, 0x00C8=>0x00E8, 0x03A5=>0x03C5, - 0x0046=>0x0066, 0x00DD=>0x00FD, 0x0043=>0x0063, 0x021A=>0x021B, 0x00CA=>0x00EA, - 0x0399=>0x03B9, 0x0179=>0x017A, 0x00CF=>0x00EF, 0x01AF=>0x01B0, 0x0045=>0x0065, - 0x039B=>0x03BB, 0x0398=>0x03B8, 0x039C=>0x03BC, 0x040C=>0x045C, 0x041F=>0x043F, - 0x042C=>0x044C, 0x00DE=>0x00FE, 0x00D0=>0x00F0, 0x1EF2=>0x1EF3, 0x0048=>0x0068, - 0x00CB=>0x00EB, 0x0110=>0x0111, 0x0413=>0x0433, 0x012E=>0x012F, 0x00C6=>0x00E6, - 0x0058=>0x0078, 0x0160=>0x0161, 0x016E=>0x016F, 0x0391=>0x03B1, 0x0407=>0x0457, - 0x0172=>0x0173, 0x0178=>0x00FF, 0x004F=>0x006F, 0x041B=>0x043B, 0x0395=>0x03B5, - 0x0425=>0x0445, 0x0120=>0x0121, 0x017D=>0x017E, 0x017B=>0x017C, 0x0396=>0x03B6, - 0x0392=>0x03B2, 0x0388=>0x03AD, 0x1E84=>0x1E85, 0x0174=>0x0175, 0x0051=>0x0071, - 0x0417=>0x0437, 0x1E0A=>0x1E0B, 0x0147=>0x0148, 0x0104=>0x0105, 0x0408=>0x0458, - 0x014C=>0x014D, 0x00CD=>0x00ED, 0x0059=>0x0079, 0x010A=>0x010B, 0x038F=>0x03CE, - 0x0052=>0x0072, 0x0410=>0x0430, 0x0405=>0x0455, 0x0402=>0x0452, 0x0126=>0x0127, - 0x0136=>0x0137, 0x012A=>0x012B, 0x038A=>0x03AF, 0x042B=>0x044B, 0x004C=>0x006C, - 0x0397=>0x03B7, 0x0124=>0x0125, 0x0218=>0x0219, 0x00DB=>0x00FB, 0x011E=>0x011F, - 0x041E=>0x043E, 0x1E40=>0x1E41, 0x039D=>0x03BD, 0x0106=>0x0107, 0x03AB=>0x03CB, - 0x0426=>0x0446, 0x00DE=>0x00FE, 0x00C7=>0x00E7, 0x03AA=>0x03CA, 0x0421=>0x0441, - 0x0412=>0x0432, 0x010E=>0x010F, 0x00D8=>0x00F8, 0x0057=>0x0077, 0x011A=>0x011B, - 0x0054=>0x0074, 0x004A=>0x006A, 0x040B=>0x045B, 0x0406=>0x0456, 0x0102=>0x0103, - 0x039B=>0x03BB, 0x00D1=>0x00F1, 0x041D=>0x043D, 0x038C=>0x03CC, 0x00C9=>0x00E9, - 0x00D0=>0x00F0, 0x0407=>0x0457, 0x0122=>0x0123, - ); - } - - $uni = UTF8::to_unicode($str); - - if ($uni === FALSE) - return FALSE; - - for ($i = 0, $c = count($uni); $i < $c; $i++) - { - if (isset($utf8_upper_to_lower[$uni[$i]])) - { - $uni[$i] = $utf8_upper_to_lower[$uni[$i]]; - } - } - - return UTF8::from_unicode($uni); -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/strtoupper.php b/includes/kohana/system/utf8/strtoupper.php deleted file mode 100644 index c3895db2..00000000 --- a/includes/kohana/system/utf8/strtoupper.php +++ /dev/null @@ -1,81 +0,0 @@ -0x0041, 0x03C6=>0x03A6, 0x0163=>0x0162, 0x00E5=>0x00C5, 0x0062=>0x0042, - 0x013A=>0x0139, 0x00E1=>0x00C1, 0x0142=>0x0141, 0x03CD=>0x038E, 0x0101=>0x0100, - 0x0491=>0x0490, 0x03B4=>0x0394, 0x015B=>0x015A, 0x0064=>0x0044, 0x03B3=>0x0393, - 0x00F4=>0x00D4, 0x044A=>0x042A, 0x0439=>0x0419, 0x0113=>0x0112, 0x043C=>0x041C, - 0x015F=>0x015E, 0x0144=>0x0143, 0x00EE=>0x00CE, 0x045E=>0x040E, 0x044F=>0x042F, - 0x03BA=>0x039A, 0x0155=>0x0154, 0x0069=>0x0049, 0x0073=>0x0053, 0x1E1F=>0x1E1E, - 0x0135=>0x0134, 0x0447=>0x0427, 0x03C0=>0x03A0, 0x0438=>0x0418, 0x00F3=>0x00D3, - 0x0440=>0x0420, 0x0454=>0x0404, 0x0435=>0x0415, 0x0449=>0x0429, 0x014B=>0x014A, - 0x0431=>0x0411, 0x0459=>0x0409, 0x1E03=>0x1E02, 0x00F6=>0x00D6, 0x00F9=>0x00D9, - 0x006E=>0x004E, 0x0451=>0x0401, 0x03C4=>0x03A4, 0x0443=>0x0423, 0x015D=>0x015C, - 0x0453=>0x0403, 0x03C8=>0x03A8, 0x0159=>0x0158, 0x0067=>0x0047, 0x00E4=>0x00C4, - 0x03AC=>0x0386, 0x03AE=>0x0389, 0x0167=>0x0166, 0x03BE=>0x039E, 0x0165=>0x0164, - 0x0117=>0x0116, 0x0109=>0x0108, 0x0076=>0x0056, 0x00FE=>0x00DE, 0x0157=>0x0156, - 0x00FA=>0x00DA, 0x1E61=>0x1E60, 0x1E83=>0x1E82, 0x00E2=>0x00C2, 0x0119=>0x0118, - 0x0146=>0x0145, 0x0070=>0x0050, 0x0151=>0x0150, 0x044E=>0x042E, 0x0129=>0x0128, - 0x03C7=>0x03A7, 0x013E=>0x013D, 0x0442=>0x0422, 0x007A=>0x005A, 0x0448=>0x0428, - 0x03C1=>0x03A1, 0x1E81=>0x1E80, 0x016D=>0x016C, 0x00F5=>0x00D5, 0x0075=>0x0055, - 0x0177=>0x0176, 0x00FC=>0x00DC, 0x1E57=>0x1E56, 0x03C3=>0x03A3, 0x043A=>0x041A, - 0x006D=>0x004D, 0x016B=>0x016A, 0x0171=>0x0170, 0x0444=>0x0424, 0x00EC=>0x00CC, - 0x0169=>0x0168, 0x03BF=>0x039F, 0x006B=>0x004B, 0x00F2=>0x00D2, 0x00E0=>0x00C0, - 0x0434=>0x0414, 0x03C9=>0x03A9, 0x1E6B=>0x1E6A, 0x00E3=>0x00C3, 0x044D=>0x042D, - 0x0436=>0x0416, 0x01A1=>0x01A0, 0x010D=>0x010C, 0x011D=>0x011C, 0x00F0=>0x00D0, - 0x013C=>0x013B, 0x045F=>0x040F, 0x045A=>0x040A, 0x00E8=>0x00C8, 0x03C5=>0x03A5, - 0x0066=>0x0046, 0x00FD=>0x00DD, 0x0063=>0x0043, 0x021B=>0x021A, 0x00EA=>0x00CA, - 0x03B9=>0x0399, 0x017A=>0x0179, 0x00EF=>0x00CF, 0x01B0=>0x01AF, 0x0065=>0x0045, - 0x03BB=>0x039B, 0x03B8=>0x0398, 0x03BC=>0x039C, 0x045C=>0x040C, 0x043F=>0x041F, - 0x044C=>0x042C, 0x00FE=>0x00DE, 0x00F0=>0x00D0, 0x1EF3=>0x1EF2, 0x0068=>0x0048, - 0x00EB=>0x00CB, 0x0111=>0x0110, 0x0433=>0x0413, 0x012F=>0x012E, 0x00E6=>0x00C6, - 0x0078=>0x0058, 0x0161=>0x0160, 0x016F=>0x016E, 0x03B1=>0x0391, 0x0457=>0x0407, - 0x0173=>0x0172, 0x00FF=>0x0178, 0x006F=>0x004F, 0x043B=>0x041B, 0x03B5=>0x0395, - 0x0445=>0x0425, 0x0121=>0x0120, 0x017E=>0x017D, 0x017C=>0x017B, 0x03B6=>0x0396, - 0x03B2=>0x0392, 0x03AD=>0x0388, 0x1E85=>0x1E84, 0x0175=>0x0174, 0x0071=>0x0051, - 0x0437=>0x0417, 0x1E0B=>0x1E0A, 0x0148=>0x0147, 0x0105=>0x0104, 0x0458=>0x0408, - 0x014D=>0x014C, 0x00ED=>0x00CD, 0x0079=>0x0059, 0x010B=>0x010A, 0x03CE=>0x038F, - 0x0072=>0x0052, 0x0430=>0x0410, 0x0455=>0x0405, 0x0452=>0x0402, 0x0127=>0x0126, - 0x0137=>0x0136, 0x012B=>0x012A, 0x03AF=>0x038A, 0x044B=>0x042B, 0x006C=>0x004C, - 0x03B7=>0x0397, 0x0125=>0x0124, 0x0219=>0x0218, 0x00FB=>0x00DB, 0x011F=>0x011E, - 0x043E=>0x041E, 0x1E41=>0x1E40, 0x03BD=>0x039D, 0x0107=>0x0106, 0x03CB=>0x03AB, - 0x0446=>0x0426, 0x00FE=>0x00DE, 0x00E7=>0x00C7, 0x03CA=>0x03AA, 0x0441=>0x0421, - 0x0432=>0x0412, 0x010F=>0x010E, 0x00F8=>0x00D8, 0x0077=>0x0057, 0x011B=>0x011A, - 0x0074=>0x0054, 0x006A=>0x004A, 0x045B=>0x040B, 0x0456=>0x0406, 0x0103=>0x0102, - 0x03BB=>0x039B, 0x00F1=>0x00D1, 0x043D=>0x041D, 0x03CC=>0x038C, 0x00E9=>0x00C9, - 0x00F0=>0x00D0, 0x0457=>0x0407, 0x0123=>0x0122, - ); - } - - $uni = UTF8::to_unicode($str); - - if ($uni === FALSE) - return FALSE; - - for ($i = 0, $c = count($uni); $i < $c; $i++) - { - if (isset($utf8_lower_to_upper[$uni[$i]])) - { - $uni[$i] = $utf8_lower_to_upper[$uni[$i]]; - } - } - - return UTF8::from_unicode($uni); -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/substr.php b/includes/kohana/system/utf8/substr.php deleted file mode 100644 index efb008db..00000000 --- a/includes/kohana/system/utf8/substr.php +++ /dev/null @@ -1,72 +0,0 @@ -= $strlen OR ($length < 0 AND $length <= $offset - $strlen)) - return ''; - - // Whole string - if ($offset == 0 AND ($length === NULL OR $length >= $strlen)) - return $str; - - // Build regex - $regex = '^'; - - // Create an offset expression - if ($offset > 0) - { - // PCRE repeating quantifiers must be less than 65536, so repeat when necessary - $x = (int) ($offset / 65535); - $y = (int) ($offset % 65535); - $regex .= ($x == 0) ? '' : ('(?:.{65535}){'.$x.'}'); - $regex .= ($y == 0) ? '' : ('.{'.$y.'}'); - } - - // Create a length expression - if ($length === NULL) - { - $regex .= '(.*)'; // No length set, grab it all - } - // Find length from the left (positive length) - elseif ($length > 0) - { - // Reduce length so that it can't go beyond the end of the string - $length = min($strlen - $offset, $length); - - $x = (int) ($length / 65535); - $y = (int) ($length % 65535); - $regex .= '('; - $regex .= ($x == 0) ? '' : ('(?:.{65535}){'.$x.'}'); - $regex .= '.{'.$y.'})'; - } - // Find length from the right (negative length) - else - { - $x = (int) (-$length / 65535); - $y = (int) (-$length % 65535); - $regex .= '(.*)'; - $regex .= ($x == 0) ? '' : ('(?:.{65535}){'.$x.'}'); - $regex .= '.{'.$y.'}'; - } - - preg_match('/'.$regex.'/us', $str, $matches); - return $matches[1]; -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/substr_replace.php b/includes/kohana/system/utf8/substr_replace.php deleted file mode 100644 index 494521f9..00000000 --- a/includes/kohana/system/utf8/substr_replace.php +++ /dev/null @@ -1,22 +0,0 @@ - 0x10FFFF)) - { - trigger_error('UTF8::to_unicode: Illegal sequence or codepoint in UTF-8 at byte '.$i, E_USER_WARNING); - return FALSE; - } - - if (0xFEFF != $m_ucs4) - { - // BOM is legal but we don't want to output it - $out[] = $m_ucs4; - } - - // Initialize UTF-8 cache - $m_state = 0; - $m_ucs4 = 0; - $m_bytes = 1; - } - } - else - { - // ((0xC0 & (*in) != 0x80) AND (m_state != 0)) - // Incomplete multi-octet sequence - throw new UTF8_Exception("UTF8::to_unicode: Incomplete multi-octet sequence in UTF-8 at byte ':byte'", array( - ':byte' => $i, - )); - } - } - } - - return $out; -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/transliterate_to_ascii.php b/includes/kohana/system/utf8/transliterate_to_ascii.php deleted file mode 100644 index 33dc05ce..00000000 --- a/includes/kohana/system/utf8/transliterate_to_ascii.php +++ /dev/null @@ -1,77 +0,0 @@ - 'a', 'ô' => 'o', 'Ä' => 'd', 'ḟ' => 'f', 'ë' => 'e', 'Å¡' => 's', 'Æ¡' => 'o', - 'ß' => 'ss', 'ă' => 'a', 'Å™' => 'r', 'È›' => 't', 'ň' => 'n', 'Ä' => 'a', 'Ä·' => 'k', - 'Å' => 's', 'ỳ' => 'y', 'ņ' => 'n', 'ĺ' => 'l', 'ħ' => 'h', 'á¹—' => 'p', 'ó' => 'o', - 'ú' => 'u', 'Ä›' => 'e', 'é' => 'e', 'ç' => 'c', 'áº' => 'w', 'Ä‹' => 'c', 'õ' => 'o', - 'ṡ' => 's', 'ø' => 'o', 'Ä£' => 'g', 'ŧ' => 't', 'È™' => 's', 'Ä—' => 'e', 'ĉ' => 'c', - 'Å›' => 's', 'î' => 'i', 'ű' => 'u', 'ć' => 'c', 'Ä™' => 'e', 'ŵ' => 'w', 'ṫ' => 't', - 'Å«' => 'u', 'Ä' => 'c', 'ö' => 'o', 'è' => 'e', 'Å·' => 'y', 'Ä…' => 'a', 'Å‚' => 'l', - 'ų' => 'u', 'ů' => 'u', 'ÅŸ' => 's', 'ÄŸ' => 'g', 'ļ' => 'l', 'Æ’' => 'f', 'ž' => 'z', - 'ẃ' => 'w', 'ḃ' => 'b', 'Ã¥' => 'a', 'ì' => 'i', 'ï' => 'i', 'ḋ' => 'd', 'Å¥' => 't', - 'Å—' => 'r', 'ä' => 'a', 'í' => 'i', 'Å•' => 'r', 'ê' => 'e', 'ü' => 'u', 'ò' => 'o', - 'Ä“' => 'e', 'ñ' => 'n', 'Å„' => 'n', 'Ä¥' => 'h', 'Ä' => 'g', 'Ä‘' => 'd', 'ĵ' => 'j', - 'ÿ' => 'y', 'Å©' => 'u', 'Å­' => 'u', 'Æ°' => 'u', 'Å£' => 't', 'ý' => 'y', 'Å‘' => 'o', - 'â' => 'a', 'ľ' => 'l', 'ẅ' => 'w', 'ż' => 'z', 'Ä«' => 'i', 'ã' => 'a', 'Ä¡' => 'g', - 'á¹' => 'm', 'Å' => 'o', 'Ä©' => 'i', 'ù' => 'u', 'į' => 'i', 'ź' => 'z', 'á' => 'a', - 'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'Ä•' => 'e', 'ı' => 'i', - ); - } - - $str = str_replace( - array_keys($utf8_lower_accents), - array_values($utf8_lower_accents), - $str - ); - } - - if ($case >= 0) - { - if ($utf8_upper_accents === NULL) - { - $utf8_upper_accents = array( - 'À' => 'A', 'Ô' => 'O', 'ÄŽ' => 'D', 'Ḟ' => 'F', 'Ë' => 'E', 'Å ' => 'S', 'Æ ' => 'O', - 'Ä‚' => 'A', 'Ř' => 'R', 'Èš' => 'T', 'Ň' => 'N', 'Ä€' => 'A', 'Ķ' => 'K', 'Ä”' => 'E', - 'Åœ' => 'S', 'Ỳ' => 'Y', 'Å…' => 'N', 'Ĺ' => 'L', 'Ħ' => 'H', 'á¹–' => 'P', 'Ó' => 'O', - 'Ú' => 'U', 'Äš' => 'E', 'É' => 'E', 'Ç' => 'C', 'Ẁ' => 'W', 'ÄŠ' => 'C', 'Õ' => 'O', - 'á¹ ' => 'S', 'Ø' => 'O', 'Ä¢' => 'G', 'Ŧ' => 'T', 'Ș' => 'S', 'Ä–' => 'E', 'Ĉ' => 'C', - 'Åš' => 'S', 'ÃŽ' => 'I', 'Å°' => 'U', 'Ć' => 'C', 'Ę' => 'E', 'Å´' => 'W', 'Ṫ' => 'T', - 'Ū' => 'U', 'ÄŒ' => 'C', 'Ö' => 'O', 'È' => 'E', 'Ŷ' => 'Y', 'Ä„' => 'A', 'Å' => 'L', - 'Ų' => 'U', 'Å®' => 'U', 'Åž' => 'S', 'Äž' => 'G', 'Ä»' => 'L', 'Æ‘' => 'F', 'Ž' => 'Z', - 'Ẃ' => 'W', 'Ḃ' => 'B', 'Ã…' => 'A', 'ÃŒ' => 'I', 'Ã' => 'I', 'Ḋ' => 'D', 'Ť' => 'T', - 'Å–' => 'R', 'Ä' => 'A', 'Ã' => 'I', 'Å”' => 'R', 'Ê' => 'E', 'Ãœ' => 'U', 'Ã’' => 'O', - 'Ä’' => 'E', 'Ñ' => 'N', 'Ń' => 'N', 'Ĥ' => 'H', 'Äœ' => 'G', 'Ä' => 'D', 'Ä´' => 'J', - 'Ÿ' => 'Y', 'Ũ' => 'U', 'Ŭ' => 'U', 'Ư' => 'U', 'Å¢' => 'T', 'Ã' => 'Y', 'Å' => 'O', - 'Â' => 'A', 'Ľ' => 'L', 'Ẅ' => 'W', 'Å»' => 'Z', 'Ī' => 'I', 'Ã' => 'A', 'Ä ' => 'G', - 'á¹€' => 'M', 'ÅŒ' => 'O', 'Ĩ' => 'I', 'Ù' => 'U', 'Ä®' => 'I', 'Ź' => 'Z', 'Ã' => 'A', - 'Û' => 'U', 'Þ' => 'Th', 'Ã' => 'Dh', 'Æ' => 'Ae', 'Ä°' => 'I', - ); - } - - $str = str_replace( - array_keys($utf8_upper_accents), - array_values($utf8_upper_accents), - $str - ); - } - - return $str; -} \ No newline at end of file diff --git a/includes/kohana/system/utf8/trim.php b/includes/kohana/system/utf8/trim.php deleted file mode 100644 index 9003ce08..00000000 --- a/includes/kohana/system/utf8/trim.php +++ /dev/null @@ -1,17 +0,0 @@ - - - -
    -

    [ ]:

    -
    -

    [ ]

    - -
      - $step): ?> -
    1. -

      - - - [ ] - - {} - - - » - () -

      - - - - - - -
    2. - - -
    -
    -

    - -
    diff --git a/includes/kohana/system/views/kohana/generate_logo.php b/includes/kohana/system/views/kohana/generate_logo.php deleted file mode 100644 index 6b99f1d7..00000000 --- a/includes/kohana/system/views/kohana/generate_logo.php +++ /dev/null @@ -1,14 +0,0 @@ - 'image/png', 'data' => '{$data}'); ?>"); \ No newline at end of file diff --git a/includes/kohana/system/views/kohana/logo.php b/includes/kohana/system/views/kohana/logo.php deleted file mode 100644 index b19e68f4..00000000 --- a/includes/kohana/system/views/kohana/logo.php +++ /dev/null @@ -1,8 +0,0 @@ - 'image/png', 'data' => 'iVBORw0KGgoAAAANSUhEUgAAAL8AAAA+CAYAAAB6Bsp7AAA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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+yvyVbAAAFqJJREFUeNrsXQ1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ZM6UQf+z3A+naaah/w13r+/Rrhu5OsrxDGPiVdm+n6VZwO/L9RoEP558YcbRI/8L5pGN63D0MrwD9bI9CmnK4xlgrzyjSMeVdJfBu80ww8aX3ikGuiZdPauCdfP0b5M4oACzNdNFHnn2j/HzdmvZ3hQ/s/AQYA0JN3gGAK3/0AAAAASUVORK5CYII='); ?> \ No newline at end of file diff --git a/includes/kohana/system/views/profiler/stats.php b/includes/kohana/system/views/profiler/stats.php deleted file mode 100644 index f3e28681..00000000 --- a/includes/kohana/system/views/profiler/stats.php +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - -
    - $benchmarks): ?> - - - - - - - - - - - - - - - $tokens): ?> - - - - - - - - - - - - - -
    s
    kB
    -
    -
    s
    - -
    - -
    -
    -
    -
    kB
    - -
    - -
    -
    - - - - - - - - - - - - - - - -
    s
    kB
    -
    \ No newline at end of file diff --git a/includes/kohana/system/views/profiler/style.css b/includes/kohana/system/views/profiler/style.css deleted file mode 100644 index e6af3a05..00000000 --- a/includes/kohana/system/views/profiler/style.css +++ /dev/null @@ -1,27 +0,0 @@ -.kohana table.profiler { width: 99%; margin: 0 auto 1em; border-collapse: collapse; } -.kohana table.profiler th, -.kohana table.profiler td { padding: 0.2em 0.4em; background: #fff; border: solid 1px #999; border-width: 1px 0; text-align: left; font-weight: normal; font-size: 1em; color: #111; vertical-align: top; text-align: right; } -.kohana table.profiler th.name { text-align: left; } -.kohana table.profiler tr.group th { font-size: 1.4em; background: #222; color: #eee; border-color: #222; } -.kohana table.profiler tr.group td { background: #222; color: #777; border-color: #222; } -.kohana table.profiler tr.group td.time { padding-bottom: 0; } -.kohana table.profiler tr.headers th { text-transform: lowercase; font-variant: small-caps; background: #ddd; color: #777; } -.kohana table.profiler tr.mark th.name { width: 40%; font-size: 1.2em; background: #fff; vertical-align: middle; } -.kohana table.profiler tr.mark td { padding: 0; } -.kohana table.profiler tr.mark.final td { padding: 0.2em 0.4em; } -.kohana table.profiler tr.mark td > div { position: relative; padding: 0.2em 0.4em; } -.kohana table.profiler tr.mark td div.value { position: relative; z-index: 2; } -.kohana table.profiler tr.mark td div.graph { position: absolute; top: 0; bottom: 0; right: 0; left: 100%; background: #71bdf0; z-index: 1; } -.kohana table.profiler tr.mark.memory td div.graph { background: #acd4f0; } -.kohana table.profiler tr.mark td.current { background: #eddecc; } -.kohana table.profiler tr.mark td.min { background: #d2f1cb; } -.kohana table.profiler tr.mark td.max { background: #ead3cb; } -.kohana table.profiler tr.mark td.average { background: #ddd; } -.kohana table.profiler tr.mark td.total { background: #d0e3f0; } -.kohana table.profiler tr.time td { border-bottom: 0; font-weight: bold; } -.kohana table.profiler tr.memory td { border-top: 0; } -.kohana table.profiler tr.final th.name { background: #222; color: #fff; } -.kohana table.profiler abbr { border: 0; color: #777; font-weight: normal; } -.kohana table.profiler:hover tr.group td { color: #ccc; } -.kohana table.profiler:hover tr.mark td div.graph { background: #1197f0; } -.kohana table.profiler:hover tr.mark.memory td div.graph { background: #7cc1f0; } \ No newline at end of file diff --git a/includes/kohana/vendor/autoload.php b/includes/kohana/vendor/autoload.php deleted file mode 100644 index 004ba3a8..00000000 --- a/includes/kohana/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0 class loader - * - * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - */ -class ClassLoader -{ - private $prefixes = array(); - private $fallbackDirs = array(); - private $useIncludePath = false; - private $classMap = array(); - - public function getPrefixes() - { - return $this->prefixes; - } - - public function getFallbackDirs() - { - return $this->fallbackDirs; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of classes - * - * @param string $prefix The classes prefix - * @param array|string $paths The location(s) of the classes - */ - public function add($prefix, $paths) - { - if (!$prefix) { - foreach ((array) $paths as $path) { - $this->fallbackDirs[] = $path; - } - - return; - } - if (isset($this->prefixes[$prefix])) { - $this->prefixes[$prefix] = array_merge( - $this->prefixes[$prefix], - (array) $paths - ); - } else { - $this->prefixes[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True, if loaded - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - include $file; - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|null The path, if found - */ - public function findFile($class) - { - if ('\\' == $class[0]) { - $class = substr($class, 1); - } - - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)) . DIRECTORY_SEPARATOR; - $className = substr($class, $pos + 1); - } else { - // PEAR-like class name - $classPath = null; - $className = $class; - } - - $classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; - - foreach ($this->prefixes as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($dir . DIRECTORY_SEPARATOR . $classPath)) { - return $dir . DIRECTORY_SEPARATOR . $classPath; - } - } - } - } - - foreach ($this->fallbackDirs as $dir) { - if (file_exists($dir . DIRECTORY_SEPARATOR . $classPath)) { - return $dir . DIRECTORY_SEPARATOR . $classPath; - } - } - - if ($this->useIncludePath && $file = stream_resolve_include_path($classPath)) { - return $file; - } - - return $this->classMap[$class] = false; - } -} diff --git a/includes/kohana/vendor/composer/autoload_classmap.php b/includes/kohana/vendor/composer/autoload_classmap.php deleted file mode 100644 index fa36f165..00000000 --- a/includes/kohana/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,351 +0,0 @@ - $baseDir . '/vendor/phpunit/php-file-iterator/File/Iterator.php', - 'File_Iterator_Facade' => $baseDir . '/vendor/phpunit/php-file-iterator/File/Iterator/Facade.php', - 'File_Iterator_Factory' => $baseDir . '/vendor/phpunit/php-file-iterator/File/Iterator/Factory.php', - 'PHPUnit_Extensions_GroupTestSuite' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/GroupTestSuite.php', - 'PHPUnit_Extensions_PhptTestCase' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php', - 'PHPUnit_Extensions_PhptTestCase_Logger' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase/Logger.php', - 'PHPUnit_Extensions_PhptTestSuite' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestSuite.php', - 'PHPUnit_Extensions_RepeatedTest' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php', - 'PHPUnit_Extensions_TestDecorator' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php', - 'PHPUnit_Extensions_TicketListener' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Extensions/TicketListener.php', - 'PHPUnit_Framework_Assert' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php', - 'PHPUnit_Framework_AssertionFailedError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php', - 'PHPUnit_Framework_Comparator' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator.php', - 'PHPUnit_Framework_ComparatorFactory' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/ComparatorFactory.php', - 'PHPUnit_Framework_Comparator_Array' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php', - 'PHPUnit_Framework_Comparator_DOMDocument' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/DOMDocument.php', - 'PHPUnit_Framework_Comparator_Double' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Double.php', - 'PHPUnit_Framework_Comparator_Exception' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Exception.php', - 'PHPUnit_Framework_Comparator_MockObject' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/MockObject.php', - 'PHPUnit_Framework_Comparator_Numeric' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Numeric.php', - 'PHPUnit_Framework_Comparator_Object' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php', - 'PHPUnit_Framework_Comparator_Resource' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Resource.php', - 'PHPUnit_Framework_Comparator_Scalar' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Scalar.php', - 'PHPUnit_Framework_Comparator_SplObjectStorage' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/SplObjectStorage.php', - 'PHPUnit_Framework_Comparator_Type' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Type.php', - 'PHPUnit_Framework_ComparisonFailure' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php', - 'PHPUnit_Framework_Constraint' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php', - 'PHPUnit_Framework_Constraint_And' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/And.php', - 'PHPUnit_Framework_Constraint_ArrayHasKey' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php', - 'PHPUnit_Framework_Constraint_Attribute' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php', - 'PHPUnit_Framework_Constraint_Callback' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php', - 'PHPUnit_Framework_Constraint_ClassHasAttribute' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php', - 'PHPUnit_Framework_Constraint_ClassHasStaticAttribute' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php', - 'PHPUnit_Framework_Constraint_Composite' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Composite.php', - 'PHPUnit_Framework_Constraint_Count' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php', - 'PHPUnit_Framework_Constraint_Exception' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php', - 'PHPUnit_Framework_Constraint_ExceptionCode' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionCode.php', - 'PHPUnit_Framework_Constraint_ExceptionMessage' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php', - 'PHPUnit_Framework_Constraint_FileExists' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/FileExists.php', - 'PHPUnit_Framework_Constraint_GreaterThan' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/GreaterThan.php', - 'PHPUnit_Framework_Constraint_IsAnything' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsAnything.php', - 'PHPUnit_Framework_Constraint_IsEmpty' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEmpty.php', - 'PHPUnit_Framework_Constraint_IsEqual' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php', - 'PHPUnit_Framework_Constraint_IsFalse' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsFalse.php', - 'PHPUnit_Framework_Constraint_IsIdentical' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php', - 'PHPUnit_Framework_Constraint_IsInstanceOf' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsInstanceOf.php', - 'PHPUnit_Framework_Constraint_IsNull' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsNull.php', - 'PHPUnit_Framework_Constraint_IsTrue' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsTrue.php', - 'PHPUnit_Framework_Constraint_IsType' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsType.php', - 'PHPUnit_Framework_Constraint_JsonMatches' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches.php', - 'PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php', - 'PHPUnit_Framework_Constraint_LessThan' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/LessThan.php', - 'PHPUnit_Framework_Constraint_Not' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php', - 'PHPUnit_Framework_Constraint_ObjectHasAttribute' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ObjectHasAttribute.php', - 'PHPUnit_Framework_Constraint_Or' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Or.php', - 'PHPUnit_Framework_Constraint_PCREMatch' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/PCREMatch.php', - 'PHPUnit_Framework_Constraint_SameSize' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/SameSize.php', - 'PHPUnit_Framework_Constraint_StringContains' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringContains.php', - 'PHPUnit_Framework_Constraint_StringEndsWith' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringEndsWith.php', - 'PHPUnit_Framework_Constraint_StringMatches' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php', - 'PHPUnit_Framework_Constraint_StringStartsWith' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringStartsWith.php', - 'PHPUnit_Framework_Constraint_TraversableContains' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContains.php', - 'PHPUnit_Framework_Constraint_TraversableContainsOnly' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContainsOnly.php', - 'PHPUnit_Framework_Constraint_Xor' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Xor.php', - 'PHPUnit_Framework_Error' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Error.php', - 'PHPUnit_Framework_Error_Deprecated' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Deprecated.php', - 'PHPUnit_Framework_Error_Notice' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Notice.php', - 'PHPUnit_Framework_Error_Warning' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Warning.php', - 'PHPUnit_Framework_Exception' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Exception.php', - 'PHPUnit_Framework_ExpectationFailedException' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/ExpectationFailedException.php', - 'PHPUnit_Framework_IncompleteTest' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTest.php', - 'PHPUnit_Framework_IncompleteTestError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTestError.php', - 'PHPUnit_Framework_MockObject_Builder_Identity' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php', - 'PHPUnit_Framework_MockObject_Builder_InvocationMocker' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php', - 'PHPUnit_Framework_MockObject_Builder_Match' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Match.php', - 'PHPUnit_Framework_MockObject_Builder_MethodNameMatch' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php', - 'PHPUnit_Framework_MockObject_Builder_Namespace' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Namespace.php', - 'PHPUnit_Framework_MockObject_Builder_ParametersMatch' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php', - 'PHPUnit_Framework_MockObject_Builder_Stub' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Stub.php', - 'PHPUnit_Framework_MockObject_Generator' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php', - 'PHPUnit_Framework_MockObject_Invocation' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation.php', - 'PHPUnit_Framework_MockObject_InvocationMocker' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/InvocationMocker.php', - 'PHPUnit_Framework_MockObject_Invocation_Object' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Object.php', - 'PHPUnit_Framework_MockObject_Invocation_Static' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Static.php', - 'PHPUnit_Framework_MockObject_Invokable' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php', - 'PHPUnit_Framework_MockObject_Matcher' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php', - 'PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php', - 'PHPUnit_Framework_MockObject_Matcher_AnyParameters' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php', - 'PHPUnit_Framework_MockObject_Matcher_Invocation' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php', - 'PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php', - 'PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php', - 'PHPUnit_Framework_MockObject_Matcher_InvokedCount' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php', - 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php', - 'PHPUnit_Framework_MockObject_Matcher_MethodName' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/MethodName.php', - 'PHPUnit_Framework_MockObject_Matcher_Parameters' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Parameters.php', - 'PHPUnit_Framework_MockObject_Matcher_StatelessInvocation' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php', - 'PHPUnit_Framework_MockObject_MockBuilder' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockBuilder.php', - 'PHPUnit_Framework_MockObject_MockObject' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php', - 'PHPUnit_Framework_MockObject_Stub' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub.php', - 'PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php', - 'PHPUnit_Framework_MockObject_Stub_Exception' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php', - 'PHPUnit_Framework_MockObject_Stub_MatcherCollection' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php', - 'PHPUnit_Framework_MockObject_Stub_Return' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Return.php', - 'PHPUnit_Framework_MockObject_Stub_ReturnArgument' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php', - 'PHPUnit_Framework_MockObject_Stub_ReturnCallback' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php', - 'PHPUnit_Framework_MockObject_Stub_ReturnSelf' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnSelf.php', - 'PHPUnit_Framework_MockObject_Stub_ReturnValueMap' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnValueMap.php', - 'PHPUnit_Framework_MockObject_Verifiable' => $baseDir . '/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Verifiable.php', - 'PHPUnit_Framework_OutputError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/OutputError.php', - 'PHPUnit_Framework_SelfDescribing' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/SelfDescribing.php', - 'PHPUnit_Framework_SkippedTest' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTest.php', - 'PHPUnit_Framework_SkippedTestError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestError.php', - 'PHPUnit_Framework_SkippedTestSuiteError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestSuiteError.php', - 'PHPUnit_Framework_SyntheticError' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/SyntheticError.php', - 'PHPUnit_Framework_Test' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Test.php', - 'PHPUnit_Framework_TestCase' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php', - 'PHPUnit_Framework_TestFailure' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php', - 'PHPUnit_Framework_TestListener' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestListener.php', - 'PHPUnit_Framework_TestResult' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php', - 'PHPUnit_Framework_TestSuite' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php', - 'PHPUnit_Framework_TestSuite_DataProvider' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite/DataProvider.php', - 'PHPUnit_Framework_Warning' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php', - 'PHPUnit_Runner_BaseTestRunner' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Runner/BaseTestRunner.php', - 'PHPUnit_Runner_StandardTestSuiteLoader' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Runner/StandardTestSuiteLoader.php', - 'PHPUnit_Runner_TestSuiteLoader' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Runner/TestSuiteLoader.php', - 'PHPUnit_Runner_Version' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Runner/Version.php', - 'PHPUnit_TextUI_Command' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php', - 'PHPUnit_TextUI_ResultPrinter' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php', - 'PHPUnit_TextUI_TestRunner' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php', - 'PHPUnit_Util_Class' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Class.php', - 'PHPUnit_Util_Configuration' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php', - 'PHPUnit_Util_DeprecatedFeature' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php', - 'PHPUnit_Util_DeprecatedFeature_Logger' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php', - 'PHPUnit_Util_Diff' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Diff.php', - 'PHPUnit_Util_ErrorHandler' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/ErrorHandler.php', - 'PHPUnit_Util_Fileloader' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Fileloader.php', - 'PHPUnit_Util_Filesystem' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Filesystem.php', - 'PHPUnit_Util_Filter' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Filter.php', - 'PHPUnit_Util_Getopt' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Getopt.php', - 'PHPUnit_Util_GlobalState' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php', - 'PHPUnit_Util_InvalidArgumentHelper' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/InvalidArgumentHelper.php', - 'PHPUnit_Util_Log_JSON' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php', - 'PHPUnit_Util_Log_JUnit' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php', - 'PHPUnit_Util_Log_TAP' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php', - 'PHPUnit_Util_PHP' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/PHP.php', - 'PHPUnit_Util_PHP_Default' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Default.php', - 'PHPUnit_Util_PHP_Windows' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php', - 'PHPUnit_Util_Printer' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Printer.php', - 'PHPUnit_Util_String' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/String.php', - 'PHPUnit_Util_Test' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Test.php', - 'PHPUnit_Util_TestDox_NamePrettifier' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/NamePrettifier.php', - 'PHPUnit_Util_TestDox_ResultPrinter' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php', - 'PHPUnit_Util_TestDox_ResultPrinter_HTML' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/HTML.php', - 'PHPUnit_Util_TestDox_ResultPrinter_Text' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php', - 'PHPUnit_Util_TestSuiteIterator' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/TestSuiteIterator.php', - 'PHPUnit_Util_Type' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/Type.php', - 'PHPUnit_Util_XML' => $baseDir . '/vendor/phpunit/phpunit/PHPUnit/Util/XML.php', - 'PHP_CodeCoverage' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php', - 'PHP_CodeCoverage_Driver' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver.php', - 'PHP_CodeCoverage_Driver_Xdebug' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver/Xdebug.php', - 'PHP_CodeCoverage_Exception' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Exception.php', - 'PHP_CodeCoverage_Filter' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Filter.php', - 'PHP_CodeCoverage_Report_Clover' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Clover.php', - 'PHP_CodeCoverage_Report_Factory' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php', - 'PHP_CodeCoverage_Report_HTML' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php', - 'PHP_CodeCoverage_Report_HTML_Renderer' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer.php', - 'PHP_CodeCoverage_Report_HTML_Renderer_Dashboard' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Dashboard.php', - 'PHP_CodeCoverage_Report_HTML_Renderer_Directory' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php', - 'PHP_CodeCoverage_Report_HTML_Renderer_File' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/File.php', - 'PHP_CodeCoverage_Report_Node' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node.php', - 'PHP_CodeCoverage_Report_Node_Directory' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Directory.php', - 'PHP_CodeCoverage_Report_Node_File' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/File.php', - 'PHP_CodeCoverage_Report_Node_Iterator' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Iterator.php', - 'PHP_CodeCoverage_Report_PHP' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/PHP.php', - 'PHP_CodeCoverage_Report_Text' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Text.php', - 'PHP_CodeCoverage_Util' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util.php', - 'PHP_CodeCoverage_Util_InvalidArgumentHelper' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util/InvalidArgumentHelper.php', - 'PHP_CodeCoverage_Version' => $baseDir . '/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Version.php', - 'PHP_Timer' => $baseDir . '/vendor/phpunit/php-timer/PHP/Timer.php', - 'PHP_Token' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_TokenWithScope' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_TokenWithScopeAndVisibility' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ABSTRACT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_AMPERSAND' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_AND_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ARRAY' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ARRAY_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_AS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_AT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BACKTICK' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BAD_CHARACTER' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BOOLEAN_AND' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BOOLEAN_OR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BOOL_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_BREAK' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CALLABLE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CARET' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CASE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CATCH' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CHARACTER' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLASS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLASS_C' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLONE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLOSE_BRACKET' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLOSE_CURLY' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLOSE_SQUARE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CLOSE_TAG' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_COLON' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_COMMA' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_COMMENT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CONCAT_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CONST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CONSTANT_ENCAPSED_STRING' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CONTINUE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_CURLY_OPEN' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DEC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DECLARE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DEFAULT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DIR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DIV' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DIV_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DNUMBER' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DO' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOC_COMMENT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOLLAR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOLLAR_OPEN_CURLY_BRACES' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOUBLE_ARROW' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOUBLE_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOUBLE_COLON' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_DOUBLE_QUOTES' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ECHO' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ELSE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ELSEIF' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EMPTY' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENCAPSED_AND_WHITESPACE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDDECLARE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDFOR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDFOREACH' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDIF' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDSWITCH' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ENDWHILE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_END_HEREDOC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EVAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EXCLAMATION_MARK' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EXIT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_EXTENDS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FILE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FINAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FOR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FOREACH' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FUNCTION' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_FUNC_C' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_GLOBAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_GOTO' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_GT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_HALT_COMPILER' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IF' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IMPLEMENTS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INCLUDE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INCLUDE_ONCE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INLINE_HTML' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INSTANCEOF' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INSTEADOF' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INTERFACE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_INT_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_ISSET' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_GREATER_OR_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_IDENTICAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_NOT_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_NOT_IDENTICAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_IS_SMALLER_OR_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_Includes' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LINE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LIST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LNUMBER' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LOGICAL_AND' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LOGICAL_OR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LOGICAL_XOR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_LT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_METHOD_C' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_MINUS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_MINUS_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_MOD_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_MULT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_MUL_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_NAMESPACE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_NEW' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_NS_C' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_NS_SEPARATOR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_NUM_STRING' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OBJECT_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OBJECT_OPERATOR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OPEN_BRACKET' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OPEN_CURLY' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OPEN_SQUARE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OPEN_TAG' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OPEN_TAG_WITH_ECHO' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_OR_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PAAMAYIM_NEKUDOTAYIM' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PERCENT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PIPE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PLUS' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PLUS_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PRINT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PRIVATE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PROTECTED' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_PUBLIC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_QUESTION_MARK' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_REQUIRE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_REQUIRE_ONCE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_RETURN' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SEMICOLON' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SL_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SR_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_START_HEREDOC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_STATIC' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_STRING' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_STRING_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_STRING_VARNAME' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_SWITCH' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_Stream' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token/Stream.php', - 'PHP_Token_Stream_CachingFactory' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token/Stream/CachingFactory.php', - 'PHP_Token_THROW' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_TILDE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_TRAIT' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_TRAIT_C' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_TRY' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_UNSET' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_UNSET_CAST' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_USE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_VAR' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_VARIABLE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_WHILE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_WHITESPACE' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'PHP_Token_XOR_EQUAL' => $baseDir . '/vendor/phpunit/php-token-stream/PHP/Token.php', - 'Text_Template' => $baseDir . '/vendor/phpunit/php-text-template/Text/Template.php', -); diff --git a/includes/kohana/vendor/composer/autoload_namespaces.php b/includes/kohana/vendor/composer/autoload_namespaces.php deleted file mode 100644 index 851f89df..00000000 --- a/includes/kohana/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,10 +0,0 @@ - $vendorDir . '/symfony/yaml/', -); diff --git a/includes/kohana/vendor/composer/autoload_real.php b/includes/kohana/vendor/composer/autoload_real.php deleted file mode 100644 index dc7e257c..00000000 --- a/includes/kohana/vendor/composer/autoload_real.php +++ /dev/null @@ -1,39 +0,0 @@ - $path) { - $loader->add($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - - $loader->register(); - - return $loader; - } -} diff --git a/includes/kohana/vendor/composer/include_paths.php b/includes/kohana/vendor/composer/include_paths.php deleted file mode 100644 index 533f1c8e..00000000 --- a/includes/kohana/vendor/composer/include_paths.php +++ /dev/null @@ -1,17 +0,0 @@ -=5.3.3" - }, - "time": "2012-08-22 06:48:41", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-0": { - "Symfony\\Component\\Yaml": "" - } - }, - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - } - ], - "description": "Symfony Yaml Component", - "homepage": "http://symfony.com" - }, - { - "name": "phpunit/php-text-template", - "version": "1.1.3", - "version_normalized": "1.1.3.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-text-template.git", - "reference": "1.1.3" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-text-template/zipball/1.1.3", - "reference": "1.1.3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:48:39", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "Text/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "template" - ] - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "1.2.1", - "version_normalized": "1.2.1.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "1.2.1" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects/zipball/1.2.1", - "reference": "1.2.1", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-text-template": ">=1.1.1@stable", - "ext-reflection": "*", - "ext-spl": "*" - }, - "suggest": { - "ext-soap": "*" - }, - "time": "2012-10-05 00:00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "mock", - "xunit" - ] - }, - { - "name": "phpunit/php-timer", - "version": "1.0.4", - "version_normalized": "1.0.4.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-timer.git", - "reference": "1.0.4" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-timer/zipball/1.0.4", - "reference": "1.0.4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:45:58", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "timer" - ] - }, - { - "name": "phpunit/php-token-stream", - "version": "1.1.5", - "version_normalized": "1.1.5.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1.1.5" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-token-stream/zipball/1.1.5", - "reference": "1.1.5", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:47:14", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "tokenizer" - ] - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.3.3", - "version_normalized": "1.3.3.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "1.3.3" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-file-iterator/zipball/1.3.3", - "reference": "1.3.3", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2012-10-11 04:44:38", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "File/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "filesystem", - "iterator" - ] - }, - { - "name": "phpunit/php-code-coverage", - "version": "1.2.6", - "version_normalized": "1.2.6.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "1.2.6" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/php-code-coverage/zipball/1.2.6", - "reference": "1.2.6", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.0@stable", - "phpunit/php-token-stream": ">=1.1.3@stable", - "phpunit/php-text-template": ">=1.1.1@stable" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.0.5" - }, - "time": "2012-10-16 22:34:13", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "testing", - "coverage", - "xunit" - ] - }, - { - "name": "phpunit/phpunit", - "version": "3.7.8", - "version_normalized": "3.7.8.0", - "source": { - "type": "git", - "url": "git://github.com/sebastianbergmann/phpunit.git", - "reference": "3.7.8" - }, - "dist": { - "type": "zip", - "url": "https://github.com/sebastianbergmann/phpunit/zipball/3.7.8", - "reference": "3.7.8", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.1", - "phpunit/php-text-template": ">=1.1.1", - "phpunit/php-code-coverage": ">=1.2.1", - "phpunit/php-timer": ">=1.0.2", - "phpunit/phpunit-mock-objects": ">=1.2.0", - "symfony/yaml": ">=2.1.0", - "ext-dom": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*" - }, - "suggest": { - "phpunit/php-invoker": ">=1.1.0", - "ext-json": "*", - "ext-simplexml": "*", - "ext-tokenizer": "*" - }, - "time": "2012-10-16 22:37:08", - "bin": [ - "composer/bin/phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "include-path": [ - "", - "../../symfony/yaml/" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "testing", - "phpunit", - "xunit" - ] - } -] diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/CONTRIBUTING.md b/includes/kohana/vendor/phpunit/php-code-coverage/CONTRIBUTING.md deleted file mode 100644 index b2905398..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/CONTRIBUTING.md +++ /dev/null @@ -1,5 +0,0 @@ -Pull Requests for bug fixes should be made against the current release branch (1.2). - -Pull Requests for new features should be made against master. - -For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/ChangeLog.markdown b/includes/kohana/vendor/phpunit/php-code-coverage/ChangeLog.markdown deleted file mode 100644 index c45ce6be..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/ChangeLog.markdown +++ /dev/null @@ -1,46 +0,0 @@ -PHP_CodeCoverage 1.2 -==================== - -This is the list of changes for the PHP_CodeCoverage 1.2 release series. - -PHP_CodeCoverage 1.2.6 ----------------------- -* Fixed #126: `E_NOTICE` thrown when generating coverage report. - -PHP_CodeCoverage 1.2.5 ----------------------- -* Fixed regression introduced in PHP_CodeCoverage 1.2.4. - -PHP_CodeCoverage 1.2.4 ----------------------- -* Fixed #123: Incorrect code coverage for interfaces. - -PHP_CodeCoverage 1.2.3 ----------------------- - -* Implemented #116: Do not rely on autoloader class map to populate blacklist. -* Added support for parentheses after method names in the `@covers` annotation. -* When `addUncoveredFilesFromWhitelist=FALSE` is set then files that are whitelisted but not covered by a single test are now excluded from the code coverage. -* Fixed #81: Non-english locales broke the coverage bars in the HTML report. -* Fixed #118: Percentage for tested classes and traits displayed incorrectly. -* Fixed #121: One line `@covers` annotations did not work. - -PHP_CodeCoverage 1.2.2 ----------------------- - -* Fixed #115: Backwards compatibility wrapper for `trait_exists()` does not work. - -PHP_CodeCoverage 1.2.1 ----------------------- - -* Fixed invalid markup in the HTML report. -* The version number is now displayed when using PHP_CodeCoverage from a Composer install or Git checkout. - -PHP_CodeCoverage 1.2.0 ----------------------- - -* The HTML report has been redesigned. -* The new `@coversDefaultClass` annotation enables short `@covers` annotations when working with long class names or namespaces. -* The new `@coversNothing` annotation can be used so tests do not record any code coverage. Useful for integration testing. -* When `processUncoveredFilesFromWhitelist=FALSE` is set then files that are whitelisted but not covered by a single test are now included in the code coverage but with all lines, including those that are not executable, counted as not executed. -* PHP_CodeCoverage 1.2 is only supported on PHP 5.3.3 (or later) and PHP 5.4.7 (or later) is highly recommended. diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/LICENSE b/includes/kohana/vendor/phpunit/php-code-coverage/LICENSE deleted file mode 100644 index 3d72de93..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -PHP_CodeCoverage - -Copyright (c) 2009-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php deleted file mode 100644 index 37de2c15..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php +++ /dev/null @@ -1,796 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -// @codeCoverageIgnoreStart -// @codingStandardsIgnoreStart -/** - * @SuppressWarnings(PHPMD) - */ -if (!function_exists('trait_exists')) { - function trait_exists($name) - { - return FALSE; - } -} -// @codingStandardsIgnoreEnd -// @codeCoverageIgnoreEnd - -/** - * Provides collection functionality for PHP code coverage information. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage -{ - /** - * @var PHP_CodeCoverage_Driver - */ - protected $driver; - - /** - * @var PHP_CodeCoverage_Filter - */ - protected $filter; - - /** - * @var boolean - */ - protected $cacheTokens = FALSE; - - /** - * @var boolean - */ - protected $forceCoversAnnotation = FALSE; - - /** - * @var boolean - */ - protected $mapTestClassNameToCoveredClassName = FALSE; - - /** - * @var boolean - */ - protected $addUncoveredFilesFromWhitelist = TRUE; - - /** - * @var boolean - */ - protected $processUncoveredFilesFromWhitelist = FALSE; - - /** - * @var mixed - */ - protected $currentId; - - /** - * Code coverage data. - * - * @var array - */ - protected $data = array(); - - /** - * Test data. - * - * @var array - */ - protected $tests = array(); - - /** - * Constructor. - * - * @param PHP_CodeCoverage_Driver $driver - * @param PHP_CodeCoverage_Filter $filter - */ - public function __construct(PHP_CodeCoverage_Driver $driver = NULL, PHP_CodeCoverage_Filter $filter = NULL) - { - if ($driver === NULL) { - $driver = new PHP_CodeCoverage_Driver_Xdebug; - } - - if ($filter === NULL) { - $filter = new PHP_CodeCoverage_Filter; - } - - $this->driver = $driver; - $this->filter = $filter; - } - - /** - * Returns the PHP_CodeCoverage_Report_Node_* object graph - * for this PHP_CodeCoverage object. - * - * @return PHP_CodeCoverage_Report_Node_Directory - * @since Method available since Release 1.1.0 - */ - public function getReport() - { - $factory = new PHP_CodeCoverage_Report_Factory; - - return $factory->create($this); - } - - /** - * Clears collected code coverage data. - */ - public function clear() - { - $this->currentId = NULL; - $this->data = array(); - $this->tests = array(); - } - - /** - * Returns the PHP_CodeCoverage_Filter used. - * - * @return PHP_CodeCoverage_Filter - */ - public function filter() - { - return $this->filter; - } - - /** - * Returns the collected code coverage data. - * - * @return array - * @since Method available since Release 1.1.0 - */ - public function getData() - { - if ($this->addUncoveredFilesFromWhitelist) { - $this->addUncoveredFilesFromWhitelist(); - } - - // We need to apply the blacklist filter a second time - // when no whitelist is used. - if (!$this->filter->hasWhitelist()) { - $this->applyListsFilter($this->data); - } - - return $this->data; - } - - /** - * Returns the test data. - * - * @return array - * @since Method available since Release 1.1.0 - */ - public function getTests() - { - return $this->tests; - } - - /** - * Start collection of code coverage information. - * - * @param mixed $id - * @param boolean $clear - * @throws PHP_CodeCoverage_Exception - */ - public function start($id, $clear = FALSE) - { - if (!is_bool($clear)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - if ($clear) { - $this->clear(); - } - - $this->currentId = $id; - - $this->driver->start(); - } - - /** - * Stop collection of code coverage information. - * - * @param boolean $append - * @return array - * @throws PHP_CodeCoverage_Exception - */ - public function stop($append = TRUE) - { - if (!is_bool($append)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $data = $this->driver->stop(); - $this->append($data, NULL, $append); - - $this->currentId = NULL; - - return $data; - } - - /** - * Appends code coverage data. - * - * @param array $data - * @param mixed $id - * @param boolean $append - */ - public function append(array $data, $id = NULL, $append = TRUE) - { - if ($id === NULL) { - $id = $this->currentId; - } - - if ($id === NULL) { - throw new PHP_CodeCoverage_Exception; - } - - $this->applyListsFilter($data); - $this->initializeFilesThatAreSeenTheFirstTime($data); - - if (!$append) { - return; - } - - if ($id != 'UNCOVERED_FILES_FROM_WHITELIST') { - $this->applyCoversAnnotationFilter($data, $id); - } - - if (empty($data)) { - return; - } - - $status = NULL; - - if ($id instanceof PHPUnit_Framework_TestCase) { - $status = $id->getStatus(); - $id = get_class($id) . '::' . $id->getName(); - } - - else if ($id instanceof PHPUnit_Extensions_PhptTestCase) { - $id = $id->getName(); - } - - $this->tests[$id] = $status; - - foreach ($data as $file => $lines) { - if (!$this->filter->isFile($file)) { - continue; - } - - foreach ($lines as $k => $v) { - if ($v == 1) { - $this->data[$file][$k][] = $id; - } - } - } - } - - /** - * Merges the data from another instance of PHP_CodeCoverage. - * - * @param PHP_CodeCoverage $that - */ - public function merge(PHP_CodeCoverage $that) - { - foreach ($that->data as $file => $lines) { - if (!isset($this->data[$file])) { - if (!$this->filter->isFiltered($file)) { - $this->data[$file] = $lines; - } - - continue; - } - - foreach ($lines as $line => $data) { - if ($data !== NULL) { - if (!isset($this->data[$file][$line])) { - $this->data[$file][$line] = $data; - } else { - $this->data[$file][$line] = array_unique( - array_merge($this->data[$file][$line], $data) - ); - } - } - } - } - - $this->tests = array_merge($this->tests, $that->getTests()); - } - - /** - * @param boolean $flag - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 1.1.0 - */ - public function setCacheTokens($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $this->cacheTokens = $flag; - } - - /** - * @param boolean $flag - * @since Method available since Release 1.1.0 - */ - public function getCacheTokens() - { - return $this->cacheTokens; - } - - /** - * @param boolean $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setForceCoversAnnotation($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $this->forceCoversAnnotation = $flag; - } - - /** - * @param boolean $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setMapTestClassNameToCoveredClassName($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $this->mapTestClassNameToCoveredClassName = $flag; - } - - /** - * @param boolean $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setAddUncoveredFilesFromWhitelist($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $this->addUncoveredFilesFromWhitelist = $flag; - } - - /** - * @param boolean $flag - * @throws PHP_CodeCoverage_Exception - */ - public function setProcessUncoveredFilesFromWhitelist($flag) - { - if (!is_bool($flag)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - $this->processUncoveredFilesFromWhitelist = $flag; - } - - /** - * Applies the @covers annotation filtering. - * - * @param array $data - * @param mixed $id - */ - protected function applyCoversAnnotationFilter(&$data, $id) - { - if ($id instanceof PHPUnit_Framework_TestCase) { - $testClassName = get_class($id); - $linesToBeCovered = $this->getLinesToBeCovered( - $testClassName, $id->getName() - ); - - if ($this->mapTestClassNameToCoveredClassName && - empty($linesToBeCovered)) { - $testedClass = substr($testClassName, 0, -4); - - if (class_exists($testedClass)) { - $class = new ReflectionClass($testedClass); - - $linesToBeCovered = array( - $class->getFileName() => range( - $class->getStartLine(), $class->getEndLine() - ) - ); - } - } - } else { - $linesToBeCovered = array(); - } - - if (!empty($linesToBeCovered)) { - $data = array_intersect_key($data, $linesToBeCovered); - - foreach (array_keys($data) as $filename) { - $data[$filename] = array_intersect_key( - $data[$filename], array_flip($linesToBeCovered[$filename]) - ); - } - } - - else if ($this->forceCoversAnnotation) { - $data = array(); - } - } - - /** - * Applies the blacklist/whitelist filtering. - * - * @param array $data - */ - protected function applyListsFilter(&$data) - { - foreach (array_keys($data) as $filename) { - if ($this->filter->isFiltered($filename)) { - unset($data[$filename]); - } - } - } - - /** - * @since Method available since Release 1.1.0 - */ - protected function initializeFilesThatAreSeenTheFirstTime($data) - { - foreach ($data as $file => $lines) { - if ($this->filter->isFile($file) && !isset($this->data[$file])) { - $this->data[$file] = array(); - - foreach ($lines as $k => $v) { - $this->data[$file][$k] = $v == -2 ? NULL : array(); - } - } - } - } - - /** - * Processes whitelisted files that are not covered. - */ - protected function addUncoveredFilesFromWhitelist() - { - $data = array(); - $uncoveredFiles = array_diff( - $this->filter->getWhitelist(), array_keys($this->data) - ); - - foreach ($uncoveredFiles as $uncoveredFile) { - if (!file_exists($uncoveredFile)) { - continue; - } - - if ($this->processUncoveredFilesFromWhitelist) { - $this->processUncoveredFileFromWhitelist( - $uncoveredFile, $data, $uncoveredFiles - ); - } else { - $data[$uncoveredFile] = array(); - - $lines = count(file($uncoveredFile)); - - for ($i = 1; $i <= $lines; $i++) { - $data[$uncoveredFile][$i] = -1; - } - } - } - - $this->append($data, 'UNCOVERED_FILES_FROM_WHITELIST'); - } - - /** - * @param string $uncoveredFile - * @param array $data - * @param array $uncoveredFiles - */ - protected function processUncoveredFileFromWhitelist($uncoveredFile, array &$data, array $uncoveredFiles) - { - $this->driver->start(); - include_once $uncoveredFile; - $coverage = $this->driver->stop(); - - foreach ($coverage as $file => $fileCoverage) { - if (!isset($data[$file]) && - in_array($file, $uncoveredFiles)) { - foreach (array_keys($fileCoverage) as $key) { - if ($fileCoverage[$key] == 1) { - $fileCoverage[$key] = -1; - } - } - - $data[$file] = $fileCoverage; - } - } - } - - /** - * Returns the files and lines a test method wants to cover. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 1.2.0 - */ - protected function getLinesToBeCovered($className, $methodName) - { - $codeToCoverList = array(); - $result = array(); - - // @codeCoverageIgnoreStart - if (($pos = strpos($methodName, ' ')) !== FALSE) { - $methodName = substr($methodName, 0, $pos); - } - // @codeCoverageIgnoreEnd - - $class = new ReflectionClass($className); - - try { - $method = new ReflectionMethod($className, $methodName); - } - - catch (ReflectionException $e) { - return array(); - } - - $docComment = substr($class->getDocComment(), 3, -2) . PHP_EOL . substr($method->getDocComment(), 3, -2); - - $templateMethods = array( - 'setUp', 'assertPreConditions', 'assertPostConditions', 'tearDown' - ); - - foreach ($templateMethods as $templateMethod) { - if ($class->hasMethod($templateMethod)) { - $reflector = $class->getMethod($templateMethod); - $docComment .= PHP_EOL . substr($reflector->getDocComment(), 3, -2); - unset($reflector); - } - } - - if (strpos($docComment, '@coversNothing') !== FALSE) { - return $result; - } - - $classShortcut = preg_match_all( - '(@coversDefaultClass\s+(?P.*?)\s*$)m', - $class->getDocComment(), - $matches - ); - - if ($classShortcut) { - if ($classShortcut > 1) { - throw new PHP_CodeCoverage_Exception( - sprintf( - 'More than one @coversClass annotation in class or interface "%s".', - $className - ) - ); - } - - $classShortcut = $matches['coveredClass'][0]; - } - - $match = preg_match_all( - '(@covers\s+(?P.*?)\s*(\(\s*\))?\s*$)m', - $docComment, - $matches - ); - - if ($match) { - foreach ($matches['coveredElement'] as $coveredElement) { - if ($classShortcut && strncmp($coveredElement, '::', 2) === 0) { - $coveredElement = $classShortcut . $coveredElement; - } - - $codeToCoverList = array_merge( - $codeToCoverList, - $this->resolveCoversToReflectionObjects($coveredElement) - ); - } - - foreach ($codeToCoverList as $codeToCover) { - $fileName = $codeToCover->getFileName(); - - if (!isset($result[$fileName])) { - $result[$fileName] = array(); - } - - $result[$fileName] = array_unique( - array_merge( - $result[$fileName], - range( - $codeToCover->getStartLine(), $codeToCover->getEndLine() - ) - ) - ); - } - } - - return $result; - } - - /** - * @param string $coveredElement - * @return array - * @since Method available since Release 1.2.0 - */ - protected function resolveCoversToReflectionObjects($coveredElement) - { - $codeToCoverList = array(); - - if (strpos($coveredElement, '::') !== FALSE) { - list($className, $methodName) = explode('::', $coveredElement); - - if (isset($methodName[0]) && $methodName[0] == '<') { - $classes = array($className); - - foreach ($classes as $className) { - if (!class_exists($className) && - !interface_exists($className)) { - throw new PHP_CodeCoverage_Exception( - sprintf( - 'Trying to @cover not existing class or ' . - 'interface "%s".', - $className - ) - ); - } - - $class = new ReflectionClass($className); - $methods = $class->getMethods(); - $inverse = isset($methodName[1]) && $methodName[1] == '!'; - - if (strpos($methodName, 'protected')) { - $visibility = 'isProtected'; - } - - else if (strpos($methodName, 'private')) { - $visibility = 'isPrivate'; - } - - else if (strpos($methodName, 'public')) { - $visibility = 'isPublic'; - } - - foreach ($methods as $method) { - if ($inverse && !$method->$visibility()) { - $codeToCoverList[] = $method; - } - - else if (!$inverse && $method->$visibility()) { - $codeToCoverList[] = $method; - } - } - } - } else { - $classes = array($className); - - foreach ($classes as $className) { - if ($className == '' && function_exists($methodName)) { - $codeToCoverList[] = new ReflectionFunction( - $methodName - ); - } else { - if (!((class_exists($className) || - interface_exists($className) || - trait_exists($className)) && - method_exists($className, $methodName))) { - throw new PHP_CodeCoverage_Exception( - sprintf( - 'Trying to @cover not existing method "%s::%s".', - $className, - $methodName - ) - ); - } - - $codeToCoverList[] = new ReflectionMethod( - $className, $methodName - ); - } - } - } - } else { - $extended = FALSE; - - if (strpos($coveredElement, '') !== FALSE) { - $coveredElement = str_replace( - '', '', $coveredElement - ); - - $extended = TRUE; - } - - $classes = array($coveredElement); - - if ($extended) { - $classes = array_merge( - $classes, - class_implements($coveredElement), - class_parents($coveredElement) - ); - } - - foreach ($classes as $className) { - if (!class_exists($className) && - !interface_exists($className) && - !trait_exists($className)) { - throw new PHP_CodeCoverage_Exception( - sprintf( - 'Trying to @cover not existing class or ' . - 'interface "%s".', - $className - ) - ); - } - - $codeToCoverList[] = new ReflectionClass($className); - } - } - - return $codeToCoverList; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php deleted file mode 100644 index 7bfa231f..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php +++ /dev/null @@ -1,90 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/Token/Stream/Autoload.php'; -require_once 'Text/Template/Autoload.php'; - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'php_codecoverage' => '/CodeCoverage.php', - 'php_codecoverage_driver' => '/CodeCoverage/Driver.php', - 'php_codecoverage_driver_xdebug' => '/CodeCoverage/Driver/Xdebug.php', - 'php_codecoverage_exception' => '/CodeCoverage/Exception.php', - 'php_codecoverage_filter' => '/CodeCoverage/Filter.php', - 'php_codecoverage_report_clover' => '/CodeCoverage/Report/Clover.php', - 'php_codecoverage_report_factory' => '/CodeCoverage/Report/Factory.php', - 'php_codecoverage_report_html' => '/CodeCoverage/Report/HTML.php', - 'php_codecoverage_report_html_renderer' => '/CodeCoverage/Report/HTML/Renderer.php', - 'php_codecoverage_report_html_renderer_dashboard' => '/CodeCoverage/Report/HTML/Renderer/Dashboard.php', - 'php_codecoverage_report_html_renderer_directory' => '/CodeCoverage/Report/HTML/Renderer/Directory.php', - 'php_codecoverage_report_html_renderer_file' => '/CodeCoverage/Report/HTML/Renderer/File.php', - 'php_codecoverage_report_node' => '/CodeCoverage/Report/Node.php', - 'php_codecoverage_report_node_directory' => '/CodeCoverage/Report/Node/Directory.php', - 'php_codecoverage_report_node_file' => '/CodeCoverage/Report/Node/File.php', - 'php_codecoverage_report_node_iterator' => '/CodeCoverage/Report/Node/Iterator.php', - 'php_codecoverage_report_php' => '/CodeCoverage/Report/PHP.php', - 'php_codecoverage_report_text' => '/CodeCoverage/Report/Text.php', - 'php_codecoverage_util' => '/CodeCoverage/Util.php', - 'php_codecoverage_util_invalidargumenthelper' => '/CodeCoverage/Util/InvalidArgumentHelper.php', - 'php_codecoverage_version' => '/CodeCoverage/Version.php' - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php.in b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php.in deleted file mode 100644 index dc34395e..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Autoload.php.in +++ /dev/null @@ -1,70 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/Token/Stream/Autoload.php'; -require_once 'Text/Template/Autoload.php'; - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver.php deleted file mode 100644 index 0ccdad71..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver.php +++ /dev/null @@ -1,70 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Interface for code coverage drivers. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -interface PHP_CodeCoverage_Driver -{ - /** - * Start collection of code coverage information. - */ - public function start(); - - /** - * Stop collection of code coverage information. - * - * @return array - */ - public function stop(); -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver/Xdebug.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver/Xdebug.php deleted file mode 100644 index a2704f84..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Driver/Xdebug.php +++ /dev/null @@ -1,97 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Driver for Xdebug's code coverage functionality. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - * @codeCoverageIgnore - */ -class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver -{ - /** - * Constructor. - */ - public function __construct() - { - if (!extension_loaded('xdebug')) { - throw new PHP_CodeCoverage_Exception('Xdebug is not loaded.'); - } - - if (version_compare(phpversion('xdebug'), '2.2.0-dev', '>=') && - !ini_get('xdebug.coverage_enable')) { - throw new PHP_CodeCoverage_Exception( - 'You need to set xdebug.coverage_enable=On in your php.ini.' - ); - } - } - - /** - * Start collection of code coverage information. - */ - public function start() - { - xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); - } - - /** - * Stop collection of code coverage information. - * - * @return array - */ - public function stop() - { - $codeCoverage = xdebug_get_code_coverage(); - xdebug_stop_code_coverage(); - - return $codeCoverage; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Exception.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Exception.php deleted file mode 100644 index 18cd14d2..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Exception.php +++ /dev/null @@ -1,59 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Eyception class for PHP_CodeCoverage component. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Exception extends RuntimeException -{ -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Filter.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Filter.php deleted file mode 100644 index d98f6a84..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Filter.php +++ /dev/null @@ -1,343 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Filter for blacklisting and whitelisting of code coverage information. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Filter -{ - /** - * Source files that are blacklisted. - * - * @var array - */ - protected $blacklistedFiles = array(); - - /** - * Source files that are whitelisted. - * - * @var array - */ - protected $whitelistedFiles = array(); - - /** - * @var boolean - */ - protected $blacklistPrefilled = FALSE; - - /** - * Adds a directory to the blacklist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function addDirectoryToBlacklist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - $directory, $suffix, $prefix - ); - - foreach ($files as $file) { - $this->addFileToBlacklist($file); - } - } - - /** - * Adds a file to the blacklist. - * - * @param string $filename - */ - public function addFileToBlacklist($filename) - { - $this->blacklistedFiles[realpath($filename)] = TRUE; - } - - /** - * Adds files to the blacklist. - * - * @param array $files - */ - public function addFilesToBlacklist(array $files) - { - foreach ($files as $file) { - $this->addFileToBlacklist($file); - } - } - - /** - * Removes a directory from the blacklist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function removeDirectoryFromBlacklist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - $directory, $suffix, $prefix - ); - - foreach ($files as $file) { - $this->removeFileFromBlacklist($file); - } - } - - /** - * Removes a file from the blacklist. - * - * @param string $filename - */ - public function removeFileFromBlacklist($filename) - { - $filename = realpath($filename); - - if (isset($this->blacklistedFiles[$filename])) { - unset($this->blacklistedFiles[$filename]); - } - } - - /** - * Adds a directory to the whitelist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function addDirectoryToWhitelist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - $directory, $suffix, $prefix - ); - - foreach ($files as $file) { - $this->addFileToWhitelist($file); - } - } - - /** - * Adds a file to the whitelist. - * - * @param string $filename - */ - public function addFileToWhitelist($filename) - { - $this->whitelistedFiles[realpath($filename)] = TRUE; - } - - /** - * Adds files to the whitelist. - * - * @param array $files - */ - public function addFilesToWhitelist(array $files) - { - foreach ($files as $file) { - $this->addFileToWhitelist($file); - } - } - - /** - * Removes a directory from the whitelist (recursively). - * - * @param string $directory - * @param string $suffix - * @param string $prefix - */ - public function removeDirectoryFromWhitelist($directory, $suffix = '.php', $prefix = '') - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - $directory, $suffix, $prefix - ); - - foreach ($files as $file) { - $this->removeFileFromWhitelist($file); - } - } - - /** - * Removes a file from the whitelist. - * - * @param string $filename - */ - public function removeFileFromWhitelist($filename) - { - $filename = realpath($filename); - - if (isset($this->whitelistedFiles[$filename])) { - unset($this->whitelistedFiles[$filename]); - } - } - - /** - * Checks whether a filename is a real filename. - * - * @param string $filename - */ - public function isFile($filename) - { - if ($filename == '-' || - strpos($filename, 'eval()\'d code') !== FALSE || - strpos($filename, 'runtime-created function') !== FALSE || - strpos($filename, 'runkit created function') !== FALSE || - strpos($filename, 'assert code') !== FALSE || - strpos($filename, 'regexp code') !== FALSE) { - return FALSE; - } - - return TRUE; - } - - /** - * Checks whether or not a file is filtered. - * - * When the whitelist is empty (default), blacklisting is used. - * When the whitelist is not empty, whitelisting is used. - * - * @param string $filename - * @param boolean $ignoreWhitelist - * @return boolean - * @throws PHP_CodeCoverage_Exception - */ - public function isFiltered($filename) - { - $filename = realpath($filename); - - if (!empty($this->whitelistedFiles)) { - return !isset($this->whitelistedFiles[$filename]); - } - - if (!$this->blacklistPrefilled) { - $this->prefillBlacklist(); - } - - return isset($this->blacklistedFiles[$filename]); - } - - /** - * Returns the list of blacklisted files. - * - * @return array - */ - public function getBlacklist() - { - return array_keys($this->blacklistedFiles); - } - - /** - * Returns the list of whitelisted files. - * - * @return array - */ - public function getWhitelist() - { - return array_keys($this->whitelistedFiles); - } - - /** - * Returns whether this filter has a whitelist. - * - * @return boolean - * @since Method available since Release 1.1.0 - */ - public function hasWhitelist() - { - return !empty($this->whitelistedFiles); - } - - /** - * @since Method available since Release 1.2.3 - */ - protected function prefillBlacklist() - { - $this->addDirectoryContainingClassToBlacklist('File_Iterator'); - $this->addDirectoryContainingClassToBlacklist('PHP_CodeCoverage'); - $this->addDirectoryContainingClassToBlacklist('PHP_Invoker'); - $this->addDirectoryContainingClassToBlacklist('PHP_Timer'); - $this->addDirectoryContainingClassToBlacklist('PHP_Token'); - $this->addDirectoryContainingClassToBlacklist('PHPUnit_Framework_TestCase', 2); - $this->addDirectoryContainingClassToBlacklist('PHPUnit_Extensions_Database_TestCase', 2); - $this->addDirectoryContainingClassToBlacklist('PHPUnit_Framework_MockObject_Generator', 2); - $this->addDirectoryContainingClassToBlacklist('PHPUnit_Extensions_SeleniumTestCase', 2); - $this->addDirectoryContainingClassToBlacklist('PHPUnit_Extensions_Story_TestCase', 2); - $this->addDirectoryContainingClassToBlacklist('Text_Template'); - $this->addDirectoryContainingClassToBlacklist('Symfony\Component\Yaml\Yaml'); - - $this->blacklistPrefilled = TRUE; - } - - /** - * @param string $className - * @param integer $parent - * @since Method available since Release 1.2.3 - */ - protected function addDirectoryContainingClassToBlacklist($className, $parent = 1) - { - if (!class_exists($className)) { - return; - } - - $reflector = new ReflectionClass($className); - $directory = $reflector->getFileName(); - - for ($i = 0; $i < $parent; $i++) { - $directory = dirname($directory); - } - - $this->addDirectoryToBlacklist($directory); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Clover.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Clover.php deleted file mode 100644 index 050c622e..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Clover.php +++ /dev/null @@ -1,346 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Generates a Clover XML logfile from an PHP_CodeCoverage object. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Report_Clover -{ - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - * @param string $name - * @return string - */ - public function process(PHP_CodeCoverage $coverage, $target = NULL, $name = NULL) - { - $xmlDocument = new DOMDocument('1.0', 'UTF-8'); - $xmlDocument->formatOutput = TRUE; - - $xmlCoverage = $xmlDocument->createElement('coverage'); - $xmlCoverage->setAttribute('generated', (int)$_SERVER['REQUEST_TIME']); - $xmlDocument->appendChild($xmlCoverage); - - $xmlProject = $xmlDocument->createElement('project'); - $xmlProject->setAttribute('timestamp', (int)$_SERVER['REQUEST_TIME']); - - if (is_string($name)) { - $xmlProject->setAttribute('name', $name); - } - - $xmlCoverage->appendChild($xmlProject); - - $packages = array(); - $report = $coverage->getReport(); - unset($coverage); - - foreach ($report as $item) { - $namespace = 'global'; - - if (!$item instanceof PHP_CodeCoverage_Report_Node_File) { - continue; - } - - $xmlFile = $xmlDocument->createElement('file'); - $xmlFile->setAttribute('name', $item->getPath()); - - $classes = $item->getClassesAndTraits(); - $coverage = $item->getCoverageData(); - $lines = array(); - $ignoredLines = $item->getIgnoredLines(); - - foreach ($classes as $className => $class) { - $classStatements = 0; - $coveredClassStatements = 0; - $coveredMethods = 0; - - foreach ($class['methods'] as $methodName => $method) { - $methodCount = 0; - $methodLines = 0; - $methodLinesCovered = 0; - - for ($i = $method['startLine']; - $i <= $method['endLine']; - $i++) { - if (isset($ignoredLines[$i])) { - continue; - } - - $add = TRUE; - $count = 0; - - if (isset($coverage[$i])) { - if ($coverage[$i] !== NULL) { - $classStatements++; - $methodLines++; - } else { - $add = FALSE; - } - - $count = count($coverage[$i]); - - if ($count > 0) { - $coveredClassStatements++; - $methodLinesCovered++; - } - } else { - $add = FALSE; - } - - $methodCount = max($methodCount, $count); - - if ($add) { - $lines[$i] = array( - 'count' => $count, 'type' => 'stmt' - ); - } - } - - if ($methodCount > 0) { - $coveredMethods++; - } - - $lines[$method['startLine']] = array( - 'count' => $methodCount, - 'crap' => $method['crap'], - 'type' => 'method', - 'name' => $methodName - ); - } - - if (!empty($class['package']['namespace'])) { - $namespace = $class['package']['namespace']; - } - - $xmlClass = $xmlDocument->createElement('class'); - $xmlClass->setAttribute('name', $className); - $xmlClass->setAttribute('namespace', $namespace); - - if (!empty($class['package']['fullPackage'])) { - $xmlClass->setAttribute( - 'fullPackage', $class['package']['fullPackage'] - ); - } - - if (!empty($class['package']['category'])) { - $xmlClass->setAttribute( - 'category', $class['package']['category'] - ); - } - - if (!empty($class['package']['package'])) { - $xmlClass->setAttribute( - 'package', $class['package']['package'] - ); - } - - if (!empty($class['package']['subpackage'])) { - $xmlClass->setAttribute( - 'subpackage', $class['package']['subpackage'] - ); - } - - $xmlFile->appendChild($xmlClass); - - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('methods', count($class['methods'])); - $xmlMetrics->setAttribute('coveredmethods', $coveredMethods); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute('statements', $classStatements); - $xmlMetrics->setAttribute( - 'coveredstatements', $coveredClassStatements - ); - $xmlMetrics->setAttribute( - 'elements', - count($class['methods']) + - $classStatements - /* + conditionals */); - $xmlMetrics->setAttribute( - 'coveredelements', - $coveredMethods + - $coveredClassStatements - /* + coveredconditionals */ - ); - $xmlClass->appendChild($xmlMetrics); - } - - foreach ($coverage as $line => $data) { - if ($data === NULL || - isset($lines[$line]) || - isset($ignoredLines[$line])) { - continue; - } - - $lines[$line] = array( - 'count' => count($data), 'type' => 'stmt' - ); - } - - ksort($lines); - - foreach ($lines as $line => $data) { - if (isset($ignoredLines[$line])) { - continue; - } - - $xmlLine = $xmlDocument->createElement('line'); - $xmlLine->setAttribute('num', $line); - $xmlLine->setAttribute('type', $data['type']); - - if (isset($data['name'])) { - $xmlLine->setAttribute('name', $data['name']); - } - - if (isset($data['crap'])) { - $xmlLine->setAttribute('crap', $data['crap']); - } - - $xmlLine->setAttribute('count', $data['count']); - $xmlFile->appendChild($xmlLine); - } - - $linesOfCode = $item->getLinesOfCode(); - - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('loc', $linesOfCode['loc']); - $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']); - $xmlMetrics->setAttribute('classes', $item->getNumClassesAndTraits()); - $xmlMetrics->setAttribute('methods', $item->getNumMethods()); - $xmlMetrics->setAttribute( - 'coveredmethods', $item->getNumTestedMethods() - ); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute( - 'statements', $item->getNumExecutableLines() - ); - $xmlMetrics->setAttribute( - 'coveredstatements', $item->getNumExecutedLines() - ); - $xmlMetrics->setAttribute( - 'elements', - $item->getNumMethods() + - $item->getNumExecutableLines() - /* + conditionals */ - ); - $xmlMetrics->setAttribute( - 'coveredelements', - $item->getNumTestedMethods() + - $item->getNumExecutedLines() - /* + coveredconditionals */ - ); - $xmlFile->appendChild($xmlMetrics); - - if ($namespace == 'global') { - $xmlProject->appendChild($xmlFile); - } else { - if (!isset($packages[$namespace])) { - $packages[$namespace] = $xmlDocument->createElement( - 'package' - ); - - $packages[$namespace]->setAttribute('name', $namespace); - $xmlProject->appendChild($packages[$namespace]); - } - - $packages[$namespace]->appendChild($xmlFile); - } - } - - $linesOfCode = $report->getLinesOfCode(); - - $xmlMetrics = $xmlDocument->createElement('metrics'); - $xmlMetrics->setAttribute('files', count($report)); - $xmlMetrics->setAttribute('loc', $linesOfCode['loc']); - $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']); - $xmlMetrics->setAttribute( - 'classes', $report->getNumClassesAndTraits() - ); - $xmlMetrics->setAttribute('methods', $report->getNumMethods()); - $xmlMetrics->setAttribute( - 'coveredmethods', $report->getNumTestedMethods() - ); - $xmlMetrics->setAttribute('conditionals', 0); - $xmlMetrics->setAttribute('coveredconditionals', 0); - $xmlMetrics->setAttribute( - 'statements', $report->getNumExecutableLines() - ); - $xmlMetrics->setAttribute( - 'coveredstatements', $report->getNumExecutedLines() - ); - $xmlMetrics->setAttribute( - 'elements', - $report->getNumMethods() + - $report->getNumExecutableLines() - /* + conditionals */ - ); - $xmlMetrics->setAttribute( - 'coveredelements', - $report->getNumTestedMethods() + - $report->getNumExecutedLines() - /* + coveredconditionals */ - ); - $xmlProject->appendChild($xmlMetrics); - - if ($target !== NULL) { - if (!is_dir(dirname($target))) { - mkdir(dirname($target), 0777, TRUE); - } - - return $xmlDocument->save($target); - } else { - return $xmlDocument->saveXML(); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php deleted file mode 100644 index e69c457b..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Factory.php +++ /dev/null @@ -1,280 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Factory for PHP_CodeCoverage_Report_Node_* object graphs. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Factory -{ - /** - * @param PHP_CodeCoverage $coverage - */ - public function create(PHP_CodeCoverage $coverage) - { - $files = $coverage->getData(); - $commonPath = $this->reducePaths($files); - $root = new PHP_CodeCoverage_Report_Node_Directory( - $commonPath, NULL - ); - - $this->addItems( - $root, - $this->buildDirectoryStructure($files), - $coverage->getTests(), - $coverage->getCacheTokens() - ); - - return $root; - } - - /** - * @param PHP_CodeCoverage_Report_Node_Directory $root - * @param array $items - * @param array $tests - * @param boolean $cacheTokens - */ - protected function addItems(PHP_CodeCoverage_Report_Node_Directory $root, array $items, array $tests, $cacheTokens) - { - foreach ($items as $key => $value) { - if (substr($key, -2) == '/f') { - $key = substr($key, 0, -2); - - if (file_exists($root->getPath() . DIRECTORY_SEPARATOR . $key)) { - $root->addFile($key, $value, $tests, $cacheTokens); - } - } else { - $child = $root->addDirectory($key); - $this->addItems($child, $value, $tests, $cacheTokens); - } - } - } - - /** - * Builds an array representation of the directory structure. - * - * For instance, - * - * - * Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * is transformed into - * - * - * Array - * ( - * [.] => Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * ) - * - * - * @param array $files - * @return array - */ - protected function buildDirectoryStructure($files) - { - $result = array(); - - foreach ($files as $path => $file) { - $path = explode('/', $path); - $pointer = &$result; - $max = count($path); - - for ($i = 0; $i < $max; $i++) { - if ($i == ($max - 1)) { - $type = '/f'; - } else { - $type = ''; - } - - $pointer = &$pointer[$path[$i] . $type]; - } - - $pointer = $file; - } - - return $result; - } - - /** - * Reduces the paths by cutting the longest common start path. - * - * For instance, - * - * - * Array - * ( - * [/home/sb/Money/Money.php] => Array - * ( - * ... - * ) - * - * [/home/sb/Money/MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * is reduced to - * - * - * Array - * ( - * [Money.php] => Array - * ( - * ... - * ) - * - * [MoneyBag.php] => Array - * ( - * ... - * ) - * ) - * - * - * @param array $files - * @return string - */ - protected function reducePaths(&$files) - { - if (empty($files)) { - return '.'; - } - - $commonPath = ''; - $paths = array_keys($files); - - if (count($files) == 1) { - $commonPath = dirname($paths[0]) . '/'; - $files[basename($paths[0])] = $files[$paths[0]]; - - unset($files[$paths[0]]); - - return $commonPath; - } - - $max = count($paths); - - for ($i = 0; $i < $max; $i++) { - // strip phar:// prefixes - if (strpos($paths[$i], 'phar://') === 0) { - $paths[$i] = substr($paths[$i], 7); - } - $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]); - - if (empty($paths[$i][0])) { - $paths[$i][0] = DIRECTORY_SEPARATOR; - } - } - - $done = FALSE; - $max = count($paths); - - while (!$done) { - for ($i = 0; $i < $max - 1; $i++) { - if (!isset($paths[$i][0]) || - !isset($paths[$i+1][0]) || - $paths[$i][0] != $paths[$i+1][0]) { - $done = TRUE; - break; - } - } - - if (!$done) { - $commonPath .= $paths[0][0]; - - if ($paths[0][0] != DIRECTORY_SEPARATOR) { - $commonPath .= DIRECTORY_SEPARATOR; - } - - for ($i = 0; $i < $max; $i++) { - array_shift($paths[$i]); - } - } - } - - $original = array_keys($files); - $max = count($original); - - for ($i = 0; $i < $max; $i++) { - $files[join('/', $paths[$i])] = $files[$original[$i]]; - unset($files[$original[$i]]); - } - - ksort($files); - - return substr($commonPath, 0, -1); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php deleted file mode 100644 index 5db8731e..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php +++ /dev/null @@ -1,221 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Generates an HTML report from an PHP_CodeCoverage object. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Report_HTML -{ - /** - * @var string - */ - protected $templatePath; - - /** - * @var string - */ - protected $charset; - - /** - * @var string - */ - protected $generator; - - /** - * @var integer - */ - protected $lowUpperBound; - - /** - * @var integer - */ - protected $highLowerBound; - - /** - * @var boolean - */ - protected $highlight; - - /** - * Constructor. - * - * @param array $options - */ - public function __construct($charset = 'UTF-8', $highlight = FALSE, $lowUpperBound = 35, $highLowerBound = 70, $generator = '') - { - $this->charset = $charset; - $this->generator = $generator; - $this->highLowerBound = $highLowerBound; - $this->highlight = $highlight; - $this->lowUpperBound = $lowUpperBound; - - $this->templatePath = sprintf( - '%s%sHTML%sRenderer%sTemplate%s', - - dirname(__FILE__), - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR - ); - } - - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - */ - public function process(PHP_CodeCoverage $coverage, $target) - { - $target = $this->getDirectory($target); - $report = $coverage->getReport(); - unset($coverage); - - if (!isset($_SERVER['REQUEST_TIME'])) { - $_SERVER['REQUEST_TIME'] = time(); - } - - $date = date('D M j G:i:s T Y', $_SERVER['REQUEST_TIME']); - - $dashboard = new PHP_CodeCoverage_Report_HTML_Renderer_Dashboard( - $this->templatePath, - $this->charset, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound - ); - - $directory = new PHP_CodeCoverage_Report_HTML_Renderer_Directory( - $this->templatePath, - $this->charset, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound - ); - - $file = new PHP_CodeCoverage_Report_HTML_Renderer_File( - $this->templatePath, - $this->charset, - $this->generator, - $date, - $this->lowUpperBound, - $this->highLowerBound, - $this->highlight - ); - - $dashboard->render($report, $target . 'index.dashboard.html'); - $directory->render($report, $target . 'index.html'); - - foreach ($report as $node) { - $id = $node->getId(); - - if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) { - $dashboard->render($node, $target . $id . '.dashboard.html'); - $directory->render($node, $target . $id . '.html'); - } else { - $file->render($node, $target . $id . '.html'); - } - } - - $this->copyFiles($target); - } - - /** - * @param string $target - */ - protected function copyFiles($target) - { - $dir = $this->getDirectory($target . 'css'); - copy($this->templatePath . 'css/bootstrap.min.css', $dir . 'bootstrap.min.css'); - copy($this->templatePath . 'css/bootstrap-responsive.min.css', $dir . 'bootstrap-responsive.min.css'); - copy($this->templatePath . 'css/style.css', $dir . 'style.css'); - - $dir = $this->getDirectory($target . 'js'); - copy($this->templatePath . 'js/bootstrap.min.js', $dir . 'bootstrap.min.js'); - copy($this->templatePath . 'js/highcharts.js', $dir . 'highcharts.js'); - copy($this->templatePath . 'js/jquery.min.js', $dir . 'jquery.min.js'); - - $dir = $this->getDirectory($target . 'img'); - copy($this->templatePath . 'img/glyphicons-halflings.png', $dir . 'glyphicons-halflings.png'); - copy($this->templatePath . 'img/glyphicons-halflings-white.png', $dir . 'glyphicons-halflings-white.png'); - } - - /** - * @param string $directory - * @return string - * @throws PHP_CodeCoverage_Exception - * @since Method available since Release 1.2.0 - */ - protected function getDirectory($directory) - { - if (substr($directory, -1, 1) != DIRECTORY_SEPARATOR) { - $directory .= DIRECTORY_SEPARATOR; - } - - if (is_dir($directory)) { - return $directory; - } - - if (mkdir($directory, 0777, TRUE)) { - return $directory; - } - - throw new PHP_CodeCoverage_Exception( - sprintf( - 'Directory "%s" does not exist.', - $directory - ) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer.php deleted file mode 100644 index b0c84bca..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer.php +++ /dev/null @@ -1,269 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Base class for PHP_CodeCoverage_Report_Node renderers. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -abstract class PHP_CodeCoverage_Report_HTML_Renderer -{ - /** - * @var string - */ - protected $templatePath; - - /** - * @var string - */ - protected $charset; - - /** - * @var string - */ - protected $generator; - - /** - * @var string - */ - protected $date; - - /** - * @var integer - */ - protected $lowUpperBound; - - /** - * @var integer - */ - protected $highLowerBound; - - /** - * Constructor. - * - * @param string $templatePath - * @param string $charset - * @param string $generator - * @param string $date - * @param integer $lowUpperBound - * @param integer $highLowerBound - */ - public function __construct($templatePath, $charset, $generator, $date, $lowUpperBound, $highLowerBound) - { - $this->templatePath = $templatePath; - $this->charset = $charset; - $this->generator = $generator; - $this->date = $date; - $this->lowUpperBound = $lowUpperBound; - $this->highLowerBound = $highLowerBound; - } - - /** - * @param Text_Template $template - * @param array $data - * @return string - */ - protected function renderItemTemplate(Text_Template $template, array $data) - { - $classesBar = ' '; - $classesLevel = 'None'; - $classesNumber = ' '; - - if (isset($data['numClasses']) && $data['numClasses'] > 0) { - $classesLevel = $this->getColorLevel($data['testedClassesPercent']); - - $classesNumber = $data['numTestedClasses'] . ' / ' . - $data['numClasses']; - - $classesBar = $this->getCoverageBar( - $data['testedClassesPercent'] - ); - } - - $methodsBar = ' '; - $methodsLevel = 'None'; - $methodsNumber = ' '; - - if ($data['numMethods'] > 0) { - $methodsLevel = $this->getColorLevel($data['testedMethodsPercent']); - - $methodsNumber = $data['numTestedMethods'] . ' / ' . - $data['numMethods']; - - $methodsBar = $this->getCoverageBar( - $data['testedMethodsPercent'] - ); - } - - $linesBar = ' '; - $linesLevel = 'None'; - $linesNumber = ' '; - - if ($data['numExecutableLines'] > 0) { - $linesLevel = $this->getColorLevel($data['linesExecutedPercent']); - - $linesNumber = $data['numExecutedLines'] . ' / ' . - $data['numExecutableLines']; - - $linesBar = $this->getCoverageBar( - $data['linesExecutedPercent'] - ); - } - - $template->setVar( - array( - 'icon' => isset($data['icon']) ? $data['icon'] : '', - 'crap' => isset($data['crap']) ? $data['crap'] : '', - 'name' => $data['name'], - 'lines_bar' => $linesBar, - 'lines_executed_percent' => $data['linesExecutedPercentAsString'], - 'lines_level' => $linesLevel, - 'lines_number' => $linesNumber, - 'methods_bar' => $methodsBar, - 'methods_tested_percent' => $data['testedMethodsPercentAsString'], - 'methods_level' => $methodsLevel, - 'methods_number' => $methodsNumber, - 'classes_bar' => $classesBar, - 'classes_tested_percent' => isset($data['testedClassesPercentAsString']) ? $data['testedClassesPercentAsString'] : '', - 'classes_level' => $classesLevel, - 'classes_number' => $classesNumber - ) - ); - - return $template->render(); - } - - /** - * @param Text_Template $template - * @param PHP_CodeCoverage_Report_Node $node - */ - protected function setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node) - { - $template->setVar( - array( - 'id' => $node->getId(), - 'full_path' => $node->getPath(), - 'breadcrumbs' => $this->getBreadcrumbs($node), - 'charset' => $this->charset, - 'date' => $this->date, - 'version' => PHP_CodeCoverage_Version::id(), - 'php_version' => PHP_VERSION, - 'generator' => $this->generator, - 'low_upper_bound' => $this->lowUpperBound, - 'high_lower_bound' => $this->highLowerBound - ) - ); - } - - protected function getBreadcrumbs(PHP_CodeCoverage_Report_Node $node) - { - $breadcrumbs = ''; - - $path = $node->getPathAsArray(); - - foreach ($path as $step) { - if ($step !== $node) { - $breadcrumbs .= sprintf( - '
  • %s /
  • ' . "\n", - $step->getId(), - $step->getName() - ); - } else { - $breadcrumbs .= sprintf( - '
  • %s
  • ' . "\n", - $step->getName() - ); - - if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) { - $breadcrumbs .= sprintf( - '
  • (Dashboard)
  • ' . "\n", - $step->getId() - ); - } - } - } - - return $breadcrumbs; - } - - protected function getCoverageBar($percent) - { - $level = $this->getColorLevel($percent); - - $template = new Text_Template( - $this->templatePath . 'coverage_bar.html' - ); - - $template->setVar(array('level' => $level, 'percent' => sprintf("%.2F", $percent))); - - return $template->render(); - } - - /** - * @param integer $percent - * @return string - */ - protected function getColorLevel($percent) - { - if ($percent < $this->lowUpperBound) { - return 'danger'; - } - - else if ($percent >= $this->lowUpperBound && - $percent < $this->highLowerBound) { - return 'warning'; - } - - else { - return 'success'; - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Dashboard.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Dashboard.php deleted file mode 100644 index 7d7446c3..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Dashboard.php +++ /dev/null @@ -1,256 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Renders the dashboard for a PHP_CodeCoverage_Report_Node_Directory node. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_Report_HTML_Renderer -{ - /** - * @param PHP_CodeCoverage_Report_Node_Directory $node - * @param string $file - */ - public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file) - { - $classes = $node->getClassesAndTraits(); - $template = new Text_Template( - $this->templatePath . 'dashboard.html' - ); - - $this->setCommonTemplateVariables($template, $node); - - $template->setVar( - array( - 'least_tested_methods' => $this->leastTestedMethods($classes), - 'top_project_risks' => $this->topProjectRisks($classes), - 'cc_values' => $this->classComplexity($classes), - 'ccd_values' => $this->classCoverageDistribution($classes), - 'backlink' => basename(str_replace('.dashboard', '', $file)) - ) - ); - - $template->renderTo($file); - } - - /** - * Returns the data for the Class Complexity chart. - * - * @param array $classes - * @return string - */ - protected function classComplexity(array $classes) - { - $data = array(); - - foreach ($classes as $name => $class) { - $data[] = array( - $class['coverage'], - $class['ccn'], - sprintf( - '%s', - $class['link'], - $name - ) - ); - } - - return json_encode($data); - } - - /** - * Returns the data for the Class Coverage Distribution chart. - * - * @param array $classes - * @return string - */ - protected function classCoverageDistribution(array $classes) - { - $data = array( - '0%' => 0, - '0-10%' => 0, - '10-20%' => 0, - '20-30%' => 0, - '30-40%' => 0, - '40-50%' => 0, - '50-60%' => 0, - '60-70%' => 0, - '70-80%' => 0, - '80-90%' => 0, - '90-100%' => 0, - '100%' => 0 - ); - - foreach ($classes as $class) { - if ($class['coverage'] == 0) { - $data['0%']++; - } - - else if ($class['coverage'] == 100) { - $data['100%']++; - } - - else { - $key = floor($class['coverage']/10)*10; - $key = $key . '-' . ($key + 10) . '%'; - $data[$key]++; - } - } - - return json_encode(array_values($data)); - } - - /** - * Returns the least tested methods. - * - * @param array $classes - * @param integer $max - * @return string - */ - protected function leastTestedMethods(array $classes, $max = 10) - { - $methods = array(); - - foreach ($classes as $className => $class) { - foreach ($class['methods'] as $methodName => $method) { - if ($method['coverage'] < 100) { - if ($className != '*') { - $key = $className . '::' . $methodName; - } else { - $key = $methodName; - } - - $methods[$key] = $method['coverage']; - } - } - } - - asort($methods); - - $methods = array_slice($methods, 0, min($max, count($methods))); - $buffer = ''; - - foreach ($methods as $name => $coverage) { - list($class, $method) = explode('::', $name); - - $buffer .= sprintf( - '
  • %s (%d%%)
  • ' . "\n", - $classes[$class]['methods'][$method]['link'], - $name, - $coverage - ); - } - - return $buffer; - } - - /** - * Returns the top project risks according to the CRAP index. - * - * @param array $classes - * @param integer $max - * @return string - */ - protected function topProjectRisks(array $classes, $max = 10) - { - $risks = array(); - - foreach ($classes as $className => $class) { - if ($class['coverage'] < 100 && - $class['ccn'] > count($class['methods'])) { - $risks[$className] = $class['crap']; - } - } - - arsort($risks); - - $buffer = ''; - $risks = array_slice($risks, 0, min($max, count($risks))); - - foreach ($risks as $name => $crap) { - $buffer .= sprintf( - '
  • %s (%d)
  • ' . "\n", - $classes[$name]['link'], - $name, - $crap - ); - } - - return $buffer; - } - - protected function getBreadcrumbs(PHP_CodeCoverage_Report_Node $node) - { - $breadcrumbs = ''; - - $path = $node->getPathAsArray(); - - foreach ($path as $step) { - if ($step !== $node) { - $breadcrumbs .= sprintf( - '
  • %s /
  • ' . "\n", - $step->getId(), - $step->getName() - ); - } else { - $breadcrumbs .= sprintf( - '
  • %s
  • ' . "\n" . - '
  • (Dashboard)
  • ' . "\n", - $step->getId(), - $step->getName() - ); - } - } - - return $breadcrumbs; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php deleted file mode 100644 index ed052769..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Directory.php +++ /dev/null @@ -1,132 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Renders a PHP_CodeCoverage_Report_Node_Directory node. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_Report_HTML_Renderer -{ - /** - * @param PHP_CodeCoverage_Report_Node_Directory $node - * @param string $file - */ - public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file) - { - $template = new Text_Template($this->templatePath . 'directory.html'); - - $this->setCommonTemplateVariables($template, $node); - - $items = $this->renderItem($node, TRUE); - - foreach ($node->getDirectories() as $item) { - $items .= $this->renderItem($item); - } - - foreach ($node->getFiles() as $item) { - $items .= $this->renderItem($item); - } - - $template->setVar( - array( - 'id' => $node->getId(), - 'items' => $items - ) - ); - - $template->renderTo($file); - } - - /** - * @param PHP_CodeCoverage_Report_Node $item - * @param boolean $total - * @return string - */ - protected function renderItem(PHP_CodeCoverage_Report_Node $item, $total = FALSE) - { - $data = array( - 'numClasses' => $item->getNumClassesAndTraits(), - 'numTestedClasses' => $item->getNumTestedClassesAndTraits(), - 'numMethods' => $item->getNumMethods(), - 'numTestedMethods' => $item->getNumTestedMethods(), - 'linesExecutedPercent' => $item->getLineExecutedPercent(FALSE), - 'linesExecutedPercentAsString' => $item->getLineExecutedPercent(), - 'numExecutedLines' => $item->getNumExecutedLines(), - 'numExecutableLines' => $item->getNumExecutableLines(), - 'testedMethodsPercent' => $item->getTestedMethodsPercent(FALSE), - 'testedMethodsPercentAsString' => $item->getTestedMethodsPercent(), - 'testedClassesPercent' => $item->getTestedClassesAndTraitsPercent(FALSE), - 'testedClassesPercentAsString' => $item->getTestedClassesAndTraitsPercent() - ); - - if ($total) { - $data['name'] = 'Total'; - } else { - $data['name'] = sprintf( - '%s', - $item->getId(), - $item->getName() - ); - - if ($item instanceof PHP_CodeCoverage_Report_Node_Directory) { - $data['icon'] = ' '; - } else { - $data['icon'] = ' '; - } - } - - return $this->renderItemTemplate( - new Text_Template($this->templatePath . 'directory_item.html'), - $data - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/File.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/File.php deleted file mode 100644 index 9150d778..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/File.php +++ /dev/null @@ -1,583 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -// @codeCoverageIgnoreStart -if (!defined('T_TRAIT')) { - define('T_TRAIT', 1001); -} - -if (!defined('T_INSTEADOF')) { - define('T_INSTEADOF', 1002); -} - -if (!defined('T_CALLABLE')) { - define('T_CALLABLE', 1003); -} -// @codeCoverageIgnoreEnd - -/** - * Renders a PHP_CodeCoverage_Report_Node_File node. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report_HTML_Renderer -{ - /** - * @var boolean - */ - protected $highlight; - - /** - * Constructor. - * - * @param string $templatePath - * @param string $charset - * @param string $generator - * @param string $date - * @param integer $lowUpperBound - * @param integer $highLowerBound - * @param boolean $highlight - */ - public function __construct($templatePath, $charset, $generator, $date, $lowUpperBound, $highLowerBound, $highlight) - { - parent::__construct( - $templatePath, - $charset, - $generator, - $date, - $lowUpperBound, - $highLowerBound - ); - - $this->highlight = $highlight; - } - - /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @param string $file - */ - public function render(PHP_CodeCoverage_Report_Node_File $node, $file) - { - $template = new Text_Template($this->templatePath . 'file.html'); - - $template->setVar( - array( - 'items' => $this->renderItems($node), - 'lines' => $this->renderSource($node) - ) - ); - - $this->setCommonTemplateVariables($template, $node); - - $template->renderTo($file); - } - - /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @return string - */ - protected function renderItems(PHP_CodeCoverage_Report_Node_File $node) - { - $template = new Text_Template($this->templatePath . 'file_item.html'); - - $methodItemTemplate = new Text_Template( - $this->templatePath . 'method_item.html' - ); - - $items = $this->renderItemTemplate( - $template, - array( - 'name' => 'Total', - 'numClasses' => $node->getNumClassesAndTraits(), - 'numTestedClasses' => $node->getNumTestedClassesAndTraits(), - 'numMethods' => $node->getNumMethods(), - 'numTestedMethods' => $node->getNumTestedMethods(), - 'linesExecutedPercent' => $node->getLineExecutedPercent(FALSE), - 'linesExecutedPercentAsString' => $node->getLineExecutedPercent(), - 'numExecutedLines' => $node->getNumExecutedLines(), - 'numExecutableLines' => $node->getNumExecutableLines(), - 'testedMethodsPercent' => $node->getTestedMethodsPercent(FALSE), - 'testedMethodsPercentAsString' => $node->getTestedMethodsPercent(), - 'testedClassesPercent' => $node->getTestedClassesAndTraitsPercent(FALSE), - 'testedClassesPercentAsString' => $node->getTestedClassesAndTraitsPercent(), - 'crap' => 'CRAP' - ) - ); - - $items .= $this->renderFunctionItems( - $node->getFunctions(), $methodItemTemplate - ); - - $items .= $this->renderTraitOrClassItems( - $node->getTraits(), $template, $methodItemTemplate - ); - - $items .= $this->renderTraitOrClassItems( - $node->getClasses(), $template, $methodItemTemplate - ); - - return $items; - } - - /** - * @param array $items - * @param Text_Template $template - * @return string - */ - protected function renderTraitOrClassItems(array $items, Text_Template $template, Text_Template $methodItemTemplate) - { - if (empty($items)) { - return ''; - } - - $buffer = ''; - - foreach ($items as $name => $item) { - $numMethods = count($item['methods']); - $numTestedMethods = 0; - - foreach ($item['methods'] as $method) { - if ($method['executedLines'] == $method['executableLines']) { - $numTestedMethods++; - } - } - - $buffer .= $this->renderItemTemplate( - $template, - array( - 'name' => $name, - 'numClasses' => 1, - 'numTestedClasses' => $numTestedMethods == $numMethods ? 1 : 0, - 'numMethods' => $numMethods, - 'numTestedMethods' => $numTestedMethods, - 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - FALSE - ), - 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - TRUE - ), - 'numExecutedLines' => $item['executedLines'], - 'numExecutableLines' => $item['executableLines'], - 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - FALSE - ), - 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods, - $numMethods, - TRUE - ), - 'testedClassesPercent' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - FALSE - ), - 'testedClassesPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedMethods == $numMethods ? 1 : 0, - 1, - TRUE - ), - 'crap' => $item['crap'] - ) - ); - - foreach ($item['methods'] as $method) { - $buffer .= $this->renderFunctionOrMethodItem( - $methodItemTemplate, $method, ' ' - ); - } - } - - return $buffer; - } - - /** - * @param array $functions - * @param Text_Template $template - * @return string - */ - protected function renderFunctionItems(array $functions, Text_Template $template) - { - if (empty($functions)) { - return ''; - } - - $buffer = ''; - - foreach ($functions as $function) { - $buffer .= $this->renderFunctionOrMethodItem( - $template, $function - ); - } - - return $buffer; - } - - /** - * @param Text_Template $template - * @return string - */ - protected function renderFunctionOrMethodItem(Text_Template $template, array $item, $indent = '') - { - $numTestedItems = $item['executedLines'] == $item['executableLines'] ? 1 : 0; - - return $this->renderItemTemplate( - $template, - array( - 'name' => sprintf( - '%s%s', - $indent, - $item['startLine'], - htmlspecialchars($item['signature']) - ), - 'numMethods' => 1, - 'numTestedMethods' => $numTestedItems, - 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - FALSE - ), - 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent( - $item['executedLines'], - $item['executableLines'], - TRUE - ), - 'numExecutedLines' => $item['executedLines'], - 'numExecutableLines' => $item['executableLines'], - 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - FALSE - ), - 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent( - $numTestedItems, - 1, - TRUE - ), - 'crap' => $item['crap'] - ) - ); - } - - /** - * @param PHP_CodeCoverage_Report_Node_File $node - * @return string - */ - protected function renderSource(PHP_CodeCoverage_Report_Node_File $node) - { - $coverageData = $node->getCoverageData(); - $ignoredLines = $node->getIgnoredLines(); - $testData = $node->getTestData(); - $codeLines = $this->loadFile($node->getPath()); - $lines = ''; - $i = 1; - - foreach ($codeLines as $line) { - $numTests = ''; - $trClass = ''; - $popoverContent = ''; - $popoverTitle = ''; - - if (!isset($ignoredLines[$i]) && isset($coverageData[$i])) { - $numTests = count($coverageData[$i]); - - if ($coverageData[$i] === NULL) { - $trClass = ' class="warning"'; - } - - else if ($numTests == 0) { - $trClass = ' class="danger"'; - } - - else { - $trClass = ' class="success popin"'; - $popoverContent = '
      '; - - if ($numTests > 1) { - $popoverTitle = $numTests . ' tests cover line ' . $i; - } else { - $popoverTitle = '1 test covers line ' . $i; - } - - foreach ($coverageData[$i] as $test) { - switch ($testData[$test]) { - case 0: { - $testCSS = ' class="success"'; - } - break; - - case 1: - case 2: { - $testCSS = ' class="warning"'; - } - break; - - case 3: { - $testCSS = ' class="danger"'; - } - break; - - case 4: { - $testCSS = ' class="danger"'; - } - break; - - default: { - $testCSS = ''; - } - } - - $popoverContent .= sprintf( - '%s', - - $testCSS, - htmlspecialchars($test) - ); - } - - $popoverContent .= '
    '; - } - } - - if (!empty($popoverTitle)) { - $popover = sprintf( - ' data-title="%s" data-content="%s" data-placement="bottom"', - $popoverTitle, - htmlspecialchars($popoverContent) - ); - } else { - $popover = ''; - } - - $lines .= sprintf( - ' %s' . "\n", - $trClass, - $popover, - $i, - $i, - $i, - !$this->highlight ? htmlspecialchars($line) : $line - ); - - $i++; - } - - return $lines; - } - - /** - * @param string $file - * @return array - */ - protected function loadFile($file) - { - $buffer = file_get_contents($file); - $lines = explode("\n", str_replace("\t", ' ', $buffer)); - $result = array(); - - if (count($lines) == 0) { - return $result; - } - - $lines = array_map('rtrim', $lines); - - if (!$this->highlight) { - unset($lines[count($lines)-1]); - return $lines; - } - - $tokens = token_get_all($buffer); - $stringFlag = FALSE; - $i = 0; - $result[$i] = ''; - - foreach ($tokens as $j => $token) { - if (is_string($token)) { - if ($token === '"' && $tokens[$j - 1] !== '\\') { - $result[$i] .= sprintf( - '%s', - - htmlspecialchars($token) - ); - - $stringFlag = !$stringFlag; - } else { - $result[$i] .= sprintf( - '%s', - - htmlspecialchars($token) - ); - } - - continue; - } - - list ($token, $value) = $token; - - $value = str_replace( - array("\t", ' '), - array('    ', ' '), - htmlspecialchars($value) - ); - - if ($value === "\n") { - $result[++$i] = ''; - } else { - $lines = explode("\n", $value); - - foreach ($lines as $jj => $line) { - $line = trim($line); - - if ($line !== '') { - if ($stringFlag) { - $colour = 'string'; - } else { - switch ($token) { - case T_INLINE_HTML: { - $colour = 'html'; - } - break; - - case T_COMMENT: - case T_DOC_COMMENT: { - $colour = 'comment'; - } - break; - - case T_ABSTRACT: - case T_ARRAY: - case T_AS: - case T_BREAK: - case T_CALLABLE: - case T_CASE: - case T_CATCH: - case T_CLASS: - case T_CLONE: - case T_CONTINUE: - case T_DEFAULT: - case T_ECHO: - case T_ELSE: - case T_ELSEIF: - case T_EMPTY: - case T_ENDDECLARE: - case T_ENDFOR: - case T_ENDFOREACH: - case T_ENDIF: - case T_ENDSWITCH: - case T_ENDWHILE: - case T_EXIT: - case T_EXTENDS: - case T_FINAL: - case T_FOREACH: - case T_FUNCTION: - case T_GLOBAL: - case T_IF: - case T_IMPLEMENTS: - case T_INCLUDE: - case T_INCLUDE_ONCE: - case T_INSTANCEOF: - case T_INSTEADOF: - case T_INTERFACE: - case T_ISSET: - case T_LOGICAL_AND: - case T_LOGICAL_OR: - case T_LOGICAL_XOR: - case T_NAMESPACE: - case T_NEW: - case T_PRIVATE: - case T_PROTECTED: - case T_PUBLIC: - case T_REQUIRE: - case T_REQUIRE_ONCE: - case T_RETURN: - case T_STATIC: - case T_THROW: - case T_TRAIT: - case T_TRY: - case T_UNSET: - case T_USE: - case T_VAR: - case T_WHILE: { - $colour = 'keyword'; - } - break; - - default: { - $colour = 'default'; - } - } - } - - $result[$i] .= sprintf( - '%s', - - $colour, - $line - ); - } - - if (isset($lines[$jj + 1])) { - $result[++$i] = ''; - } - } - } - } - - unset($result[count($result)-1]); - - return $result; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist deleted file mode 100644 index 73a11a1a..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist +++ /dev/null @@ -1,3 +0,0 @@ -
    -
    -
    diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap-responsive.min.css b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap-responsive.min.css deleted file mode 100644 index 7b0158da..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap-responsive.min.css +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * Bootstrap Responsive v2.1.1 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade.in{top:auto}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:hover{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:block;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css deleted file mode 100644 index 31d8b960..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * Bootstrap v2.1.1 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%}.row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%}.row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%}.row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%}.row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%}.row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%}.row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%}.row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%}.row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%}.row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%}.row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%}.row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%}.row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%}.row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%}.row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%}.row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%}.row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%}.row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%}.row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%}.row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%}.row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%}.row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%}.row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%}.row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%}.row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%}.row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%}.row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%}.row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%}.row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%}.row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%}.row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%}.row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%}.row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%}.row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%}.row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%}[class*="span"].hide,.row-fluid [class*="span"].hide{display:none}[class*="span"].pull-right,.row-fluid [class*="span"].pull-right{float:right}.container{margin-right:auto;margin-left:auto;*zoom:1}.container:before,.container:after{display:table;line-height:0;content:""}.container:after{clear:both}.container-fluid{padding-right:20px;padding-left:20px;*zoom:1}.container-fluid:before,.container-fluid:after{display:table;line-height:0;content:""}.container-fluid:after{clear:both}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px}small{font-size:85%}strong{font-weight:bold}em{font-style:italic}cite{font-style:normal}.muted{color:#999}.text-warning{color:#c09853}.text-error{color:#b94a48}.text-info{color:#3a87ad}.text-success{color:#468847}h1,h2,h3,h4,h5,h6{margin:10px 0;font-family:inherit;font-weight:bold;line-height:1;color:inherit;text-rendering:optimizelegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:normal;line-height:1;color:#999}h1{font-size:36px;line-height:40px}h2{font-size:30px;line-height:40px}h3{font-size:24px;line-height:40px}h4{font-size:18px;line-height:20px}h5{font-size:14px;line-height:20px}h6{font-size:12px;line-height:20px}h1 small{font-size:24px}h2 small{font-size:18px}h3 small{font-size:14px}h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eee}ul,ol{padding:0;margin:0 0 10px 25px}ul ul,ul ol,ol ol,ol ul{margin-bottom:0}li{line-height:20px}ul.unstyled,ol.unstyled{margin-left:0;list-style:none}dl{margin-bottom:20px}dt,dd{line-height:20px}dt{font-weight:bold}dd{margin-left:10px}.dl-horizontal{*zoom:1}.dl-horizontal:before,.dl-horizontal:after{display:table;line-height:0;content:""}.dl-horizontal:after{clear:both}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}abbr[title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:25px}blockquote small{display:block;line-height:20px;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:20px}code,pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}form{margin:0 0 20px}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5}legend small{font-size:15px;color:#999}label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px}input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}label{display:block;margin-bottom:5px}select,textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:20px;padding:4px 6px;margin-bottom:9px;font-size:14px;line-height:20px;color:#555;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}input,textarea,.uneditable-input{width:206px}textarea{height:auto}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal;cursor:pointer}input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto}select,input[type="file"]{height:30px;*margin-top:4px;line-height:30px}select{width:220px;background-color:#fff;border:1px solid #ccc}select[multiple],select[size]{height:auto}select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.uneditable-input,.uneditable-textarea{color:#999;cursor:not-allowed;background-color:#fcfcfc;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);box-shadow:inset 0 1px 2px rgba(0,0,0,0.025)}.uneditable-input{overflow:hidden;white-space:nowrap}.uneditable-textarea{width:auto;height:auto}input:-moz-placeholder,textarea:-moz-placeholder{color:#999}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#999}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#999}.radio,.checkbox{min-height:18px;padding-left:18px}.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-18px}.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px}.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px}.input-mini{width:60px}.input-small{width:90px}.input-medium{width:150px}.input-large{width:210px}.input-xlarge{width:270px}.input-xxlarge{width:530px}input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0}.input-append input[class*="span"],.input-append .uneditable-input[class*="span"],.input-prepend input[class*="span"],.input-prepend .uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"],.row-fluid .input-prepend [class*="span"],.row-fluid .input-append [class*="span"]{display:inline-block}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:926px}input.span11,textarea.span11,.uneditable-input.span11{width:846px}input.span10,textarea.span10,.uneditable-input.span10{width:766px}input.span9,textarea.span9,.uneditable-input.span9{width:686px}input.span8,textarea.span8,.uneditable-input.span8{width:606px}input.span7,textarea.span7,.uneditable-input.span7{width:526px}input.span6,textarea.span6,.uneditable-input.span6{width:446px}input.span5,textarea.span5,.uneditable-input.span5{width:366px}input.span4,textarea.span4,.uneditable-input.span4{width:286px}input.span3,textarea.span3,.uneditable-input.span3{width:206px}input.span2,textarea.span2,.uneditable-input.span2{width:126px}input.span1,textarea.span1,.uneditable-input.span1{width:46px}.controls-row{*zoom:1}.controls-row:before,.controls-row:after{display:table;line-height:0;content:""}.controls-row:after{clear:both}.controls-row [class*="span"]{float:left}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eee}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent}.control-group.warning>label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853}.control-group.warning .checkbox,.control-group.warning .radio,.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853}.control-group.warning input,.control-group.warning select,.control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.control-group.error>label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48}.control-group.error .checkbox,.control-group.error .radio,.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48}.control-group.error input,.control-group.error select,.control-group.error textarea{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.control-group.success>label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847}.control-group.success .checkbox,.control-group.success .radio,.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847}.control-group.success input,.control-group.success select,.control-group.success textarea{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.control-group.info>label,.control-group.info .help-block,.control-group.info .help-inline{color:#3a87ad}.control-group.info .checkbox,.control-group.info .radio,.control-group.info input,.control-group.info select,.control-group.info textarea{color:#3a87ad}.control-group.info input,.control-group.info select,.control-group.info textarea{border-color:#3a87ad;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.info input:focus,.control-group.info select:focus,.control-group.info textarea:focus{border-color:#2d6987;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3}.control-group.info .input-prepend .add-on,.control-group.info .input-append .add-on{color:#3a87ad;background-color:#d9edf7;border-color:#3a87ad}input:focus:required:invalid,textarea:focus:required:invalid,select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b}input:focus:required:invalid:focus,textarea:focus:required:invalid:focus,select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.form-actions{padding:19px 20px 20px;margin-top:20px;margin-bottom:20px;background-color:#f5f5f5;border-top:1px solid #e5e5e5;*zoom:1}.form-actions:before,.form-actions:after{display:table;line-height:0;content:""}.form-actions:after{clear:both}.help-block,.help-inline{color:#595959}.help-block{display:block;margin-bottom:10px}.help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1}.input-append,.input-prepend{margin-bottom:5px;font-size:0;white-space:nowrap}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;font-size:14px;vertical-align:top;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-append input:focus,.input-prepend input:focus,.input-append select:focus,.input-prepend select:focus,.input-append .uneditable-input:focus,.input-prepend .uneditable-input:focus{z-index:2}.input-append .add-on,.input-prepend .add-on{display:inline-block;width:auto;height:20px;min-width:16px;padding:4px 5px;font-size:14px;font-weight:normal;line-height:20px;text-align:center;text-shadow:0 1px 0 #fff;background-color:#eee;border:1px solid #ccc}.input-append .add-on,.input-prepend .add-on,.input-append .btn,.input-prepend .btn{vertical-align:top;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-append .active,.input-prepend .active{background-color:#a9dba9;border-color:#46a546}.input-prepend .add-on,.input-prepend .btn{margin-right:-1px}.input-prepend .add-on:first-child,.input-prepend .btn:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-append input,.input-append select,.input-append .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-append .add-on,.input-append .btn{margin-left:-1px}.input-append .add-on:last-child,.input-append .btn:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}input.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.form-search .input-append .search-query,.form-search .input-prepend .search-query{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.form-search .input-append .search-query{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search .input-append .btn{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .search-query{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .btn{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;vertical-align:middle;*zoom:1}.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none}.form-search label,.form-inline label,.form-search .btn-group,.form-inline .btn-group{display:inline-block}.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0}.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0}.control-group{margin-bottom:10px}legend+.control-group{margin-top:20px;-webkit-margin-top-collapse:separate}.form-horizontal .control-group{margin-bottom:20px;*zoom:1}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;line-height:0;content:""}.form-horizontal .control-group:after{clear:both}.form-horizontal .control-label{float:left;width:160px;padding-top:5px;text-align:right}.form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:180px;*margin-left:0}.form-horizontal .controls:first-child{*padding-left:180px}.form-horizontal .help-block{margin-bottom:0}.form-horizontal input+.help-block,.form-horizontal select+.help-block,.form-horizontal textarea+.help-block{margin-top:10px}.form-horizontal .form-actions{padding-left:180px}table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%;margin-bottom:20px}.table th,.table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.table th{font-weight:bold}.table thead th{vertical-align:bottom}.table caption+thead tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table-condensed th,.table-condensed td{padding:4px 5px}.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.table-bordered th,.table-bordered td{border-left:1px solid #ddd}.table-bordered caption+thead tr:first-child th,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+tbody tr:first-child td,.table-bordered colgroup+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0}.table-bordered thead:first-child tr:first-child th:first-child,.table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered thead:first-child tr:first-child th:last-child,.table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-bordered thead:last-child tr:last-child th:first-child,.table-bordered tbody:last-child tr:last-child td:first-child,.table-bordered tfoot:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.table-bordered thead:last-child tr:last-child th:last-child,.table-bordered tbody:last-child tr:last-child td:last-child,.table-bordered tfoot:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.table-bordered caption+thead tr:first-child th:first-child,.table-bordered caption+tbody tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child th:first-child,.table-bordered colgroup+tbody tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered caption+thead tr:first-child th:last-child,.table-bordered caption+tbody tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child th:last-child,.table-bordered colgroup+tbody tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topleft:4px}.table-striped tbody tr:nth-child(odd) td,.table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9}.table-hover tbody tr:hover td,.table-hover tbody tr:hover th{background-color:#f5f5f5}table [class*=span],.row-fluid table [class*=span]{display:table-cell;float:none;margin-left:0}.table .span1{float:none;width:44px;margin-left:0}.table .span2{float:none;width:124px;margin-left:0}.table .span3{float:none;width:204px;margin-left:0}.table .span4{float:none;width:284px;margin-left:0}.table .span5{float:none;width:364px;margin-left:0}.table .span6{float:none;width:444px;margin-left:0}.table .span7{float:none;width:524px;margin-left:0}.table .span8{float:none;width:604px;margin-left:0}.table .span9{float:none;width:684px;margin-left:0}.table .span10{float:none;width:764px;margin-left:0}.table .span11{float:none;width:844px;margin-left:0}.table .span12{float:none;width:924px;margin-left:0}.table .span13{float:none;width:1004px;margin-left:0}.table .span14{float:none;width:1084px;margin-left:0}.table .span15{float:none;width:1164px;margin-left:0}.table .span16{float:none;width:1244px;margin-left:0}.table .span17{float:none;width:1324px;margin-left:0}.table .span18{float:none;width:1404px;margin-left:0}.table .span19{float:none;width:1484px;margin-left:0}.table .span20{float:none;width:1564px;margin-left:0}.table .span21{float:none;width:1644px;margin-left:0}.table .span22{float:none;width:1724px;margin-left:0}.table .span23{float:none;width:1804px;margin-left:0}.table .span24{float:none;width:1884px;margin-left:0}.table tbody tr.success td{background-color:#dff0d8}.table tbody tr.error td{background-color:#f2dede}.table tbody tr.warning td{background-color:#fcf8e3}.table tbody tr.info td{background-color:#d9edf7}.table-hover tbody tr.success:hover td{background-color:#d0e9c6}.table-hover tbody tr.error:hover td{background-color:#ebcccc}.table-hover tbody tr.warning:hover td{background-color:#faf2cc}.table-hover tbody tr.info:hover td{background-color:#c4e3f3}[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;margin-top:1px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat}.icon-white,.nav-tabs>.active>a>[class^="icon-"],.nav-tabs>.active>a>[class*=" icon-"],.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"]{background-image:url("../img/glyphicons-halflings-white.png")}.icon-glass{background-position:0 0}.icon-music{background-position:-24px 0}.icon-search{background-position:-48px 0}.icon-envelope{background-position:-72px 0}.icon-heart{background-position:-96px 0}.icon-star{background-position:-120px 0}.icon-star-empty{background-position:-144px 0}.icon-user{background-position:-168px 0}.icon-film{background-position:-192px 0}.icon-th-large{background-position:-216px 0}.icon-th{background-position:-240px 0}.icon-th-list{background-position:-264px 0}.icon-ok{background-position:-288px 0}.icon-remove{background-position:-312px 0}.icon-zoom-in{background-position:-336px 0}.icon-zoom-out{background-position:-360px 0}.icon-off{background-position:-384px 0}.icon-signal{background-position:-408px 0}.icon-cog{background-position:-432px 0}.icon-trash{background-position:-456px 0}.icon-home{background-position:0 -24px}.icon-file{background-position:-24px -24px}.icon-time{background-position:-48px -24px}.icon-road{background-position:-72px -24px}.icon-download-alt{background-position:-96px -24px}.icon-download{background-position:-120px -24px}.icon-upload{background-position:-144px -24px}.icon-inbox{background-position:-168px -24px}.icon-play-circle{background-position:-192px -24px}.icon-repeat{background-position:-216px -24px}.icon-refresh{background-position:-240px -24px}.icon-list-alt{background-position:-264px -24px}.icon-lock{background-position:-287px -24px}.icon-flag{background-position:-312px -24px}.icon-headphones{background-position:-336px -24px}.icon-volume-off{background-position:-360px -24px}.icon-volume-down{background-position:-384px -24px}.icon-volume-up{background-position:-408px -24px}.icon-qrcode{background-position:-432px -24px}.icon-barcode{background-position:-456px -24px}.icon-tag{background-position:0 -48px}.icon-tags{background-position:-25px -48px}.icon-book{background-position:-48px -48px}.icon-bookmark{background-position:-72px -48px}.icon-print{background-position:-96px -48px}.icon-camera{background-position:-120px -48px}.icon-font{background-position:-144px -48px}.icon-bold{background-position:-167px -48px}.icon-italic{background-position:-192px -48px}.icon-text-height{background-position:-216px -48px}.icon-text-width{background-position:-240px -48px}.icon-align-left{background-position:-264px -48px}.icon-align-center{background-position:-288px -48px}.icon-align-right{background-position:-312px -48px}.icon-align-justify{background-position:-336px -48px}.icon-list{background-position:-360px -48px}.icon-indent-left{background-position:-384px -48px}.icon-indent-right{background-position:-408px -48px}.icon-facetime-video{background-position:-432px -48px}.icon-picture{background-position:-456px -48px}.icon-pencil{background-position:0 -72px}.icon-map-marker{background-position:-24px -72px}.icon-adjust{background-position:-48px -72px}.icon-tint{background-position:-72px -72px}.icon-edit{background-position:-96px -72px}.icon-share{background-position:-120px -72px}.icon-check{background-position:-144px -72px}.icon-move{background-position:-168px -72px}.icon-step-backward{background-position:-192px -72px}.icon-fast-backward{background-position:-216px -72px}.icon-backward{background-position:-240px -72px}.icon-play{background-position:-264px -72px}.icon-pause{background-position:-288px -72px}.icon-stop{background-position:-312px -72px}.icon-forward{background-position:-336px -72px}.icon-fast-forward{background-position:-360px -72px}.icon-step-forward{background-position:-384px -72px}.icon-eject{background-position:-408px -72px}.icon-chevron-left{background-position:-432px -72px}.icon-chevron-right{background-position:-456px -72px}.icon-plus-sign{background-position:0 -96px}.icon-minus-sign{background-position:-24px -96px}.icon-remove-sign{background-position:-48px -96px}.icon-ok-sign{background-position:-72px -96px}.icon-question-sign{background-position:-96px -96px}.icon-info-sign{background-position:-120px -96px}.icon-screenshot{background-position:-144px -96px}.icon-remove-circle{background-position:-168px -96px}.icon-ok-circle{background-position:-192px -96px}.icon-ban-circle{background-position:-216px -96px}.icon-arrow-left{background-position:-240px -96px}.icon-arrow-right{background-position:-264px -96px}.icon-arrow-up{background-position:-289px -96px}.icon-arrow-down{background-position:-312px -96px}.icon-share-alt{background-position:-336px -96px}.icon-resize-full{background-position:-360px -96px}.icon-resize-small{background-position:-384px -96px}.icon-plus{background-position:-408px -96px}.icon-minus{background-position:-433px -96px}.icon-asterisk{background-position:-456px -96px}.icon-exclamation-sign{background-position:0 -120px}.icon-gift{background-position:-24px -120px}.icon-leaf{background-position:-48px -120px}.icon-fire{background-position:-72px -120px}.icon-eye-open{background-position:-96px -120px}.icon-eye-close{background-position:-120px -120px}.icon-warning-sign{background-position:-144px -120px}.icon-plane{background-position:-168px -120px}.icon-calendar{background-position:-192px -120px}.icon-random{width:16px;background-position:-216px -120px}.icon-comment{background-position:-240px -120px}.icon-magnet{background-position:-264px -120px}.icon-chevron-up{background-position:-288px -120px}.icon-chevron-down{background-position:-313px -119px}.icon-retweet{background-position:-336px -120px}.icon-shopping-cart{background-position:-360px -120px}.icon-folder-close{background-position:-384px -120px}.icon-folder-open{width:16px;background-position:-408px -120px}.icon-resize-vertical{background-position:-432px -119px}.icon-resize-horizontal{background-position:-456px -118px}.icon-hdd{background-position:0 -144px}.icon-bullhorn{background-position:-24px -144px}.icon-bell{background-position:-48px -144px}.icon-certificate{background-position:-72px -144px}.icon-thumbs-up{background-position:-96px -144px}.icon-thumbs-down{background-position:-120px -144px}.icon-hand-right{background-position:-144px -144px}.icon-hand-left{background-position:-168px -144px}.icon-hand-up{background-position:-192px -144px}.icon-hand-down{background-position:-216px -144px}.icon-circle-arrow-right{background-position:-240px -144px}.icon-circle-arrow-left{background-position:-264px -144px}.icon-circle-arrow-up{background-position:-288px -144px}.icon-circle-arrow-down{background-position:-312px -144px}.icon-globe{background-position:-336px -144px}.icon-wrench{background-position:-360px -144px}.icon-tasks{background-position:-384px -144px}.icon-filter{background-position:-408px -144px}.icon-briefcase{background-position:-432px -144px}.icon-fullscreen{background-position:-456px -144px}.dropup,.dropdown{position:relative}.dropdown-toggle{*margin-bottom:-3px}.dropdown-toggle:active,.open .dropdown-toggle{outline:0}.caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown .caret{margin-top:8px;margin-left:2px}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.dropdown-menu a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:20px;color:#333;white-space:nowrap}.dropdown-menu li>a:hover,.dropdown-menu li>a:focus,.dropdown-submenu:hover>a{color:#fff;text-decoration:none;background-color:#08c;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu .active>a,.dropdown-menu .active>a:hover{color:#fff;text-decoration:none;background-color:#08c;background-color:#0081c2;background-image:linear-gradient(to bottom,#08c,#0077b3);background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-repeat:repeat-x;outline:0;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu .disabled>a,.dropdown-menu .disabled>a:hover{color:#999}.dropdown-menu .disabled>a:hover{text-decoration:none;cursor:default;background-color:transparent}.open{*z-index:1000}.open>.dropdown-menu{display:block}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#ccc;border-style:solid;border-width:5px 0 5px 5px;content:" "}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px}.typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.collapse.in{height:auto}.close{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.btn{display:inline-block;*display:inline;padding:4px 14px;margin-bottom:0;*margin-left:.3em;font-size:14px;line-height:20px;*line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #bbb;*border:0;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#a2a2a2;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn:hover,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover{color:#333;text-decoration:none;background-color:#e6e6e6;*background-color:#d9d9d9;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-color:#e6e6e6;background-color:#d9d9d9 \9;background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn.disabled,.btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:9px 14px;font-size:16px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.btn-large [class^="icon-"]{margin-top:2px}.btn-small{padding:3px 9px;font-size:12px;line-height:18px}.btn-small [class^="icon-"]{margin-top:0}.btn-mini{padding:2px 6px;font-size:11px;line-height:17px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn{border-color:#c5c5c5;border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;*background-color:#04c;background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-image:-moz-linear-gradient(top,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;*background-color:#f89406;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-warning:hover,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;*background-color:#bd362f;background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-danger:hover,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;*background-color:#51a351;background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-image:-moz-linear-gradient(top,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-success:hover,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;*background-color:#2f96b4;background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-info:hover,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;*background-color:#222;background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-image:-moz-linear-gradient(top,#444,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-inverse:hover,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{color:#08c;cursor:pointer;border-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover{color:#333;text-decoration:none}.btn-group{position:relative;*margin-left:.3em;font-size:0;white-space:nowrap;vertical-align:middle}.btn-group:first-child{*margin-left:0}.btn-group+.btn-group{margin-left:5px}.btn-toolbar{margin-top:10px;margin-bottom:10px;font-size:0}.btn-toolbar .btn-group{display:inline-block;*display:inline;*zoom:1}.btn-toolbar .btn+.btn,.btn-toolbar .btn-group+.btn,.btn-toolbar .btn+.btn-group{margin-left:5px}.btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group>.btn+.btn{margin-left:-1px}.btn-group>.btn,.btn-group>.dropdown-menu{font-size:14px}.btn-group>.btn-mini{font-size:11px}.btn-group>.btn-small{font-size:12px}.btn-group>.btn-large{font-size:16px}.btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.btn-group>.btn:last-child,.btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.btn-group>.btn.large:last-child,.btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active{z-index:2}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{*padding-top:5px;padding-right:8px;*padding-bottom:5px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn-group>.btn-mini+.dropdown-toggle{*padding-top:2px;padding-right:5px;*padding-bottom:2px;padding-left:5px}.btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px}.btn-group>.btn-large+.dropdown-toggle{*padding-top:7px;padding-right:12px;*padding-bottom:7px;padding-left:12px}.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.btn-group.open .btn-primary.dropdown-toggle{background-color:#04c}.btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.btn .caret{margin-top:8px;margin-left:0}.btn-mini .caret,.btn-small .caret,.btn-large .caret{margin-top:6px}.btn-large .caret{border-top-width:5px;border-right-width:5px;border-left-width:5px}.dropup .btn-large .caret{border-top:0;border-bottom:5px solid #000}.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff}.btn-group-vertical{display:inline-block;*display:inline;*zoom:1}.btn-group-vertical .btn{display:block;float:none;width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group-vertical .btn+.btn{margin-top:-1px;margin-left:0}.btn-group-vertical .btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.btn-group-vertical .btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.btn-group-vertical .btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.btn-group-vertical .btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.alert{padding:8px 35px 8px 14px;margin-bottom:20px;color:#c09853;text-shadow:0 1px 0 rgba(255,255,255,0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.alert h4{margin:0}.alert .close{position:relative;top:-2px;right:-21px;line-height:20px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-danger,.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-block{padding-top:14px;padding-bottom:14px}.alert-block>p,.alert-block>ul{margin-bottom:0}.alert-block p+p{margin-top:5px}.nav{margin-bottom:20px;margin-left:0;list-style:none}.nav>li>a{display:block}.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>.pull-right{float:right}.nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:20px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-transform:uppercase}.nav li+.nav-header{margin-top:9px}.nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.nav-list>li>a,.nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.nav-list>li>a{padding:3px 15px}.nav-list>.active>a,.nav-list>.active>a:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.2);background-color:#08c}.nav-list [class^="icon-"]{margin-right:2px}.nav-list .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.nav-tabs,.nav-pills{*zoom:1}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;line-height:0;content:""}.nav-tabs:after,.nav-pills:after{clear:both}.nav-tabs>li,.nav-pills>li{float:left}.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{margin-bottom:-1px}.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:20px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>.active>a,.nav-tabs>.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nav-pills>.active>a,.nav-pills>.active>a:hover{color:#fff;background-color:#08c}.nav-stacked>li{float:none}.nav-stacked>li>a{margin-right:0}.nav-tabs.nav-stacked{border-bottom:0}.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px}.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px}.nav-tabs.nav-stacked>li>a:hover{z-index:2;border-color:#ddd}.nav-pills.nav-stacked>li>a{margin-bottom:3px}.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.nav-tabs .dropdown-menu{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.nav-pills .dropdown-menu{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.nav .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.nav .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580}.nav-tabs .dropdown-toggle .caret{margin-top:8px}.nav .active .dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.nav-tabs .active .dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.nav>.dropdown.active>a:hover{cursor:pointer}.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>li.dropdown.open.active>a:hover{color:#fff;background-color:#999;border-color:#999}.nav li.dropdown.open .caret,.nav li.dropdown.open.active .caret,.nav li.dropdown.open a:hover .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.tabs-stacked .open>a:hover{border-color:#999}.tabbable{*zoom:1}.tabbable:before,.tabbable:after{display:table;line-height:0;content:""}.tabbable:after{clear:both}.tab-content{overflow:auto}.tabs-below>.nav-tabs,.tabs-right>.nav-tabs,.tabs-left>.nav-tabs{border-bottom:0}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.tabs-below>.nav-tabs{border-top:1px solid #ddd}.tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover{border-color:transparent #ddd #ddd #ddd}.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none}.tabs-left>.nav-tabs>li>a,.tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.tabs-left>.nav-tabs>li>a:hover{border-color:#eee #ddd #eee #eee}.tabs-left>.nav-tabs .active>a,.tabs-left>.nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd;*border-right-color:#fff}.tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tabs-right>.nav-tabs>li>a:hover{border-color:#eee #eee #eee #ddd}.tabs-right>.nav-tabs .active>a,.tabs-right>.nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent;*border-left-color:#fff}.nav>.disabled>a{color:#999}.nav>.disabled>a:hover{text-decoration:none;cursor:default;background-color:transparent}.navbar{*position:relative;*z-index:2;margin-bottom:20px;overflow:visible;color:#777}.navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#fafafa;background-image:-moz-linear-gradient(top,#fff,#f2f2f2);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f2f2f2));background-image:-webkit-linear-gradient(top,#fff,#f2f2f2);background-image:-o-linear-gradient(top,#fff,#f2f2f2);background-image:linear-gradient(to bottom,#fff,#f2f2f2);background-repeat:repeat-x;border:1px solid #d4d4d4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff2f2f2',GradientType=0);*zoom:1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.065);-moz-box-shadow:0 1px 4px rgba(0,0,0,0.065);box-shadow:0 1px 4px rgba(0,0,0,0.065)}.navbar-inner:before,.navbar-inner:after{display:table;line-height:0;content:""}.navbar-inner:after{clear:both}.navbar .container{width:auto}.nav-collapse.collapse{height:auto}.navbar .brand{display:block;float:left;padding:10px 20px 10px;margin-left:-20px;font-size:20px;font-weight:200;color:#777;text-shadow:0 1px 0 #fff}.navbar .brand:hover{text-decoration:none}.navbar-text{margin-bottom:0;line-height:40px}.navbar-link{color:#777}.navbar-link:hover{color:#333}.navbar .divider-vertical{height:40px;margin:0 9px;border-right:1px solid #fff;border-left:1px solid #f2f2f2}.navbar .btn,.navbar .btn-group{margin-top:5px}.navbar .btn-group .btn,.navbar .input-prepend .btn,.navbar .input-append .btn{margin-top:0}.navbar-form{margin-bottom:0;*zoom:1}.navbar-form:before,.navbar-form:after{display:table;line-height:0;content:""}.navbar-form:after{clear:both}.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px}.navbar-form input,.navbar-form select,.navbar-form .btn{display:inline-block;margin-bottom:0}.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px}.navbar-form .input-append,.navbar-form .input-prepend{margin-top:6px;white-space:nowrap}.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0}.navbar-search{position:relative;float:left;margin-top:5px;margin-bottom:0}.navbar-search .search-query{padding:4px 14px;margin-bottom:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.navbar-static-top{position:static;width:100%;margin-bottom:0}.navbar-static-top .navbar-inner{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{border-width:0 0 1px}.navbar-fixed-bottom .navbar-inner{border-width:1px 0 0}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.navbar-fixed-top{top:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1)}.navbar-fixed-bottom{bottom:0}.navbar-fixed-bottom .navbar-inner{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1)}.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.navbar .nav.pull-right{float:right;margin-right:0}.navbar .nav>li{float:left}.navbar .nav>li>a{float:none;padding:10px 15px 10px;color:#777;text-decoration:none;text-shadow:0 1px 0 #fff}.navbar .nav .dropdown-toggle .caret{margin-top:8px}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#333;text-decoration:none;background-color:transparent}.navbar .nav>.active>a,.navbar .nav>.active>a:hover,.navbar .nav>.active>a:focus{color:#555;text-decoration:none;background-color:#e5e5e5;-webkit-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);-moz-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);box-shadow:inset 0 3px 8px rgba(0,0,0,0.125)}.navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#ededed;*background-color:#e5e5e5;background-image:-webkit-gradient(linear,0 0,0 100%,from(#f2f2f2),to(#e5e5e5));background-image:-webkit-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-o-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:linear-gradient(to bottom,#f2f2f2,#e5e5e5);background-image:-moz-linear-gradient(top,#f2f2f2,#e5e5e5);background-repeat:repeat-x;border-color:#e5e5e5 #e5e5e5 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fff2f2f2',endColorstr='#ffe5e5e5',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075)}.navbar .btn-navbar:hover,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{color:#fff;background-color:#e5e5e5;*background-color:#d9d9d9}.navbar .btn-navbar:active,.navbar .btn-navbar.active{background-color:#ccc \9}.navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);box-shadow:0 1px 0 rgba(0,0,0,0.25)}.btn-navbar .icon-bar+.icon-bar{margin-top:3px}.navbar .nav>li>.dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:''}.navbar .nav>li>.dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.navbar-fixed-bottom .nav>li>.dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,0.2)}.navbar-fixed-bottom .nav>li>.dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.open.active>.dropdown-toggle{color:#555;background-color:#e5e5e5}.navbar .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#777;border-bottom-color:#777}.navbar .nav li.dropdown.open>.dropdown-toggle .caret,.navbar .nav li.dropdown.active>.dropdown-toggle .caret,.navbar .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.navbar .pull-right>li>.dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar .pull-right>li>.dropdown-menu:before,.navbar .nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.navbar .pull-right>li>.dropdown-menu:after,.navbar .nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.navbar .pull-right>li>.dropdown-menu .dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.navbar-inverse{color:#999}.navbar-inverse .navbar-inner{background-color:#1b1b1b;background-image:-moz-linear-gradient(top,#222,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#222),to(#111));background-image:-webkit-linear-gradient(top,#222,#111);background-image:-o-linear-gradient(top,#222,#111);background-image:linear-gradient(to bottom,#222,#111);background-repeat:repeat-x;border-color:#252525;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff222222',endColorstr='#ff111111',GradientType=0)}.navbar-inverse .brand,.navbar-inverse .nav>li>a{color:#999;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.navbar-inverse .brand:hover,.navbar-inverse .nav>li>a:hover{color:#fff}.navbar-inverse .nav>li>a:focus,.navbar-inverse .nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .nav .active>a,.navbar-inverse .nav .active>a:hover,.navbar-inverse .nav .active>a:focus{color:#fff;background-color:#111}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .divider-vertical{border-right-color:#222;border-left-color:#111}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle{color:#fff;background-color:#111}.navbar-inverse .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-search .search-query{color:#fff;background-color:#515151;border-color:#111;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.navbar-inverse .navbar-search .search-query:-moz-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:focus,.navbar-inverse .navbar-search .search-query.focused{padding:5px 15px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 3px rgba(0,0,0,0.15);box-shadow:0 0 3px rgba(0,0,0,0.15)}.navbar-inverse .btn-navbar{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e0e0e;*background-color:#040404;background-image:-webkit-gradient(linear,0 0,0 100%,from(#151515),to(#040404));background-image:-webkit-linear-gradient(top,#151515,#040404);background-image:-o-linear-gradient(top,#151515,#040404);background-image:linear-gradient(to bottom,#151515,#040404);background-image:-moz-linear-gradient(top,#151515,#040404);background-repeat:repeat-x;border-color:#040404 #040404 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff151515',endColorstr='#ff040404',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.navbar-inverse .btn-navbar:hover,.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active,.navbar-inverse .btn-navbar.disabled,.navbar-inverse .btn-navbar[disabled]{color:#fff;background-color:#040404;*background-color:#000}.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active{background-color:#000 \9}.breadcrumb{padding:8px 15px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.breadcrumb li{display:inline-block;*display:inline;text-shadow:0 1px 0 #fff;*zoom:1}.breadcrumb .divider{padding:0 5px;color:#ccc}.breadcrumb .active{color:#999}.pagination{height:40px;margin:20px 0}.pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.pagination ul>li{display:inline}.pagination ul>li>a,.pagination ul>li>span{float:left;padding:0 14px;line-height:38px;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination ul>li>a:hover,.pagination ul>.active>a,.pagination ul>.active>span{background-color:#f5f5f5}.pagination ul>.active>a,.pagination ul>.active>span{color:#999;cursor:default}.pagination ul>.disabled>span,.pagination ul>.disabled>a,.pagination ul>.disabled>a:hover{color:#999;cursor:default;background-color:transparent}.pagination ul>li:first-child>a,.pagination ul>li:first-child>span{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.pagination ul>li:last-child>a,.pagination ul>li:last-child>span{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.pagination-centered{text-align:center}.pagination-right{text-align:right}.pager{margin:20px 0;text-align:center;list-style:none;*zoom:1}.pager:before,.pager:after{display:table;line-height:0;content:""}.pager:after{clear:both}.pager li{display:inline}.pager a,.pager span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.pager a:hover{text-decoration:none;background-color:#f5f5f5}.pager .next a,.pager .next span{float:right}.pager .previous a{float:left}.pager .disabled a,.pager .disabled a:hover,.pager .disabled span{color:#999;cursor:default;background-color:#fff}.modal-open .modal .dropdown-menu{z-index:2050}.modal-open .modal .dropdown.open{*z-index:2050}.modal-open .modal .popover{z-index:2060}.modal-open .modal .tooltip{z-index:2080}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop,.modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.modal{position:fixed;top:50%;left:50%;z-index:1050;width:560px;margin:-250px 0 0 -280px;overflow:auto;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,0.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,0.3);box-shadow:0 3px 7px rgba(0,0,0,0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.modal.fade.in{top:50%}.modal-header{padding:9px 15px;border-bottom:1px solid #eee}.modal-header .close{margin-top:2px}.modal-header h3{margin:0;line-height:30px}.modal-body{max-height:400px;padding:15px;overflow-y:auto}.modal-form{margin-bottom:0}.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.modal-footer:before,.modal-footer:after{display:table;line-height:0;content:""}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.tooltip{position:absolute;z-index:1030;display:block;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{margin-top:-3px}.tooltip.right{margin-left:3px}.tooltip.bottom{margin-top:3px}.tooltip.left{margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;width:236px;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.popover.top{margin-bottom:10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-right:10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover-content p,.popover-content ul,.popover-content ol{margin-bottom:0}.popover .arrow,.popover .arrow:after{position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow:after{z-index:-1;content:""}.popover.top .arrow{bottom:-10px;left:50%;margin-left:-10px;border-top-color:#fff;border-width:10px 10px 0}.popover.top .arrow:after{bottom:-1px;left:-11px;border-top-color:rgba(0,0,0,0.25);border-width:11px 11px 0}.popover.right .arrow{top:50%;left:-10px;margin-top:-10px;border-right-color:#fff;border-width:10px 10px 10px 0}.popover.right .arrow:after{bottom:-11px;left:-1px;border-right-color:rgba(0,0,0,0.25);border-width:11px 11px 11px 0}.popover.bottom .arrow{top:-10px;left:50%;margin-left:-10px;border-bottom-color:#fff;border-width:0 10px 10px}.popover.bottom .arrow:after{top:-1px;left:-11px;border-bottom-color:rgba(0,0,0,0.25);border-width:0 11px 11px}.popover.left .arrow{top:50%;right:-10px;margin-top:-10px;border-left-color:#fff;border-width:10px 0 10px 10px}.popover.left .arrow:after{right:-1px;bottom:-11px;border-left-color:rgba(0,0,0,0.25);border-width:11px 0 11px 11px}.thumbnails{margin-left:-20px;list-style:none;*zoom:1}.thumbnails:before,.thumbnails:after{display:table;line-height:0;content:""}.thumbnails:after{clear:both}.row-fluid .thumbnails{margin-left:0}.thumbnails>li{float:left;margin-bottom:20px;margin-left:20px}.thumbnail{display:block;padding:4px;line-height:20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.055);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.055);box-shadow:0 1px 3px rgba(0,0,0,0.055);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.thumbnail:hover{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,0.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,0.25);box-shadow:0 1px 4px rgba(0,105,214,0.25)}.thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#555}.label,.badge{font-size:11.844px;font-weight:bold;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.label{padding:1px 4px 2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.badge{padding:1px 9px 2px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}a.label:hover,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.label-important,.badge-important{background-color:#b94a48}.label-important[href],.badge-important[href]{background-color:#953b39}.label-warning,.badge-warning{background-color:#f89406}.label-warning[href],.badge-warning[href]{background-color:#c67605}.label-success,.badge-success{background-color:#468847}.label-success[href],.badge-success[href]{background-color:#356635}.label-info,.badge-info{background-color:#3a87ad}.label-info[href],.badge-info[href]{background-color:#2d6987}.label-inverse,.badge-inverse{background-color:#333}.label-inverse[href],.badge-inverse[href]{background-color:#1a1a1a}.btn .label,.btn .badge{position:relative;top:-1px}.btn-mini .label,.btn-mini .badge{top:0}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(to bottom,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress .bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(to bottom,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff149bdf',endColorstr='#ff0480be',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15)}.progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-danger .bar,.progress .bar-danger{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(to bottom,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffc43c35',GradientType=0)}.progress-danger.progress-striped .bar,.progress-striped .bar-danger{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-success .bar,.progress .bar-success{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(to bottom,#62c462,#57a957);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff57a957',GradientType=0)}.progress-success.progress-striped .bar,.progress-striped .bar-success{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-info .bar,.progress .bar-info{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(to bottom,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff339bb9',GradientType=0)}.progress-info.progress-striped .bar,.progress-striped .bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-warning .bar,.progress .bar-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0)}.progress-warning.progress-striped .bar,.progress-striped .bar-warning{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.accordion{margin-bottom:20px}.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.accordion-heading{border-bottom:0}.accordion-heading .accordion-toggle{display:block;padding:8px 15px}.accordion-toggle{cursor:pointer}.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.carousel{position:relative;margin-bottom:20px;line-height:1}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel .item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel .item>img{display:block;line-height:1}.carousel .active,.carousel .next,.carousel .prev{display:block}.carousel .active{left:0}.carousel .next,.carousel .prev{position:absolute;top:0;width:100%}.carousel .next{left:100%}.carousel .prev{left:-100%}.carousel .next.left,.carousel .prev.right{left:0}.carousel .active.left{left:-100%}.carousel .active.right{left:100%}.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.carousel-control.right{right:15px;left:auto}.carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333;background:rgba(0,0,0,0.75)}.carousel-caption h4,.carousel-caption p{line-height:20px;color:#fff}.carousel-caption h4{margin:0 0 5px}.carousel-caption p{margin-bottom:0}.hero-unit{padding:60px;margin-bottom:30px;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.hero-unit p{font-size:18px;font-weight:200;line-height:30px;color:inherit}.pull-right{float:right}.pull-left{float:left}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/style.css b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/style.css deleted file mode 100644 index 7efa8110..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/css/style.css +++ /dev/null @@ -1,76 +0,0 @@ -body { - padding-top: 10px; -} - -.popover { - width: 600px; -} - -.table .progress { - margin-bottom: inherit; -} - -.table-borderless th, .table-borderless td { - border: 0 !important; -} - -.table tbody td.success, li.success, span.success { - background-color: #dff0d8; -} - -.table tbody tr.danger, .table tbody td.danger, li.danger, span.danger { - background-color: #f2dede; -} - -.table tbody td.warning, li.warning, span.warning { - background-color: #fcf8e3; -} - -.table tbody td.info { - background-color: #d9edf7; -} - -td.big { - width: 100px; -} - -td.small { -} - -td.codeLine { - font-family: monospace; - white-space: pre; -} - -td span.comment { - color: #888a85; -} - -td span.default { - color: #2e3436; -} - -td span.html { - color: #888a85; -} - -td span.keyword { - color: #2e3436; - font-weight: bold; -} - -pre span.string { - color: #2e3436; -} - -span.success, span.warning, span.danger { - margin-right: 2px; - padding-left: 10px; - padding-right: 10px; - text-align: center; -} - -#classCoverageDistribution, #classComplexity { - height: 200px; - width: 475px; -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist deleted file mode 100644 index a09c93a5..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Dashboard for {full_path} - - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -

    Class Coverage Distribution

    -
    -
    -
    -

    Class Complexity

    -
    -
    -
    -
    -
    -

    Top Project Risks

    -
      -{top_project_risks} -
    -
    -
    -

    Least Tested Methods

    -
      -{least_tested_methods} -
    -
    -
    - -
    - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist deleted file mode 100644 index 871333e2..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Code Coverage for {full_path} - - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - -{items} - -
     
    Code Coverage
     
    Lines
    Functions and Methods
    Classes and Traits
    -
    -

    Legend

    -

    - Low: 0% to {low_upper_bound}% - Medium: {low_upper_bound}% to {high_lower_bound}% - High: {high_lower_bound}% to 100% -

    -

    - Generated by PHP_CodeCoverage {version} using PHP {php_version}{generator} at {date}. -

    -
    -
    - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist deleted file mode 100644 index 4a19a06f..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist +++ /dev/null @@ -1,13 +0,0 @@ - - {icon}{name} - {lines_bar} -
    {lines_executed_percent}
    -
    {lines_number}
    - {methods_bar} -
    {methods_tested_percent}
    -
    {methods_number}
    - {classes_bar} -
    {classes_tested_percent}
    -
    {classes_number}
    - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist deleted file mode 100644 index f00d85ea..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Code Coverage for {full_path} - - - - - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - -{items} - -
     
    Code Coverage
     
    Classes and Traits
    Functions and Methods
    Lines
    - - -{lines} - -
    - -
    - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist deleted file mode 100644 index 7bff4e53..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist +++ /dev/null @@ -1,14 +0,0 @@ - - {name} - {classes_bar} -
    {classes_tested_percent}
    -
    {classes_number}
    - {methods_bar} -
    {methods_tested_percent}
    -
    {methods_number}
    - {crap} - {lines_bar} -
    {lines_executed_percent}
    -
    {lines_number}
    - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings-white.png b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings-white.png deleted file mode 100644 index 3bf6484a29d8da269f9bc874b25493a45fae3bae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8777 zcmZvC1yGz#v+m*$LXcp=A$ZWB0fL7wNbp_U*$~{_gL`my3oP#L!5tQYy99Ta`+g_q zKlj|KJ2f@c)ARJx{q*bbkhN_!|Wn*Vos8{TEhUT@5e;_WJsIMMcG5%>DiS&dv_N`4@J0cnAQ-#>RjZ z00W5t&tJ^l-QC*ST1-p~00u^9XJ=AUl7oW-;2a+x2k__T=grN{+1c4XK0ZL~^z^i$ zp&>vEhr@4fZWb380S18T&!0cQ3IKpHF)?v=b_NIm0Q>vwY7D0baZ)n z31Fa5sELUQARIVaU0nqf0XzT+fB_63aA;@<$l~wse|mcA;^G1TmX?-)e)jkGPfkuA z92@|!<>h5S_4f8QP-JRq>d&7)^Yin8l7K8gED$&_FaV?gY+wLjpoW%~7NDe=nHfMG z5DO3j{R9kv5GbssrUpO)OyvVrlx>u0UKD0i;Dpm5S5dY16(DL5l{ixz|mhJU@&-OWCTb7_%}8-fE(P~+XIRO zJU|wp1|S>|J3KrLcz^+v1f&BDpd>&MAaibR4#5A_4(MucZwG9E1h4@u0P@C8;oo+g zIVj7kfJi{oV~E(NZ*h(@^-(Q(C`Psb3KZ{N;^GB(a8NE*Vwc715!9 zr-H4Ao|T_c6+VT_JH9H+P3>iXSt!a$F`>s`jn`w9GZ_~B!{0soaiV|O_c^R2aWa%}O3jUE)WO=pa zs~_Wz08z|ieY5A%$@FcBF9^!1a}m5ks@7gjn;67N>}S~Hrm`4sM5Hh`q7&5-N{|31 z6x1{ol7BnskoViZ0GqbLa#kW`Z)VCjt1MysKg|rT zi!?s##Ck>8c zpi|>$lGlw#@yMNi&V4`6OBGJ(H&7lqLlcTQ&1zWriG_fL>BnFcr~?;E93{M-xIozQ zO=EHQ#+?<}%@wbWWv23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-JBU0-T9zZ%>7mR3l$~QV$({o0;jTI ze5=cN^!Bc2bT|BcojXp~K#2cM>OTe*cM{Kg-j*CkiW)EGQot^}s;cy8_1_@JA0Whq zlrNr+R;Efa+`6N)s5rH*|E)nYZ3uqkk2C(E7@A|3YI`ozP~9Lexx#*1(r8luq+YPk z{J}c$s` zPM35Fx(YWB3Z5IYnN+L_4|jaR(5iWJi2~l&xy}aU7kW?o-V*6Av2wyZTG!E2KSW2* zGRLQkQU;Oz##ie-Z4fI)WSRxn$(ZcD;TL+;^r=a4(G~H3ZhK$lSXZj?cvyY8%d9JM zzc3#pD^W_QnWy#rx#;c&N@sqHhrnHRmj#i;s%zLm6SE(n&BWpd&f7>XnjV}OlZntI70fq%8~9<7 zMYaw`E-rp49-oC1N_uZTo)Cu%RR2QWdHpzQIcNsoDp`3xfP+`gI?tVQZ4X={qU?(n zV>0ASES^Xuc;9JBji{)RnFL(Lez;8XbB1uWaMp@p?7xhXk6V#!6B@aP4Rz7-K%a>i z?fvf}va_DGUXlI#4--`A3qK7J?-HwnG7O~H2;zR~RLW)_^#La!=}+>KW#anZ{|^D3 B7G?kd diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings.png b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings.png deleted file mode 100644 index a9969993201f9cee63cf9f49217646347297b643..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12799 zcma*OWmH^Ivn@*S;K3nSf_t!#;0f+&pm7Po8`nk}2q8f5;M%x$SdAkd9FAvlc$ zx660V9e3Ox@4WZ^?7jZ%QFGU-T~%||Ug4iK6bbQY@zBuF2$hxOw9wF=A)nUSxR_5@ zEX>HBryGrjyuOFFv$Y4<+|3H@gQfEqD<)+}a~mryD|1U9*I_FOG&F%+Ww{SJ-V2BR zjt<81Ek$}Yb*95D4RS0HCps|uLyovt;P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mBpWeznn?E0M$F`|3v=`3%T2A17h;rxP7$%JLd=6(2u;`(N3pt&so# diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js deleted file mode 100644 index 0e33fb16..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! -* Bootstrap.js by @fat & @mdo -* Copyright 2012 Twitter, Inc. -* http://www.apache.org/licenses/LICENSE-2.0.txt -*/ -!function(e){e(function(){"use strict";e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e(function(){e("body").on("click.alert.data-api",t,n.prototype.close)})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")},e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e(function(){e("body").on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=n,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},to:function(t){var n=this.$element.find(".item.active"),r=n.parent().children(),i=r.index(n),s=this;if(t>r.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){s.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(r[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f=e.Event("slide",{relatedTarget:i[0]});this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u]();if(i.hasClass("active"))return;if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}},e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e(function(){e("body").on("click.carousel.data-api","[data-slide]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=!i.data("modal")&&e.extend({},i.data(),n.data());i.carousel(s),t.preventDefault()})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning)return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning)return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=typeof n=="object"&&n;i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e(function(){e("body").on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})})}(window.jQuery),!function(e){"use strict";function r(){i(e(t)).removeClass("open")}function i(t){var n=t.attr("data-target"),r;return n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=e(n),r.length||(r=t.parent()),r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||(s.toggleClass("open"),n.focus()),!1},keydown:function(t){var n,r,s,o,u,a;if(!/(38|40|27)/.test(t.keyCode))return;n=e(this),t.preventDefault(),t.stopPropagation();if(n.is(".disabled, :disabled"))return;o=i(n),u=o.hasClass("open");if(!u||u&&t.keyCode==27)return n.click();r=e("[role=menu] li:not(.divider) a",o);if(!r.length)return;a=r.index(r.filter(":focus")),t.keyCode==38&&a>0&&a--,t.keyCode==40&&a').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,e.proxy(this.removeBackdrop,this)):this.removeBackdrop()):t&&t()}},e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e(function(){e("body").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):this.options.trigger!="manual"&&(i=this.options.trigger=="hover"?"mouseenter":"focus",s=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))),this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);if(!n.options.delay||!n.options.delay.show)return n.show();clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){n.hoverState=="in"&&n.show()},n.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var e,t,n,r,i,s,o;if(this.hasContent()&&this.enabled){e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,t=/in/.test(s),e.remove().css({top:0,left:0,display:"block"}).appendTo(t?this.$element:document.body),n=this.getPosition(t),r=e[0].offsetWidth,i=e[0].offsetHeight;switch(t?s.split(" ")[1]:s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}e.css(o).addClass(s).addClass("in")}},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function r(){var t=setTimeout(function(){n.off(e.support.transition.end).remove()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.remove()})}var t=this,n=this.tip();return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?r():n.remove(),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return e.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}},e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
    ',trigger:"hover",title:"",delay:0,html:!0}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content > *")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}}),e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

    '})}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var t=e(this),n=t.data("target")||t.attr("href"),r=/^#\w/.test(n)&&e(n);return r&&r.length&&[[r.position().top,n]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}},e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active a").last()[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}},e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e(function(){e("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=e(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:t.top+t.height,left:t.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length"+t+""})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),(e.browser.chrome||e.browser.webkit||e.browser.msie)&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this))},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=!~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},blur:function(e){var t=this;setTimeout(function(){t.hide()},150)},click:function(e){e.stopPropagation(),e.preventDefault(),this.select()},mouseenter:function(t){this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")}},e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},e.fn.typeahead.Constructor=t,e(function(){e("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;t.preventDefault(),n.typeahead(n.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))},e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery); \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/highcharts.js b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/highcharts.js deleted file mode 100644 index 0a7fd0ff..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/highcharts.js +++ /dev/null @@ -1,245 +0,0 @@ -/* - Highcharts JS v2.3.2 (2012-08-31) - - (c) 2009-2011 Torstein Hønsi - - License: www.highcharts.com/license -*/ -(function(){function s(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function la(){for(var a=0,b=arguments,c=b.length,d={};a-1?b.split(".")[1].length:0):a=isNaN(b=N(b))?2:b;var b=a,c=c===void 0?e.decimalPoint:c,d=d===void 0?e.thousandsSep:d,e=f<0?"-":"",a=String(A(f=N(+f||0).toFixed(b))),g=a.length>3?a.length%3:0;return e+(g?a.substr(0,g)+d:"")+a.substr(g).replace(/(\d{3})(?=\d)/g, -"$1"+d)+(b?c+N(f-a).toFixed(b).slice(2):"")}function sa(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function hb(a,b,c,d){var e,c=p(c,1);e=a/c;b||(b=[1,2,2.5,5,10],d&&d.allowDecimals===!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d=D[ib]&&(i.setMilliseconds(0),i.setSeconds(b>=D[Ua]?0:j*V(i.getSeconds()/j)));if(b>=D[Ua])i[Ab](b>=D[Ja]?0:j*V(i[jb]()/j));if(b>=D[Ja])i[Bb](b>=D[pa]?0:j*V(i[kb]()/ -j));if(b>=D[pa])i[lb](b>=D[Ka]?1:j*V(i[La]()/j));b>=D[Ka]&&(i[Cb](b>=D[ta]?0:j*V(i[Wa]()/j)),h=i[Xa]());b>=D[ta]&&(h-=h%j,i[Db](h));if(b===D[Va])i[lb](i[La]()-i[mb]()+p(d,1));d=1;h=i[Xa]();for(var k=i.getTime(),l=i[Wa](),m=i[La](),i=g?0:(864E5+i.getTimezoneOffset()*6E4)%864E5;kc&&(c=a[b]);return c}function Aa(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Na(a){Za||(Za=S(ia));a&&Za.appendChild(a);Za.innerHTML=""}function $a(a, -b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;else L.console&&console.log(c)}function ja(a){return parseFloat(a.toPrecision(14))}function ua(a,b){Oa=p(a,b.animation)}function Gb(){var a=O.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";Ya=a?Date.UTC:function(a,b,c,g,h,i){return(new Date(a,b,p(c,1),p(g,0),p(h,0),p(i,0))).getTime()};jb=b+"Minutes";kb=b+"Hours";mb=b+"Day";La=b+"Date";Wa=b+"Month";Xa=b+"FullYear";Ab=c+"Minutes";Bb=c+"Hours";lb=c+"Date";Cb=c+"Month"; -Db=c+"FullYear"}function va(){}function Pa(a,b,c){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;c||this.addLabel()}function nb(a,b){this.axis=a;if(b)this.options=b,this.id=b.id;return this}function Hb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.stack=e;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:p(b.y,f?4:c?14:-6),x:p(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign|| -(f?c?"right":"left":"center")}function ob(){this.init.apply(this,arguments)}function pb(a,b){var c=b.borderWidth,d=b.style,e=A(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=a.renderer.label("",0,0,b.shape,null,null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8}).css(d).css({padding:0}).hide().add();$||this.label.shadow(b.shadow);this.shared=b.shared}function qb(a,b){var c=$?"": -b.chart.zoomType;this.zoomX=/x/.test(c);this.zoomY=/y/.test(c);this.options=b;this.chart=a;this.init(a,b.tooltip)}function rb(a){this.init(a)}function sb(a,b){var c,d=a.series;a.series=null;c=C(O,a);c.series=a.series=d;var d=c.chart,e=d.margin,e=Z(e)?e:[e,e,e,e];this.optionsMarginTop=p(d.marginTop,e[0]);this.optionsMarginRight=p(d.marginRight,e[1]);this.optionsMarginBottom=p(d.marginBottom,e[2]);this.optionsMarginLeft=p(d.marginLeft,e[3]);this.runChartClick=(e=d.events)&&!!e.click;this.callback=b; -this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;this.init(e)}var x,z=document,L=window,K=Math,t=K.round,V=K.floor,wa=K.ceil,v=K.max,P=K.min,N=K.abs,W=K.cos,aa=K.sin,xa=K.PI,ab=xa*2/360,Ba=navigator.userAgent,Ib=L.opera,Ha=/msie/i.test(Ba)&&!Ib,Qa=z.documentMode===8,tb=/AppleWebKit/.test(Ba),bb=/Firefox/.test(Ba),fa=!!z.createElementNS&&!!z.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,Pb=bb&&parseInt(Ba.split("Firefox/")[1],10)<4, -$=!fa&&!Ha&&!!z.createElement("canvas").getContext,Ra,ga=z.documentElement.ontouchstart!==x,Jb={},ub=0,Za,O,cb,Oa,vb,D,Ca=function(){},ia="div",T="none",wb="rgba(192,192,192,"+(fa?1.0E-6:0.0020)+")",zb="millisecond",ib="second",Ua="minute",Ja="hour",pa="day",Va="week",Ka="month",ta="year",Ya,jb,kb,mb,La,Wa,Xa,Ab,Bb,lb,Cb,Db,ba={};L.Highcharts={};cb=function(a,b,c){if(!u(b)||isNaN(b))return"Invalid date";var a=p(a,"%Y-%m-%d %H:%M:%S"),d=new Date(b),e,f=d[kb](),g=d[mb](),h=d[La](),i=d[Wa](),j=d[Xa](), -k=O.lang,l=k.weekdays,b={a:l[g].substr(0,3),A:l[g],d:sa(h),e:h,b:k.shortMonths[i],B:k.months[i],m:sa(i+1),y:j.toString().substr(2,2),Y:j,H:sa(f),I:sa(f%12||12),l:f%12||12,M:sa(d[jb]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:sa(d.getSeconds()),L:sa(t(b%1E3),3)};for(e in b)a=a.replace("%"+e,b[e]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a};Eb.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};D=la(zb,1,ib,1E3,Ua,6E4,Ja,36E5, -pa,864E5,Va,6048E5,Ka,2592E6,ta,31556952E3);vb={init:function(a,b,c){var b=b||"",d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,i,j=function(a){for(g=a.length;g--;)a[g]==="M"&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(j(b),j(c));a.isArea&&(h=b.splice(b.length-6,6),i=c.splice(c.length-6,6));if(d<=c.length/f)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length{point.key}
    ',pointFormat:'{series.name}: {point.y}
    ',shadow:!0,shared:$,snap:ga?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer", -color:"#909090",fontSize:"10px"}}};var Y=O.plotOptions,X=Y.line;Gb();var qa=function(a){var b=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?b=[A(c[1]),A(c[2]),A(c[3]),parseFloat(c[4],10)]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(b=[A(c[1],16),A(c[2],16),A(c[3],16),1])})(a);return{get:function(c){return b&&!isNaN(b[0])?c==="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":c==="a"?b[3]:"rgba("+b.join(",")+ -")":a},brighten:function(a){if(Ga(a)&&a!==0){var c;for(c=0;c<3;c++)b[c]+=A(a*255),b[c]<0&&(b[c]=0),b[c]>255&&(b[c]=255)}return this},setOpacity:function(a){b[3]=a;return this}}};va.prototype={init:function(a,b){this.element=b==="span"?S(b):z.createElementNS("http://www.w3.org/2000/svg",b);this.renderer=a;this.attrSetters={}},animate:function(a,b,c){b=p(b,Oa,!0);eb(this);if(b){b=C(b);if(c)b.complete=c;xb(this,a,b)}else this.attr(a),c&&c()},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName, -i=this.renderer,j,k=this.attrSetters,l=this.shadows,m,o,r=this;ma(a)&&u(b)&&(c=a,a={},a[c]=b);if(ma(a))c=a,h==="circle"?c={x:"cx",y:"cy"}[c]||c:c==="strokeWidth"&&(c="stroke-width"),r=B(g,c)||this[c]||0,c!=="d"&&c!=="visibility"&&(r=parseFloat(r));else for(c in a)if(j=!1,d=a[c],e=k[c]&&k[c].call(this,d,c),e!==!1){e!==x&&(d=e);if(c==="d")d&&d.join&&(d=d.join(" ")),/(NaN| {2}|^$)/.test(d)&&(d="M 0 0");else if(c==="x"&&h==="text"){for(e=0;em&&/[ \-]/.test(b.innerText)&&(G(b,{width:m+"px",display:"block",whiteSpace:"normal"}),k=m);m=a.fontMetrics(b.style.fontSize).b;q=r<0&&-k;y=o<0&&-l;ea=r*o<0;q+=o*m*(ea?1-h:h);y-=r*m*(j?ea?h:1-h:1);i&&(q-=k*h*(r<0?-1:1),j&&(y-=l*h*(o<0?-1:1)),G(b,{textAlign:g}));this.xCorr=q;this.yCorr=y}G(b,{left:e+q+"px",top:f+y+"px"});this.cTT=M}}else this.alignOnAdd= -!0},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.inverted,d=this.rotation,e=[];c&&(a+=this.attr("width"),b+=this.attr("height"));(a||b)&&e.push("translate("+a+","+b+")");c?e.push("rotate(90) scale(-1,1)"):d&&e.push("rotate("+d+" "+(this.x||0)+" "+(this.y||0)+")");e.length&&B(this.element,"transform",e.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){a?(this.alignOptions=a,this.alignByTranslate=b,c|| -this.renderer.alignedObjects.push(this)):(a=this.alignOptions,b=this.alignByTranslate);var c=p(c,this.renderer),d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};/^(right|center)$/.test(d)&&(f+=(c.width-(a.width||0))/{right:1,center:2}[d]);h[b?"translateX":"x"]=t(f);/^(bottom|middle)$/.test(e)&&(g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1));h[b?"translateY":"y"]=t(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(){var a= -this.bBox,b=this.renderer,c,d=this.rotation;c=this.element;var e=d*ab;if(!a){if(c.namespaceURI==="http://www.w3.org/2000/svg"||b.forExport){try{a=c.getBBox?s({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(f){}if(!a||a.width<0)a={width:0,height:0}}else a=this.htmlGetBBox();if(b.isSVG&&(b=a.width,c=a.height,d))a.width=N(c*aa(e))+N(b*W(e)),a.height=N(c*W(e))+N(b*aa(e));this.bBox=a}return a},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})}, -add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=B(f,"zIndex"),h;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;this.textStr!==void 0&&b.buildText(this);if(g)c.handleZ=!0,g=A(g);if(c.handleZ)for(c=0;cg||!u(g)&&u(b))){d.insertBefore(f,a);h=!0;break}h||d.appendChild(f);this.added=!0;E(this,"add");return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a= -this,b=a.element||{},c=a.shadows,d=a.box,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null;eb(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g),d=b.childNodes,e=/style="([^"]+)"/,f=/href="([^"]+)"/,g=B(b,"x"),h=a.styles,i=h&&A(h.width),j=h&&h.lineHeight,k,h=d.length,l=[];h--;)b.removeChild(d[h]);i&&!a.added&&this.box.appendChild(b); -c[c.length-1]===""&&c.pop();n(c,function(c,d){var h,ea=0,q,c=c.replace(//g,"|||");h=c.split("|||");n(h,function(c){if(c!==""||h.length===1){var m={},p=z.createElementNS("http://www.w3.org/2000/svg","tspan");e.test(c)&&B(p,"style",c.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"));f.test(c)&&(B(p,"onclick",'location.href="'+c.match(f)[1]+'"'),G(p,{cursor:"pointer"}));c=(c.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">");p.appendChild(z.createTextNode(c)); -ea?m.dx=3:m.x=g;if(!ea){if(d){!fa&&a.renderer.forExport&&G(p,{display:"block"});q=L.getComputedStyle&&A(L.getComputedStyle(k,null).getPropertyValue("line-height"));if(!q||isNaN(q)){var n;if(!(n=j))if(!(n=k.offsetHeight))l[d]=b.getBBox?b.getBBox().height:a.renderer.fontMetrics(b.style.fontSize).h,n=t(l[d]-(l[d-1]||0))||18;q=n}B(p,"dy",q)}k=p}B(p,m);b.appendChild(p);ea++;if(i)for(var c=c.replace(/-/g,"- ").split(" "),I=[];c.length||I.length;)delete a.bBox,n=a.getBBox().width,m=n>i,!m||c.length===1? -(c=I,I=[],c.length&&(p=z.createElementNS("http://www.w3.org/2000/svg","tspan"),B(p,{dy:j||16,x:g}),b.appendChild(p),n>i&&(i=n))):(p.removeChild(p.firstChild),I.unshift(c.pop())),c.length&&p.appendChild(z.createTextNode(c.join(" ").replace(/- /g,"-")))}})})},button:function(a,b,c,d,e,f,g){var h=this.label(a,b,c),i=0,j,k,l,m,o,a={x1:0,y1:0,x2:0,y2:1},e=C(la("stroke-width",1,"stroke","#999","fill",la("linearGradient",a,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",la("color","black")),e); -l=e.style;delete e.style;f=C(e,la("stroke","#68A","fill",la("linearGradient",a,"stops",[[0,"#FFF"],[1,"#ACF"]])),f);m=f.style;delete f.style;g=C(e,la("stroke","#68A","fill",la("linearGradient",a,"stops",[[0,"#9BD"],[1,"#CDF"]])),g);o=g.style;delete g.style;H(h.element,"mouseenter",function(){h.attr(f).css(m)});H(h.element,"mouseleave",function(){j=[e,f,g][i];k=[l,m,o][i];h.attr(j).css(k)});h.setState=function(a){(i=a)?a===2&&h.attr(g).css(o):h.attr(e).css(l)};return h.on("click",function(){d.call(h)}).attr(e).css(s({cursor:"default"}, -l))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=t(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=t(a[2])+b%2/2);return a},path:function(a){var b={fill:T};Fa(a)?b.d=a:Z(a)&&s(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=Z(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(Z(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;return this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,d,e,f){e=Z(a)? -a.r:e;e=this.createElement("rect").attr({rx:e,ry:e,fill:T});return e.attr(Z(a)?a:e.crisp(f,a,b,v(c,0),v(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[p(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return u(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:T};arguments.length>1&&s(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f); -f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(t(b),t(c),d,e,f),i=/^url\((.*?)\)$/,j,k;h?(g=this.path(h),s(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&s(g,f)):i.test(a)&&(k=function(a,b){a.attr({width:b[0],height:b[1]});a.alignByTranslate||a.translate(-t(b[0]/2),-t(b[1]/2))},j=a.match(i)[1],a=Jb[j],g=this.image(j).attr({x:b,y:c}),a?k(g,a):(g.attr({width:0, -height:0}),S("img",{onload:function(){k(g,Jb[j]=[this.width,this.height])},src:j})));return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+ -c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-1.0E-6,d=e.innerR,h=e.open,i=W(f),j=aa(f),k=W(g),g=aa(g),e=e.end-f');if(b)c=b===ia||b==="span"||b==="img"?c.join(""):a.prepVML(c),this.element=S(c);this.renderer=a;this.attrSetters={}},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();E(this,"add");return this},updateTransform:va.prototype.htmlUpdateTransform, -attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,i=this.renderer,j=this.symbolName,k,l=this.shadows,m,o=this.attrSetters,r=this;ma(a)&&u(b)&&(c=a,a={},a[c]=b);if(ma(a))c=a,r=c==="strokeWidth"||c==="stroke-width"?this.strokeweight:this[c];else for(c in a)if(d=a[c],m=!1,e=o[c]&&o[c].call(this,d,c),e!==!1&&d!==null){e!==x&&(d=e);if(j&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c))k||(this.symbolAttr(a),k=!0),m=!0;else if(c==="d"){d=d||[];this.d=d.join(" ");e= -d.length;for(m=[];e--;)m[e]=Ga(d[e])?t(d[e]*10)-5:d[e]==="Z"?"x":d[e];d=m.join(" ")||"x";f.path=d;if(l)for(e=l.length;e--;)l[e].path=l[e].cutOff?this.cutOffPath(d,l[e].cutOff):d;m=!0}else if(c==="visibility"){if(l)for(e=l.length;e--;)l[e].style[c]=d;h==="DIV"&&(d=d==="hidden"?"-999em":0,c="top");g[c]=d;m=!0}else if(c==="zIndex")d&&(g[c]=d),m=!0;else if(c==="width"||c==="height")d=v(0,d),this[c]=d,this.updateClipping?(this[c]=d,this.updateClipping()):g[c]=d,m=!0;else if(c==="x"||c==="y")this[c]=d, -g[{x:"left",y:"top"}[c]]=d;else if(c==="class")f.className=d;else if(c==="stroke")d=i.color(d,f,c),c="strokecolor";else if(c==="stroke-width"||c==="strokeWidth")f.stroked=d?!0:!1,c="strokeweight",this[c]=d,Ga(d)&&(d+="px");else if(c==="dashstyle")(f.getElementsByTagName("stroke")[0]||S(i.prepVML([""]),null,null,f))[c]=d||"solid",this.dashstyle=d,m=!0;else if(c==="fill")h==="SPAN"?g.color=d:(f.filled=d!==T?!0:!1,d=i.color(d,f,c,this),c="fillcolor");else if(h==="shape"&&c==="rotation")this[c]= -d,f.style.left=-t(aa(d*ab)+1)+"px",f.style.top=t(W(d*ab))+"px";else if(c==="translateX"||c==="translateY"||c==="rotation")this[c]=d,this.updateTransform(),m=!0;else if(c==="text")this.bBox=null,f.innerHTML=d,m=!0;m||(Qa?f[c]=d:B(f,c,d))}return r},clip:function(a){var b=this,c,d=b.element,e=d.parentNode;a?(c=a.members,c.push(b),b.destroyClip=function(){ya(c,b)},e&&e.className==="highcharts-tracker"&&!Qa&&G(d,{visibility:"hidden"}),a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:Qa?"inherit": -"rect(auto)"});return b.css(a)},css:va.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Na(a)},destroy:function(){this.destroyClip&&this.destroyClip();return va.prototype.destroy.apply(this)},empty:function(){for(var a=this.element.childNodes,b=a.length,c;b--;)c=a[b],c.parentNode.removeChild(c)},on:function(a,b){this.element["on"+a]=function(){var a=L.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]= -A(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,i=f.style,j,k=f.path,l,m,o,r;k&&typeof k.value!=="string"&&(k="x");m=k;if(a){o=p(a.width,3);r=(a.opacity||0.15)/o;for(e=1;e<=3;e++){l=o*2+1-2*e;c&&(m=this.cutOffPath(k.value,l+0.5));j=[''];h=S(g.prepVML(j),null,{left:A(i.left)+(a.offsetX||1),top:A(i.top)+(a.offsetY||1)});if(c)h.cutOff= -l+1;j=[''];S(g.prepVML(j),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this}};ka=da(va,ka);var ha={Element:ka,isIE8:Ba.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d,e;this.alignedObjects=[];d=this.createElement(ia);e=d.element;e.style.position="relative";a.appendChild(d.element);this.box=e;this.boxWrapper=d;this.setSize(b,c,!1);if(!z.namespaces.hcv)z.namespaces.add("hcv","urn:schemas-microsoft-com:vml"), -z.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=Z(a);return s(e,{members:[],left:f?a.x:a,top:f?a.y:b,width:f?a.width:c,height:f?a.height:d,getCSS:function(a){var b=a.inverted,c=this.top,d=this.left,e=d+this.width,f=c+this.height,c={clip:"rect("+t(b?d:c)+"px,"+t(b?f:e)+"px,"+t(b?e:f)+"px,"+t(b?c:d)+"px)"};!b&& -Qa&&a.element.nodeName!=="IMG"&&s(c,{width:e+"px",height:f+"px"});return c},updateClipping:function(){n(e.members,function(a){a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,i,j=T;a&&a.linearGradient?i="gradient":a&&a.radialGradient&&(i="pattern");if(i){var k,l,m=a.linearGradient||a.radialGradient,o,r,p,q,y,M="",a=a.stops,u,w=[],I=function(){h=[''];S(e.prepVML(h), -null,null,b)};o=a[0];u=a[a.length-1];o[0]>0&&a.unshift([0,o[1]]);u[0]<1&&a.push([1,u[1]]);n(a,function(a,b){g.test(a[1])?(f=qa(a[1]),k=f.get("rgb"),l=f.get("a")):(k=a[1],l=1);w.push(a[0]*100+"% "+k);b?(p=l,q=k):(r=l,y=k)});if(c==="fill")if(i==="gradient")c=m.x1||m[0]||0,a=m.y1||m[1]||0,o=m.x2||m[2]||0,m=m.y2||m[3]||0,M='angle="'+(90-K.atan((m-a)/(o-c))*180/xa)+'"',I();else{var j=m.r,J=j*2,Q=j*2,t=m.cx,s=m.cy,v=b.radialReference,x,j=function(){v&&(x=d.getBBox(),t+=(v[0]-x.x)/x.width-0.5,s+=(v[1]-x.y)/ -x.height-0.5,J*=v[2]/x.width,Q*=v[2]/x.height);M='src="'+O.global.VMLRadialGradientURL+'" size="'+J+","+Q+'" origin="0.5,0.5" position="'+t+","+s+'" color2="'+y+'" ';I()};d.added?j():H(d,"add",j);j=q}else j=k}else if(g.test(a)&&b.tagName!=="IMG")f=qa(a),h=["<",c,' opacity="',f.get("a"),'"/>'],S(this.prepVML(h),null,null,b),j=f.get("rgb");else{j=b.getElementsByTagName(c);if(j.length)j[0].opacity=1;j=a}return j},prepVML:function(a){var b=this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'), -a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","1&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(Z(a))b=a.y,c=a.width,d=a.height,f=a.strokeWidth,a=a.x;var g=this.symbol("rect");g.r=e;return g.attr(g.crisp(f,a,b,v(c,0),v(d,0)))},invertChild:function(a,b){var c=b.style;G(a,{flip:"x",left:A(c.width)-1,top:A(c.height)-1,rotation:-90})},symbols:{arc:function(a,b, -c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=W(f),d=aa(f),i=W(g),j=aa(g),k=e.innerR,l=0.08/h,m=k&&0.1/k||0;if(g-f===0)return["x"];else 2*xa-g+fj&&(c=!1)):h+k>m&&(h=m-k,d&&h+l0&&b.height>0){f= -C({align:c&&k&&"center",x:c?!k&&4:10,verticalAlign:!c&&k&&"middle",y:c?k?16:10:k?6:-4,rotation:c&&!k&&90},f);if(!g)a.label=g=t.text(f.text,0,0).attr({align:f.textAlign||f.align,rotation:f.rotation,zIndex:y}).css(f.style).add();b=[r[1],r[4],p(r[6],r[1])];r=[r[2],r[5],p(r[7],r[2])];c=Ma(b);k=Ma(r);g.align(f,!1,{x:c,y:k,width:za(b)-c,height:za(r)-k});g.show()}else g&&g.hide();return a},destroy:function(){ya(this.axis.plotLinesAndBands,this);Aa(this,this.axis)}};Hb.prototype={destroy:function(){Aa(this, -this.axis)},setTotal:function(a){this.cum=this.total=a},render:function(a){var b=this.options.formatter.call(this);this.label?this.label.attr({text:b,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(b,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=this.isNegative,g=c.translate(this.total,0,0,0,1),c=c.translate(0),c=N(g-c),h=d.xAxis[0].translate(this.x)+ -a,d=d.plotHeight,e={x:e?f?g:g-c:h,y:e?d-h-b:f?d-g-c:d-g,width:e?c:b,height:e?b:c};this.label&&this.label.align(this.alignOptions,null,e).attr({visibility:"visible"})}};ob.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:F,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1, -minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270, -text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:F.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.xOrY=(this.isXAxis=c)?"x": -"y";this.opposite=b.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(b);var d=this.options,e=d.type,f=e==="datetime";this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.staggerLines=this.horiz&&d.labels.staggerLines;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.categories=d.categories;this.isLog=e==="logarithmic";this.isLinked=u(d.linkedTo);this.isDatetimeAxis=f;this.tickmarkOffset=d.categories&&d.tickmarkPlacement=== -"between"?0.5:0;this.ticks={};this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.min=this.max=null;var g,d=this.options.events;a.axes.push(this);a[c?"xAxis":"yAxis"].push(this);this.series=[];if(a.inverted&&c&&this.reversed===x)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;this.addPlotLine=this.addPlotBand=this.addPlotBandOrLine; -for(g in d)H(this,g,d[g]);if(this.isLog)this.val2lin=na,this.lin2val=ca},setOptions:function(a){this.options=C(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],C(O[this.isXAxis?"xAxis":"yAxis"],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=this.dateTimeLabelFormat,d=O.lang.numericSymbols,e=d&&d.length,f,g=a.isLog?b:a.tickInterval;if(a.categories)f= -b;else if(c)f=cb(c,b);else if(e&&g>=1E3)for(;e--&&f===x;)a=Math.pow(1E3,e+1),g>=a&&d[e]!==null&&(f=Ia(b/a,-1)+d[e]);f===x&&(f=b>=1E3?Ia(b,0):Ia(b,-1));return f},getSeriesExtremes:function(){var a=this,b=a.chart,c=a.stacks,d=[],e=[],f;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=null;n(a.series,function(g){if(g.visible||!b.options.chart.ignoreHiddenSeries){var h=g.options,i,j,k,l,m,o,r,n,q,y=h.threshold,t,s=[],w=0;a.hasVisibleSeries=!0;if(a.isLog&&y<=0)y=h.threshold=null;if(a.isXAxis){if(h=g.xData,h.length)a.dataMin= -P(p(a.dataMin,h[0]),Ma(h)),a.dataMax=v(p(a.dataMax,h[0]),za(h))}else{var I,J,Q,C=g.cropped,Ea=g.xAxis.getExtremes(),A=!!g.modifyValue;i=h.stacking;a.usePercentage=i==="percent";if(i)m=h.stack,l=g.type+p(m,""),o="-"+l,g.stackKey=l,j=d[l]||[],d[l]=j,k=e[o]||[],e[o]=k;if(a.usePercentage)a.dataMin=0,a.dataMax=99;h=g.processedXData;r=g.processedYData;t=r.length;for(f=0;f=Ea.min&&(h[f-1]||n)<=Ea.max))if(n=q.length)for(;n--;)q[n]!==null&&(s[w++]=q[n]);else s[w++]=q;if(!a.usePercentage&&s.length)a.dataMin=P(p(a.dataMin,s[0]),Ma(s)),a.dataMax=v(p(a.dataMax,s[0]),za(s));if(u(y))if(a.dataMin>=y)a.dataMin=y,a.ignoreMinPadding=!0;else if(a.dataMaxe+this.width)l=!0}else if(c=e,h=k-this.right,gf+this.height)l=!0;return l?null:d.renderer.crispLine(["M",c,g,"L",h,i],b||0)},getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath(a);d&&c?d.push(c[4],c[5],c[1],c[2]):d=null;return d},getLinearTickPositions:function(a,b,c){for(var d,b=ja(V(b/a)*a),c=ja(wa(c/a)*a),e=[];b<=c;){e.push(b);b=ja(b+a);if(b===d)break;d=b}return e},getLogTickPositions:function(a,b,c,d){var e= -this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null;if(a>=0.5)a=t(a),g=this.getLinearTickPositions(a,b,c);else if(a>=0.08)for(var f=V(b),h,i,j,k,l,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];fb&&g.push(k),k>c&&(l=!0),k=j}else if(b=ca(b),c=ca(c),a=e[d?"minorTickInterval":"tickInterval"],a=p(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=hb(a, -null,K.pow(10,V(K.log(a)/K.LN10))),g=Sa(this.getLinearTickPositions(a,b,c),na),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g},getMinorTickPositions:function(){var a=this.tickPositions,b=this.minorTickInterval,c=[],d,e;if(this.isLog){e=a.length;for(d=1;d= -this.minRange,f,g,h,i,j;if(this.isXAxis&&this.minRange===x&&!this.isLog)u(a.min)||u(a.max)?this.minRange=null:(n(this.series,function(a){i=a.xData;for(g=j=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-i[g-1],f===x||h0||!b.ignoreMaxPadding))b.max+=c*j}b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!l&&o===b.linkedParent.options.tickPixelInterval? -b.linkedParent.tickInterval:p(l,r?1:(b.max-b.min)*o/(b.len||1));g&&!a&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(a);b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);if(!l&&b.tickIntervale&&i.shift(),d.endOnTick?b.max=f:b.max+hb[d]&&this.options.alignTicks!==!1)b[d]=c.length;a.maxTicks=b},adjustTickAmount:function(){var a=this.xOrY,b=this.tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(ea||a===null?a=c:b=a.min&&b<=a.max)j[b]||(j[b]=new Pa(a,b)),y&&j[b].isNew&&j[b].render(c,!0),j[b].isActive=!0,j[b].render(c)}),o&&n(g,function(b,c){if(c%2===0&&b1||N(b-f.y)>1)?function(){e.move(a,b,c,d)}:null},hide:function(){if(!this.isHidden){var a=this.chart.hoverPoints; -this.label.hide();a&&n(a,function(a){a.setState()});this.chart.hoverPoints=null;this.isHidden=!0}},hideCrosshairs:function(){n(this.crosshairs,function(a){a&&a.hide()})},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=0,g=0,h,a=oa(a);c=a[0].tooltipPos;c||(n(a,function(a){h=a.series.yAxis;f+=a.plotX;g+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&h?h.top-d.plotTop:0)}),f/=a.length,g/=a.length,c=[e?d.plotWidth-g:f,this.shared&&!e&&a.length>1&&b?b.chartY-d.plotTop:e?d.plotHeight-f:g]); -return Sa(c,t)},getPosition:function(a,b,c){var d=this.chart,e=d.plotLeft,f=d.plotTop,g=d.plotWidth,h=d.plotHeight,i=p(this.options.distance,12),j=c.plotX,c=c.plotY,d=j+e+(d.inverted?i:-a-i),k=c-b+f+15,l;d<7&&(d=e+j+i);d+a>e+g&&(d-=d+a-(e+g),k=c-b+f-i,l=!0);k=k&&c<=k+b&&(k=c+f+i));k+b>f+h&&(k=v(f,f+h-b-i));return{x:d,y:k}},refresh:function(a,b){function c(){var a=this.points||oa(this),b=a[0].series,c;c=[b.tooltipHeaderFormatter(a[0].key)];n(a,function(a){b=a.series;c.push(b.tooltipFormatter&& -b.tooltipFormatter(a)||a.point.tooltipFormatter(b.tooltipOptions.pointFormat))});c.push(f.footerFormat||"");return c.join("")}var d=this.chart,e=this.label,f=this.options,g,h,i,j={},k,l=[];k=f.formatter||c;var j=d.hoverPoints,m,o=f.crosshairs;i=this.shared;h=this.getAnchor(a,b);g=h[0];h=h[1];i&&(!a.series||!a.series.noSharedTooltip)?(d.hoverPoints=a,j&&n(j,function(a){a.setState()}),n(a,function(a){a.setState("hover");l.push(a.getLabelConfig())}),j={x:a[0].category,y:a[0].y},j.points=l,a=a[0]):j= -a.getLabelConfig();k=k.call(j);j=a.series;i=i||!j.isCartesian||j.tooltipOutsidePlot||d.isInsidePlot(g,h);k===!1||!i?this.hide():(this.isHidden&&e.show(),e.attr({text:k}),m=f.borderColor||a.color||j.color||"#606060",e.attr({stroke:m}),e=(f.positioner||this.getPosition).call(this,e.width,e.height,{plotX:g,plotY:h}),this.move(t(e.x),t(e.y),g+d.plotLeft,h+d.plotTop),this.isHidden=!1);if(o){o=oa(o);for(e=o.length;e--;)if(i=a.series[e?"yAxis":"xAxis"],o[e]&&i)if(i=i.getPlotLinePath(e?p(a.stackY,a.y):a.x, -1),this.crosshairs[e])this.crosshairs[e].attr({d:i,visibility:"visible"});else{j={"stroke-width":o[e].width||1,stroke:o[e].color||"#C0C0C0",zIndex:o[e].zIndex||2};if(o[e].dashStyle)j.dashstyle=o[e].dashStyle;this.crosshairs[e]=d.renderer.path(i).attr(j).add()}}E(d,"tooltipRefresh",{text:k,x:g+d.plotLeft,y:h+d.plotTop,borderColor:m})},tick:function(){this.tooltipTick&&this.tooltipTick()}};qb.prototype={normalizeMouseEvent:function(a){var b,c,d,a=a||L.event;if(!a.target)a.target=a.srcElement;a=Lb(a); -d=a.touches?a.touches.item(0):a;this.chartPosition=b=Sb(this.chart.container);d.pageX===x?(c=a.x,b=a.y):(c=d.pageX-b.left,b=d.pageY-b.top);return s(a,{chartX:t(c),chartY:t(b)})},getMouseCoordinates:function(a){var b={xAxis:[],yAxis:[]},c=this.chart;n(c.axes,function(d){var e=d.isXAxis;b[e?"xAxis":"yAxis"].push({axis:d,value:d.translate(((c.inverted?!e:e)?a.chartX-c.plotLeft:d.top+d.len-a.chartY)-d.minPixelPadding,!0)})});return b},getIndex:function(a){var b=this.chart;return b.inverted?b.plotHeight+ -b.plotTop-a.chartY:a.chartX-b.plotLeft},onmousemove:function(a){var b=this.chart,c=b.series,d=b.tooltip,e,f=b.hoverPoint,g=b.hoverSeries,h,i,j=b.chartWidth,k=this.getIndex(a);if(d&&this.options.tooltip.shared&&(!g||!g.noSharedTooltip)){e=[];h=c.length;for(i=0;i -j&&e.splice(h,1);if(e.length&&e[0].plotX!==this.hoverX)d.refresh(e,a),this.hoverX=e[0].plotX}if(g&&g.tracker&&(b=g.tooltipPoints[k])&&b!==f)b.onMouseOver()},resetTracker:function(a){var b=this.chart,c=b.hoverSeries,d=b.hoverPoint,e=b.tooltip,b=e&&e.shared?b.hoverPoints:d;(a=a&&e&&b)&&oa(b)[0].plotX===x&&(a=!1);if(a)e.refresh(b);else{if(d)d.onMouseOut();if(c)c.onMouseOut();e&&(e.hide(),e.hideCrosshairs());this.hoverX=null}},setDOMEvents:function(){function a(){if(b.selectionMarker){var f={xAxis:[], -yAxis:[]},g=b.selectionMarker.getBBox(),h=g.x-c.plotLeft,l=g.y-c.plotTop,m;e&&(n(c.axes,function(a){if(a.options.zoomEnabled!==!1){var b=a.isXAxis,d=c.inverted?!b:b,e=a.translate(d?h:c.plotHeight-l-g.height,!0,0,0,1),d=a.translate((d?h+g.width:c.plotHeight-l)-2*a.minPixelPadding,!0,0,0,1);!isNaN(e)&&!isNaN(d)&&(f[b?"xAxis":"yAxis"].push({axis:a,min:P(e,d),max:v(e,d)}),m=!0)}}),m&&E(c,"selection",f,function(a){c.zoom(a)}));b.selectionMarker=b.selectionMarker.destroy()}if(c)G(d,{cursor:"auto"}),c.cancelClick= -e,c.mouseIsDown=e=!1;U(z,ga?"touchend":"mouseup",a)}var b=this,c=b.chart,d=c.container,e,f=b.zoomX&&!c.inverted||b.zoomY&&c.inverted,g=b.zoomY&&!c.inverted||b.zoomX&&c.inverted;b.hideTooltipOnMouseMove=function(a){a=Lb(a);b.chartPosition&&c.hoverSeries&&c.hoverSeries.isCartesian&&!c.isInsidePlot(a.pageX-b.chartPosition.left-c.plotLeft,a.pageY-b.chartPosition.top-c.plotTop)&&b.resetTracker()};b.hideTooltipOnMouseLeave=function(){b.resetTracker();b.chartPosition=null};d.onmousedown=function(d){d=b.normalizeMouseEvent(d); -!ga&&d.preventDefault&&d.preventDefault();c.mouseIsDown=!0;c.cancelClick=!1;c.mouseDownX=b.mouseDownX=d.chartX;b.mouseDownY=d.chartY;H(z,ga?"touchend":"mouseup",a)};var h=function(a){if(!a||!(a.touches&&a.touches.length>1)){a=b.normalizeMouseEvent(a);if(!ga)a.returnValue=!1;var d=a.chartX,h=a.chartY,l=!c.isInsidePlot(d-c.plotLeft,h-c.plotTop);ga&&a.type==="touchstart"&&(B(a.target,"isTracker")?c.runTrackerClick||a.preventDefault():!c.runChartClick&&!l&&a.preventDefault());if(l)dc.plotLeft+c.plotWidth&&(d=c.plotLeft+c.plotWidth),hc.plotTop+c.plotHeight&&(h=c.plotTop+c.plotHeight);if(c.mouseIsDown&&a.type!=="touchstart"&&(e=Math.sqrt(Math.pow(b.mouseDownX-d,2)+Math.pow(b.mouseDownY-h,2)),e>10)){var m=c.isInsidePlot(b.mouseDownX-c.plotLeft,b.mouseDownY-c.plotTop);if(c.hasCartesianSeries&&(b.zoomX||b.zoomY)&&m&&!b.selectionMarker)b.selectionMarker=c.renderer.rect(c.plotLeft,c.plotTop,f?1:c.plotWidth,g?1:c.plotHeight,0).attr({fill:b.options.chart.selectionMarkerFill|| -"rgba(69,114,167,0.25)",zIndex:7}).add();if(b.selectionMarker&&f){var o=d-b.mouseDownX;b.selectionMarker.attr({width:N(o),x:(o>0?0:o)+b.mouseDownX})}b.selectionMarker&&g&&(h-=b.mouseDownY,b.selectionMarker.attr({height:N(h),y:(h>0?0:h)+b.mouseDownY}));m&&!b.selectionMarker&&b.options.chart.panning&&c.pan(d)}if(!l)b.onmousemove(a);return l||!c.hasCartesianSeries}};d.onmousemove=h;H(d,"mouseleave",b.hideTooltipOnMouseLeave);H(z,"mousemove",b.hideTooltipOnMouseMove);d.ontouchstart=function(a){if(b.zoomX|| -b.zoomY)d.onmousedown(a);h(a)};d.ontouchmove=h;d.ontouchend=function(){e&&b.resetTracker()};d.onclick=function(a){var d=c.hoverPoint,e,f,a=b.normalizeMouseEvent(a);a.cancelBubble=!0;if(!c.cancelClick)d&&(B(a.target,"isTracker")||B(a.target.parentNode,"isTracker"))?(e=d.plotX,f=d.plotY,s(d,{pageX:b.chartPosition.left+c.plotLeft+(c.inverted?c.plotWidth-f:e),pageY:b.chartPosition.top+c.plotTop+(c.inverted?c.plotHeight-e:f)}),E(d.series,"click",s(a,{point:d})),d.firePointEvent("click",a)):(s(a,b.getMouseCoordinates(a)), -c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&E(c,"click",a))}},destroy:function(){var a=this.chart,b=a.container;if(a.trackerGroup)a.trackerGroup=a.trackerGroup.destroy();U(b,"mouseleave",this.hideTooltipOnMouseLeave);U(z,"mousemove",this.hideTooltipOnMouseMove);b.onclick=b.onmousedown=b.onmousemove=b.ontouchstart=b.ontouchend=b.ontouchmove=null;clearInterval(this.tooltipInterval)},init:function(a,b){if(!a.trackerGroup)a.trackerGroup=a.renderer.g("tracker").attr({zIndex:9}).add();if(b.enabled)a.tooltip= -new pb(a,b),this.tooltipInterval=setInterval(function(){a&&a.tooltip&&a.tooltip.tick()},32);this.setDOMEvents()}};rb.prototype={init:function(a){var b=this,c=b.options=a.options.legend;if(c.enabled){var d=c.itemStyle,e=p(c.padding,8),f=c.itemMarginTop||0;b.baseline=A(d.fontSize)+3+f;b.itemStyle=d;b.itemHiddenStyle=C(d,c.itemHiddenStyle);b.itemMarginTop=f;b.padding=e;b.initialItemX=e;b.initialItemY=e-5;b.maxItemWidth=0;b.chart=a;b.itemHeight=0;b.lastLineHeight=0;b.render();H(b.chart,"endResize",function(){b.positionCheckboxes()})}}, -colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,g=b?a.color:g;d&&d.css({fill:c});e&&e.attr({stroke:g});f&&f.attr({stroke:g,fill:g})},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;n(["legendItem","legendLine", -"legendSymbol","legendGroup"],function(b){a[b]&&a[b].destroy()});b&&Na(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(){var a=this;n(a.allItems,function(b){var c=b.checkbox,d=a.group.alignAttr;c&&G(c,{left:d.translateX+b.legendItemWidth+c.x-20+"px",top:d.translateY+c.y+3+"px"})})},renderItem:function(a){var q;var b=this,c=b.chart,d=c.renderer,e=b.options,f=e.layout==="horizontal",g=e.symbolWidth,h=e.symbolPadding, -i=b.itemStyle,j=b.itemHiddenStyle,k=b.padding,l=!e.rtl,m=e.width,o=e.itemMarginBottom||0,r=b.itemMarginTop,p=b.initialItemX,n=a.legendItem,y=a.series||a,u=y.options,t=u.showCheckbox;if(!n&&(a.legendGroup=d.g("legend-item").attr({zIndex:1}).add(b.scrollGroup),y.drawLegendSymbol(b,a),a.legendItem=n=d.text(e.labelFormatter.call(a),l?g+h:-h,b.baseline,e.useHTML).css(C(a.visible?i:j)).attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup),a.legendGroup.on("mouseover",function(){a.setState("hover"); -n.css(b.options.itemHoverStyle)}).on("mouseout",function(){n.css(a.visible?i:j);a.setState()}).on("click",function(b){var c=function(){a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):E(a,"legendItemClick",b,c)}),b.colorizeItem(a,a.visible),u&&t))a.checkbox=S("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},e.itemCheckboxStyle,c.container),H(a.checkbox,"click",function(b){E(a,"checkboxClick",{checked:b.target.checked},function(){a.select()})}); -d=n.getBBox();q=a.legendItemWidth=e.itemWidth||g+h+d.width+k+(t?20:0),e=q;b.itemHeight=g=d.height;if(f&&b.itemX-p+e>(m||c.chartWidth-2*k-p))b.itemX=p,b.itemY+=r+b.lastLineHeight+o,b.lastLineHeight=0;b.maxItemWidth=v(b.maxItemWidth,e);b.lastItemY=r+b.itemY+o;b.lastLineHeight=v(g,b.lastLineHeight);a._legendItemPos=[b.itemX,b.itemY];f?b.itemX+=e:(b.itemY+=r+g+o,b.lastLineHeight=g);b.offsetWidth=m||v(f?b.itemX-p:e,b.offsetWidth)},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i= -a.box,j=a.options,k=a.padding,l=j.borderWidth,m=j.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!d)a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup),a.clipRect=c.clipRect(0,0,9999,b.chartHeight),a.contentGroup.clip(a.clipRect);e=[];n(b.series,function(a){var b=a.options;b.showInLegend&&(e=e.concat(a.legendItems||(b.legendType==="point"?a.data:a)))});Fb(e,function(a,b){return(a.options&& -a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});j.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;n(e,function(b){a.renderItem(b)});g=j.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight;h=a.handleOverflow(h);if(l||m){g+=k;h+=k;if(i){if(g>0&&h>0)i[i.isNew?"attr":"animate"](i.crisp(null,null,null,g,h)),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:m||T}).add(d).shadow(j.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth= -g;a.legendHeight=h;n(e,function(b){a.positionItem(b)});f&&d.align(s({width:g,height:h},j),!0,b.spacingBox);b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?-f:f)-this.padding,g=e.maxHeight,h=this.clipRect,i=e.navigation,j=p(i.animation,!0),k=i.arrowSize||12,l=this.nav;e.layout==="horizontal"&&(f/=2);g&&(f=P(f,g));if(a>f){this.clipHeight=c=f-20;this.pageCount=wa(a/c);this.currentPage= -p(this.currentPage,1);this.fullHeight=a;h.attr({height:c});if(!l)this.nav=l=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,k,k).on("click",function(){b.scroll(-1,j)}).add(l),this.pager=d.text("",15,10).css(i.style).add(l),this.down=d.symbol("triangle-down",0,0,k,k).on("click",function(){b.scroll(1,j)}).add(l);b.scroll(0);a=f}else l&&(h.attr({height:c.chartHeight}),l.hide(),this.scrollGroup.attr({translateY:1}));return a},scroll:function(a,b){var c=this.pageCount,d=this.currentPage+ -a,e=this.clipHeight,f=this.options.navigation,g=f.activeColor,f=f.inactiveColor,h=this.pager,i=this.padding;d>c&&(d=c);if(d>0)b!==x&&ua(b,this.chart),this.nav.attr({translateX:i,translateY:e+7,visibility:"visible"}),this.up.attr({fill:d===1?f:g}).css({cursor:d===1?"default":"pointer"}),h.attr({text:d+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:d===c?f:g}).css({cursor:d===c?"default":"pointer"}),this.scrollGroup.animate({translateY:-P(e*(d-1),this.fullHeight-e+i)+1}), -h.attr({text:d+"/"+c}),this.currentPage=d}};sb.prototype={initSeries:function(a){var b=this.options.chart,b=new ba[a.type||b.type||b.defaultSeriesType];b.init(this,a);return b},addSeries:function(a,b,c){var d,e=this;a&&(ua(c,e),b=p(b,!0),E(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;b&&e.redraw()}));return d},isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!== -!1&&n(this.axes,function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series,d=this.tracker,e=this.legend,f=this.isDirtyLegend,g,h=this.isDirtyBox,i=c.length,j=i,k=this.renderer,l=k.isHidden();ua(a,this);for(l&&this.cloneRenderTo();j--;)if(a=c[j],a.isDirty&&a.options.stacking){g=!0;break}if(g)for(j=i;j--;)if(a=c[j],a.options.stacking)a.isDirty=!0;n(c,function(a){a.isDirty&&a.options.legendType==="point"&&(f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend= -!1;if(this.hasCartesianSeries){if(!this.isResizing)this.maxTicks=null,n(b,function(a){a.setScale()});this.adjustTickAmounts();this.getMargins();n(b,function(a){if(a.isDirtyExtremes)a.isDirtyExtremes=!1,E(a,"afterSetExtremes",a.getExtremes());if(a.isDirty||h||g)a.redraw(),h=!0})}h&&this.drawChartBox();n(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.resetTracker&&d.resetTracker(!0);k.draw();E(this,"redraw");l&&this.cloneRenderTo(!0)},showLoading:function(a){var b= -this.options,c=this.loadingDiv,d=b.loading;if(!c)this.loadingDiv=c=S(ia,{className:"highcharts-loading"},s(d.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:T}),this.container),this.loadingSpan=S("span",null,d.labelStyle,c);this.loadingSpan.innerHTML=a||b.lang.loading;if(!this.loadingShown)G(c,{opacity:0,display:""}),xb(c,{opacity:d.style.opacity},{duration:d.showDuration||0}),this.loadingShown=!0},hideLoading:function(){var a= -this.options,b=this.loadingDiv;b&&xb(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){G(b,{display:T})}});this.loadingShown=!1},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;dP(e.dataMin,e.min)&&c19?this.containerHeight:400)},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Na(b),delete this.renderToClone):(c&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),G(b,{position:"absolute",top:"-9999px",display:"block"}),z.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a, -b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+ub++;if(ma(a))this.renderTo=a=z.getElementById(a);a||$a(13,!0);a.innerHTML="";a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=S(ia,{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},s({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0},b.style),this.renderToClone||a);this.renderer=b.forExport? -new ra(a,c,d,!0):new Ra(a,c,d);$&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.options.chart,b=a.spacingTop,c=a.spacingRight,d=a.spacingBottom,a=a.spacingLeft,e,f=this.legend,g=this.optionsMarginTop,h=this.optionsMarginLeft,i=this.optionsMarginRight,j=this.optionsMarginBottom,k=this.chartTitleOptions,l=this.chartSubtitleOptions,m=this.options.legend,o=p(m.margin,10),r=m.x,t=m.y,q=m.align,y=m.verticalAlign;this.resetMargins();e=this.axisOffset;if((this.title||this.subtitle)&& -!u(this.optionsMarginTop))if(l=v(this.title&&!k.floating&&!k.verticalAlign&&k.y||0,this.subtitle&&!l.floating&&!l.verticalAlign&&l.y||0))this.plotTop=v(this.plotTop,l+p(k.margin,15)+b);if(f.display&&!m.floating)if(q==="right"){if(!u(i))this.marginRight=v(this.marginRight,f.legendWidth-r+o+c)}else if(q==="left"){if(!u(h))this.plotLeft=v(this.plotLeft,f.legendWidth+r+o+a)}else if(y==="top"){if(!u(g))this.plotTop=v(this.plotTop,f.legendHeight+t+o+b)}else if(y==="bottom"&&!u(j))this.marginBottom=v(this.marginBottom, -f.legendHeight-t+o+d);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&n(this.axes,function(a){a.getOffset()});u(h)||(this.plotLeft+=e[3]);u(g)||(this.plotTop+=e[0]);u(j)||(this.marginBottom+=e[2]);u(i)||(this.marginRight+=e[1]);this.setChartSize()},initReflow:function(){function a(a){var g=c.width||db(d,"width"),h=c.height||db(d,"height"),a=a?a.target:L;if(g&&h&&(a===L||a===z)){if(g!==b.containerWidth|| -h!==b.containerHeight)clearTimeout(e),e=setTimeout(function(){b.resize(g,h,!1)},100);b.containerWidth=g;b.containerHeight=h}}var b=this,c=b.options.chart,d=b.renderTo,e;H(L,"resize",a);H(b,"destroy",function(){U(L,"resize",a)})},resize:function(a,b,c){var d=this,e,f,g=d.resetZoomButton,h=d.title,i=d.subtitle,j;d.isResizing+=1;j=function(){d&&E(d,"endResize",null,function(){d.isResizing-=1})};ua(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;if(u(a))d.chartWidth=e=t(a);if(u(b))d.chartHeight= -f=t(b);G(d.container,{width:e+"px",height:f+"px"});d.renderer.setSize(e,f,c);d.plotWidth=e-d.plotLeft-d.marginRight;d.plotHeight=f-d.plotTop-d.marginBottom;d.maxTicks=null;n(d.axes,function(a){a.isDirty=!0;a.setScale()});n(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.getMargins();a=d.spacingBox;h&&h.align(null,null,a);i&&i.align(null,null,a);g&&g.align(null,null,d[g.alignTo]);d.redraw(c);d.oldChartHeight=null;E(d,"resize");Oa===!1?j():setTimeout(j,Oa&&Oa.duration||500)}, -setChartSize:function(){var a=this.inverted,b=this.chartWidth,c=this.chartHeight,d=this.options.chart,e=d.spacingTop,f=d.spacingRight,g=d.spacingBottom,h=d.spacingLeft,i,j,k,l;this.plotLeft=i=t(this.plotLeft);this.plotTop=j=t(this.plotTop);this.plotWidth=k=t(b-i-this.marginRight);this.plotHeight=l=t(c-j-this.marginBottom);this.plotSizeX=a?l:k;this.plotSizeY=a?k:l;this.plotBorderWidth=a=d.plotBorderWidth||0;this.spacingBox={x:h,y:e,width:b-h-f,height:c-e-g};this.plotBox={x:i,y:j,width:k,height:l}; -this.clipBox={x:a/2,y:a/2,width:this.plotSizeX-a,height:this.plotSizeY-a};n(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this.options.chart,b=a.spacingRight,c=a.spacingBottom,d=a.spacingLeft;this.plotTop=p(this.optionsMarginTop,a.spacingTop);this.marginRight=p(this.optionsMarginRight,b);this.marginBottom=p(this.optionsMarginBottom,c);this.plotLeft=p(this.optionsMarginLeft,d);this.axisOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart, -b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0,j=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage,m=a.plotBorderWidth||0,o,p=this.plotLeft,n=this.plotTop,q=this.plotWidth,y=this.plotHeight,t=this.plotBox,u=this.clipRect,w=this.clipBox;o=i+(a.shadow?8:0);if(i||j)if(e)e.animate(e.crisp(null,null,null,c-o,d-o));else{e={fill:j||T};if(i)e.stroke=a.borderColor,e["stroke-width"]=i; -this.chartBackground=b.rect(o/2,o/2,c-o,d-o,a.borderRadius,i).attr(e).add().shadow(a.shadow)}if(k)f?f.animate(t):this.plotBackground=b.rect(p,n,q,y,0).attr({fill:k}).add().shadow(a.plotShadow);if(l)h?h.animate(t):this.plotBGImage=b.image(l,p,n,q,y).add();u?u.animate({width:w.width,height:w.height}):this.clipRect=b.clipRect(w);if(m)g?g.animate(g.crisp(null,p,n,q,y)):this.plotBorder=b.rect(p,n,q,y,0,m).attr({stroke:a.plotBorderColor,"stroke-width":m,zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a= -this,b=a.options.chart,c,d=a.options.series,e,f;n(["inverted","angular","polar"],function(g){c=ba[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=ba[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},render:function(){var a=this,b=a.axes,c=a.renderer,d=a.options,e=d.labels,d=d.credits,f;a.setTitle();a.legend=new rb(a);n(b,function(a){a.setScale()});a.getMargins();a.maxTicks=null;n(b,function(a){a.setTickPositions(!0);a.setMaxTicks()});a.adjustTickAmounts();a.getMargins(); -a.drawChartBox();a.hasCartesianSeries&&n(b,function(a){a.render()});if(!a.seriesGroup)a.seriesGroup=c.g("series-group").attr({zIndex:3}).add();n(a.series,function(a){a.translate();a.setTooltipPoints();a.render()});e.items&&n(e.items,function(b){var d=s(e.style,b.style),f=A(d.left)+a.plotLeft,j=A(d.top)+a.plotTop+12;delete d.left;delete d.top;c.text(b.html,f,j).attr({zIndex:2}).css(d).add()});if(d.enabled&&!a.credits)f=d.href,a.credits=c.text(d.text,0,0).on("click",function(){if(f)location.href=f}).attr({align:d.position.align, -zIndex:8}).css(d.style).add().align(d.position);a.hasRendered=!0},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;if(a!==null){E(a,"destroy");U(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();n("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(b){var c=a[b];c&&(a[b]=c.destroy())});if(d)d.innerHTML= -"",U(d),f&&Na(d),d=null;for(e in a)delete a[e];a=a.options=null}},firstRender:function(){var a=this,b=a.options,c=a.callback;if(!fa&&L==L.top&&z.readyState!=="complete"||$&&!L.canvg)$?Mb.push(function(){a.firstRender()},b.global.canvasToolsURL):z.attachEvent("onreadystatechange",function(){z.detachEvent("onreadystatechange",a.firstRender);z.readyState==="complete"&&a.firstRender()});else{a.getContainer();E(a,"init");if(Highcharts.RangeSelector&&b.rangeSelector.enabled)a.rangeSelector=new Highcharts.RangeSelector(a); -a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();n(b.series||[],function(b){a.initSeries(b)});if(Highcharts.Scroller&&(b.navigator.enabled||b.scrollbar.enabled))a.scroller=new Highcharts.Scroller(a);a.tracker=new qb(a,b);a.render();a.renderer.draw();c&&c.apply(a,[a]);n(a.callbacks,function(b){b.apply(a,[a])});a.cloneRenderTo(!0);E(a,"load")}},init:function(a){var b=this.options.chart,c;b.reflow!==!1&&H(this,"load",this.initReflow);if(a)for(c in a)H(this,c,a[c]);this.xAxis=[];this.yAxis= -[];this.animation=$?!1:p(b.animation,!0);this.setSize=this.resize;this.pointCount=0;this.counters=new Eb;this.firstRender()}};sb.prototype.callbacks=[];var Ta=function(){};Ta.prototype={init:function(a,b,c){var d=a.chart.counters;this.series=a;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint)b=a.chart.options.colors,this.color=this.color||b[d.color++],d.wrapColor(b.length);a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=typeof a;this.config=a;if(d=== -"number"||a===null)this.y=a;else if(typeof a[0]==="number")this.x=a[0],this.y=a[1];else if(d==="object"&&typeof a.length!=="number"){s(this,a);this.options=a;if(a.dataLabels)c._hasPointLabels=!0;if(a.marker)c._hasPointMarkers=!0}else if(typeof a[0]==="string")this.name=a[0],this.y=a[1];if(this.x===x)this.x=b===x?c.autoIncrement():b},destroy:function(){var a=this.series.chart,b=a.hoverPoints,c;a.pointCount--;if(b&&(this.setState(),ya(b,this),!b.length))a.hoverPoints=null;if(this===a.hoverPoint)this.onMouseOut(); -if(this.graphic||this.dataLabel)U(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(c in this)this[c]=null},destroyElements:function(){for(var a="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),b,c=6;c--;)b=a[c],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(a,b){var c= -this,d=c.series.chart,a=p(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=a;c.setState(a&&"select");b||n(d.getSelectedPoints(),function(a){if(a.selected&&a!==c)a.selected=!1,a.setState(""),a.firePointEvent("unselect")})})},onMouseOver:function(){var a=this.series,b=a.chart,c=b.tooltip,d=b.hoverPoint;if(d&&d!==this)d.onMouseOut();this.firePointEvent("mouseOver");c&&(!c.shared||a.noSharedTooltip)&&c.refresh(this);this.setState("hover");b.hoverPoint=this},onMouseOut:function(){var a= -this.series.chart,b=a.hoverPoints;if(!b||Rb(this,b)===-1)this.firePointEvent("mouseOut"),this.setState(),a.hoverPoint=null},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=a.match(/\{(series|point)\.[a-zA-Z]+\}/g),e=/[{\.}]/,f,g,h,i,j={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};c.valuePrefix=c.valuePrefix||c.yPrefix;c.valueDecimals=c.valueDecimals||c.yDecimals;c.valueSuffix=c.valueSuffix||c.ySuffix;for(i in d)g=d[i],ma(g)&&g!==a&&(h=(" "+g).split(e),f={point:this,series:b}[h[1]], -h=h[2],f===this&&j.hasOwnProperty(h)?(f=j[h]?h:"value",f=(c[f+"Prefix"]||"")+Ia(this[h],p(c[f+"Decimals"],-1))+(c[f+"Suffix"]||"")):f=f[h],a=a.replace(g,f));return a},update:function(a,b,c){var d=this,e=d.series,f=d.graphic,g,h=e.data,i=h.length,j=e.chart,b=p(b,!0);d.firePointEvent("update",{options:a},function(){d.applyOptions(a);Z(a)&&(e.getAttribs(),f&&f.attr(d.pointAttr[e.state]));for(g=0;ga+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart.options,c=b.plotOptions,d=c[this.type],e=a.data;a.data=null;c=C(d,c.series,a);c.data=a.data=e;this.tooltipOptions=C(b.tooltip,c.tooltip); -d.marker===null&&delete c.marker;return c},getColor:function(){var a=this.options,b=this.chart.options.colors,c=this.chart.counters;this.color=a.color||!a.colorByPoint&&b[c.color++]||"gray";c.wrapColor(b.length)},getSymbol:function(){var a=this.options.marker,b=this.chart,c=b.options.symbols,b=b.counters;this.symbol=a.symbol||c[b.symbol++];if(/^url/.test(this.symbol))a.radius=0;b.wrapSymbol(c.length)},drawLegendSymbol:function(a){var b=this.options,c=b.marker,d=a.options.symbolWidth,e=this.chart.renderer, -f=this.legendGroup,a=a.baseline,g;if(b.lineWidth){g={"stroke-width":b.lineWidth};if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a-4,"L",d,a-4]).attr(g).add(f)}if(c&&c.enabled)b=c.radius,this.legendSymbol=e.symbol(this.symbol,d/2-b,a-4-b,2*b,2*b).attr(this.pointAttr[""]).add(f)},addPoint:function(a,b,c,d){var e=this.data,f=this.graph,g=this.area,h=this.chart,i=this.xData,j=this.yData,k=f&&f.shift||0,l=this.options.data,m=this.pointClass.prototype;ua(d,h);if(f&&c)f.shift=k+1;if(g){if(c)g.shift= -k+1;g.isArea=!0}b=p(b,!0);d={series:this};m.applyOptions.apply(d,[a]);i.push(d.x);j.push(m.toYData?m.toYData.call(d):d.y);l.push(a);c&&(e[0]&&e[0].remove?e[0].remove(!1):(e.shift(),i.shift(),j.shift(),l.shift()));this.getAttribs();this.isDirtyData=this.isDirty=!0;b&&h.redraw()},setData:function(a,b){var c=this.points,d=this.options,e=this.initialColor,f=this.chart,g=null,h=this.xAxis,i,j=this.pointClass.prototype;this.xIncrement=null;this.pointRange=h&&h.categories?1:d.pointRange;if(u(e))f.counters.color= -e;var e=[],k=[],l=a?a.length:[],m=(i=this.pointArrayMap)&&i.length;if(l>(d.turboThreshold||1E3)){for(i=0;g===null&&ik||this.forceCrop))if(a=i.getExtremes(),i=a.min,k=a.max,b[d-1]k)b=[],c=[];else if(b[0]k){for(a=0;a=i){e=v(0,a-1);break}for(;ak){f=a+1;break}b=b.slice(e,f);c=c.slice(e,f);g=!0}for(a=b.length-1;a>0;a--)if(d=b[a]-b[a-1],d>0&&(h===x||d=0&&c<=d;)i[c++]=g}this.tooltipPoints=i}},tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat,d=this.xAxis,e=d&&d.options.type==="datetime",f;if(e&& -!c)for(f in D)if(D[f]>=d.closestPointRange){c=b.dateTimeLabelFormats[f];break}return b.headerFormat.replace("{point.key}",e?cb(c,a):a).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&E(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&& -E(this,"mouseOut");c&&!a.stickyTracking&&!c.shared&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this,c=b.chart,d=c.renderer,e;e=b.options.animation;var f=c.clipBox,g=c.inverted,h;if(e&&!Z(e))e=Y[b.type].animation;h="_sharedClip"+e.duration+e.easing;if(a)a=c[h],e=c[h+"m"],a||(c[h]=a=d.clipRect(s(f,{width:0})),c[h+"m"]=e=d.clipRect(-99,g?-c.plotLeft:-c.plotTop,99,g?c.chartWidth:c.chartHeight)),b.group.clip(a),b.markerGroup.clip(e),b.sharedClipKey=h;else{if(a=c[h])a.animate({width:c.plotSizeX}, -e),c[h+"m"].animate({width:c.plotSizeX+99},e);b.animate=null;b.animationTimeout=setTimeout(function(){b.afterAnimate()},e.duration)}},afterAnimate:function(){var a=this.chart,b=this.sharedClipKey,c=this.group;c&&this.options.clip!==!1&&(c.clip(a.clipRect),this.markerGroup.clip());setTimeout(function(){b&&a[b]&&(a[b]=a[b].destroy(),a[b+"m"]=a[b+"m"].destroy())},100)},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,j,k,l=this.options.marker,m,o=this.markerGroup;if(l.enabled||this._hasPointMarkers)for(f= -b.length;f--;)if(g=b[f],d=g.plotX,e=g.plotY,k=g.graphic,i=g.marker||{},a=l.enabled&&i.enabled===x||i.enabled,m=c.isInsidePlot(d,e,c.inverted),a&&e!==x&&!isNaN(e))if(a=g.pointAttr[g.selected?"select":""],h=a.r,i=p(i.symbol,this.symbol),j=i.indexOf("url")===0,k)k.attr({visibility:m?fa?"inherit":"visible":"hidden"}).animate(s({x:d-h,y:e-h},k.symbolName?{width:2*h,height:2*h}:{}));else if(m&&(h>0||j))g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h).attr(a).add(o)},convertAttribs:function(a,b,c,d){var e= -this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=p(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=Y[a.type].marker?a.options.marker:a.options,c=b.states,d=c.hover,e,f=a.color,g={stroke:f,fill:f},h=a.points||[],i=[],j,k=a.pointAttrToOptions,l;a.options.marker?(d.radius=d.radius||b.radius+2,d.lineWidth=d.lineWidth||b.lineWidth+1):d.color=d.color||qa(d.color||f).brighten(d.brightness).get();i[""]=a.convertAttribs(b,g);n(["hover","select"],function(b){i[b]= -a.convertAttribs(c[b],i[""])});a.pointAttr=i;for(f=h.length;f--;){g=h[f];if((b=g.options&&g.options.marker||g.options)&&b.enabled===!1)b.radius=0;e=a.options.colorByPoint;if(g.options)for(l in k)u(b[k[l]])&&(e=!0);if(e){b=b||{};j=[];c=b.states||{};e=c.hover=c.hover||{};if(!a.options.marker)e.color=qa(e.color||g.color).brighten(e.brightness||d.brightness).get();j[""]=a.convertAttribs(s({color:g.color},b),i[""]);j.hover=a.convertAttribs(c.hover,i.hover,j[""]);j.select=a.convertAttribs(c.select,i.select, -j[""])}else j=i;g.pointAttr=j}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ba),d,e,f=a.data||[],g,h,i;E(a,"destroy");U(a);n(["xAxis","yAxis"],function(b){if(i=a[b])ya(i.series,a),i.isDirty=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(e=f.length;e--;)(g=f[e])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);n("area,graph,dataLabelsGroup,group,markerGroup,tracker,trackerGroup".split(","),function(b){a[b]&&(d=c&&b==="group"?"hide":"destroy",a[b][d]())}); -if(b.hoverSeries===a)b.hoverSeries=null;ya(b.series,a);for(h in a)delete a[h]},drawDataLabels:function(){var a=this,b=a.options,c=b.dataLabels;if(c.enabled||a._hasPointLabels){var d,e,f=a.points,g,h,i,j,k=a.chart,l=k.renderer,m=k.inverted,o=a.type,r=b.stacking,s=o==="column"||o==="bar",q=c.verticalAlign===null,y=c.y===null,v=l.fontMetrics(c.style.fontSize),A=v.h,w=v.b;s&&(v={top:w,middle:w-A/2,bottom:-A+w},r?(q&&(c=C(c,{verticalAlign:"middle"})),y&&(c=C(c,{y:v[c.verticalAlign]}))):q?c=C(c,{verticalAlign:"top"}): -y&&(c=C(c,{y:v[c.verticalAlign]})));j=a.plotGroup("dataLabelsGroup","data-labels",a.visible?"visible":"hidden",6);h=c;n(f,function(f){var n,q,y,v,B=f.dataLabel;c=h;(g=f.options)&&g.dataLabels&&(c=C(c,g.dataLabels));if(v=c.enabled)n=f.barX&&f.barX+f.barW/2||p(f.plotX,-999),q=p(f.plotY,-999),y=c.y===null?f.y>=b.threshold?-A+w:w:c.y,d=(m?k.plotWidth-q:n)+c.x,e=t((m?k.plotHeight-n:q)+y);a.isCartesian&&!k.isInsidePlot(d-c.x,e)&&(v=!1);if(B&&!v)f.dataLabel=B.destroy();else if(v){n=c.align;var z;i=c.formatter.call(f.getLabelConfig(), -c);o==="column"&&(d+={left:-1,right:1}[n]*f.barW/2||0);!r&&m&&f.y<0&&(n="right",d-=10);c.style.color=p(c.color,c.style.color,a.color,"black");if(B)B.attr({text:i}).animate({x:d,y:e});else if(u(i)){B={align:n,fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":c.borderWidth,r:c.borderRadius||0,rotation:c.rotation,padding:c.padding,zIndex:1};for(z in B)B[z]===x&&delete B[z];B=f.dataLabel=l[c.rotation?"text":"label"](i,d,e,null,null,null,c.useHTML,!0).attr(B).css(c.style).add(j).shadow(c.shadow)}if(s&& -b.stacking&&B)z=f.barX,n=f.barY,q=f.barW,f=f.barH,B.align(c,null,{x:m?k.plotWidth-n-f:z,y:m?k.plotHeight-z-q:n,width:m?f:q,height:m?q:f})}})}},getSegmentPath:function(a){var b=this,c=[];n(a,function(d,e){b.getPointSpline?c.push.apply(c,b.getPointSpline(a,d,e)):(c.push(e?"L":"M"),e&&b.options.step&&c.push(d.plotX,a[e-1].plotY),c.push(d.plotX,d.plotY))});return c},getGraphPath:function(){var a=this,b=[],c,d=[];n(a.segments,function(e){c=a.getSegmentPath(e);e.length>1?b=b.concat(c):d.push(e[0])});a.singlePoints= -d;return a.graphPath=b},drawGraph:function(){var a=this.options,b=this.graph,c=this.group,d=a.lineColor||this.color,e=a.lineWidth,f=a.dashStyle,g=this.getGraphPath();if(b)eb(b),b.animate({d:g});else if(e){b={stroke:d,"stroke-width":e,zIndex:1};if(f)b.dashstyle=f;this.graph=this.chart.renderer.path(g).attr(b).add(c).shadow(a.shadow)}},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};n(["group","trackerGroup","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})} -var b=this,c=b.chart;H(c,"resize",a);H(b,"destroy",function(){U(c,"resize",a)});a();b.invertGroups=a},plotGroup:function(a,b,c,d,e){var f=this[a],g=this.chart,h=this.xAxis,i=this.yAxis;f||(this[a]=f=g.renderer.g(b).attr({visibility:c,zIndex:d||0.1}).add(e));f.translate(h?h.left:g.plotLeft,i?i.top:g.plotTop);return f},render:function(){var a=this.chart,b,c=this.options,d=c.animation&&!!this.animate,e=this.visible?"visible":"hidden",f=c.zIndex,g=this.hasRendered,h=a.seriesGroup;b=this.plotGroup("group", -"series",e,f,h);this.markerGroup=this.plotGroup("markerGroup","markers",e,f,h);this.drawDataLabels();d&&this.animate(!0);this.getAttribs();b.inverted=a.inverted;this.drawGraph&&this.drawGraph();this.drawPoints();this.options.enableMouseTracking!==!1&&this.drawTracker();a.inverted&&this.invertGroups();c.clip!==!1&&!this.sharedClipKey&&!g&&(b.clip(a.clipRect),this.trackerGroup&&this.trackerGroup.clip(a.clipRect));d?this.animate():g||this.afterAnimate();this.isDirty=this.isDirtyData=!1;this.hasRendered= -!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.group;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:this.xAxis.left,translateY:this.yAxis.top}));this.translate();this.setTooltipPoints(!0);this.render();b&&E(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=b.states,b=b.lineWidth,a=a||"";if(this.state!==a)this.state=a,d[a]&&d[a].enabled===!1||(a&&(b=d[a].lineWidth||b+1),c&&!c.dashstyle&&c.attr({"stroke-width":b},a?0: -500))},setVisible:function(a,b){var c=this.chart,d=this.legendItem,e=this.group,f=this.tracker,g=this.dataLabelsGroup,h=this.markerGroup,i,j=this.points,k=c.options.chart.ignoreHiddenSeries;i=this.visible;i=(this.visible=a=a===x?!i:a)?"show":"hide";if(e)e[i]();if(h)h[i]();if(f)f[i]();else if(j)for(e=j.length;e--;)if(f=j[e],f.tracker)f.tracker[i]();if(g)g[i]();d&&c.legend.colorizeItem(this,a);this.isDirty=!0;this.options.stacking&&n(c.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0}); -if(k)c.isDirtyBox=!0;b!==!1&&c.redraw();E(this,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===x?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;E(this,a?"select":"unselect")},drawTracker:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.renderer,h=f.options.tooltip.snap,i=a.tracker,j=b.cursor,j=j&&{cursor:j},k=a.singlePoints,l=this.isCartesian&&this.plotGroup("trackerGroup", -null,"visible",b.zIndex||1,f.trackerGroup),m;if(e&&!c)for(m=e+1;m--;)d[m]==="M"&&d.splice(m+1,0,d[m+1]-h,d[m+2],"L"),(m&&d[m]==="M"||m===e)&&d.splice(m,0,"L",d[m-2]+h,d[m-1]);for(m=0;m=0;d--)da&&i>e?(i=v(a,e),k=2*e-i):ig&&k>e?(k=v(g,e),i=2*e-k):kw?g-w:A-(f<=A?w:0));s(c,{barX:h,barY:i,barW:y,barH:j,pointWidth:q});c.shapeType="rect";c.shapeArgs=f=b.renderer.Element.prototype.crisp.call(0,e,h,i,y,j);e%2&&(f.y-=1,f.height+=1);c.trackerArgs=N(j)<3&&C(c.shapeArgs,{height:6,y:i-3})})},getSymbol:Ca,drawLegendSymbol:F.prototype.drawLegendSymbol, -drawGraph:Ca,drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer,d,e;n(a.points,function(f){var g=f.plotY;if(g!==x&&!isNaN(g)&&f.y!==null)d=f.graphic,e=f.shapeArgs,d?(eb(d),d.animate(C(e))):f.graphic=d=c[f.shapeType](e).attr(f.pointAttr[f.selected?"select":""]).add(a.group).shadow(b.shadow,null,b.stacking&&!b.borderRadius)})},drawTracker:function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+new Date,g=a.options,h=g.cursor,i=h&&{cursor:h},j=a.isCartesian&&a.plotGroup("trackerGroup",null, -"visible",g.zIndex||1,b.trackerGroup),k,l,m;n(a.points,function(h){e=h.tracker;d=h.trackerArgs||h.shapeArgs;l=h.plotY;m=!a.isCartesian||l!==x&&!isNaN(l);delete d.strokeWidth;if(h.y!==null&&m)e?e.attr(d):h.tracker=c[h.shapeType](d).attr({isTracker:f,fill:wb,visibility:a.visible?"visible":"hidden"}).on(ga?"touchstart":"mouseover",function(c){k=c.relatedTarget||c.fromElement;if(b.hoverSeries!==a&&B(k,"isTracker")!==f)a.onMouseOver();h.onMouseOver()}).on("mouseout",function(b){if(!g.stickyTracking&&(k= -b.relatedTarget||b.toElement,B(k,"isTracker")!==f))a.onMouseOut()}).css(i).add(h.group||j)})},animate:function(a){var b=this,c=b.points,d=b.options;if(!a)n(c,function(a){var c=a.graphic,a=a.shapeArgs,g=b.yAxis,h=d.threshold;c&&(c.attr({height:0,y:u(h)?g.getThreshold(h):g.translate(g.getExtremes().min,0,1,0,1)}),c.animate({height:a.height,y:a.y},d.animation))}),b.animate=null},remove:function(){var a=this,b=a.chart;b.hasRendered&&n(b.series,function(b){if(b.type===a.type)b.isDirty=!0});R.prototype.remove.apply(a, -arguments)}});ba.column=Ca;Y.bar=C(Y.column,{dataLabels:{align:"left",x:5,y:null,verticalAlign:"middle"}});ha=da(Ca,{type:"bar",inverted:!0});ba.bar=ha;Y.scatter=C(X,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'{series.name}
    ',pointFormat:"x: {point.x}
    y: {point.y}
    "}});ha=da(R,{type:"scatter",sorted:!1,translate:function(){var a=this;R.prototype.translate.apply(a);n(a.points,function(b){b.shapeType= -"circle";b.shapeArgs={x:b.plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})},drawTracker:function(){for(var a=this,b=a.options.cursor,b=b&&{cursor:b},c=a.points,d=c.length,e;d--;)if(e=c[d].graphic)e.element._i=d;a._hasTracking?a._hasTracking=!0:a.markerGroup.attr({isTracker:!0}).on(ga?"touchstart":"mouseover",function(b){a.onMouseOver();if(b.target._i!==x)c[b.target._i].onMouseOver()}).on("mouseout",function(){if(!a.options.stickyTracking)a.onMouseOut()}).css(b)}});ba.scatter=ha;Y.pie=C(X,{borderColor:"#FFFFFF", -borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}}});X={type:"pie",isCartesian:!1,pointClass:da(Ta,{init:function(){Ta.prototype.init.apply(this,arguments);var a=this,b;s(a,{visible:a.visible!==!1,name:p(a.name,"Slice")});b=function(){a.slice()};H(a,"select",b);H(a,"unselect",b);return a},setVisible:function(a){var b= -this.series,c=b.chart,d=this.tracker,e=this.dataLabel,f=this.connector,g=this.shadowGroup,h;h=(this.visible=a=a===x?!this.visible:a)?"show":"hide";this.group[h]();if(d)d[h]();if(e)e[h]();if(f)f[h]();if(g)g[h]();this.legendItem&&c.legend.colorizeItem(this,a);if(!b.isDirty&&b.options.ignoreHiddenPoint)b.isDirty=!0,c.redraw()},slice:function(a,b,c){var d=this.series.chart,e=this.slicedTranslation;ua(c,d);p(b,!0);a=this.sliced=u(a)?a:!this.sliced;a={translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop}; -this.group.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}}),pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var a=this;n(a.points,function(b){var c=b.graphic,b=b.shapeArgs,d=-xa/2;c&&(c.attr({r:0,start:d,end:d}),c.animate({r:b.r,start:b.start,end:b.end},a.options.animation))});a.animate=null},setData:function(a,b){R.prototype.setData.call(this,a,!1);this.processData(); -this.generatePoints();p(b,!0)&&this.chart.redraw()},getCenter:function(){var a=this.options,b=this.chart,c=b.plotWidth,d=b.plotHeight,a=a.center.concat([a.size,a.innerSize||0]),e=P(c,d),f;return Sa(a,function(a,b){return(f=/%$/.test(a))?[c,d,e,e][b]*A(a)/100:a})},translate:function(){this.generatePoints();var a=0,b=-0.25,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g=this.chart,h,i,j,k=this.points,l=2*xa,m,o,p,s=c.dataLabels.distance,q=c.ignoreHiddenPoint;this.center=f=this.getCenter();this.getX= -function(a,b){j=K.asin((a-f[1])/(f[2]/2+s));return f[0]+(b?-1:1)*W(j)*(f[2]/2+s)};n(k,function(b){a+=q&&!b.visible?0:b.y});n(k,function(c){m=a?c.y/a:0;h=t(b*l*1E3)/1E3;if(!q||c.visible)b+=m;i=t(b*l*1E3)/1E3;c.shapeType="arc";c.shapeArgs={x:f[0],y:f[1],r:f[2]/2,innerR:f[3]/2,start:h,end:i};j=(i+h)/2;c.slicedTranslation=Sa([W(j)*d+g.plotLeft,aa(j)*d+g.plotTop],t);o=W(j)*f[2]/2;p=aa(j)*f[2]/2;c.tooltipPos=[f[0]+o*0.7,f[1]+p*0.7];c.labelPos=[f[0]+o+W(j)*s,f[1]+p+aa(j)*s,f[0]+o+W(j)*e,f[1]+p+aa(j)*e,f[0]+ -o,f[1]+p,s<0?"center":j0,r=[[],[]],s,q,t,u,v=2,w;if(d.enabled||this._hasPointLabels){R.prototype.drawDataLabels.apply(this);n(a,function(a){a.dataLabel&&r[a.labelPos[7]0){for(w=m-l-j;w<=m+l+j;w+=a)x.push(w);t=x.length;if(C>t){h=[].concat(A);h.sort(u);for(w=C;w--;)h[w].rank=w;for(w=C;w--;)A[w].rank>=t&& -A.splice(w,1);C=A.length}for(w=0;w0){if(q=B.pop(),z=q.i,q=q.y,s>q&&x[z+1]!==null||s=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
    a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
    t
    ",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
    ",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;be.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+G+")|)|)"+E+"*\\]",J=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\x20\\t\\r\\n\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/^:not/,R=/[\x20\t\r\n\f]*[+~]/,S=/:not\($/,T=/h\d/i,U=/input|select|textarea|button/i,V=/\\(?!\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="
    ",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d",a.querySelectorAll("[selected]").length||e.push("\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="

    ",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+E+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\$&"):d.setAttribute("id",l),l="[id='"+l+"'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!='']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
    ","
    "]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
    ").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist deleted file mode 100644 index 95ac7839..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist +++ /dev/null @@ -1,11 +0,0 @@ -
    - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node.php deleted file mode 100644 index 481e309a..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node.php +++ /dev/null @@ -1,380 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Base class for nodes in the code coverage information tree. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -abstract class PHP_CodeCoverage_Report_Node implements Countable -{ - /** - * @var string - */ - protected $name; - - /** - * @var string - */ - protected $path; - - /** - * @var array - */ - protected $pathArray; - - /** - * @var PHP_CodeCoverage_Report_Node - */ - protected $parent; - - /** - * @var string - */ - protected $id; - - /** - * Constructor. - * - * @param string $name - * @param PHP_CodeCoverage_Report_Node $parent - */ - public function __construct($name, PHP_CodeCoverage_Report_Node $parent = NULL) - { - if (substr($name, -1) == '/') { - $name = substr($name, 0, -1); - } - - $this->name = $name; - $this->parent = $parent; - } - - /** - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * @return string - */ - public function getId() - { - if ($this->id === NULL) { - $parent = $this->getParent(); - - if ($parent === NULL) { - $this->id = 'index'; - } else { - $parentId = $parent->getId(); - - if ($parentId == 'index') { - $this->id = str_replace(':', '_', $this->name); - } else { - $this->id = $parentId . '_' . $this->name; - } - } - } - - return $this->id; - } - - /** - * @return string - */ - public function getPath() - { - if ($this->path === NULL) { - if ($this->parent === NULL) { - $this->path = $this->name; - } else { - $this->path = $this->parent->getPath() . '/' . $this->name; - } - } - - return $this->path; - } - - /** - * @return array - */ - public function getPathAsArray() - { - if ($this->pathArray === NULL) { - if ($this->parent === NULL) { - $this->pathArray = array(); - } else { - $this->pathArray = $this->parent->getPathAsArray(); - } - - $this->pathArray[] = $this; - } - - return $this->pathArray; - } - - /** - * @return PHP_CodeCoverage_Report_Node - */ - public function getParent() - { - return $this->parent; - } - - /** - * Returns the percentage of classes that has been tested. - * - * @param boolean $asString - * @return integer - */ - public function getTestedClassesPercent($asString = TRUE) - { - return PHP_CodeCoverage_Util::percent( - $this->getNumTestedClasses(), - $this->getNumClasses(), - $asString - ); - } - - /** - * Returns the percentage of traits that has been tested. - * - * @param boolean $asString - * @return integer - */ - public function getTestedTraitsPercent($asString = TRUE) - { - return PHP_CodeCoverage_Util::percent( - $this->getNumTestedTraits(), - $this->getNumTraits(), - $asString - ); - } - - /** - * Returns the percentage of traits that has been tested. - * - * @param boolean $asString - * @return integer - * @since Method available since Release 1.2.0 - */ - public function getTestedClassesAndTraitsPercent($asString = TRUE) - { - return PHP_CodeCoverage_Util::percent( - $this->getNumTestedClassesAndTraits(), - $this->getNumClassesAndTraits(), - $asString - ); - } - - /** - * Returns the percentage of methods that has been tested. - * - * @param boolean $asString - * @return integer - */ - public function getTestedMethodsPercent($asString = TRUE) - { - return PHP_CodeCoverage_Util::percent( - $this->getNumTestedMethods(), - $this->getNumMethods(), - $asString - ); - } - - /** - * Returns the percentage of executed lines. - * - * @param boolean $asString - * @return integer - */ - public function getLineExecutedPercent($asString = TRUE) - { - return PHP_CodeCoverage_Util::percent( - $this->getNumExecutedLines(), - $this->getNumExecutableLines(), - $asString - ); - } - - /** - * Returns the number of classes and traits. - * - * @return integer - * @since Method available since Release 1.2.0 - */ - public function getNumClassesAndTraits() - { - return $this->getNumClasses() + $this->getNumTraits(); - } - - /** - * Returns the number of tested classes and traits. - * - * @return integer - * @since Method available since Release 1.2.0 - */ - public function getNumTestedClassesAndTraits() - { - return $this->getNumTestedClasses() + $this->getNumTestedTraits(); - } - - /** - * Returns the classes and traits of this node. - * - * @return array - * @since Method available since Release 1.2.0 - */ - public function getClassesAndTraits() - { - return array_merge($this->getClasses(), $this->getTraits()); - } - - /** - * Returns the classes of this node. - * - * @return array - */ - abstract public function getClasses(); - - /** - * Returns the traits of this node. - * - * @return array - */ - abstract public function getTraits(); - - /** - * Returns the functions of this node. - * - * @return array - */ - abstract public function getFunctions(); - - /** - * Returns the LOC/CLOC/NCLOC of this node. - * - * @return array - */ - abstract public function getLinesOfCode(); - - /** - * Returns the number of executable lines. - * - * @return integer - */ - abstract public function getNumExecutableLines(); - - /** - * Returns the number of executed lines. - * - * @return integer - */ - abstract public function getNumExecutedLines(); - - /** - * Returns the number of classes. - * - * @return integer - */ - abstract public function getNumClasses(); - - /** - * Returns the number of tested classes. - * - * @return integer - */ - abstract public function getNumTestedClasses(); - - /** - * Returns the number of traits. - * - * @return integer - */ - abstract public function getNumTraits(); - - /** - * Returns the number of tested traits. - * - * @return integer - */ - abstract public function getNumTestedTraits(); - - /** - * Returns the number of methods. - * - * @return integer - */ - abstract public function getNumMethods(); - - /** - * Returns the number of tested methods. - * - * @return integer - */ - abstract public function getNumTestedMethods(); - - /** - * Returns the number of functions. - * - * @return integer - */ - abstract public function getNumFunctions(); - - /** - * Returns the number of tested functions. - * - * @return integer - */ - abstract public function getNumTestedFunctions(); -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Directory.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Directory.php deleted file mode 100644 index 808e4aa5..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Directory.php +++ /dev/null @@ -1,512 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Represents a directory in the code coverage information tree. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Node_Directory extends PHP_CodeCoverage_Report_Node implements IteratorAggregate -{ - /** - * @var PHP_CodeCoverage_Report_Node[] - */ - protected $children = array(); - - /** - * @var PHP_CodeCoverage_Report_Node_Directory[] - */ - protected $directories = array(); - - /** - * @var PHP_CodeCoverage_Report_Node_File[] - */ - protected $files = array(); - - /** - * @var array - */ - protected $classes; - - /** - * @var array - */ - protected $traits; - - /** - * @var array - */ - protected $functions; - - /** - * @var array - */ - protected $linesOfCode = NULL; - - /** - * @var integer - */ - protected $numFiles = -1; - - /** - * @var integer - */ - protected $numExecutableLines = -1; - - /** - * @var integer - */ - protected $numExecutedLines = -1; - - /** - * @var integer - */ - protected $numClasses = -1; - - /** - * @var integer - */ - protected $numTestedClasses = -1; - - /** - * @var integer - */ - protected $numTraits = -1; - - /** - * @var integer - */ - protected $numTestedTraits = -1; - - /** - * @var integer - */ - protected $numMethods = -1; - - /** - * @var integer - */ - protected $numTestedMethods = -1; - - /** - * @var integer - */ - protected $numFunctions = -1; - - /** - * @var integer - */ - protected $numTestedFunctions = -1; - - /** - * Returns the number of files in/under this node. - * - * @return integer - */ - public function count() - { - if ($this->numFiles == -1) { - $this->numFiles = 0; - - foreach ($this->children as $child) { - $this->numFiles += count($child); - } - } - - return $this->numFiles; - } - - /** - * Returns an iterator for this node. - * - * @return RecursiveIteratorIterator - */ - public function getIterator() - { - return new RecursiveIteratorIterator( - new PHP_CodeCoverage_Report_Node_Iterator($this), - RecursiveIteratorIterator::SELF_FIRST - ); - } - - /** - * Adds a new directory. - * - * @param string $name - * @return PHP_CodeCoverage_Report_Node_Directory - */ - public function addDirectory($name) - { - $directory = new PHP_CodeCoverage_Report_Node_Directory($name, $this); - - $this->children[] = $directory; - $this->directories[] = &$this->children[count($this->children) - 1]; - - return $directory; - } - - /** - * Adds a new file. - * - * @param string $name - * @param array $coverageData - * @param array $testData - * @param boolean $cacheTokens - * @return PHP_CodeCoverage_Report_Node_File - * @throws PHP_CodeCoverage_Exception - */ - public function addFile($name, array $coverageData, array $testData, $cacheTokens) - { - $file = new PHP_CodeCoverage_Report_Node_File( - $name, $this, $coverageData, $testData, $cacheTokens - ); - - $this->children[] = $file; - $this->files[] = &$this->children[count($this->children) - 1]; - - $this->numExecutableLines = -1; - $this->numExecutedLines = -1; - - return $file; - } - - /** - * Returns the directories in this directory. - * - * @return array - */ - public function getDirectories() - { - return $this->directories; - } - - /** - * Returns the files in this directory. - * - * @return array - */ - public function getFiles() - { - return $this->files; - } - - /** - * Returns the child nodes of this node. - * - * @return array - */ - public function getChildNodes() - { - return $this->children; - } - - /** - * Returns the classes of this node. - * - * @return array - */ - public function getClasses() - { - if ($this->classes === NULL) { - $this->classes = array(); - - foreach ($this->children as $child) { - $this->classes = array_merge( - $this->classes, $child->getClasses() - ); - } - } - - return $this->classes; - } - - /** - * Returns the traits of this node. - * - * @return array - */ - public function getTraits() - { - if ($this->traits === NULL) { - $this->traits = array(); - - foreach ($this->children as $child) { - $this->traits = array_merge( - $this->traits, $child->getTraits() - ); - } - } - - return $this->traits; - } - - /** - * Returns the functions of this node. - * - * @return array - */ - public function getFunctions() - { - if ($this->functions === NULL) { - $this->functions = array(); - - foreach ($this->children as $child) { - $this->functions = array_merge( - $this->functions, $child->getFunctions() - ); - } - } - - return $this->functions; - } - - /** - * Returns the LOC/CLOC/NCLOC of this node. - * - * @return array - */ - public function getLinesOfCode() - { - if ($this->linesOfCode === NULL) { - $this->linesOfCode = array('loc' => 0, 'cloc' => 0, 'ncloc' => 0); - - foreach ($this->children as $child) { - $linesOfCode = $child->getLinesOfCode(); - - $this->linesOfCode['loc'] += $linesOfCode['loc']; - $this->linesOfCode['cloc'] += $linesOfCode['cloc']; - $this->linesOfCode['ncloc'] += $linesOfCode['ncloc']; - } - } - - return $this->linesOfCode; - } - - /** - * Returns the number of executable lines. - * - * @return integer - */ - public function getNumExecutableLines() - { - if ($this->numExecutableLines == -1) { - $this->numExecutableLines = 0; - - foreach ($this->children as $child) { - $this->numExecutableLines += $child->getNumExecutableLines(); - } - } - - return $this->numExecutableLines; - } - - /** - * Returns the number of executed lines. - * - * @return integer - */ - public function getNumExecutedLines() - { - if ($this->numExecutedLines == -1) { - $this->numExecutedLines = 0; - - foreach ($this->children as $child) { - $this->numExecutedLines += $child->getNumExecutedLines(); - } - } - - return $this->numExecutedLines; - } - - /** - * Returns the number of classes. - * - * @return integer - */ - public function getNumClasses() - { - if ($this->numClasses == -1) { - $this->numClasses = 0; - - foreach ($this->children as $child) { - $this->numClasses += $child->getNumClasses(); - } - } - - return $this->numClasses; - } - - /** - * Returns the number of tested classes. - * - * @return integer - */ - public function getNumTestedClasses() - { - if ($this->numTestedClasses == -1) { - $this->numTestedClasses = 0; - - foreach ($this->children as $child) { - $this->numTestedClasses += $child->getNumTestedClasses(); - } - } - - return $this->numTestedClasses; - } - - /** - * Returns the number of traits. - * - * @return integer - */ - public function getNumTraits() - { - if ($this->numTraits == -1) { - $this->numTraits = 0; - - foreach ($this->children as $child) { - $this->numTraits += $child->getNumTraits(); - } - } - - return $this->numTraits; - } - - /** - * Returns the number of tested traits. - * - * @return integer - */ - public function getNumTestedTraits() - { - if ($this->numTestedTraits == -1) { - $this->numTestedTraits = 0; - - foreach ($this->children as $child) { - $this->numTestedTraits += $child->getNumTestedTraits(); - } - } - - return $this->numTestedTraits; - } - - /** - * Returns the number of methods. - * - * @return integer - */ - public function getNumMethods() - { - if ($this->numMethods == -1) { - $this->numMethods = 0; - - foreach ($this->children as $child) { - $this->numMethods += $child->getNumMethods(); - } - } - - return $this->numMethods; - } - - /** - * Returns the number of tested methods. - * - * @return integer - */ - public function getNumTestedMethods() - { - if ($this->numTestedMethods == -1) { - $this->numTestedMethods = 0; - - foreach ($this->children as $child) { - $this->numTestedMethods += $child->getNumTestedMethods(); - } - } - - return $this->numTestedMethods; - } - - /** - * Returns the number of functions. - * - * @return integer - */ - public function getNumFunctions() - { - if ($this->numFunctions == -1) { - $this->numFunctions = 0; - - foreach ($this->children as $child) { - $this->numFunctions += $child->getNumFunctions(); - } - } - - return $this->numFunctions; - } - - /** - * Returns the number of tested functions. - * - * @return integer - */ - public function getNumTestedFunctions() - { - if ($this->numTestedFunctions == -1) { - $this->numTestedFunctions = 0; - - foreach ($this->children as $child) { - $this->numTestedFunctions += $child->getNumTestedFunctions(); - } - } - - return $this->numTestedFunctions; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/File.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/File.php deleted file mode 100644 index a5b01547..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/File.php +++ /dev/null @@ -1,721 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Represents a file in the code coverage information tree. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Node_File extends PHP_CodeCoverage_Report_Node -{ - /** - * @var array - */ - protected $coverageData; - - /** - * @var array - */ - protected $testData; - - /** - * @var array - */ - protected $ignoredLines; - - /** - * @var integer - */ - protected $numExecutableLines = 0; - - /** - * @var integer - */ - protected $numExecutedLines = 0; - - /** - * @var array - */ - protected $classes = array(); - - /** - * @var array - */ - protected $traits = array(); - - /** - * @var array - */ - protected $functions = array(); - - /** - * @var array - */ - protected $linesOfCode = array(); - - /** - * @var integer - */ - protected $numTestedTraits = 0; - - /** - * @var integer - */ - protected $numTestedClasses = 0; - - /** - * @var integer - */ - protected $numMethods = NULL; - - /** - * @var integer - */ - protected $numTestedMethods = NULL; - - /** - * @var integer - */ - protected $numTestedFunctions = NULL; - - /** - * @var array - */ - protected $startLines = array(); - - /** - * @var array - */ - protected $endLines = array(); - - /** - * @var boolean - */ - protected $cacheTokens; - - /** - * Constructor. - * - * @param string $name - * @param PHP_CodeCoverage_Report_Node $parent - * @param array $coverageData - * @param array $testData - * @param boolean $cacheTokens - * @throws PHP_CodeCoverage_Exception - */ - public function __construct($name, PHP_CodeCoverage_Report_Node $parent, array $coverageData, array $testData, $cacheTokens) - { - if (!is_bool($cacheTokens)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'boolean' - ); - } - - parent::__construct($name, $parent); - - $this->coverageData = $coverageData; - $this->testData = $testData; - $this->ignoredLines = PHP_CodeCoverage_Util::getLinesToBeIgnored( - $this->getPath(), $cacheTokens - ); - $this->cacheTokens = $cacheTokens; - - $this->calculateStatistics(); - } - - /** - * Returns the number of files in/under this node. - * - * @return integer - */ - public function count() - { - return 1; - } - - /** - * Returns the code coverage data of this node. - * - * @return array - */ - public function getCoverageData() - { - return $this->coverageData; - } - - /** - * Returns the test data of this node. - * - * @return array - */ - public function getTestData() - { - return $this->testData; - } - - /** - * @return array - */ - public function getIgnoredLines() - { - return $this->ignoredLines; - } - - /** - * Returns the classes of this node. - * - * @return array - */ - public function getClasses() - { - return $this->classes; - } - - /** - * Returns the traits of this node. - * - * @return array - */ - public function getTraits() - { - return $this->traits; - } - - /** - * Returns the functions of this node. - * - * @return array - */ - public function getFunctions() - { - return $this->functions; - } - - /** - * Returns the LOC/CLOC/NCLOC of this node. - * - * @return array - */ - public function getLinesOfCode() - { - return $this->linesOfCode; - } - - /** - * Returns the number of executable lines. - * - * @return integer - */ - public function getNumExecutableLines() - { - return $this->numExecutableLines; - } - - /** - * Returns the number of executed lines. - * - * @return integer - */ - public function getNumExecutedLines() - { - return $this->numExecutedLines; - } - - /** - * Returns the number of classes. - * - * @return integer - */ - public function getNumClasses() - { - return count($this->classes); - } - - /** - * Returns the number of tested classes. - * - * @return integer - */ - public function getNumTestedClasses() - { - return $this->numTestedClasses; - } - - /** - * Returns the number of traits. - * - * @return integer - */ - public function getNumTraits() - { - return count($this->traits); - } - - /** - * Returns the number of tested traits. - * - * @return integer - */ - public function getNumTestedTraits() - { - return $this->numTestedTraits; - } - - /** - * Returns the number of methods. - * - * @return integer - */ - public function getNumMethods() - { - if ($this->numMethods === NULL) { - $this->numMethods = 0; - - foreach ($this->classes as $class) { - foreach ($class['methods'] as $method) { - if ($method['executableLines'] > 0) { - $this->numMethods++; - } - } - } - - foreach ($this->traits as $trait) { - foreach ($trait['methods'] as $method) { - if ($method['executableLines'] > 0) { - $this->numMethods++; - } - } - } - } - - return $this->numMethods; - } - - /** - * Returns the number of tested methods. - * - * @return integer - */ - public function getNumTestedMethods() - { - if ($this->numTestedMethods === NULL) { - $this->numTestedMethods = 0; - - foreach ($this->classes as $class) { - foreach ($class['methods'] as $method) { - if ($method['executableLines'] > 0 && - $method['coverage'] == 100) { - $this->numTestedMethods++; - } - } - } - - foreach ($this->traits as $trait) { - foreach ($trait['methods'] as $method) { - if ($method['executableLines'] > 0 && - $method['coverage'] == 100) { - $this->numTestedMethods++; - } - } - } - } - - return $this->numTestedMethods; - } - - /** - * Returns the number of functions. - * - * @return integer - */ - public function getNumFunctions() - { - return count($this->functions); - } - - /** - * Returns the number of tested functions. - * - * @return integer - */ - public function getNumTestedFunctions() - { - if ($this->numTestedFunctions === NULL) { - $this->numTestedFunctions = 0; - - foreach ($this->functions as $function) { - if ($function['executableLines'] > 0 && - $function['coverage'] == 100) { - $this->numTestedFunctions++; - } - } - } - - return $this->numTestedFunctions; - } - - /** - * Calculates coverage statistics for the file. - */ - protected function calculateStatistics() - { - if ($this->cacheTokens) { - $tokens = PHP_Token_Stream_CachingFactory::get($this->getPath()); - } else { - $tokens = new PHP_Token_Stream($this->getPath()); - } - - $this->processClasses($tokens); - $this->processTraits($tokens); - $this->processFunctions($tokens); - $this->linesOfCode = $tokens->getLinesOfCode(); - unset($tokens); - - for ($lineNumber = 1; $lineNumber <= $this->linesOfCode['loc']; $lineNumber++) { - if (isset($this->startLines[$lineNumber])) { - // Start line of a class. - if (isset($this->startLines[$lineNumber]['className'])) { - $currentClass = &$this->startLines[$lineNumber]; - } - - // Start line of a trait. - else if (isset($this->startLines[$lineNumber]['traitName'])) { - $currentTrait = &$this->startLines[$lineNumber]; - } - - // Start line of a method. - else if (isset($this->startLines[$lineNumber]['methodName'])) { - $currentMethod = &$this->startLines[$lineNumber]; - } - - // Start line of a function. - else if (isset($this->startLines[$lineNumber]['functionName'])) { - $currentFunction = &$this->startLines[$lineNumber]; - } - } - - if (!isset($this->ignoredLines[$lineNumber]) && - isset($this->coverageData[$lineNumber]) && - $this->coverageData[$lineNumber] !== NULL) { - if (isset($currentClass)) { - $currentClass['executableLines']++; - } - - if (isset($currentTrait)) { - $currentTrait['executableLines']++; - } - - if (isset($currentMethod)) { - $currentMethod['executableLines']++; - } - - if (isset($currentFunction)) { - $currentFunction['executableLines']++; - } - - $this->numExecutableLines++; - - if (count($this->coverageData[$lineNumber]) > 0 || - isset($this->ignoredLines[$lineNumber])) { - if (isset($currentClass)) { - $currentClass['executedLines']++; - } - - if (isset($currentTrait)) { - $currentTrait['executedLines']++; - } - - if (isset($currentMethod)) { - $currentMethod['executedLines']++; - } - - if (isset($currentFunction)) { - $currentFunction['executedLines']++; - } - - $this->numExecutedLines++; - } - } - - if (isset($this->endLines[$lineNumber])) { - // End line of a class. - if (isset($this->endLines[$lineNumber]['className'])) { - unset($currentClass); - } - - // End line of a trait. - else if (isset($this->endLines[$lineNumber]['traitName'])) { - unset($currentTrait); - } - - // End line of a method. - else if (isset($this->endLines[$lineNumber]['methodName'])) { - unset($currentMethod); - } - - // End line of a function. - else if (isset($this->endLines[$lineNumber]['functionName'])) { - unset($currentFunction); - } - } - } - - foreach ($this->traits as &$trait) { - foreach ($trait['methods'] as &$method) { - if ($method['executableLines'] > 0) { - $method['coverage'] = ($method['executedLines'] / - $method['executableLines']) * 100; - } else { - $method['coverage'] = 100; - } - - $method['crap'] = $this->crap( - $method['ccn'], $method['coverage'] - ); - - $trait['ccn'] += $method['ccn']; - } - - if ($trait['executableLines'] > 0) { - $trait['coverage'] = ($trait['executedLines'] / - $trait['executableLines']) * 100; - } else { - $trait['coverage'] = 100; - } - - if ($trait['coverage'] == 100) { - $this->numTestedClasses++; - } - - $trait['crap'] = $this->crap( - $trait['ccn'], $trait['coverage'] - ); - } - - foreach ($this->classes as &$class) { - foreach ($class['methods'] as &$method) { - if ($method['executableLines'] > 0) { - $method['coverage'] = ($method['executedLines'] / - $method['executableLines']) * 100; - } else { - $method['coverage'] = 100; - } - - $method['crap'] = $this->crap( - $method['ccn'], $method['coverage'] - ); - - $class['ccn'] += $method['ccn']; - } - - if ($class['executableLines'] > 0) { - $class['coverage'] = ($class['executedLines'] / - $class['executableLines']) * 100; - } else { - $class['coverage'] = 100; - } - - if ($class['coverage'] == 100) { - $this->numTestedClasses++; - } - - $class['crap'] = $this->crap( - $class['ccn'], $class['coverage'] - ); - } - } - - /** - * @param PHP_Token_Stream $tokens - */ - protected function processClasses(PHP_Token_Stream $tokens) - { - $classes = $tokens->getClasses(); - unset($tokens); - - $link = $this->getId() . '.html#'; - - foreach ($classes as $className => $class) { - $this->classes[$className] = array( - 'className' => $className, - 'methods' => array(), - 'startLine' => $class['startLine'], - 'executableLines' => 0, - 'executedLines' => 0, - 'ccn' => 0, - 'coverage' => 0, - 'crap' => 0, - 'package' => $class['package'], - 'link' => $link . $class['startLine'] - ); - - $this->startLines[$class['startLine']] = &$this->classes[$className]; - $this->endLines[$class['endLine']] = &$this->classes[$className]; - - foreach ($class['methods'] as $methodName => $method) { - $this->classes[$className]['methods'][$methodName] = array( - 'methodName' => $methodName, - 'signature' => $method['signature'], - 'startLine' => $method['startLine'], - 'endLine' => $method['endLine'], - 'executableLines' => 0, - 'executedLines' => 0, - 'ccn' => $method['ccn'], - 'coverage' => 0, - 'crap' => 0, - 'link' => $link . $method['startLine'] - ); - - $this->startLines[$method['startLine']] = &$this->classes[$className]['methods'][$methodName]; - $this->endLines[$method['endLine']] = &$this->classes[$className]['methods'][$methodName]; - } - } - } - - /** - * @param PHP_Token_Stream $tokens - */ - protected function processTraits(PHP_Token_Stream $tokens) - { - $traits = $tokens->getTraits(); - unset($tokens); - - $link = $this->getId() . '.html#'; - - foreach ($traits as $traitName => $trait) { - $this->traits[$traitName] = array( - 'traitName' => $traitName, - 'methods' => array(), - 'startLine' => $trait['startLine'], - 'executableLines' => 0, - 'executedLines' => 0, - 'ccn' => 0, - 'coverage' => 0, - 'crap' => 0, - 'package' => $trait['package'], - 'link' => $link . $trait['startLine'] - ); - - $this->startLines[$trait['startLine']] = &$this->traits[$traitName]; - $this->endLines[$trait['endLine']] = &$this->traits[$traitName]; - - foreach ($trait['methods'] as $methodName => $method) { - $this->traits[$traitName]['methods'][$methodName] = array( - 'methodName' => $methodName, - 'signature' => $method['signature'], - 'startLine' => $method['startLine'], - 'endLine' => $method['endLine'], - 'executableLines' => 0, - 'executedLines' => 0, - 'ccn' => $method['ccn'], - 'coverage' => 0, - 'crap' => 0, - 'link' => $link . $method['startLine'] - ); - - $this->startLines[$method['startLine']] = &$this->traits[$traitName]['methods'][$methodName]; - $this->endLines[$method['endLine']] = &$this->traits[$traitName]['methods'][$methodName]; - } - } - } - - /** - * @param PHP_Token_Stream $tokens - */ - protected function processFunctions(PHP_Token_Stream $tokens) - { - $functions = $tokens->getFunctions(); - unset($tokens); - - $link = $this->getId() . '.html#'; - - foreach ($functions as $functionName => $function) { - $this->functions[$functionName] = array( - 'functionName' => $functionName, - 'signature' => $function['signature'], - 'startLine' => $function['startLine'], - 'executableLines' => 0, - 'executedLines' => 0, - 'ccn' => $function['ccn'], - 'coverage' => 0, - 'crap' => 0, - 'link' => $link . $function['startLine'] - ); - - $this->startLines[$function['startLine']] = &$this->functions[$functionName]; - $this->endLines[$function['endLine']] = &$this->functions[$functionName]; - } - } - - /** - * Calculates the Change Risk Anti-Patterns (CRAP) index for a unit of code - * based on its cyclomatic complexity and percentage of code coverage. - * - * @param integer $ccn - * @param float $coverage - * @return string - * @since Method available since Release 1.2.0 - */ - protected function crap($ccn, $coverage) - { - if ($coverage == 0) { - return (string)pow($ccn, 2) + $ccn; - } - - if ($coverage >= 95) { - return (string)$ccn; - } - - return sprintf( - '%01.2F', pow($ccn, 2) * pow(1 - $coverage/100, 3) + $ccn - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Iterator.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Iterator.php deleted file mode 100644 index 6c8dd05b..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Node/Iterator.php +++ /dev/null @@ -1,148 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Recursive iterator for PHP_CodeCoverage_Report_Node object graphs. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Node_Iterator implements RecursiveIterator -{ - /** - * @var integer - */ - protected $position; - - /** - * @var PHP_CodeCoverage_Report_Node[] - */ - protected $nodes; - - /** - * Constructor. - * - * @param PHP_CodeCoverage_Report_Node_Directory $node - */ - public function __construct(PHP_CodeCoverage_Report_Node_Directory $node) - { - $this->nodes = $node->getChildNodes(); - } - - /** - * Rewinds the Iterator to the first element. - * - */ - public function rewind() - { - $this->position = 0; - } - - /** - * Checks if there is a current element after calls to rewind() or next(). - * - * @return boolean - */ - public function valid() - { - return $this->position < count($this->nodes); - } - - /** - * Returns the key of the current element. - * - * @return integer - */ - public function key() - { - return $this->position; - } - - /** - * Returns the current element. - * - * @return PHPUnit_Framework_Test - */ - public function current() - { - return $this->valid() ? $this->nodes[$this->position] : NULL; - } - - /** - * Moves forward to next element. - * - */ - public function next() - { - $this->position++; - } - - /** - * Returns the sub iterator for the current element. - * - * @return PHP_CodeCoverage_Report_Node_Iterator - */ - public function getChildren() - { - return new PHP_CodeCoverage_Report_Node_Iterator( - $this->nodes[$this->position] - ); - } - - /** - * Checks whether the current element has children. - * - * @return boolean - */ - public function hasChildren() - { - return $this->nodes[$this->position] instanceof PHP_CodeCoverage_Report_Node_Directory; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/PHP.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/PHP.php deleted file mode 100644 index 5d17e869..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/PHP.php +++ /dev/null @@ -1,74 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Uses serialize() to write a PHP_CodeCoverage object to a file. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_PHP -{ - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - * @return string - */ - public function process(PHP_CodeCoverage $coverage, $target = NULL) - { - $coverage = serialize($coverage); - - if ($target !== NULL) { - return file_put_contents($target, $coverage); - } else { - return $coverage; - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Text.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Text.php deleted file mode 100644 index 5eecb097..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/Text.php +++ /dev/null @@ -1,278 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -/** - * Generates human readable output from an PHP_CodeCoverage object. - * - * The output gets put into a text file our written to the CLI. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_Text -{ - protected $outputStream; - protected $lowUpperBound; - protected $highLowerBound; - protected $showUncoveredFiles; - - protected $colors = array( - 'green' => "\x1b[30;42m", - 'yellow' => "\x1b[30;43m", - 'red' => "\x1b[37;41m", - 'header' => "\x1b[47;40m", - 'reset' => "\x1b[0m", - 'eol' => "\x1b[2K", - ); - - public function __construct(PHPUnit_Util_Printer $outputStream, $lowUpperBound, $highLowerBound, $showUncoveredFiles) - { - $this->outputStream = $outputStream; - $this->lowUpperBound = $lowUpperBound; - $this->highLowerBound = $highLowerBound; - $this->showUncoveredFiles = $showUncoveredFiles; - } - - /** - * @param PHP_CodeCoverage $coverage - * @param string $target - * @param string $name - * @return string - */ - public function process(PHP_CodeCoverage $coverage, $showColors = FALSE) - { - $output = ''; - $report = $coverage->getReport(); - unset($coverage); - - $colors = array( - 'header' => '', - 'classes' => '', - 'methods' => '', - 'lines' => '', - 'reset' => '', - 'eol' => '' - ); - - if ($showColors) { - $colors['classes'] = $this->getCoverageColor( - $report->getNumTestedClassesAndTraits(), - $report->getNumClassesAndTraits() - ); - $colors['methods'] = $this->getCoverageColor( - $report->getNumTestedMethods(), - $report->getNumMethods() - ); - $colors['lines'] = $this->getCoverageColor( - $report->getNumExecutedLines(), - $report->getNumExecutableLines() - ); - $colors['reset'] = $this->colors['reset']; - $colors['header'] = $this->colors['header']; - $colors['eol'] = $this->colors['eol']; - } - - $output .= PHP_EOL . PHP_EOL . - $colors['header'] . 'Code Coverage Report '; - - $output .= PHP_EOL . - date(' Y-m-d H:i:s', $_SERVER['REQUEST_TIME']) . - PHP_EOL; - - $output .= PHP_EOL . ' Summary: ' . PHP_EOL . $colors['reset'] - . $colors['classes'] . $colors['eol'] . ' Classes: ' . PHP_CodeCoverage_Util::percent($report->getNumTestedClassesAndTraits(), $report->getNumClassesAndTraits(), TRUE) - . ' (' . $report->getNumTestedClassesAndTraits() . '/' . $report->getNumClassesAndTraits() . ')' . PHP_EOL . $colors ['eol'] - . $colors['methods'] . $colors['eol'] . ' Methods: ' . PHP_CodeCoverage_Util::percent($report->getNumTestedMethods(), $report->getNumMethods(), TRUE) - . ' (' . $report->getNumTestedMethods() . '/' . $report->getNumMethods() . ')' . PHP_EOL . $colors ['eol'] - . $colors['lines'] . $colors['eol'] . ' Lines: ' . PHP_CodeCoverage_Util::percent($report->getNumExecutedLines(), $report->getNumExecutableLines(), TRUE) - . ' (' . $report->getNumExecutedLines() . '/' . $report->getNumExecutableLines() . ')' . PHP_EOL . $colors['reset'] . $colors ['eol']; - - $classCoverage = array(); - - foreach ($report as $item) { - if (!$item instanceof PHP_CodeCoverage_Report_Node_File) { - continue; - } - - $classes = $item->getClassesAndTraits(); - $coverage = $item->getCoverageData(); - $lines = array(); - $ignoredLines = $item->getIgnoredLines(); - - foreach ($classes as $className => $class) { - $classStatements = 0; - $coveredClassStatements = 0; - $coveredMethods = 0; - - foreach ($class['methods'] as $method) { - $methodCount = 0; - $methodLines = 0; - $methodLinesCovered = 0; - - for ($i = $method['startLine']; - $i <= $method['endLine']; - $i++) { - if (isset($ignoredLines[$i])) { - continue; - } - - $add = TRUE; - $count = 0; - - if (isset($coverage[$i])) { - if ($coverage[$i] !== NULL) { - $classStatements++; - $methodLines++; - } else { - $add = FALSE; - } - - $count = count($coverage[$i]); - - if ($count > 0) { - $coveredClassStatements++; - $methodLinesCovered++; - } - } else { - $add = FALSE; - } - - $methodCount = max($methodCount, $count); - - if ($add) { - $lines[$i] = array( - 'count' => $count, 'type' => 'stmt' - ); - } - } - - if ($methodCount > 0) { - $coveredMethods++; - } - - } - - if (!empty($class['package']['namespace'])) { - $namespace = '\\' . $class['package']['namespace'] . '::'; - } - - else if (!empty($class['package']['fullPackage'])) { - $namespace = '@' . $class['package']['fullPackage'] . '::'; - } - - else { - $namespace = ''; - } - - $classCoverage[$namespace . $className] = array( - 'namespace' => $namespace, - 'className ' => $className, - 'methodsCovered' => $coveredMethods, - 'methodCount' => count($class['methods']), - 'statementsCovered' => $coveredClassStatements, - 'statementCount' => $classStatements, - ); - } - } - - ksort($classCoverage); - - $methodColor = ''; - $linesColor = ''; - $resetColor = ''; - - foreach ($classCoverage as $fullQualifiedPath => $classInfo) { - if ($classInfo['statementsCovered'] != 0 || - $this->showUncoveredFiles) { - - if ($showColors) { - $methodColor = $this->getCoverageColor($classInfo['methodsCovered'], $classInfo['methodCount']); - $linesColor = $this->getCoverageColor($classInfo['statementsCovered'], $classInfo['statementCount']); - $resetColor = $colors['reset']; - } - - $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL - . ' ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' ' - . ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor - ; - } - } - - $this->outputStream->write($output . PHP_EOL); - } - - protected function getCoverageColor($numberOfCoveredElements, $totalNumberOfElements) - { - $coverage = PHP_CodeCoverage_Util::percent( - $numberOfCoveredElements, $totalNumberOfElements - ); - - if ($coverage > $this->highLowerBound) { - return $this->colors['green']; - } - - else if ($coverage > $this->lowUpperBound) { - return $this->colors['yellow']; - } - - return $this->colors['red']; - } - - protected function printCoverageCounts($numberOfCoveredElements, $totalNumberOfElements, $presicion) - { - $format = '%' . $presicion . 's'; - - return PHP_CodeCoverage_Util::percent( - $numberOfCoveredElements, $totalNumberOfElements, TRUE, TRUE - ) . - ' (' . sprintf($format, $numberOfCoveredElements) . '/' . - sprintf($format, $totalNumberOfElements) . ')'; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util.php deleted file mode 100644 index 823ea82d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util.php +++ /dev/null @@ -1,268 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Utility methods. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Util -{ - /** - * @var array - */ - protected static $ignoredLines = array(); - - /** - * @var array - */ - protected static $ids = array(); - - - /** - * Returns the lines of a source file that should be ignored. - * - * @param string $filename - * @param boolean $cacheTokens - * @return array - * @throws PHP_CodeCoverage_Exception - */ - public static function getLinesToBeIgnored($filename, $cacheTokens = TRUE) - { - if (!is_string($filename)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 1, 'string' - ); - } - - if (!is_bool($cacheTokens)) { - throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory( - 2, 'boolean' - ); - } - - if (!isset(self::$ignoredLines[$filename])) { - self::$ignoredLines[$filename] = array(); - $ignore = FALSE; - $stop = FALSE; - $lines = file($filename); - - foreach ($lines as $index => $line) { - if (!trim($line)) { - self::$ignoredLines[$filename][$index+1] = TRUE; - } - } - - if ($cacheTokens) { - $tokens = PHP_Token_Stream_CachingFactory::get($filename); - } else { - $tokens = new PHP_Token_Stream($filename); - } - - $classes = array_merge($tokens->getClasses(), $tokens->getTraits()); - $tokens = $tokens->tokens(); - - foreach ($tokens as $token) { - switch (get_class($token)) { - case 'PHP_Token_COMMENT': - case 'PHP_Token_DOC_COMMENT': { - $count = substr_count($token, "\n"); - $line = $token->getLine(); - - for ($i = $line; $i < $line + $count; $i++) { - self::$ignoredLines[$filename][$i] = TRUE; - } - - if ($token instanceof PHP_Token_DOC_COMMENT) { - // Workaround for the fact the DOC_COMMENT token - // does not include the final \n character in its - // text. - if (substr(trim($lines[$i-1]), -2) == '*/') { - self::$ignoredLines[$filename][$i] = TRUE; - } - - break; - } - - $_token = trim($token); - - if ($_token == '// @codeCoverageIgnore' || - $_token == '//@codeCoverageIgnore') { - $ignore = TRUE; - $stop = TRUE; - } - - else if ($_token == '// @codeCoverageIgnoreStart' || - $_token == '//@codeCoverageIgnoreStart') { - $ignore = TRUE; - } - - else if ($_token == '// @codeCoverageIgnoreEnd' || - $_token == '//@codeCoverageIgnoreEnd') { - $stop = TRUE; - } - } - break; - - case 'PHP_Token_INTERFACE': - case 'PHP_Token_TRAIT': - case 'PHP_Token_CLASS': - case 'PHP_Token_FUNCTION': { - $docblock = $token->getDocblock(); - - if (strpos($docblock, '@codeCoverageIgnore')) { - $endLine = $token->getEndLine(); - - for ($i = $token->getLine(); $i <= $endLine; $i++) { - self::$ignoredLines[$filename][$i] = TRUE; - } - } - - else if ($token instanceof PHP_Token_INTERFACE || - $token instanceof PHP_Token_TRAIT || - $token instanceof PHP_Token_CLASS) { - if (empty($classes[$token->getName()]['methods'])) { - for ($i = $token->getLine(); - $i <= $token->getEndLine(); - $i++) { - self::$ignoredLines[$filename][$i] = TRUE; - } - } else { - $firstMethod = array_shift( - $classes[$token->getName()]['methods'] - ); - - $lastMethod = array_pop( - $classes[$token->getName()]['methods'] - ); - - if ($lastMethod === NULL) { - $lastMethod = $firstMethod; - } - - for ($i = $token->getLine(); - $i < $firstMethod['startLine']; - $i++) { - self::$ignoredLines[$filename][$i] = TRUE; - } - - for ($i = $token->getEndLine(); - $i > $lastMethod['endLine']; - $i--) { - self::$ignoredLines[$filename][$i] = TRUE; - } - } - } - } - break; - - case 'PHP_Token_INTERFACE': { - $endLine = $token->getEndLine(); - - for ($i = $token->getLine(); $i <= $endLine; $i++) { - self::$ignoredLines[$filename][$i] = TRUE; - } - } - break; - - case 'PHP_Token_NAMESPACE': { - self::$ignoredLines[$filename][$token->getEndLine()] = TRUE; - } // Intentional fallthrough - case 'PHP_Token_OPEN_TAG': - case 'PHP_Token_CLOSE_TAG': - case 'PHP_Token_USE': { - self::$ignoredLines[$filename][$token->getLine()] = TRUE; - } - break; - } - - if ($ignore) { - self::$ignoredLines[$filename][$token->getLine()] = TRUE; - - if ($stop) { - $ignore = FALSE; - $stop = FALSE; - } - } - } - } - - return self::$ignoredLines[$filename]; - } - - /** - * @param float $a - * @param float $b - * @return float ($a / $b) * 100 - */ - public static function percent($a, $b, $asString = FALSE, $fixedWidth = FALSE) - { - if ($asString && $b == 0) { - return ''; - } - - if ($b > 0) { - $percent = ($a / $b) * 100; - } else { - $percent = 100; - } - - if ($asString) { - if ($fixedWidth) { - return sprintf('%6.2F%%', $percent); - } - - return sprintf('%01.2F%%', $percent); - } else { - return $percent; - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util/InvalidArgumentHelper.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util/InvalidArgumentHelper.php deleted file mode 100644 index cd80a589..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Util/InvalidArgumentHelper.php +++ /dev/null @@ -1,80 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.2.0 - */ - -/** - * Factory for PHP_CodeCoverage_Exception objects that are used to describe - * invalid arguments passed to a function or method. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.2.0 - */ -class PHP_CodeCoverage_Util_InvalidArgumentHelper -{ - /** - * @param integer $argument - * @param string $type - * @param mixed $value - */ - public static function factory($argument, $type, $value = NULL) - { - $stack = debug_backtrace(FALSE); - - return new PHP_CodeCoverage_Exception( - sprintf( - 'Argument #%d%sof %s::%s() must be a %s', - $argument, - $value !== NULL ? ' (' . $value . ')' : ' ', - $stack[1]['class'], - $stack[1]['function'], - $type - ) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Version.php b/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Version.php deleted file mode 100644 index 19f98695..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Version.php +++ /dev/null @@ -1,92 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.2.1 - */ - -/** - * - * - * @category PHP - * @package CodeCoverage - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.2.1 - */ -class PHP_CodeCoverage_Version -{ - const VERSION = '1.2.6'; - protected static $version; - - /** - * Returns the version of PHP_CodeCoverage. - * - * @return string - */ - public static function id() - { - if (self::$version === NULL) { - self::$version = self::VERSION; - - if (is_dir(dirname(dirname(__DIR__)) . '/.git')) { - $dir = getcwd(); - chdir(__DIR__); - $version = exec('git describe --tags'); - chdir($dir); - - if ($version) { - if (count(explode('.', self::VERSION)) == 3) { - self::$version = $version; - } else { - $version = explode('-', $version); - - self::$version = self::VERSION . '-' . $version[2]; - } - } - } - } - - return self::$version; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/README.markdown b/includes/kohana/vendor/phpunit/php-code-coverage/README.markdown deleted file mode 100644 index 559afa71..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/README.markdown +++ /dev/null @@ -1,43 +0,0 @@ -PHP_CodeCoverage -================ - -**PHP_CodeCoverage** is a library that provides collection, processing, and rendering functionality for PHP code coverage information. - -Requirements ------------- - -* PHP_CodeCoverage 1.2 requires PHP 5.3.3 (or later) but PHP 5.4.7 (or later) is highly recommended. -* [Xdebug](http://xdebug.org/) 2.0.5 (or later) is required but Xdebug 2.2.1 (or later) is highly recommended. - -Installation ------------- - -PHP_CodeCoverage should be installed using the PEAR Installer, the backbone of the [PHP Extension and Application Repository](http://pear.php.net/) that provides a distribution system for PHP packages. - -Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions. `sudo pear upgrade PEAR` usually suffices to upgrade an existing PEAR installation. The [PEAR Manual ](http://pear.php.net/manual/en/installation.getting.php) explains how to perform a fresh installation of PEAR. - -The following two commands (which you may have to run as `root`) are all that is required to install PHP_CodeCoverage using the PEAR Installer: - - pear config-set auto_discover 1 - pear install pear.phpunit.de/PHP_CodeCoverage - -After the installation you can find the PHP_CodeCoverage source files inside your local PEAR directory; the path is usually `/usr/lib/php/PHP/CodeCoverage`. - -Using the PHP_CodeCoverage API ------------------------------- - - start(''); - - // ... - - $coverage->stop(); - - $writer = new PHP_CodeCoverage_Report_Clover; - $writer->process($coverage, '/tmp/clover.xml'); - - $writer = new PHP_CodeCoverage_Report_HTML; - $writer->process($coverage, '/tmp/code-coverage-report'); diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/FilterTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/FilterTest.php deleted file mode 100644 index cac28a21..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/FilterTest.php +++ /dev/null @@ -1,298 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -/** - * Tests for the PHP_CodeCoverage_Filter class. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_FilterTest extends PHPUnit_Framework_TestCase -{ - protected $filter; - protected $files; - - protected function setUp() - { - $this->filter = unserialize('O:23:"PHP_CodeCoverage_Filter":0:{}'); - - $this->files = array( - TEST_FILES_PATH . 'BankAccount.php', - TEST_FILES_PATH . 'BankAccountTest.php', - TEST_FILES_PATH . 'CoverageClassExtendedTest.php', - TEST_FILES_PATH . 'CoverageClassTest.php', - TEST_FILES_PATH . 'CoverageFunctionTest.php', - TEST_FILES_PATH . 'CoverageMethodOneLineAnnotationTest.php', - TEST_FILES_PATH . 'CoverageMethodTest.php', - TEST_FILES_PATH . 'CoverageNoneTest.php', - TEST_FILES_PATH . 'CoverageNotPrivateTest.php', - TEST_FILES_PATH . 'CoverageNotProtectedTest.php', - TEST_FILES_PATH . 'CoverageNotPublicTest.php', - TEST_FILES_PATH . 'CoverageNothingTest.php', - TEST_FILES_PATH . 'CoveragePrivateTest.php', - TEST_FILES_PATH . 'CoverageProtectedTest.php', - TEST_FILES_PATH . 'CoveragePublicTest.php', - TEST_FILES_PATH . 'CoverageTwoDefaultClassAnnotations.php', - TEST_FILES_PATH . 'CoveredClass.php', - TEST_FILES_PATH . 'CoveredFunction.php', - TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php', - TEST_FILES_PATH . 'NamespaceCoverageClassTest.php', - TEST_FILES_PATH . 'NamespaceCoverageCoversClassPublicTest.php', - TEST_FILES_PATH . 'NamespaceCoverageCoversClassTest.php', - TEST_FILES_PATH . 'NamespaceCoverageMethodTest.php', - TEST_FILES_PATH . 'NamespaceCoverageNotPrivateTest.php', - TEST_FILES_PATH . 'NamespaceCoverageNotProtectedTest.php', - TEST_FILES_PATH . 'NamespaceCoverageNotPublicTest.php', - TEST_FILES_PATH . 'NamespaceCoveragePrivateTest.php', - TEST_FILES_PATH . 'NamespaceCoverageProtectedTest.php', - TEST_FILES_PATH . 'NamespaceCoveragePublicTest.php', - TEST_FILES_PATH . 'NamespaceCoveredClass.php', - TEST_FILES_PATH . 'NotExistingCoveredElementTest.php', - TEST_FILES_PATH . 'source_with_ignore.php', - TEST_FILES_PATH . 'source_with_namespace.php', - TEST_FILES_PATH . 'source_with_oneline_annotations.php', - TEST_FILES_PATH . 'source_without_ignore.php', - TEST_FILES_PATH . 'source_without_namespace.php' - ); - } - - /** - * @covers PHP_CodeCoverage_Filter::addFileToBlacklist - * @covers PHP_CodeCoverage_Filter::getBlacklist - */ - public function testAddingAFileToTheBlacklistWorks() - { - $this->filter->addFileToBlacklist($this->files[0]); - - $this->assertEquals( - array($this->files[0]), $this->filter->getBlacklist() - ); - } - - /** - * @covers PHP_CodeCoverage_Filter::removeFileFromBlacklist - * @covers PHP_CodeCoverage_Filter::getBlacklist - */ - public function testRemovingAFileFromTheBlacklistWorks() - { - $this->filter->addFileToBlacklist($this->files[0]); - $this->filter->removeFileFromBlacklist($this->files[0]); - - $this->assertEquals(array(), $this->filter->getBlacklist()); - } - - /** - * @covers PHP_CodeCoverage_Filter::addDirectoryToBlacklist - * @covers PHP_CodeCoverage_Filter::getBlacklist - * @depends testAddingAFileToTheBlacklistWorks - */ - public function testAddingADirectoryToTheBlacklistWorks() - { - $this->filter->addDirectoryToBlacklist(TEST_FILES_PATH); - - $blacklist = $this->filter->getBlacklist(); - sort($blacklist); - - $this->assertEquals($this->files, $blacklist); - } - - /** - * @covers PHP_CodeCoverage_Filter::addFilesToBlacklist - * @covers PHP_CodeCoverage_Filter::getBlacklist - */ - public function testAddingFilesToTheBlacklistWorks() - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - TEST_FILES_PATH, $suffixes = '.php' - ); - - $this->filter->addFilesToBlacklist($files); - - $blacklist = $this->filter->getBlacklist(); - sort($blacklist); - - $this->assertEquals($this->files, $blacklist); - } - - /** - * @covers PHP_CodeCoverage_Filter::removeDirectoryFromBlacklist - * @covers PHP_CodeCoverage_Filter::getBlacklist - * @depends testAddingADirectoryToTheBlacklistWorks - */ - public function testRemovingADirectoryFromTheBlacklistWorks() - { - $this->filter->addDirectoryToBlacklist(TEST_FILES_PATH); - $this->filter->removeDirectoryFromBlacklist(TEST_FILES_PATH); - - $this->assertEquals(array(), $this->filter->getBlacklist()); - } - - /** - * @covers PHP_CodeCoverage_Filter::addFileToWhitelist - * @covers PHP_CodeCoverage_Filter::getWhitelist - */ - public function testAddingAFileToTheWhitelistWorks() - { - $this->filter->addFileToWhitelist($this->files[0]); - - $this->assertEquals( - array($this->files[0]), $this->filter->getWhitelist() - ); - } - - /** - * @covers PHP_CodeCoverage_Filter::removeFileFromWhitelist - * @covers PHP_CodeCoverage_Filter::getWhitelist - */ - public function testRemovingAFileFromTheWhitelistWorks() - { - $this->filter->addFileToWhitelist($this->files[0]); - $this->filter->removeFileFromWhitelist($this->files[0]); - - $this->assertEquals(array(), $this->filter->getWhitelist()); - } - - /** - * @covers PHP_CodeCoverage_Filter::addDirectoryToWhitelist - * @covers PHP_CodeCoverage_Filter::getWhitelist - * @depends testAddingAFileToTheWhitelistWorks - */ - public function testAddingADirectoryToTheWhitelistWorks() - { - $this->filter->addDirectoryToWhitelist(TEST_FILES_PATH); - - $whitelist = $this->filter->getWhitelist(); - sort($whitelist); - - $this->assertEquals($this->files, $whitelist); - } - - /** - * @covers PHP_CodeCoverage_Filter::addFilesToWhitelist - * @covers PHP_CodeCoverage_Filter::getBlacklist - */ - public function testAddingFilesToTheWhitelistWorks() - { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - TEST_FILES_PATH, $suffixes = '.php' - ); - - $this->filter->addFilesToWhitelist($files); - - $whitelist = $this->filter->getWhitelist(); - sort($whitelist); - - $this->assertEquals($this->files, $whitelist); - } - - /** - * @covers PHP_CodeCoverage_Filter::removeDirectoryFromWhitelist - * @covers PHP_CodeCoverage_Filter::getWhitelist - * @depends testAddingADirectoryToTheWhitelistWorks - */ - public function testRemovingADirectoryFromTheWhitelistWorks() - { - $this->filter->addDirectoryToWhitelist(TEST_FILES_PATH); - $this->filter->removeDirectoryFromWhitelist(TEST_FILES_PATH); - - $this->assertEquals(array(), $this->filter->getWhitelist()); - } - - /** - * @covers PHP_CodeCoverage_Filter::isFile - */ - public function testIsFile() - { - $this->assertFalse($this->filter->isFile('eval()\'d code')); - $this->assertFalse($this->filter->isFile('runtime-created function')); - $this->assertFalse($this->filter->isFile('assert code')); - $this->assertFalse($this->filter->isFile('regexp code')); - $this->assertTrue($this->filter->isFile('filename')); - } - - /** - * @covers PHP_CodeCoverage_Filter::isFiltered - */ - public function testBlacklistedFileIsFiltered() - { - $this->filter->addFileToBlacklist($this->files[0]); - $this->assertTrue($this->filter->isFiltered($this->files[0])); - } - - /** - * @covers PHP_CodeCoverage_Filter::isFiltered - */ - public function testWhitelistedFileIsNotFiltered() - { - $this->filter->addFileToWhitelist($this->files[0]); - $this->assertFalse($this->filter->isFiltered($this->files[0])); - } - - /** - * @covers PHP_CodeCoverage_Filter::isFiltered - */ - public function testNotWhitelistedFileIsFiltered() - { - $this->filter->addFileToWhitelist($this->files[0]); - $this->assertTrue($this->filter->isFiltered($this->files[1])); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/CloverTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/CloverTest.php deleted file mode 100644 index ac255940..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/CloverTest.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once TEST_FILES_PATH . '../TestCase.php'; - -/** - * Tests for the PHP_CodeCoverage_Report_Clover class. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_Report_CloverTest extends PHP_CodeCoverage_TestCase -{ - /** - * @covers PHP_CodeCoverage_Report_Clover - */ - public function testCloverForBankAccountTest() - { - $clover = new PHP_CodeCoverage_Report_Clover; - - $this->assertStringMatchesFormatFile( - TEST_FILES_PATH . 'BankAccount-clover.xml', - $clover->process($this->getCoverageForBankAccount(), NULL, 'BankAccount') - ); - } - - /** - * @covers PHP_CodeCoverage_Report_Clover - */ - public function testCloverForFileWithIgnoredLines() - { - $clover = new PHP_CodeCoverage_Report_Clover; - - $this->assertStringMatchesFormatFile( - TEST_FILES_PATH . 'ignored-lines-clover.xml', - $clover->process($this->getCoverageForFileWithIgnoredLines()) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/FactoryTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/FactoryTest.php deleted file mode 100644 index 64db7520..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/Report/FactoryTest.php +++ /dev/null @@ -1,263 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.1.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once TEST_FILES_PATH . '../TestCase.php'; - -/** - * Tests for the PHP_CodeCoverage_Report_Factory class. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.1.0 - */ -class PHP_CodeCoverage_Report_FactoryTest extends PHP_CodeCoverage_TestCase -{ - protected $factory; - - protected function setUp() - { - $this->factory = new PHP_CodeCoverage_Report_Factory; - } - - public function testSomething() - { - $root = $this->getCoverageForBankAccount()->getReport(); - - $expectedPath = rtrim(TEST_FILES_PATH, DIRECTORY_SEPARATOR); - $this->assertEquals($expectedPath, $root->getName()); - $this->assertEquals($expectedPath, $root->getPath()); - $this->assertEquals(10, $root->getNumExecutableLines()); - $this->assertEquals(5, $root->getNumExecutedLines()); - $this->assertEquals(1, $root->getNumClasses()); - $this->assertEquals(0, $root->getNumTestedClasses()); - $this->assertEquals(4, $root->getNumMethods()); - $this->assertEquals(3, $root->getNumTestedMethods()); - $this->assertEquals('0.00%', $root->getTestedClassesPercent()); - $this->assertEquals('75.00%', $root->getTestedMethodsPercent()); - $this->assertEquals('50.00%', $root->getLineExecutedPercent()); - $this->assertEquals(0, $root->getNumFunctions()); - $this->assertEquals(0, $root->getNumTestedFunctions()); - $this->assertNull($root->getParent()); - $this->assertEquals(array(), $root->getDirectories()); - #$this->assertEquals(array(), $root->getFiles()); - #$this->assertEquals(array(), $root->getChildNodes()); - - $this->assertEquals( - array( - 'BankAccount' => array( - 'methods' => array( - 'getBalance' => array( - 'signature' => 'getBalance()', - 'startLine' => 6, - 'endLine' => 9, - 'executableLines' => 1, - 'executedLines' => 1, - 'ccn' => 1, - 'coverage' => 100, - 'crap' => '1', - 'link' => 'BankAccount.php.html#6', - 'methodName' => 'getBalance' - ), - 'setBalance' => array( - 'signature' => 'setBalance($balance)', - 'startLine' => 11, - 'endLine' => 18, - 'executableLines' => 5, - 'executedLines' => 0, - 'ccn' => 2, - 'coverage' => 0, - 'crap' => 6, - 'link' => 'BankAccount.php.html#11', - 'methodName' => 'setBalance' - ), - 'depositMoney' => array( - 'signature' => 'depositMoney($balance)', - 'startLine' => 20, - 'endLine' => 25, - 'executableLines' => 2, - 'executedLines' => 2, - 'ccn' => 1, - 'coverage' => 100, - 'crap' => '1', - 'link' => 'BankAccount.php.html#20', - 'methodName' => 'depositMoney' - ), - 'withdrawMoney' => array( - 'signature' => 'withdrawMoney($balance)', - 'startLine' => 27, - 'endLine' => 32, - 'executableLines' => 2, - 'executedLines' => 2, - 'ccn' => 1, - 'coverage' => 100, - 'crap' => '1', - 'link' => 'BankAccount.php.html#27', - 'methodName' => 'withdrawMoney' - ), - ), - 'startLine' => 2, - 'executableLines' => 10, - 'executedLines' => 5, - 'ccn' => 5, - 'coverage' => 50, - 'crap' => '8.12', - 'package' => array( - 'namespace' => '', - 'fullPackage' => '', - 'category' => '', - 'package' => '', - 'subpackage' => '' - ), - 'link' => 'BankAccount.php.html#2', - 'className' => 'BankAccount' - ) - ), - $root->getClasses() - ); - - $this->assertEquals(array(), $root->getFunctions()); - } - - /** - * @covers PHP_CodeCoverage_Report_Factory::buildDirectoryStructure - */ - public function testBuildDirectoryStructure() - { - $method = new ReflectionMethod( - 'PHP_CodeCoverage_Report_Factory', 'buildDirectoryStructure' - ); - - $method->setAccessible(TRUE); - - $this->assertEquals( - array( - 'src' => array( - 'Money.php/f' => array(), - 'MoneyBag.php/f' => array() - ) - ), - $method->invoke( - $this->factory, - array('src/Money.php' => array(), 'src/MoneyBag.php' => array()) - ) - ); - } - - /** - * @covers PHP_CodeCoverage_Report_Factory::reducePaths - * @dataProvider reducePathsProvider - */ - public function testReducePaths($reducedPaths, $commonPath, $paths) - { - $method = new ReflectionMethod( - 'PHP_CodeCoverage_Report_Factory', 'reducePaths' - ); - - $method->setAccessible(TRUE); - - $_commonPath = $method->invokeArgs($this->factory, array(&$paths)); - - $this->assertEquals($reducedPaths, $paths); - $this->assertEquals($commonPath, $_commonPath); - } - - public function reducePathsProvider() - { - return array( - array( - array( - 'Money.php' => array(), - 'MoneyBag.php' => array() - ), - '/home/sb/Money', - array( - '/home/sb/Money/Money.php' => array(), - '/home/sb/Money/MoneyBag.php' => array() - ) - ), - array( - array( - 'Money.php' => array() - ), - '/home/sb/Money/', - array( - '/home/sb/Money/Money.php' => array() - ) - ), - array( - array(), - '.', - array() - ), - array( - array( - 'Money.php' => array(), - 'MoneyBag.php' => array(), - 'Cash.phar/Cash.php' => array(), - ), - '/home/sb/Money', - array( - '/home/sb/Money/Money.php' => array(), - '/home/sb/Money/MoneyBag.php' => array(), - 'phar:///home/sb/Money/Cash.phar/Cash.php' => array(), - ), - ), - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/UtilTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/UtilTest.php deleted file mode 100644 index 75e84735..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverage/UtilTest.php +++ /dev/null @@ -1,194 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once TEST_FILES_PATH . 'CoverageClassExtendedTest.php'; -require_once TEST_FILES_PATH . 'CoverageClassTest.php'; -require_once TEST_FILES_PATH . 'CoverageFunctionTest.php'; -require_once TEST_FILES_PATH . 'CoverageMethodTest.php'; -require_once TEST_FILES_PATH . 'CoverageMethodOneLineAnnotationTest.php'; -require_once TEST_FILES_PATH . 'CoverageNoneTest.php'; -require_once TEST_FILES_PATH . 'CoverageNotPrivateTest.php'; -require_once TEST_FILES_PATH . 'CoverageNotProtectedTest.php'; -require_once TEST_FILES_PATH . 'CoverageNotPublicTest.php'; -require_once TEST_FILES_PATH . 'CoveragePrivateTest.php'; -require_once TEST_FILES_PATH . 'CoverageProtectedTest.php'; -require_once TEST_FILES_PATH . 'CoveragePublicTest.php'; -require_once TEST_FILES_PATH . 'CoverageTwoDefaultClassAnnotations.php'; -require_once TEST_FILES_PATH . 'CoveredClass.php'; -require_once TEST_FILES_PATH . 'CoveredFunction.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageClassTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageCoversClassTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageCoversClassPublicTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageMethodTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageNotPrivateTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageNotProtectedTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageNotPublicTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoveragePrivateTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoverageProtectedTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoveragePublicTest.php'; -require_once TEST_FILES_PATH . 'NamespaceCoveredClass.php'; -require_once TEST_FILES_PATH . 'NotExistingCoveredElementTest.php'; -require_once TEST_FILES_PATH . 'CoverageNothingTest.php'; -/** - * Tests for the PHP_CodeCoverage_Util class. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverage_UtilTest extends PHPUnit_Framework_TestCase -{ - /** - * @covers PHP_CodeCoverage_Util::getLinesToBeIgnored - */ - public function testGetLinesToBeIgnored() - { - $this->assertEquals( - array( - 1 => TRUE, - 3 => TRUE, - 4 => TRUE, - 5 => TRUE, - 7 => TRUE, - 8 => TRUE, - 9 => TRUE, - 10 => TRUE, - 11 => TRUE, - 12 => TRUE, - 13 => TRUE, - 14 => TRUE, - 15 => TRUE, - 16 => TRUE, - 17 => TRUE, - 18 => TRUE, - 19 => TRUE, - 20 => TRUE, - 21 => TRUE, - 22 => TRUE, - 23 => TRUE, - 24 => TRUE, - 25 => TRUE, - 26 => TRUE, - 27 => TRUE, - 30 => TRUE, - 32 => TRUE, - 33 => TRUE, - 34 => TRUE, - 35 => TRUE, - 36 => TRUE, - 37 => TRUE, - 38 => TRUE, - ), - PHP_CodeCoverage_Util::getLinesToBeIgnored( - TEST_FILES_PATH . 'source_with_ignore.php' - ) - ); - } - - /** - * @covers PHP_CodeCoverage_Util::getLinesToBeIgnored - */ - public function testGetLinesToBeIgnored2() - { - $this->assertEquals( - array(1 => TRUE), - PHP_CodeCoverage_Util::getLinesToBeIgnored( - TEST_FILES_PATH . 'source_without_ignore.php' - ) - ); - } - - /** - * @covers PHP_CodeCoverage_Util::getLinesToBeIgnored - */ - public function testGetLinesToBeIgnoredOneLineAnnotations() - { - $this->assertEquals( - array( - 1 => TRUE, - 2 => TRUE, - 7 => TRUE, - 3 => TRUE, - 4 => TRUE, - 5 => TRUE, - 6 => TRUE, - 8 => TRUE, - 9 => TRUE, - 13 => TRUE, - ), - PHP_CodeCoverage_Util::getLinesToBeIgnored( - TEST_FILES_PATH . 'source_with_oneline_annotations.php' - ) - ); - } - - - /** - * @covers PHP_CodeCoverage_Util::percent - */ - public function testPercent() - { - $this->assertEquals(100, PHP_CodeCoverage_Util::percent(100, 0)); - $this->assertEquals(100, PHP_CodeCoverage_Util::percent(100, 100)); - $this->assertEquals( - '100.00%', PHP_CodeCoverage_Util::percent(100, 100, TRUE) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverageTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverageTest.php deleted file mode 100644 index 7d0e0ce5..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverageTest.php +++ /dev/null @@ -1,499 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once TEST_FILES_PATH . '../TestCase.php'; - -require_once TEST_FILES_PATH . 'BankAccount.php'; -require_once TEST_FILES_PATH . 'BankAccountTest.php'; - -/** - * Tests for the PHP_CodeCoverage class. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -class PHP_CodeCoverageTest extends PHP_CodeCoverage_TestCase -{ - protected $coverage; - protected $getLinesToBeCovered; - - protected function setUp() - { - $this->coverage = new PHP_CodeCoverage; - - $this->getLinesToBeCovered = new ReflectionMethod( - 'PHP_CodeCoverage', 'getLinesToBeCovered' - ); - - $this->getLinesToBeCovered->setAccessible(TRUE); - } - - /** - * @covers PHP_CodeCoverage::__construct - * @covers PHP_CodeCoverage::filter - */ - public function testConstructor() - { - $this->assertAttributeInstanceOf( - 'PHP_CodeCoverage_Driver_Xdebug', 'driver', $this->coverage - ); - - $this->assertAttributeInstanceOf( - 'PHP_CodeCoverage_Filter', 'filter', $this->coverage - ); - } - - /** - * @covers PHP_CodeCoverage::__construct - * @covers PHP_CodeCoverage::filter - */ - public function testConstructor2() - { - $filter = new PHP_CodeCoverage_Filter; - $coverage = new PHP_CodeCoverage(NULL, $filter); - - $this->assertAttributeInstanceOf( - 'PHP_CodeCoverage_Driver_Xdebug', 'driver', $coverage - ); - - $this->assertSame($filter, $coverage->filter()); - } - - /** - * @covers PHP_CodeCoverage::start - * @expectedException PHP_CodeCoverage_Exception - */ - public function testStartThrowsExceptionForInvalidArgument() - { - $this->coverage->start(NULL, array(), NULL); - } - - /** - * @covers PHP_CodeCoverage::stop - * @expectedException PHP_CodeCoverage_Exception - */ - public function testStopThrowsExceptionForInvalidArgument() - { - $this->coverage->stop(NULL); - } - - /** - * @covers PHP_CodeCoverage::append - * @expectedException PHP_CodeCoverage_Exception - */ - public function testAppendThrowsExceptionForInvalidArgument() - { - $this->coverage->append(array(), NULL); - } - - /** - * @covers PHP_CodeCoverage::setCacheTokens - * @expectedException PHP_CodeCoverage_Exception - */ - public function testSetCacheTokensThrowsExceptionForInvalidArgument() - { - $this->coverage->setCacheTokens(NULL); - } - - /** - * @covers PHP_CodeCoverage::setCacheTokens - */ - public function testSetCacheTokens() - { - $this->coverage->setCacheTokens(TRUE); - $this->assertAttributeEquals(TRUE, 'cacheTokens', $this->coverage); - } - - /** - * @covers PHP_CodeCoverage::setForceCoversAnnotation - * @expectedException PHP_CodeCoverage_Exception - */ - public function testSetForceCoversAnnotationThrowsExceptionForInvalidArgument() - { - $this->coverage->setForceCoversAnnotation(NULL); - } - - /** - * @covers PHP_CodeCoverage::setForceCoversAnnotation - */ - public function testSetForceCoversAnnotation() - { - $this->coverage->setForceCoversAnnotation(TRUE); - $this->assertAttributeEquals( - TRUE, 'forceCoversAnnotation', $this->coverage - ); - } - - /** - * @covers PHP_CodeCoverage::setProcessUncoveredFilesFromWhitelist - * @expectedException PHP_CodeCoverage_Exception - */ - public function testSetProcessUncoveredFilesFromWhitelistThrowsExceptionForInvalidArgument() - { - $this->coverage->setProcessUncoveredFilesFromWhitelist(NULL); - } - - /** - * @covers PHP_CodeCoverage::setProcessUncoveredFilesFromWhitelist - */ - public function testSetProcessUncoveredFilesFromWhitelist() - { - $this->coverage->setProcessUncoveredFilesFromWhitelist(TRUE); - $this->assertAttributeEquals( - TRUE, 'processUncoveredFilesFromWhitelist', $this->coverage - ); - } - - /** - * @covers PHP_CodeCoverage::setMapTestClassNameToCoveredClassName - */ - public function testSetMapTestClassNameToCoveredClassName() - { - $this->coverage->setMapTestClassNameToCoveredClassName(TRUE); - $this->assertAttributeEquals( - TRUE, 'mapTestClassNameToCoveredClassName', $this->coverage - ); - } - - /** - * @covers PHP_CodeCoverage::setMapTestClassNameToCoveredClassName - * @expectedException PHP_CodeCoverage_Exception - */ - public function testSetMapTestClassNameToCoveredClassNameThrowsExceptionForInvalidArgument() - { - $this->coverage->setMapTestClassNameToCoveredClassName(NULL); - } - - /** - * @covers PHP_CodeCoverage::clear - */ - public function testClear() - { - $this->coverage->clear(); - - $this->assertAttributeEquals(NULL, 'currentId', $this->coverage); - $this->assertAttributeEquals(array(), 'data', $this->coverage); - $this->assertAttributeEquals(array(), 'tests', $this->coverage); - } - - /** - * Add parenthesis to the covers annotation below in a couple of different ways to make sure it - * works as expected - * - * @covers PHP_CodeCoverage::start() - * @covers PHP_CodeCoverage::stop( ) - * @covers PHP_CodeCoverage::append () - * @covers PHP_CodeCoverage::applyListsFilter ( ) - * @covers PHP_CodeCoverage::initializeFilesThatAreSeenTheFirstTime - * @covers PHP_CodeCoverage::applyCoversAnnotationFilter - * @covers PHP_CodeCoverage::getTests - */ - public function testCollect() - { - $coverage = $this->getCoverageForBankAccount(); - - $this->assertEquals( - $this->getExpectedDataArrayForBankAccount(), $coverage->getData() - ); - - $this->assertEquals( - array( - 'BankAccountTest::testBalanceIsInitiallyZero' => NULL, - 'BankAccountTest::testBalanceCannotBecomeNegative' => NULL, - 'BankAccountTest::testBalanceCannotBecomeNegative2' => NULL, - 'BankAccountTest::testDepositWithdrawMoney' => NULL - ), - $coverage->getTests() - ); - } - - /** - * @covers PHP_CodeCoverage::getData - * @covers PHP_CodeCoverage::merge - */ - public function testMerge() - { - $coverage = $this->getCoverageForBankAccountForFirstTwoTests(); - $coverage->merge($this->getCoverageForBankAccountForLastTwoTests()); - - $this->assertEquals( - $this->getExpectedDataArrayForBankAccount(), $coverage->getData() - ); - } - - /** - * @covers PHP_CodeCoverage::getData - * @covers PHP_CodeCoverage::merge - */ - public function testMerge2() - { - $coverage = new PHP_CodeCoverage( - $this->getMock('PHP_CodeCoverage_Driver_Xdebug'), - new PHP_CodeCoverage_Filter - ); - - $coverage->merge($this->getCoverageForBankAccount()); - - $this->assertEquals( - $this->getExpectedDataArrayForBankAccount(), $coverage->getData() - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - * @covers PHP_CodeCoverage::resolveCoversToReflectionObjects - * @dataProvider getLinesToBeCoveredProvider - */ - public function testGetLinesToBeCovered($test, $lines) - { - if (strpos($test, 'Namespace') === 0) { - $expected = array( - TEST_FILES_PATH . 'NamespaceCoveredClass.php' => $lines - ); - } - - else if ($test === 'CoverageNoneTest' || $test === 'CoverageNothingTest') { - $expected = array(); - } - - else if ($test === 'CoverageFunctionTest') { - $expected = array( - TEST_FILES_PATH . 'CoveredFunction.php' => $lines - ); - } - - else { - $expected = array(TEST_FILES_PATH . 'CoveredClass.php' => $lines); - } - - $this->assertEquals( - $expected, - $this->getLinesToBeCovered->invoke( - $this->coverage, $test, 'testSomething' - ) - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - * @covers PHP_CodeCoverage::resolveCoversToReflectionObjects - * @expectedException PHP_CodeCoverage_Exception - */ - public function testGetLinesToBeCovered2() - { - $this->getLinesToBeCovered->invoke( - $this->coverage, 'NotExistingCoveredElementTest', 'testOne' - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - * @covers PHP_CodeCoverage::resolveCoversToReflectionObjects - * @expectedException PHP_CodeCoverage_Exception - */ - public function testGetLinesToBeCovered3() - { - $this->getLinesToBeCovered->invoke( - $this->coverage, 'NotExistingCoveredElementTest', 'testTwo' - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - * @covers PHP_CodeCoverage::resolveCoversToReflectionObjects - * @expectedException PHP_CodeCoverage_Exception - */ - public function testGetLinesToBeCovered4() - { - $this->getLinesToBeCovered->invoke( - $this->coverage, 'NotExistingCoveredElementTest', 'testThree' - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - */ - public function testGetLinesToBeCoveredSkipsNonExistantMethods() - { - $this->assertSame( - array(), - $this->getLinesToBeCovered->invoke( - $this->coverage, - 'NotExistingCoveredElementTest', - 'methodDoesNotExist' - ) - ); - } - - /** - * @covers PHP_CodeCoverage::getLinesToBeCovered - * @expectedException PHP_CodeCoverage_Exception - */ - public function testTwoCoversDefaultClassAnnoationsAreNotAllowed() - { - $this->getLinesToBeCovered->invoke( - $this->coverage, - 'CoverageTwoDefaultClassAnnotations', - 'testSomething' - ); - } - - public function getLinesToBeCoveredProvider() - { - return array( - array( - 'CoverageNoneTest', - array() - ), - array( - 'CoverageClassExtendedTest', - array_merge(range(19, 36), range(2, 17)) - ), - array( - 'CoverageClassTest', - range(19, 36) - ), - array( - 'CoverageMethodTest', - range(31, 35) - ), - array( - 'CoverageMethodOneLineAnnotationTest', - range(31, 35) - ), - array( - 'CoverageNotPrivateTest', - array_merge(range(25, 29), range(31, 35)) - ), - array( - 'CoverageNotProtectedTest', - array_merge(range(21, 23), range(31, 35)) - ), - array( - 'CoverageNotPublicTest', - array_merge(range(21, 23), range(25, 29)) - ), - array( - 'CoveragePrivateTest', - range(21, 23) - ), - array( - 'CoverageProtectedTest', - range(25, 29) - ), - array( - 'CoveragePublicTest', - range(31, 35) - ), - array( - 'CoverageFunctionTest', - range(2, 4) - ), - array( - 'NamespaceCoverageClassExtendedTest', - array_merge(range(21, 38), range(4, 19)) - ), - array( - 'NamespaceCoverageClassTest', - range(21, 38) - ), - array( - 'NamespaceCoverageMethodTest', - range(33, 37) - ), - array( - 'NamespaceCoverageNotPrivateTest', - array_merge(range(27, 31), range(33, 37)) - ), - array( - 'NamespaceCoverageNotProtectedTest', - array_merge(range(23, 25), range(33, 37)) - ), - array( - 'NamespaceCoverageNotPublicTest', - array_merge(range(23, 25), range(27, 31)) - ), - array( - 'NamespaceCoveragePrivateTest', - range(23, 25) - ), - array( - 'NamespaceCoverageProtectedTest', - range(27, 31) - ), - array( - 'NamespaceCoveragePublicTest', - range(33, 37) - ), - array( - 'NamespaceCoverageCoversClassTest', - array_merge(range(23, 25), range(27, 31), range(33, 37), range(6, 8), range(10, 13), range(15, 18)) - ), - array( - 'NamespaceCoverageCoversClassPublicTest', - range(33, 37) - ), - array( - 'CoverageNothingTest', - array() - ) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/TestCase.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/TestCase.php deleted file mode 100644 index 60f18881..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/TestCase.php +++ /dev/null @@ -1,266 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since File available since Release 1.0.0 - */ - -/** - * Abstract base class for test case classes. - * - * @category PHP - * @package CodeCoverage - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-code-coverage - * @since Class available since Release 1.0.0 - */ -abstract class PHP_CodeCoverage_TestCase extends PHPUnit_Framework_TestCase -{ - protected function getXdebugDataForBankAccount() - { - return array( - array( - TEST_FILES_PATH . 'BankAccount.php' => array( - 8 => 1, - 9 => -2, - 13 => -1, - 14 => -1, - 15 => -1, - 16 => -1, - 18 => -1, - 22 => -1, - 24 => -1, - 25 => -2, - 29 => -1, - 31 => -1, - 32 => -2 - ) - ), - array( - TEST_FILES_PATH . 'BankAccount.php' => array( - 8 => 1, - 13 => 1, - 16 => 1, - 29 => 1, - ) - ), - array( - TEST_FILES_PATH . 'BankAccount.php' => array( - 8 => 1, - 13 => 1, - 16 => 1, - 22 => 1, - ) - ), - array( - TEST_FILES_PATH . 'BankAccount.php' => array( - 8 => 1, - 13 => 1, - 14 => 1, - 15 => 1, - 18 => 1, - 22 => 1, - 24 => 1, - 29 => 1, - 31 => 1, - ) - ) - ); - } - - protected function getCoverageForBankAccount() - { - $data = $this->getXdebugDataForBankAccount(); - - $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug'); - $stub->expects($this->any()) - ->method('stop') - ->will($this->onConsecutiveCalls( - $data[0], $data[1], $data[2], $data[3] - )); - - $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter); - - $coverage->start( - new BankAccountTest('testBalanceIsInitiallyZero'), TRUE - ); - $coverage->stop(); - - $coverage->start( - new BankAccountTest('testBalanceCannotBecomeNegative') - ); - $coverage->stop(); - - $coverage->start( - new BankAccountTest('testBalanceCannotBecomeNegative2') - ); - $coverage->stop(); - - $coverage->start( - new BankAccountTest('testDepositWithdrawMoney') - ); - $coverage->stop(); - - return $coverage; - } - - protected function getCoverageForBankAccountForFirstTwoTests() - { - $data = $this->getXdebugDataForBankAccount(); - - $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug'); - $stub->expects($this->any()) - ->method('stop') - ->will($this->onConsecutiveCalls( - $data[0], $data[1] - )); - - $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter); - - $coverage->start( - new BankAccountTest('testBalanceIsInitiallyZero'), TRUE - ); - $coverage->stop(); - - $coverage->start( - new BankAccountTest('testBalanceCannotBecomeNegative') - ); - $coverage->stop(); - - return $coverage; - } - - protected function getCoverageForBankAccountForLastTwoTests() - { - $data = $this->getXdebugDataForBankAccount(); - - $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug'); - $stub->expects($this->any()) - ->method('stop') - ->will($this->onConsecutiveCalls( - $data[2], $data[3] - )); - - $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter); - - $coverage->start( - new BankAccountTest('testBalanceCannotBecomeNegative2'), TRUE - ); - $coverage->stop(); - - $coverage->start( - new BankAccountTest('testDepositWithdrawMoney') - ); - $coverage->stop(); - - return $coverage; - } - - protected function getExpectedDataArrayForBankAccount() - { - return array( - TEST_FILES_PATH . 'BankAccount.php' => array( - 8 => array( - 0 => 'BankAccountTest::testBalanceIsInitiallyZero', - 1 => 'BankAccountTest::testDepositWithdrawMoney' - ), - 9 => NULL, - 13 => array(), - 14 => array(), - 15 => array(), - 16 => array(), - 18 => array(), - 22 => array( - 0 => 'BankAccountTest::testBalanceCannotBecomeNegative2', - 1 => 'BankAccountTest::testDepositWithdrawMoney' - ), - 24 => array( - 0 => 'BankAccountTest::testDepositWithdrawMoney', - ), - 25 => NULL, - 29 => array( - 0 => 'BankAccountTest::testBalanceCannotBecomeNegative', - 1 => 'BankAccountTest::testDepositWithdrawMoney' - ), - 31 => array( - 0 => 'BankAccountTest::testDepositWithdrawMoney' - ), - 32 => NULL - ) - ); - } - - protected function getCoverageForFileWithIgnoredLines() - { - $coverage = new PHP_CodeCoverage( - $this->setUpXdebugStubForFileWithIgnoredLines(), - new PHP_CodeCoverage_Filter - ); - - $coverage->start('FileWithIgnoredLines', TRUE); - $coverage->stop(); - - return $coverage; - } - - protected function setUpXdebugStubForFileWithIgnoredLines() - { - $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug'); - $stub->expects($this->any()) - ->method('stop') - ->will($this->returnValue( - array( - TEST_FILES_PATH . 'source_with_ignore.php' => array( - 2 => 1, - 4 => -1, - 6 => -1, - 7 => 1 - ) - ) - )); - - return $stub; - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount-clover.xml b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount-clover.xml deleted file mode 100644 index 578a7ccc..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount-clover.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount.php deleted file mode 100644 index 4238c155..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount.php +++ /dev/null @@ -1,33 +0,0 @@ -balance; - } - - protected function setBalance($balance) - { - if ($balance >= 0) { - $this->balance = $balance; - } else { - throw new RuntimeException; - } - } - - public function depositMoney($balance) - { - $this->setBalance($this->getBalance() + $balance); - - return $this->getBalance(); - } - - public function withdrawMoney($balance) - { - $this->setBalance($this->getBalance() - $balance); - - return $this->getBalance(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php deleted file mode 100644 index 827cd245..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php +++ /dev/null @@ -1,70 +0,0 @@ -ba = new BankAccount; - } - - /** - * @covers BankAccount::getBalance - */ - public function testBalanceIsInitiallyZero() - { - $this->assertEquals(0, $this->ba->getBalance()); - } - - /** - * @covers BankAccount::withdrawMoney - */ - public function testBalanceCannotBecomeNegative() - { - try { - $this->ba->withdrawMoney(1); - } - - catch (RuntimeException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::depositMoney - */ - public function testBalanceCannotBecomeNegative2() - { - try { - $this->ba->depositMoney(-1); - } - - catch (RuntimeException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::getBalance - * @covers BankAccount::depositMoney - * @covers BankAccount::withdrawMoney - */ - public function testDepositWithdrawMoney() - { - $this->assertEquals(0, $this->ba->getBalance()); - $this->ba->depositMoney(1); - $this->assertEquals(1, $this->ba->getBalance()); - $this->ba->withdrawMoney(1); - $this->assertEquals(0, $this->ba->getBalance()); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php deleted file mode 100644 index df12d347..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassTest.php deleted file mode 100644 index 7f569ae6..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassTest.php +++ /dev/null @@ -1,12 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageFunctionTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageFunctionTest.php deleted file mode 100644 index c621fd21..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageFunctionTest.php +++ /dev/null @@ -1,11 +0,0 @@ -publicMethod(); - } -} - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodTest.php deleted file mode 100644 index 167b3db4..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodTest.php +++ /dev/null @@ -1,12 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNoneTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNoneTest.php deleted file mode 100644 index 0b414c2e..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNoneTest.php +++ /dev/null @@ -1,9 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php deleted file mode 100644 index 12b56e80..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php deleted file mode 100644 index c69d261d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPublicTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPublicTest.php deleted file mode 100644 index aebfe4bd..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPublicTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNothingTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNothingTest.php deleted file mode 100644 index 5d5680d9..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNothingTest.php +++ /dev/null @@ -1,13 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePrivateTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePrivateTest.php deleted file mode 100644 index f09560d3..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePrivateTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageProtectedTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageProtectedTest.php deleted file mode 100644 index 9b3acbf6..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageProtectedTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePublicTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePublicTest.php deleted file mode 100644 index 480a522b..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePublicTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageTwoDefaultClassAnnotations.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageTwoDefaultClassAnnotations.php deleted file mode 100644 index 7c743db9..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoverageTwoDefaultClassAnnotations.php +++ /dev/null @@ -1,19 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } - -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredClass.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredClass.php deleted file mode 100644 index f382ce99..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredClass.php +++ /dev/null @@ -1,36 +0,0 @@ -privateMethod(); - } - - public function publicMethod() - { - $this->protectedMethod(); - } -} - -class CoveredClass extends CoveredParentClass -{ - private function privateMethod() - { - } - - protected function protectedMethod() - { - parent::protectedMethod(); - $this->privateMethod(); - } - - public function publicMethod() - { - parent::publicMethod(); - $this->protectedMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredFunction.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredFunction.php deleted file mode 100644 index 9989eb02..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/CoveredFunction.php +++ /dev/null @@ -1,4 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php deleted file mode 100644 index 63912c08..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php +++ /dev/null @@ -1,12 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassPublicTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassPublicTest.php deleted file mode 100644 index d3d48efb..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassPublicTest.php +++ /dev/null @@ -1,16 +0,0 @@ -publicMethod(); - } -} - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassTest.php deleted file mode 100644 index 79d1010d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassTest.php +++ /dev/null @@ -1,21 +0,0 @@ -publicMethod(); - } -} - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php deleted file mode 100644 index 35dfb8b1..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php +++ /dev/null @@ -1,12 +0,0 @@ -publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPrivateTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPrivateTest.php deleted file mode 100644 index 552c9ec5..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPrivateTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotProtectedTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotProtectedTest.php deleted file mode 100644 index 33fc8c72..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotProtectedTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPublicTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPublicTest.php deleted file mode 100644 index ccbc5009..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPublicTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePrivateTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePrivateTest.php deleted file mode 100644 index cce7ba9d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePrivateTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageProtectedTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageProtectedTest.php deleted file mode 100644 index dbbcc1c3..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageProtectedTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePublicTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePublicTest.php deleted file mode 100644 index bf1bff8c..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePublicTest.php +++ /dev/null @@ -1,12 +0,0 @@ - - */ - public function testSomething() - { - $o = new Foo\CoveredClass; - $o->publicMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveredClass.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveredClass.php deleted file mode 100644 index 5bd0ddfb..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveredClass.php +++ /dev/null @@ -1,38 +0,0 @@ -privateMethod(); - } - - public function publicMethod() - { - $this->protectedMethod(); - } -} - -class CoveredClass extends CoveredParentClass -{ - private function privateMethod() - { - } - - protected function protectedMethod() - { - parent::protectedMethod(); - $this->privateMethod(); - } - - public function publicMethod() - { - parent::publicMethod(); - $this->protectedMethod(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php deleted file mode 100644 index be07ef45..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php +++ /dev/null @@ -1,24 +0,0 @@ - - */ - public function testThree() - { - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/ignored-lines-clover.xml b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/ignored-lines-clover.xml deleted file mode 100644 index aeb4172d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/ignored-lines-clover.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_ignore.php b/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_ignore.php deleted file mode 100644 index 51a9268e..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/Tests/_files/source_with_ignore.php +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/build/phpmd.xml b/includes/kohana/vendor/phpunit/php-code-coverage/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/composer.json b/includes/kohana/vendor/phpunit/php-code-coverage/composer.json deleted file mode 100644 index 1a4ebe1b..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/composer.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "phpunit/php-code-coverage", - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "type": "library", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.0@stable", - "phpunit/php-token-stream": ">=1.1.3@stable", - "phpunit/php-text-template": ">=1.1.1@stable" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.0.5" - }, - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/package.xml b/includes/kohana/vendor/phpunit/php-code-coverage/package.xml deleted file mode 100644 index cf53a38d..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/package.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - PHP_CodeCoverage - pear.phpunit.de - Library that provides collection, processing, and rendering functionality for PHP code coverage information. - Library that provides collection, processing, and rendering functionality for PHP code coverage information. - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-17 - - 1.2.6 - 1.2.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/php-code-coverage/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.4 - - - File_Iterator - pear.phpunit.de - 1.3.0 - - - PHP_TokenStream - pear.phpunit.de - 1.1.3 - - - Text_Template - pear.phpunit.de - 1.1.1 - - - - - dom - - - xdebug - 2.0.5 - - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/phpunit.xml.dist b/includes/kohana/vendor/phpunit/php-code-coverage/phpunit.xml.dist deleted file mode 100644 index 31c61729..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/phpunit.xml.dist +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Tests/PHP - - - - - - - - - - - - PHP - - PHP/CodeCoverage/Autoload.php - - - - diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_append.php b/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_append.php deleted file mode 100644 index 6cd768d3..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_append.php +++ /dev/null @@ -1,5 +0,0 @@ -stop(); - -$writer = new PHP_CodeCoverage_Report_HTML; -$writer->process($coverage, '/tmp/coverage'); diff --git a/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php b/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php deleted file mode 100644 index 7a8887a5..00000000 --- a/includes/kohana/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php +++ /dev/null @@ -1,10 +0,0 @@ -filter(); - -$filter->addFileToBlacklist(__FILE__); -$filter->addFileToBlacklist(dirname(__FILE__) . '/auto_append.php'); - -$coverage->start($_SERVER['SCRIPT_FILENAME']); diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/ChangeLog.markdown b/includes/kohana/vendor/phpunit/php-file-iterator/ChangeLog.markdown deleted file mode 100644 index 06593b09..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/ChangeLog.markdown +++ /dev/null @@ -1,26 +0,0 @@ -File_Iterator 1.3 -================= - -This is the list of changes for the File_Iterator 1.3 release series. - -File_Iterator 1.3.3 -------------------- - -* No changes. - -File_Iterator 1.3.2 -------------------- - -* No changes. - -File_Iterator 1.3.1 -------------------- - -* Fixed infinite loop in `File_Iterator_Facade::getCommonPath()` for empty directories. - -File_Iterator 1.3.0 -------------------- - -* Added `File_Iterator_Facade` for the most common use case. -* Moved `File_Iterator_Factory::getFilesAsArray()` to `File_Iterator_Facade::getFilesAsArray()`. -* `File_Iterator_Factory` is no longer static. diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator.php b/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator.php deleted file mode 100644 index 73f19b97..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator.php +++ /dev/null @@ -1,196 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package File - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -/** - * FilterIterator implementation that filters files based on prefix(es) and/or - * suffix(es). Hidden files and files from hidden directories are also filtered. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-file-iterator/tree - * @since Class available since Release 1.0.0 - */ -class File_Iterator extends FilterIterator -{ - const PREFIX = 0; - const SUFFIX = 1; - - /** - * @var array - */ - protected $suffixes = array(); - - /** - * @var array - */ - protected $prefixes = array(); - - /** - * @var array - */ - protected $exclude = array(); - - /** - * @var string - */ - protected $basepath; - - /** - * @param Iterator $iterator - * @param array $suffixes - * @param array $prefixes - * @param array $exclude - * @param string $basepath - */ - public function __construct(Iterator $iterator, array $suffixes = array(), array $prefixes = array(), array $exclude = array(), $basepath = NULL) - { - $exclude = array_filter(array_map('realpath', $exclude)); - - if ($basepath !== NULL) { - $basepath = realpath($basepath); - } - - if ($basepath === FALSE) { - $basepath = NULL; - } else { - foreach ($exclude as &$_exclude) { - $_exclude = str_replace($basepath, '', $_exclude); - } - } - - $this->prefixes = $prefixes; - $this->suffixes = $suffixes; - $this->exclude = $exclude; - $this->basepath = $basepath; - - parent::__construct($iterator); - } - - /** - * @return boolean - */ - public function accept() - { - $current = $this->getInnerIterator()->current(); - $filename = $current->getFilename(); - $realpath = $current->getRealPath(); - - if ($this->basepath !== NULL) { - $realpath = str_replace($this->basepath, '', $realpath); - } - - // Filter files in hidden directories. - if (preg_match('=/\.[^/]*/=', $realpath)) { - return FALSE; - } - - return $this->acceptPath($realpath) && - $this->acceptPrefix($filename) && - $this->acceptSuffix($filename); - } - - /** - * @param string $path - * @return boolean - * @since Method available since Release 1.1.0 - */ - protected function acceptPath($path) - { - foreach ($this->exclude as $exclude) { - if (strpos($path, $exclude) === 0) { - return FALSE; - } - } - - return TRUE; - } - - /** - * @param string $filename - * @return boolean - * @since Method available since Release 1.1.0 - */ - protected function acceptPrefix($filename) - { - return $this->acceptSubString($filename, $this->prefixes, self::PREFIX); - } - - /** - * @param string $filename - * @return boolean - * @since Method available since Release 1.1.0 - */ - protected function acceptSuffix($filename) - { - return $this->acceptSubString($filename, $this->suffixes, self::SUFFIX); - } - - /** - * @param string $filename - * @param array $subString - * @param integer $type - * @return boolean - * @since Method available since Release 1.1.0 - */ - protected function acceptSubString($filename, array $subStrings, $type) - { - if (empty($subStrings)) { - return TRUE; - } - - $matched = FALSE; - - foreach ($subStrings as $string) { - if (($type == self::PREFIX && strpos($filename, $string) === 0) || - ($type == self::SUFFIX && - substr($filename, -1 * strlen($string)) == $string)) { - $matched = TRUE; - break; - } - } - - return $matched; - } -} diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php b/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php deleted file mode 100644 index fcb21059..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package File - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.3.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'file_iterator' => '/Iterator.php', - 'file_iterator_facade' => '/Iterator/Facade.php', - 'file_iterator_factory' => '/Iterator/Factory.php' - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php.in b/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php.in deleted file mode 100644 index 20d58b94..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Autoload.php.in +++ /dev/null @@ -1,64 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package File - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.3.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Facade.php b/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Facade.php deleted file mode 100644 index d30283e9..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Facade.php +++ /dev/null @@ -1,161 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package File - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.3.0 - */ - -/** - * Façade implementation that uses File_Iterator_Factory to create a - * File_Iterator that operates on an AppendIterator that contains an - * RecursiveDirectoryIterator for each given path. The list of unique - * files is returned as an array. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-file-iterator/tree - * @since Class available since Release 1.3.0 - */ -class File_Iterator_Facade -{ - /** - * @param array|string $paths - * @param array|string $suffixes - * @param array|string $prefixes - * @param array $exclude - * @param boolean $commonPath - * @return array - */ - public function getFilesAsArray($paths, $suffixes = '', $prefixes = '', array $exclude = array(), $commonPath = FALSE) - { - if (is_string($paths)) { - $paths = array($paths); - } - - $factory = new File_Iterator_Factory; - $iterator = $factory->getFileIterator( - $paths, $suffixes, $prefixes, $exclude - ); - - $files = array(); - - foreach ($iterator as $file) { - $file = $file->getRealPath(); - - if ($file) { - $files[] = $file; - } - } - - foreach ($paths as $path) { - if (is_file($path)) { - $files[] = realpath($path); - } - } - - $files = array_unique($files); - sort($files); - - if ($commonPath) { - return array( - 'commonPath' => $this->getCommonPath($files), - 'files' => $files - ); - } else { - return $files; - } - } - - /** - * Returns the common path of a set of files. - * - * @param array $files - * @return string - */ - protected function getCommonPath(array $files) - { - $count = count($files); - - if ($count == 0) { - return ''; - } - - if ($count == 1) { - return dirname($files[0]) . DIRECTORY_SEPARATOR; - } - - $_files = array(); - - foreach ($files as $file) { - $_files[] = $_fileParts = explode(DIRECTORY_SEPARATOR, $file); - - if (empty($_fileParts[0])) { - $_fileParts[0] = DIRECTORY_SEPARATOR; - } - } - - $common = ''; - $done = FALSE; - $j = 0; - $count--; - - while (!$done) { - for ($i = 0; $i < $count; $i++) { - if ($_files[$i][$j] != $_files[$i+1][$j]) { - $done = TRUE; - break; - } - } - - if (!$done) { - $common .= $_files[0][$j]; - - if ($j > 0) { - $common .= DIRECTORY_SEPARATOR; - } - } - - $j++; - } - - return DIRECTORY_SEPARATOR . $common; - } -} diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Factory.php b/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Factory.php deleted file mode 100644 index 47a50ae7..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/File/Iterator/Factory.php +++ /dev/null @@ -1,120 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package File - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.1.0 - */ - -/** - * Factory Method implementation that creates a File_Iterator that operates on - * an AppendIterator that contains an RecursiveDirectoryIterator for each given - * path. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-file-iterator/tree - * @since Class available since Release 1.1.0 - */ -class File_Iterator_Factory -{ - /** - * @param array|string $paths - * @param array|string $suffixes - * @param array|string $prefixes - * @param array $exclude - * @return AppendIterator - */ - public function getFileIterator($paths, $suffixes = '', $prefixes = '', array $exclude = array()) - { - if (is_string($paths)) { - $paths = array($paths); - } - - $_paths = array(); - - foreach ($paths as $path) { - if ($locals = glob($path, GLOB_ONLYDIR)) { - $_paths = array_merge($_paths, $locals); - } else { - $_paths[] = $path; - } - } - - $paths = $_paths; - unset($_paths); - - if (is_string($prefixes)) { - if ($prefixes != '') { - $prefixes = array($prefixes); - } else { - $prefixes = array(); - } - } - - if (is_string($suffixes)) { - if ($suffixes != '') { - $suffixes = array($suffixes); - } else { - $suffixes = array(); - } - } - - $iterator = new AppendIterator; - - foreach ($paths as $path) { - if (is_dir($path)) { - $iterator->append( - new File_Iterator( - new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($path) - ), - $suffixes, - $prefixes, - $exclude, - $path - ) - ); - } - } - - return $iterator; - } -} diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/LICENSE b/includes/kohana/vendor/phpunit/php-file-iterator/LICENSE deleted file mode 100644 index 58c57434..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -File_Iterator - -Copyright (c) 2009-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/README.markdown b/includes/kohana/vendor/phpunit/php-file-iterator/README.markdown deleted file mode 100644 index c8971c2d..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/README.markdown +++ /dev/null @@ -1,23 +0,0 @@ -File_Iterator -============= - -Installation ------------- - -File_Iterator should be installed using the [PEAR Installer](http://pear.php.net/). This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0. - -The PEAR channel (`pear.phpunit.de`) that is used to distribute File_Iterator needs to be registered with the local PEAR environment: - - sb@ubuntu ~ % pear channel-discover pear.phpunit.de - Adding Channel "pear.phpunit.de" succeeded - Discovery of channel "pear.phpunit.de" succeeded - -This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel: - - sb@vmware ~ % pear install phpunit/File_Iterator - downloading File_Iterator-1.1.1.tgz ... - Starting to download File_Iterator-1.1.1.tgz (3,173 bytes) - ....done: 3,173 bytes - install ok: channel://pear.phpunit.de/File_Iterator-1.1.1 - -After the installation you can find the File_Iterator source files inside your local PEAR directory; the path is usually `/usr/lib/php/File`. diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/build.xml b/includes/kohana/vendor/phpunit/php-file-iterator/build.xml deleted file mode 100644 index 29d362fa..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/build.xml +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/build/phpmd.xml b/includes/kohana/vendor/phpunit/php-file-iterator/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/composer.json b/includes/kohana/vendor/phpunit/php-file-iterator/composer.json deleted file mode 100644 index aab32bce..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/composer.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "phpunit/php-file-iterator", - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "type": "library", - "keywords": [ - "iterator", - "filesystem" - ], - "homepage": "http://www.phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3" - }, - "autoload": { - "classmap": [ - "File/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/package-composer.json b/includes/kohana/vendor/phpunit/php-file-iterator/package-composer.json deleted file mode 100644 index c71bad7b..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/package-composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "phpunit/php-file-iterator", - "keywords": [ "iterator", "filesystem" ], - "license": "BSD-3-Clause", - "homepage": "http://www.phpunit.de/", - "dependency_map": {}, - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "autoload": { - "classmap": [ "File/" ] - }, - "include_path": [ - "" - ], - "version": false, - "time": false -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-file-iterator/package.xml b/includes/kohana/vendor/phpunit/php-file-iterator/package.xml deleted file mode 100644 index e08bfd58..00000000 --- a/includes/kohana/vendor/phpunit/php-file-iterator/package.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - File_Iterator - pear.phpunit.de - FilterIterator implementation that filters files based on a list of suffixes. - FilterIterator implementation that filters files based on a list of suffixes. - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-05 - - 1.3.3 - 1.3.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/php-file-iterator/tree - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.4 - - - - - diff --git a/includes/kohana/vendor/phpunit/php-text-template/ChangeLog.markdown b/includes/kohana/vendor/phpunit/php-text-template/ChangeLog.markdown deleted file mode 100644 index af2423b4..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/ChangeLog.markdown +++ /dev/null @@ -1,19 +0,0 @@ -Text_Template 1.1 -================= - -This is the list of changes for the Text_Template 1.1 release series. - -Text_Template 1.1.3 -------------------- - -* No changes. - -Text_Template 1.1.2 -------------------- - -* No changes. - -Text_Template 1.1.1 -------------------- - -* No changes. diff --git a/includes/kohana/vendor/phpunit/php-text-template/LICENSE b/includes/kohana/vendor/phpunit/php-text-template/LICENSE deleted file mode 100644 index af2a7132..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -Text_Template - -Copyright (c) 2009-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/php-text-template/README.markdown b/includes/kohana/vendor/phpunit/php-text-template/README.markdown deleted file mode 100644 index 0d60da98..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/README.markdown +++ /dev/null @@ -1,23 +0,0 @@ -Text_Template -============= - -Installation ------------- - -Text_Template should be installed using the [PEAR Installer](http://pear.php.net/). This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0. - -The PEAR channel (`pear.phpunit.de`) that is used to distribute Text_Template needs to be registered with the local PEAR environment: - - sb@ubuntu ~ % pear channel-discover pear.phpunit.de - Adding Channel "pear.phpunit.de" succeeded - Discovery of channel "pear.phpunit.de" succeeded - -This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel: - - sb@vmware ~ % pear install phpunit/Text_Template - downloading Text_Template-1.0.0.tgz ... - Starting to download Text_Template-1.0.0.tgz (2,493 bytes) - ....done: 2,493 bytes - install ok: channel://pear.phpunit.de/Text_Template-1.0.0 - -After the installation you can find the Text_Template source files inside your local PEAR directory; the path is usually `/usr/lib/php/Text`. diff --git a/includes/kohana/vendor/phpunit/php-text-template/Text/Template.php b/includes/kohana/vendor/phpunit/php-text-template/Text/Template.php deleted file mode 100644 index 3a6ab84b..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/Text/Template.php +++ /dev/null @@ -1,153 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category Text - * @package Template - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-text-template - * @since File available since Release 1.0.0 - */ - -/** - * A simple template engine. - * - * @category Text - * @package Template - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-text-template - * @since Class available since Release 1.0.0 - */ -class Text_Template -{ - /** - * @var string - */ - protected $template = ''; - - /** - * @var array - */ - protected $values = array(); - - /** - * Constructor. - * - * @param string $file - * @throws InvalidArgumentException - */ - public function __construct($file = '') - { - $this->setFile($file); - } - - /** - * Sets the template file. - * - * @param string $file - * @throws InvalidArgumentException - */ - public function setFile($file) - { - $distFile = $file . '.dist'; - - if (file_exists($file)) { - $this->template = file_get_contents($file); - } - - else if (file_exists($distFile)) { - $this->template = file_get_contents($distFile); - } - - else { - throw new InvalidArgumentException( - 'Template file could not be loaded.' - ); - } - } - - /** - * Sets one or more template variables. - * - * @param array $values - * @param boolean $merge - */ - public function setVar(array $values, $merge = TRUE) - { - if (!$merge || empty($this->values)) { - $this->values = $values; - } else { - $this->values = array_merge($this->values, $values); - } - } - - /** - * Renders the template and returns the result. - * - * @return string - */ - public function render() - { - $keys = array(); - - foreach ($this->values as $key => $value) { - $keys[] = '{' . $key . '}'; - } - - return str_replace($keys, $this->values, $this->template); - } - - /** - * Renders the template and writes the result to a file. - * - * @param string $target - */ - public function renderTo($target) - { - $fp = @fopen($target, 'wt'); - - if ($fp) { - fwrite($fp, $this->render()); - fclose($fp); - } else { - throw new RuntimeException('Could not write to ' . $target . '.'); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php b/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php deleted file mode 100644 index 90ee111f..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category Text - * @package Template - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-text-template - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'text_template' => '/Template.php' - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php.in b/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php.in deleted file mode 100644 index 18374032..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/Text/Template/Autoload.php.in +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @category Text - * @package Template - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-text-template - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-text-template/build.xml b/includes/kohana/vendor/phpunit/php-text-template/build.xml deleted file mode 100644 index 3be91372..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/build.xml +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-text-template/build/phpmd.xml b/includes/kohana/vendor/phpunit/php-text-template/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-text-template/composer.json b/includes/kohana/vendor/phpunit/php-text-template/composer.json deleted file mode 100644 index 02c58e4f..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/composer.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "phpunit/php-text-template", - "description": "Simple template engine.", - "type": "library", - "keywords": [ - "template" - ], - "homepage": "http://www.phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3" - }, - "autoload": { - "classmap": [ - "Text/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/php-text-template/package-composer.json b/includes/kohana/vendor/phpunit/php-text-template/package-composer.json deleted file mode 100644 index ab2c1a85..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/package-composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "phpunit/php-text-template", - "keywords": [ "template" ], - "license": "BSD-3-Clause", - "homepage": "http://www.phpunit.de/", - "dependency_map": { }, - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "autoload": { - "classmap": [ "Text/" ] - }, - "include_path": [ - "" - ], - "version": false, - "time": false -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-text-template/package.xml b/includes/kohana/vendor/phpunit/php-text-template/package.xml deleted file mode 100644 index e758cdf2..00000000 --- a/includes/kohana/vendor/phpunit/php-text-template/package.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - Text_Template - pear.phpunit.de - Simple template engine. - Simple template engine. - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-05 - - 1.1.3 - 1.1.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/php-text-template - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.4 - - - - - diff --git a/includes/kohana/vendor/phpunit/php-timer/ChangeLog.markdown b/includes/kohana/vendor/phpunit/php-timer/ChangeLog.markdown deleted file mode 100644 index 8d6a0523..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/ChangeLog.markdown +++ /dev/null @@ -1,29 +0,0 @@ -PHP_Timer 1.0 -============= - -This is the list of changes for the PHP_Timer 1.0 release series. - -PHP_Timer 1.0.4 ---------------- - -* No changes. - -PHP_Timer 1.0.3 ---------------- - -* No changes. - -PHP_Timer 1.0.2 ---------------- - -* `$_SERVER['REQUEST_TIME_FLOAT']` is used when available. - -PHP_Timer 1.0.1 ---------------- - -* No changes. - -PHP_Timer 1.0.0 ---------------- - -* Initial release. diff --git a/includes/kohana/vendor/phpunit/php-timer/LICENSE b/includes/kohana/vendor/phpunit/php-timer/LICENSE deleted file mode 100644 index b51fc64c..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -PHP_Timer - -Copyright (c) 2010-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer.php b/includes/kohana/vendor/phpunit/php-timer/PHP/Timer.php deleted file mode 100644 index 0f2cc2b5..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer.php +++ /dev/null @@ -1,159 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-timer - * @since File available since Release 1.0.0 - */ - -/** - * Utility class for timing. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-timer - * @since Class available since Release 1.0.0 - */ -class PHP_Timer -{ - /** - * @var array - */ - protected static $startTimes = array(); - - /** - * @var float - */ - public static $requestTime; - - /** - * Starts the timer. - */ - public static function start() - { - array_push(self::$startTimes, microtime(TRUE)); - } - - /** - * Stops the timer and returns the elapsed time. - * - * @return float - */ - public static function stop() - { - return microtime(TRUE) - array_pop(self::$startTimes); - } - - /** - * Formats the elapsed time as a string. - * - * @param float $time - * @return string - */ - public static function secondsToTimeString($time) - { - $buffer = ''; - - $hours = sprintf('%02d', ($time >= 3600) ? floor($time / 3600) : 0); - $minutes = sprintf( - '%02d', - ($time >= 60) ? floor($time / 60) - 60 * $hours : 0 - ); - $seconds = sprintf('%02d', $time - 60 * 60 * $hours - 60 * $minutes); - - if ($hours == 0 && $minutes == 0) { - $seconds = sprintf('%1d', $seconds); - - $buffer .= $seconds . ' second'; - - if ($seconds != '1') { - $buffer .= 's'; - } - } else { - if ($hours > 0) { - $buffer = $hours . ':'; - } - - $buffer .= $minutes . ':' . $seconds; - } - - return $buffer; - } - - /** - * Formats the elapsed time since the start of the request as a string. - * - * @return string - */ - public static function timeSinceStartOfRequest() - { - return self::secondsToTimeString(time() - self::$requestTime); - } - - /** - * Returns the resources (time, memory) of the request as a string. - * - * @return string - */ - public static function resourceUsage() - { - return sprintf( - 'Time: %s, Memory: %4.2fMb', - self::timeSinceStartOfRequest(), - memory_get_peak_usage(TRUE) / 1048576 - ); - } -} - -if (isset($_SERVER['REQUEST_TIME_FLOAT'])) { - PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME_FLOAT']; -} - -else if (isset($_SERVER['REQUEST_TIME'])) { - PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME']; -} - -else { - PHP_Timer::$requestTime = time(); -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php b/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php deleted file mode 100644 index 0184b9db..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-timer - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'php_timer' => '/Timer.php' - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php.in b/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php.in deleted file mode 100644 index 77e7b039..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/PHP/Timer/Autoload.php.in +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-timer - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(__FILE__)); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-timer/README.markdown b/includes/kohana/vendor/phpunit/php-timer/README.markdown deleted file mode 100644 index 9ff8f78e..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/README.markdown +++ /dev/null @@ -1,23 +0,0 @@ -PHP_Timer -========= - -Installation ------------- - -PHP_Timer should be installed using the [PEAR Installer](http://pear.php.net/). This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0. - -The PEAR channel (`pear.phpunit.de`) that is used to distribute PHP_Timer needs to be registered with the local PEAR environment: - - sb@ubuntu ~ % pear channel-discover pear.phpunit.de - Adding Channel "pear.phpunit.de" succeeded - Discovery of channel "pear.phpunit.de" succeeded - -This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel: - - sb@vmware ~ % pear install phpunit/PHP_Timer - downloading PHP_Timer-1.0.0.tgz ... - Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes) - ....done: 2,536 bytes - install ok: channel://pear.phpunit.de/PHP_Timer-1.0.0 - -After the installation you can find the PHP_Timer source files inside your local PEAR directory; the path is usually `/usr/lib/php/PHP`. diff --git a/includes/kohana/vendor/phpunit/php-timer/Tests/TimerTest.php b/includes/kohana/vendor/phpunit/php-timer/Tests/TimerTest.php deleted file mode 100644 index 1582d3b0..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/Tests/TimerTest.php +++ /dev/null @@ -1,108 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-timer - * @since File available since Release 1.0.0 - */ - -require_once dirname(dirname(__FILE__)) . '/PHP/Timer.php'; - -/** - * Tests for PHP_Timer. - * - * @package PHP - * @subpackage Timer - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-timer - * @since Class available since Release 1.0.0 - */ -class PHP_TimerTest extends PHPUnit_Framework_TestCase -{ - /** - * @covers PHP_Timer::start - * @covers PHP_Timer::stop - */ - public function testStartStop() - { - PHP_Timer::start(); - $this->assertInternalType('float', PHP_Timer::stop()); - } - - /** - * @covers PHP_Timer::secondsToTimeString - */ - public function testSecondsToTimeString() - { - $this->assertEquals('0 seconds', PHP_Timer::secondsToTimeString(0)); - $this->assertEquals('1 second', PHP_Timer::secondsToTimeString(1)); - $this->assertEquals('2 seconds', PHP_Timer::secondsToTimeString(2)); - $this->assertEquals('01:00', PHP_Timer::secondsToTimeString(60)); - $this->assertEquals('01:01', PHP_Timer::secondsToTimeString(61)); - $this->assertEquals('02:00', PHP_Timer::secondsToTimeString(120)); - $this->assertEquals('02:01', PHP_Timer::secondsToTimeString(121)); - $this->assertEquals('01:00:00', PHP_Timer::secondsToTimeString(3600)); - $this->assertEquals('01:00:01', PHP_Timer::secondsToTimeString(3601)); - } - - /** - * @covers PHP_Timer::timeSinceStartOfRequest - */ - public function testTimeSinceStartOfRequest() - { - $this->assertStringMatchesFormat( - '%i %s', PHP_Timer::timeSinceStartOfRequest() - ); - } - - - /** - * @covers PHP_Timer::resourceUsage - */ - public function testResourceUsage() - { - $this->assertStringMatchesFormat( - 'Time: %s, Memory: %s', PHP_Timer::resourceUsage() - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-timer/build.xml b/includes/kohana/vendor/phpunit/php-timer/build.xml deleted file mode 100644 index 32469d0c..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/build.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-timer/build/phpmd.xml b/includes/kohana/vendor/phpunit/php-timer/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-timer/composer.json b/includes/kohana/vendor/phpunit/php-timer/composer.json deleted file mode 100644 index b10a398e..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/composer.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "phpunit/php-timer", - "description": "Utility class for timing", - "type": "library", - "keywords": [ - "timer" - ], - "homepage": "http://www.phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3" - }, - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/php-timer/package-composer.json b/includes/kohana/vendor/phpunit/php-timer/package-composer.json deleted file mode 100644 index 7bdde76c..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/package-composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "phpunit/php-timer", - "keywords": [ "timer" ], - "license": "BSD-3-Clause", - "homepage": "http://www.phpunit.de/", - "dependency_map": { }, - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "autoload": { - "classmap": [ "PHP/" ] - }, - "include_path": [ - "" - ], - "version": false, - "time": false -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-timer/package.xml b/includes/kohana/vendor/phpunit/php-timer/package.xml deleted file mode 100644 index c90fbf2d..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/package.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - PHP_Timer - pear.phpunit.de - Utility class for timing - Utility class for timing - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-05 - - 1.0.4 - 1.0.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/php-timer/blob/master/README.markdown - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.2 - - - - - diff --git a/includes/kohana/vendor/phpunit/php-timer/phpunit.xml.dist b/includes/kohana/vendor/phpunit/php-timer/phpunit.xml.dist deleted file mode 100644 index ee82ac86..00000000 --- a/includes/kohana/vendor/phpunit/php-timer/phpunit.xml.dist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Tests - - - - - - - - - - - - PHP - - PHP/Timer/Autoload.php - - - - diff --git a/includes/kohana/vendor/phpunit/php-token-stream/ChangeLog.markdown b/includes/kohana/vendor/phpunit/php-token-stream/ChangeLog.markdown deleted file mode 100644 index 0fb8fff7..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/ChangeLog.markdown +++ /dev/null @@ -1,35 +0,0 @@ -PHP_TokenStream 1.1 -=================== - -This is the list of changes for the PHP_TokenStream 1.1 release series. - -PHP_TokenStream 1.1.5 ---------------------- - -* No changes. - -PHP_TokenStream 1.1.4 ---------------------- - -* No changes. - -PHP_TokenStream 1.1.3 ---------------------- - -* Added class for the `T_TRAIT_C` token that was added in PHP 5.4. - -PHP_TokenStream 1.1.2 ---------------------- - -* Added classes for the `T_CALLABLE` and `T_INSTEADOF` tokens that were added in PHP 5.4. -* Added support for namespaced functions. - -PHP_TokenStream 1.1.1 ---------------------- - -* Fixed issue #19: Notice in `PHP_Token_INTERFACE::hasInterfaces()`. - -PHP_TokenStream 1.1.0 ---------------------- - -* Moved `phptok` tool to separate package. diff --git a/includes/kohana/vendor/phpunit/php-token-stream/LICENSE b/includes/kohana/vendor/phpunit/php-token-stream/LICENSE deleted file mode 100644 index 471af20d..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -PHP_TokenStream - -Copyright (c) 2009-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token.php b/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token.php deleted file mode 100644 index ebd4ce76..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token.php +++ /dev/null @@ -1,717 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -/** - * A PHP token. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since Class available since Release 1.0.0 - */ -abstract class PHP_Token -{ - /** - * @var string - */ - protected $text; - - /** - * @var integer - */ - protected $line; - - /** - * @var PHP_Token_Stream - */ - protected $tokenStream; - - /** - * @var integer - */ - protected $id; - - /** - * Constructor. - * - * @param string $text - * @param integer $line - * @param PHP_Token_Stream $tokenStream - * @param integer $id - */ - public function __construct($text, $line, PHP_Token_Stream $tokenStream, $id) - { - $this->text = $text; - $this->line = $line; - $this->tokenStream = $tokenStream; - $this->id = $id; - } - - /** - * @return string - */ - public function __toString() - { - return $this->text; - } - - /** - * @return integer - */ - public function getLine() - { - return $this->line; - } -} - -abstract class PHP_TokenWithScope extends PHP_Token -{ - protected $endTokenId; - - /** - * Get the docblock for this token - * - * This method will fetch the docblock belonging to the current token. The - * docblock must be placed on the line directly above the token to be - * recognized. - * - * @return string|null Returns the docblock as a string if found - */ - public function getDocblock() - { - $tokens = $this->tokenStream->tokens(); - $currentLineNumber = $tokens[$this->id]->getLine(); - $prevLineNumber = $currentLineNumber - 1; - - for ($i = $this->id - 1; $i; $i--) { - if (!isset($tokens[$i])) { - return; - } - - if ($tokens[$i] instanceof PHP_Token_FUNCTION || - $tokens[$i] instanceof PHP_Token_CLASS || - $tokens[$i] instanceof PHP_Token_TRAIT) { - // Some other trait, class or function, no docblock can be - // used for the current token - break; - } - - $line = $tokens[$i]->getLine(); - - if ($line == $currentLineNumber || - ($line == $prevLineNumber && - $tokens[$i] instanceof PHP_Token_WHITESPACE)) { - continue; - } - - if ($line < $currentLineNumber && - !$tokens[$i] instanceof PHP_Token_DOC_COMMENT) { - break; - } - - return (string)$tokens[$i]; - } - } - - public function getEndTokenId() - { - $block = 0; - $i = $this->id; - $tokens = $this->tokenStream->tokens(); - - while ($this->endTokenId === NULL && isset($tokens[$i])) { - if ($tokens[$i] instanceof PHP_Token_OPEN_CURLY || - $tokens[$i] instanceof PHP_Token_CURLY_OPEN) { - $block++; - } - - else if ($tokens[$i] instanceof PHP_Token_CLOSE_CURLY) { - $block--; - - if ($block === 0) { - $this->endTokenId = $i; - } - } - - else if (($this instanceof PHP_Token_FUNCTION || - $this instanceof PHP_Token_NAMESPACE) && - $tokens[$i] instanceof PHP_Token_SEMICOLON) { - if ($block === 0) { - $this->endTokenId = $i; - } - } - - $i++; - } - - if ($this->endTokenId === NULL) { - $this->endTokenId = $this->id; - } - - return $this->endTokenId; - } - - public function getEndLine() - { - return $this->tokenStream[$this->getEndTokenId()]->getLine(); - } - -} - -abstract class PHP_TokenWithScopeAndVisibility extends PHP_TokenWithScope { - - public function getVisibility() - { - $tokens = $this->tokenStream->tokens(); - - for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) { - if (isset($tokens[$i]) && - ($tokens[$i] instanceof PHP_Token_PRIVATE || - $tokens[$i] instanceof PHP_Token_PROTECTED || - $tokens[$i] instanceof PHP_Token_PUBLIC)) { - return strtolower( - str_replace('PHP_Token_', '', get_class($tokens[$i])) - ); - } - if (isset($tokens[$i]) && - !($tokens[$i] instanceof PHP_Token_STATIC || - $tokens[$i] instanceof PHP_Token_FINAL || - $tokens[$i] instanceof PHP_Token_ABSTRACT)) { - // no keywords; stop visibility search - break; - } - } - } - - public function getKeywords() - { - $keywords = array(); - $tokens = $this->tokenStream->tokens(); - - for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) { - if (isset($tokens[$i]) && - ($tokens[$i] instanceof PHP_Token_PRIVATE || - $tokens[$i] instanceof PHP_Token_PROTECTED || - $tokens[$i] instanceof PHP_Token_PUBLIC)) { - continue; - } - - if (isset($tokens[$i]) && - ($tokens[$i] instanceof PHP_Token_STATIC || - $tokens[$i] instanceof PHP_Token_FINAL || - $tokens[$i] instanceof PHP_Token_ABSTRACT)) { - $keywords[] = strtolower( - str_replace('PHP_Token_', '', get_class($tokens[$i])) - ); - } - } - - return implode(',', $keywords); - } - -} - -abstract class PHP_Token_Includes extends PHP_Token -{ - protected $name; - protected $type; - - public function getName() - { - if ($this->name !== NULL) { - return $this->name; - } - - $tokens = $this->tokenStream->tokens(); - - if ($tokens[$this->id+2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) { - $this->name = trim($tokens[$this->id+2], "'\""); - $this->type = strtolower( - str_replace('PHP_Token_', '', get_class($tokens[$this->id])) - ); - } - - return $this->name; - } - - public function getType() - { - $this->getName(); - return $this->type; - } -} - -class PHP_Token_REQUIRE_ONCE extends PHP_Token_Includes {} -class PHP_Token_REQUIRE extends PHP_Token_Includes {} -class PHP_Token_EVAL extends PHP_Token {} -class PHP_Token_INCLUDE_ONCE extends PHP_Token_Includes {} -class PHP_Token_INCLUDE extends PHP_Token_Includes {} -class PHP_Token_LOGICAL_OR extends PHP_Token {} -class PHP_Token_LOGICAL_XOR extends PHP_Token {} -class PHP_Token_LOGICAL_AND extends PHP_Token {} -class PHP_Token_PRINT extends PHP_Token {} -class PHP_Token_SR_EQUAL extends PHP_Token {} -class PHP_Token_SL_EQUAL extends PHP_Token {} -class PHP_Token_XOR_EQUAL extends PHP_Token {} -class PHP_Token_OR_EQUAL extends PHP_Token {} -class PHP_Token_AND_EQUAL extends PHP_Token {} -class PHP_Token_MOD_EQUAL extends PHP_Token {} -class PHP_Token_CONCAT_EQUAL extends PHP_Token {} -class PHP_Token_DIV_EQUAL extends PHP_Token {} -class PHP_Token_MUL_EQUAL extends PHP_Token {} -class PHP_Token_MINUS_EQUAL extends PHP_Token {} -class PHP_Token_PLUS_EQUAL extends PHP_Token {} -class PHP_Token_BOOLEAN_OR extends PHP_Token {} -class PHP_Token_BOOLEAN_AND extends PHP_Token {} -class PHP_Token_IS_NOT_IDENTICAL extends PHP_Token {} -class PHP_Token_IS_IDENTICAL extends PHP_Token {} -class PHP_Token_IS_NOT_EQUAL extends PHP_Token {} -class PHP_Token_IS_EQUAL extends PHP_Token {} -class PHP_Token_IS_GREATER_OR_EQUAL extends PHP_Token {} -class PHP_Token_IS_SMALLER_OR_EQUAL extends PHP_Token {} -class PHP_Token_SR extends PHP_Token {} -class PHP_Token_SL extends PHP_Token {} -class PHP_Token_INSTANCEOF extends PHP_Token {} -class PHP_Token_UNSET_CAST extends PHP_Token {} -class PHP_Token_BOOL_CAST extends PHP_Token {} -class PHP_Token_OBJECT_CAST extends PHP_Token {} -class PHP_Token_ARRAY_CAST extends PHP_Token {} -class PHP_Token_STRING_CAST extends PHP_Token {} -class PHP_Token_DOUBLE_CAST extends PHP_Token {} -class PHP_Token_INT_CAST extends PHP_Token {} -class PHP_Token_DEC extends PHP_Token {} -class PHP_Token_INC extends PHP_Token {} -class PHP_Token_CLONE extends PHP_Token {} -class PHP_Token_NEW extends PHP_Token {} -class PHP_Token_EXIT extends PHP_Token {} -class PHP_Token_IF extends PHP_Token {} -class PHP_Token_ELSEIF extends PHP_Token {} -class PHP_Token_ELSE extends PHP_Token {} -class PHP_Token_ENDIF extends PHP_Token {} -class PHP_Token_LNUMBER extends PHP_Token {} -class PHP_Token_DNUMBER extends PHP_Token {} -class PHP_Token_STRING extends PHP_Token {} -class PHP_Token_STRING_VARNAME extends PHP_Token {} -class PHP_Token_VARIABLE extends PHP_Token {} -class PHP_Token_NUM_STRING extends PHP_Token {} -class PHP_Token_INLINE_HTML extends PHP_Token {} -class PHP_Token_CHARACTER extends PHP_Token {} -class PHP_Token_BAD_CHARACTER extends PHP_Token {} -class PHP_Token_ENCAPSED_AND_WHITESPACE extends PHP_Token {} -class PHP_Token_CONSTANT_ENCAPSED_STRING extends PHP_Token {} -class PHP_Token_ECHO extends PHP_Token {} -class PHP_Token_DO extends PHP_Token {} -class PHP_Token_WHILE extends PHP_Token {} -class PHP_Token_ENDWHILE extends PHP_Token {} -class PHP_Token_FOR extends PHP_Token {} -class PHP_Token_ENDFOR extends PHP_Token {} -class PHP_Token_FOREACH extends PHP_Token {} -class PHP_Token_ENDFOREACH extends PHP_Token {} -class PHP_Token_DECLARE extends PHP_Token {} -class PHP_Token_ENDDECLARE extends PHP_Token {} -class PHP_Token_AS extends PHP_Token {} -class PHP_Token_SWITCH extends PHP_Token {} -class PHP_Token_ENDSWITCH extends PHP_Token {} -class PHP_Token_CASE extends PHP_Token {} -class PHP_Token_DEFAULT extends PHP_Token {} -class PHP_Token_BREAK extends PHP_Token {} -class PHP_Token_CONTINUE extends PHP_Token {} -class PHP_Token_GOTO extends PHP_Token {} -class PHP_Token_CALLABLE extends PHP_Token {} -class PHP_Token_INSTEADOF extends PHP_Token {} - -class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility -{ - protected $arguments; - protected $ccn; - protected $name; - protected $signature; - - public function getArguments() - { - if ($this->arguments !== NULL) { - return $this->arguments; - } - - $this->arguments = array(); - $i = $this->id + 3; - $tokens = $this->tokenStream->tokens(); - $typeHint = NULL; - - while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) { - if ($tokens[$i] instanceof PHP_Token_STRING) { - $typeHint = (string)$tokens[$i]; - } - - else if ($tokens[$i] instanceof PHP_Token_VARIABLE) { - $this->arguments[(string)$tokens[$i]] = $typeHint; - $typeHint = NULL; - } - - $i++; - } - - return $this->arguments; - } - - public function getName() - { - if ($this->name !== NULL) { - return $this->name; - } - - $tokens = $this->tokenStream->tokens(); - - if ($tokens[$this->id+2] instanceof PHP_Token_STRING) { - $this->name = (string)$tokens[$this->id+2]; - } - - else if ($tokens[$this->id+2] instanceof PHP_Token_AMPERSAND && - $tokens[$this->id+3] instanceof PHP_Token_STRING) { - $this->name = (string)$tokens[$this->id+3]; - } - - else { - $this->name = 'anonymous function'; - } - - if ($this->name != 'anonymous function') { - for ($i = $this->id; $i; --$i) { - if ($tokens[$i] instanceof PHP_Token_NAMESPACE) { - $this->name = $tokens[$i]->getName() . '\\' . $this->name; - break; - } - - if ($tokens[$i] instanceof PHP_Token_INTERFACE) { - break; - } - } - } - - return $this->name; - } - - public function getCCN() - { - if ($this->ccn !== NULL) { - return $this->ccn; - } - - $this->ccn = 1; - $end = $this->getEndTokenId(); - $tokens = $this->tokenStream->tokens(); - - for ($i = $this->id; $i <= $end; $i++) { - switch (get_class($tokens[$i])) { - case 'PHP_Token_IF': - case 'PHP_Token_ELSEIF': - case 'PHP_Token_FOR': - case 'PHP_Token_FOREACH': - case 'PHP_Token_WHILE': - case 'PHP_Token_CASE': - case 'PHP_Token_CATCH': - case 'PHP_Token_BOOLEAN_AND': - case 'PHP_Token_LOGICAL_AND': - case 'PHP_Token_BOOLEAN_OR': - case 'PHP_Token_LOGICAL_OR': - case 'PHP_Token_QUESTION_MARK': { - $this->ccn++; - } - break; - } - } - - return $this->ccn; - } - - public function getSignature() - { - if ($this->signature !== NULL) { - return $this->signature; - } - - if ($this->getName() == 'anonymous function') { - $this->signature = 'anonymous function'; - $i = $this->id + 1; - } else { - $this->signature = ''; - $i = $this->id + 2; - } - - $tokens = $this->tokenStream->tokens(); - - while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) { - $this->signature .= $tokens[$i++]; - } - - $this->signature .= ')'; - - return $this->signature; - } -} - -class PHP_Token_CONST extends PHP_Token {} -class PHP_Token_RETURN extends PHP_Token {} -class PHP_Token_TRY extends PHP_Token {} -class PHP_Token_CATCH extends PHP_Token {} -class PHP_Token_THROW extends PHP_Token {} -class PHP_Token_USE extends PHP_Token {} -class PHP_Token_GLOBAL extends PHP_Token {} -class PHP_Token_PUBLIC extends PHP_Token {} -class PHP_Token_PROTECTED extends PHP_Token {} -class PHP_Token_PRIVATE extends PHP_Token {} -class PHP_Token_FINAL extends PHP_Token {} -class PHP_Token_ABSTRACT extends PHP_Token {} -class PHP_Token_STATIC extends PHP_Token {} -class PHP_Token_VAR extends PHP_Token {} -class PHP_Token_UNSET extends PHP_Token {} -class PHP_Token_ISSET extends PHP_Token {} -class PHP_Token_EMPTY extends PHP_Token {} -class PHP_Token_HALT_COMPILER extends PHP_Token {} - -class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility -{ - protected $interfaces; - - public function getName() - { - return (string)$this->tokenStream[$this->id + 2]; - } - - public function hasParent() - { - return $this->tokenStream[$this->id + 4] instanceof PHP_Token_EXTENDS; - } - - public function getPackage() - { - $className = $this->getName(); - $docComment = $this->getDocblock(); - - $result = array( - 'namespace' => '', - 'fullPackage' => '', - 'category' => '', - 'package' => '', - 'subpackage' => '' - ); - - for ($i = $this->id; $i; --$i) { - if ($this->tokenStream[$i] instanceof PHP_Token_NAMESPACE) { - $result['namespace'] = $this->tokenStream[$i]->getName(); - break; - } - } - - if (preg_match('/@category[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['category'] = $matches[1]; - } - - if (preg_match('/@package[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['package'] = $matches[1]; - $result['fullPackage'] = $matches[1]; - } - - if (preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['subpackage'] = $matches[1]; - $result['fullPackage'] .= '.' . $matches[1]; - } - - if (empty($result['fullPackage'])) { - $result['fullPackage'] = $this->arrayToName( - explode('_', str_replace('\\', '_', $className)), '.' - ); - } - - return $result; - } - - protected function arrayToName(array $parts, $join = '\\') - { - $result = ''; - - if (count($parts) > 1) { - array_pop($parts); - - $result = join($join, $parts); - } - - return $result; - } - - public function getParent() - { - if (!$this->hasParent()) { - return FALSE; - } - - $i = $this->id + 6; - $tokens = $this->tokenStream->tokens(); - $className = (string)$tokens[$i]; - - while (isset($tokens[$i+1]) && - !$tokens[$i+1] instanceof PHP_Token_WHITESPACE) { - $className .= (string)$tokens[++$i]; - } - - return $className; - } - - public function hasInterfaces() - { - return (isset($this->tokenStream[$this->id + 4]) && - $this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) || - (isset($this->tokenStream[$this->id + 8]) && - $this->tokenStream[$this->id + 8] instanceof PHP_Token_IMPLEMENTS); - } - - public function getInterfaces() - { - if ($this->interfaces !== NULL) { - return $this->interfaces; - } - - if (!$this->hasInterfaces()) { - return ($this->interfaces = FALSE); - } - - if ($this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) { - $i = $this->id + 3; - } else { - $i = $this->id + 7; - } - - $tokens = $this->tokenStream->tokens(); - - while (!$tokens[$i+1] instanceof PHP_Token_OPEN_CURLY) { - $i++; - - if ($tokens[$i] instanceof PHP_Token_STRING) { - $this->interfaces[] = (string)$tokens[$i]; - } - } - - return $this->interfaces; - } -} - -class PHP_Token_CLASS extends PHP_Token_INTERFACE {} -class PHP_Token_TRAIT extends PHP_Token_INTERFACE {} -class PHP_Token_EXTENDS extends PHP_Token {} -class PHP_Token_IMPLEMENTS extends PHP_Token {} -class PHP_Token_OBJECT_OPERATOR extends PHP_Token {} -class PHP_Token_DOUBLE_ARROW extends PHP_Token {} -class PHP_Token_LIST extends PHP_Token {} -class PHP_Token_ARRAY extends PHP_Token {} -class PHP_Token_CLASS_C extends PHP_Token {} -class PHP_Token_TRAIT_C extends PHP_Token {} -class PHP_Token_METHOD_C extends PHP_Token {} -class PHP_Token_FUNC_C extends PHP_Token {} -class PHP_Token_LINE extends PHP_Token {} -class PHP_Token_FILE extends PHP_Token {} -class PHP_Token_COMMENT extends PHP_Token {} -class PHP_Token_DOC_COMMENT extends PHP_Token {} -class PHP_Token_OPEN_TAG extends PHP_Token {} -class PHP_Token_OPEN_TAG_WITH_ECHO extends PHP_Token {} -class PHP_Token_CLOSE_TAG extends PHP_Token {} -class PHP_Token_WHITESPACE extends PHP_Token {} -class PHP_Token_START_HEREDOC extends PHP_Token {} -class PHP_Token_END_HEREDOC extends PHP_Token {} -class PHP_Token_DOLLAR_OPEN_CURLY_BRACES extends PHP_Token {} -class PHP_Token_CURLY_OPEN extends PHP_Token {} -class PHP_Token_PAAMAYIM_NEKUDOTAYIM extends PHP_Token {} - -class PHP_Token_NAMESPACE extends PHP_TokenWithScope -{ - public function getName() - { - $tokens = $this->tokenStream->tokens(); - $namespace = (string)$tokens[$this->id+2]; - - for ($i = $this->id + 3; ; $i += 2) { - if (isset($tokens[$i]) && - $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) { - $namespace .= '\\' . $tokens[$i+1]; - } else { - break; - } - } - - return $namespace; - } -} - -class PHP_Token_NS_C extends PHP_Token {} -class PHP_Token_DIR extends PHP_Token {} -class PHP_Token_NS_SEPARATOR extends PHP_Token {} -class PHP_Token_DOUBLE_COLON extends PHP_Token {} -class PHP_Token_OPEN_BRACKET extends PHP_Token {} -class PHP_Token_CLOSE_BRACKET extends PHP_Token {} -class PHP_Token_OPEN_SQUARE extends PHP_Token {} -class PHP_Token_CLOSE_SQUARE extends PHP_Token {} -class PHP_Token_OPEN_CURLY extends PHP_Token {} -class PHP_Token_CLOSE_CURLY extends PHP_Token {} -class PHP_Token_SEMICOLON extends PHP_Token {} -class PHP_Token_DOT extends PHP_Token {} -class PHP_Token_COMMA extends PHP_Token {} -class PHP_Token_EQUAL extends PHP_Token {} -class PHP_Token_LT extends PHP_Token {} -class PHP_Token_GT extends PHP_Token {} -class PHP_Token_PLUS extends PHP_Token {} -class PHP_Token_MINUS extends PHP_Token {} -class PHP_Token_MULT extends PHP_Token {} -class PHP_Token_DIV extends PHP_Token {} -class PHP_Token_QUESTION_MARK extends PHP_Token {} -class PHP_Token_EXCLAMATION_MARK extends PHP_Token {} -class PHP_Token_COLON extends PHP_Token {} -class PHP_Token_DOUBLE_QUOTES extends PHP_Token {} -class PHP_Token_AT extends PHP_Token {} -class PHP_Token_AMPERSAND extends PHP_Token {} -class PHP_Token_PERCENT extends PHP_Token {} -class PHP_Token_PIPE extends PHP_Token {} -class PHP_Token_DOLLAR extends PHP_Token {} -class PHP_Token_CARET extends PHP_Token {} -class PHP_Token_TILDE extends PHP_Token {} -class PHP_Token_BACKTICK extends PHP_Token {} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream.php b/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream.php deleted file mode 100644 index 77ba0dc1..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream.php +++ /dev/null @@ -1,568 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -/** - * A stream of PHP tokens. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since Class available since Release 1.0.0 - */ -class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator -{ - /** - * @var array - */ - protected static $customTokens = array( - '(' => 'PHP_Token_OPEN_BRACKET', - ')' => 'PHP_Token_CLOSE_BRACKET', - '[' => 'PHP_Token_OPEN_SQUARE', - ']' => 'PHP_Token_CLOSE_SQUARE', - '{' => 'PHP_Token_OPEN_CURLY', - '}' => 'PHP_Token_CLOSE_CURLY', - ';' => 'PHP_Token_SEMICOLON', - '.' => 'PHP_Token_DOT', - ',' => 'PHP_Token_COMMA', - '=' => 'PHP_Token_EQUAL', - '<' => 'PHP_Token_LT', - '>' => 'PHP_Token_GT', - '+' => 'PHP_Token_PLUS', - '-' => 'PHP_Token_MINUS', - '*' => 'PHP_Token_MULT', - '/' => 'PHP_Token_DIV', - '?' => 'PHP_Token_QUESTION_MARK', - '!' => 'PHP_Token_EXCLAMATION_MARK', - ':' => 'PHP_Token_COLON', - '"' => 'PHP_Token_DOUBLE_QUOTES', - '@' => 'PHP_Token_AT', - '&' => 'PHP_Token_AMPERSAND', - '%' => 'PHP_Token_PERCENT', - '|' => 'PHP_Token_PIPE', - '$' => 'PHP_Token_DOLLAR', - '^' => 'PHP_Token_CARET', - '~' => 'PHP_Token_TILDE', - '`' => 'PHP_Token_BACKTICK' - ); - - /** - * @var string - */ - protected $filename; - - /** - * @var array - */ - protected $tokens = array(); - - /** - * @var integer - */ - protected $position = 0; - - /** - * @var array - */ - protected $linesOfCode = array('loc' => 0, 'cloc' => 0, 'ncloc' => 0); - - /** - * @var array - */ - protected $classes; - - /** - * @var array - */ - protected $functions; - - /** - * @var array - */ - protected $includes; - - /** - * @var array - */ - protected $interfaces; - - /** - * @var array - */ - protected $traits; - - /** - * Constructor. - * - * @param string $sourceCode - */ - public function __construct($sourceCode) - { - if (is_file($sourceCode)) { - $this->filename = $sourceCode; - $sourceCode = file_get_contents($sourceCode); - } - - $this->scan($sourceCode); - } - - /** - * Destructor. - */ - public function __destruct() - { - $this->tokens = array(); - } - - /** - * @return string - */ - public function __toString() - { - $buffer = ''; - - foreach ($this as $token) { - $buffer .= $token; - } - - return $buffer; - } - - /** - * @return string - * @since Method available since Release 1.1.0 - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Scans the source for sequences of characters and converts them into a - * stream of tokens. - * - * @param string $sourceCode - */ - protected function scan($sourceCode) - { - $line = 1; - $tokens = token_get_all($sourceCode); - $numTokens = count($tokens); - - for ($i = 0; $i < $numTokens; ++$i) { - $token = $tokens[$i]; - unset($tokens[$i]); - - if (is_array($token)) { - $text = $token[1]; - $tokenClass = 'PHP_Token_' . substr(token_name($token[0]), 2); - } else { - $text = $token; - $tokenClass = self::$customTokens[$token]; - } - - $this->tokens[] = new $tokenClass($text, $line, $this, $i); - $lines = substr_count($text, "\n"); - $line += $lines; - - if ($tokenClass == 'PHP_Token_HALT_COMPILER') { - break; - } - - else if ($tokenClass == 'PHP_Token_COMMENT' || - $tokenClass == 'PHP_Token_DOC_COMMENT') { - $this->linesOfCode['cloc'] += $lines + 1; - } - } - - $this->linesOfCode['loc'] = substr_count($sourceCode, "\n"); - $this->linesOfCode['ncloc'] = $this->linesOfCode['loc'] - - $this->linesOfCode['cloc']; - } - - /** - * @return integer - */ - public function count() - { - return count($this->tokens); - } - - /** - * @return PHP_Token[] - */ - public function tokens() - { - return $this->tokens; - } - - /** - * @return array - */ - public function getClasses() - { - if ($this->classes !== NULL) { - return $this->classes; - } - - $this->parse(); - - return $this->classes; - } - - /** - * @return array - */ - public function getFunctions() - { - if ($this->functions !== NULL) { - return $this->functions; - } - - $this->parse(); - - return $this->functions; - } - - /** - * @return array - */ - public function getInterfaces() - { - if ($this->interfaces !== NULL) { - return $this->interfaces; - } - - $this->parse(); - - return $this->interfaces; - } - - /** - * @return array - * @since Method available since Release 1.1.0 - */ - public function getTraits() - { - if ($this->traits !== NULL) { - return $this->traits; - } - - $this->parse(); - - return $this->traits; - } - - /** - * Gets the names of all files that have been included - * using include(), include_once(), require() or require_once(). - * - * Parameter $categorize set to TRUE causing this function to return a - * multi-dimensional array with categories in the keys of the first dimension - * and constants and their values in the second dimension. - * - * Parameter $category allow to filter following specific inclusion type - * - * @param bool $categorize OPTIONAL - * @param string $category OPTIONAL Either 'require_once', 'require', - * 'include_once', 'include'. - * @return array - * @since Method available since Release 1.1.0 - */ - public function getIncludes($categorize = FALSE, $category = NULL) - { - if ($this->includes === NULL) { - $this->includes = array( - 'require_once' => array(), - 'require' => array(), - 'include_once' => array(), - 'include' => array() - ); - - foreach ($this->tokens as $token) { - switch (get_class($token)) { - case 'PHP_Token_REQUIRE_ONCE': - case 'PHP_Token_REQUIRE': - case 'PHP_Token_INCLUDE_ONCE': - case 'PHP_Token_INCLUDE': { - $this->includes[$token->getType()][] = $token->getName(); - } - break; - } - } - } - - if (isset($this->includes[$category])) { - $includes = $this->includes[$category]; - } - - else if ($categorize === FALSE) { - $includes = array_merge( - $this->includes['require_once'], - $this->includes['require'], - $this->includes['include_once'], - $this->includes['include'] - ); - } else { - $includes = $this->includes; - } - - return $includes; - } - - protected function parse() - { - $this->interfaces = array(); - $this->classes = array(); - $this->traits = array(); - $this->functions = array(); - $class = FALSE; - $classEndLine = FALSE; - $trait = FALSE; - $traitEndLine = FALSE; - $interface = FALSE; - $interfaceEndLine = FALSE; - - foreach ($this->tokens as $token) { - switch (get_class($token)) { - case 'PHP_Token_HALT_COMPILER': { - return; - } - break; - - case 'PHP_Token_INTERFACE': { - $interface = $token->getName(); - $interfaceEndLine = $token->getEndLine(); - - $this->interfaces[$interface] = array( - 'methods' => array(), - 'parent' => $token->getParent(), - 'keywords' => $token->getKeywords(), - 'docblock' => $token->getDocblock(), - 'startLine' => $token->getLine(), - 'endLine' => $interfaceEndLine, - 'package' => $token->getPackage(), - 'file' => $this->filename - ); - } - break; - - case 'PHP_Token_CLASS': - case 'PHP_Token_TRAIT': { - $tmp = array( - 'methods' => array(), - 'parent' => $token->getParent(), - 'interfaces'=> $token->getInterfaces(), - 'keywords' => $token->getKeywords(), - 'docblock' => $token->getDocblock(), - 'startLine' => $token->getLine(), - 'endLine' => $token->getEndLine(), - 'package' => $token->getPackage(), - 'file' => $this->filename - ); - - if ($token instanceof PHP_Token_CLASS) { - $class = $token->getName(); - $classEndLine = $token->getEndLine(); - $this->classes[$class] = $tmp; - } else { - $trait = $token->getName(); - $traitEndLine = $token->getEndLine(); - $this->traits[$trait] = $tmp; - } - } - break; - - case 'PHP_Token_FUNCTION': { - $name = $token->getName(); - $tmp = array( - 'docblock' => $token->getDocblock(), - 'keywords' => $token->getKeywords(), - 'visibility'=> $token->getVisibility(), - 'signature' => $token->getSignature(), - 'startLine' => $token->getLine(), - 'endLine' => $token->getEndLine(), - 'ccn' => $token->getCCN(), - 'file' => $this->filename - ); - - if ($class === FALSE && - $trait === FALSE && - $interface === FALSE) { - $this->functions[$name] = $tmp; - } - - else if ($class !== FALSE) { - $this->classes[$class]['methods'][$name] = $tmp; - } - - else if ($trait !== FALSE) { - $this->traits[$trait]['methods'][$name] = $tmp; - } - - else { - $this->interfaces[$interface]['methods'][$name] = $tmp; - } - } - break; - - case 'PHP_Token_CLOSE_CURLY': { - if ($classEndLine !== FALSE && - $classEndLine == $token->getLine()) { - $class = FALSE; - $classEndLine = FALSE; - } - - else if ($traitEndLine !== FALSE && - $traitEndLine == $token->getLine()) { - $trait = FALSE; - $traitEndLine = FALSE; - } - - else if ($interfaceEndLine !== FALSE && - $interfaceEndLine == $token->getLine()) { - $interface = FALSE; - $interfaceEndLine = FALSE; - } - } - break; - } - } - } - - /** - * @return array - */ - public function getLinesOfCode() - { - return $this->linesOfCode; - } - - /** - */ - public function rewind() - { - $this->position = 0; - } - - /** - * @return boolean - */ - public function valid() - { - return isset($this->tokens[$this->position]); - } - - /** - * @return integer - */ - public function key() - { - return $this->position; - } - - /** - * @return PHP_Token - */ - public function current() - { - return $this->tokens[$this->position]; - } - - /** - */ - public function next() - { - $this->position++; - } - - /** - * @param mixed $offset - */ - public function offsetExists($offset) - { - return isset($this->tokens[$offset]); - } - - /** - * @param mixed $offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->tokens[$offset]; - } - - /** - * @param mixed $offset - * @param mixed $value - */ - public function offsetSet($offset, $value) - { - $this->tokens[$offset] = $value; - } - - /** - * @param mixed $offset - */ - public function offsetUnset($offset) - { - unset($this->tokens[$offset]); - } - - /** - * Seek to an absolute position. - * - * @param integer $position - * @throws OutOfBoundsException - */ - public function seek($position) - { - $this->position = $position; - - if (!$this->valid()) { - throw new OutOfBoundsException('Invalid seek position'); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php b/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php deleted file mode 100644 index 9895b345..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php +++ /dev/null @@ -1,226 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL;; - - if ($classes === NULL) { - $classes = array( - 'php_token' => '/Token.php', - 'php_token_abstract' => '/Token.php', - 'php_token_ampersand' => '/Token.php', - 'php_token_and_equal' => '/Token.php', - 'php_token_array' => '/Token.php', - 'php_token_array_cast' => '/Token.php', - 'php_token_as' => '/Token.php', - 'php_token_at' => '/Token.php', - 'php_token_backtick' => '/Token.php', - 'php_token_bad_character' => '/Token.php', - 'php_token_bool_cast' => '/Token.php', - 'php_token_boolean_and' => '/Token.php', - 'php_token_boolean_or' => '/Token.php', - 'php_token_break' => '/Token.php', - 'php_token_callable' => '/Token.php', - 'php_token_caret' => '/Token.php', - 'php_token_case' => '/Token.php', - 'php_token_catch' => '/Token.php', - 'php_token_character' => '/Token.php', - 'php_token_class' => '/Token.php', - 'php_token_class_c' => '/Token.php', - 'php_token_clone' => '/Token.php', - 'php_token_close_bracket' => '/Token.php', - 'php_token_close_curly' => '/Token.php', - 'php_token_close_square' => '/Token.php', - 'php_token_close_tag' => '/Token.php', - 'php_token_colon' => '/Token.php', - 'php_token_comma' => '/Token.php', - 'php_token_comment' => '/Token.php', - 'php_token_concat_equal' => '/Token.php', - 'php_token_const' => '/Token.php', - 'php_token_constant_encapsed_string' => '/Token.php', - 'php_token_continue' => '/Token.php', - 'php_token_curly_open' => '/Token.php', - 'php_token_dec' => '/Token.php', - 'php_token_declare' => '/Token.php', - 'php_token_default' => '/Token.php', - 'php_token_dir' => '/Token.php', - 'php_token_div' => '/Token.php', - 'php_token_div_equal' => '/Token.php', - 'php_token_dnumber' => '/Token.php', - 'php_token_do' => '/Token.php', - 'php_token_doc_comment' => '/Token.php', - 'php_token_dollar' => '/Token.php', - 'php_token_dollar_open_curly_braces' => '/Token.php', - 'php_token_dot' => '/Token.php', - 'php_token_double_arrow' => '/Token.php', - 'php_token_double_cast' => '/Token.php', - 'php_token_double_colon' => '/Token.php', - 'php_token_double_quotes' => '/Token.php', - 'php_token_echo' => '/Token.php', - 'php_token_else' => '/Token.php', - 'php_token_elseif' => '/Token.php', - 'php_token_empty' => '/Token.php', - 'php_token_encapsed_and_whitespace' => '/Token.php', - 'php_token_end_heredoc' => '/Token.php', - 'php_token_enddeclare' => '/Token.php', - 'php_token_endfor' => '/Token.php', - 'php_token_endforeach' => '/Token.php', - 'php_token_endif' => '/Token.php', - 'php_token_endswitch' => '/Token.php', - 'php_token_endwhile' => '/Token.php', - 'php_token_equal' => '/Token.php', - 'php_token_eval' => '/Token.php', - 'php_token_exclamation_mark' => '/Token.php', - 'php_token_exit' => '/Token.php', - 'php_token_extends' => '/Token.php', - 'php_token_file' => '/Token.php', - 'php_token_final' => '/Token.php', - 'php_token_for' => '/Token.php', - 'php_token_foreach' => '/Token.php', - 'php_token_func_c' => '/Token.php', - 'php_token_function' => '/Token.php', - 'php_token_global' => '/Token.php', - 'php_token_goto' => '/Token.php', - 'php_token_gt' => '/Token.php', - 'php_token_halt_compiler' => '/Token.php', - 'php_token_if' => '/Token.php', - 'php_token_implements' => '/Token.php', - 'php_token_inc' => '/Token.php', - 'php_token_include' => '/Token.php', - 'php_token_include_once' => '/Token.php', - 'php_token_includes' => '/Token.php', - 'php_token_inline_html' => '/Token.php', - 'php_token_instanceof' => '/Token.php', - 'php_token_insteadof' => '/Token.php', - 'php_token_int_cast' => '/Token.php', - 'php_token_interface' => '/Token.php', - 'php_token_is_equal' => '/Token.php', - 'php_token_is_greater_or_equal' => '/Token.php', - 'php_token_is_identical' => '/Token.php', - 'php_token_is_not_equal' => '/Token.php', - 'php_token_is_not_identical' => '/Token.php', - 'php_token_is_smaller_or_equal' => '/Token.php', - 'php_token_isset' => '/Token.php', - 'php_token_line' => '/Token.php', - 'php_token_list' => '/Token.php', - 'php_token_lnumber' => '/Token.php', - 'php_token_logical_and' => '/Token.php', - 'php_token_logical_or' => '/Token.php', - 'php_token_logical_xor' => '/Token.php', - 'php_token_lt' => '/Token.php', - 'php_token_method_c' => '/Token.php', - 'php_token_minus' => '/Token.php', - 'php_token_minus_equal' => '/Token.php', - 'php_token_mod_equal' => '/Token.php', - 'php_token_mul_equal' => '/Token.php', - 'php_token_mult' => '/Token.php', - 'php_token_namespace' => '/Token.php', - 'php_token_new' => '/Token.php', - 'php_token_ns_c' => '/Token.php', - 'php_token_ns_separator' => '/Token.php', - 'php_token_num_string' => '/Token.php', - 'php_token_object_cast' => '/Token.php', - 'php_token_object_operator' => '/Token.php', - 'php_token_open_bracket' => '/Token.php', - 'php_token_open_curly' => '/Token.php', - 'php_token_open_square' => '/Token.php', - 'php_token_open_tag' => '/Token.php', - 'php_token_open_tag_with_echo' => '/Token.php', - 'php_token_or_equal' => '/Token.php', - 'php_token_paamayim_nekudotayim' => '/Token.php', - 'php_token_percent' => '/Token.php', - 'php_token_pipe' => '/Token.php', - 'php_token_plus' => '/Token.php', - 'php_token_plus_equal' => '/Token.php', - 'php_token_print' => '/Token.php', - 'php_token_private' => '/Token.php', - 'php_token_protected' => '/Token.php', - 'php_token_public' => '/Token.php', - 'php_token_question_mark' => '/Token.php', - 'php_token_require' => '/Token.php', - 'php_token_require_once' => '/Token.php', - 'php_token_return' => '/Token.php', - 'php_token_semicolon' => '/Token.php', - 'php_token_sl' => '/Token.php', - 'php_token_sl_equal' => '/Token.php', - 'php_token_sr' => '/Token.php', - 'php_token_sr_equal' => '/Token.php', - 'php_token_start_heredoc' => '/Token.php', - 'php_token_static' => '/Token.php', - 'php_token_stream' => '/Token/Stream.php', - 'php_token_stream_cachingfactory' => '/Token/Stream/CachingFactory.php', - 'php_token_string' => '/Token.php', - 'php_token_string_cast' => '/Token.php', - 'php_token_string_varname' => '/Token.php', - 'php_token_switch' => '/Token.php', - 'php_token_throw' => '/Token.php', - 'php_token_tilde' => '/Token.php', - 'php_token_trait' => '/Token.php', - 'php_token_trait_c' => '/Token.php', - 'php_token_try' => '/Token.php', - 'php_token_unset' => '/Token.php', - 'php_token_unset_cast' => '/Token.php', - 'php_token_use' => '/Token.php', - 'php_token_var' => '/Token.php', - 'php_token_variable' => '/Token.php', - 'php_token_while' => '/Token.php', - 'php_token_whitespace' => '/Token.php', - 'php_token_xor_equal' => '/Token.php', - 'php_tokenwithscope' => '/Token.php', - 'php_tokenwithscopeandvisibility' => '/Token.php' - ); - - $path = dirname(dirname(dirname(__FILE__))); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php.in b/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php.in deleted file mode 100644 index ebd488be..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/Autoload.php.in +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @author Sebastian Bergmann - * @copyright 2009-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL;; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(dirname(__FILE__))); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/CachingFactory.php b/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/CachingFactory.php deleted file mode 100644 index 6ff2c5db..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/PHP/Token/Stream/CachingFactory.php +++ /dev/null @@ -1,85 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -/** - * A caching factory for token stream objects. - * - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since Class available since Release 1.0.0 - */ -class PHP_Token_Stream_CachingFactory -{ - /** - * @var array - */ - protected static $cache = array(); - - /** - * @param string $filename - * @return PHP_Token_Stream - */ - public static function get($filename) - { - if (!isset(self::$cache[$filename])) { - self::$cache[$filename] = new PHP_Token_Stream($filename); - } - - return self::$cache[$filename]; - } - - /** - * @param string $filename - */ - public static function clear($filename = NULL) - { - if (is_string($filename)) { - unset(self::$cache[$filename]); - } else { - self::$cache = array(); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/README.markdown b/includes/kohana/vendor/phpunit/php-token-stream/README.markdown deleted file mode 100644 index e233f412..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/README.markdown +++ /dev/null @@ -1,23 +0,0 @@ -PHP_TokenStream -=============== - -Installation ------------- - -PHP_TokenStream should be installed using the [PEAR Installer](http://pear.php.net/). This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0. - -The PEAR channel (`pear.phpunit.de`) that is used to distribute PHP_TokenStream needs to be registered with the local PEAR environment: - - sb@ubuntu ~ % pear channel-discover pear.phpunit.de - Adding Channel "pear.phpunit.de" succeeded - Discovery of channel "pear.phpunit.de" succeeded - -This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel: - - sb@ubuntu tokenstream % pear install phpunit/PHP_TokenStream-beta - downloading PHP_TokenStream-0.9.1.tgz ... - Starting to download PHP_TokenStream-0.9.1.tgz (5,113 bytes) - ...done: 5,113 bytes - install ok: channel://pear.phpunit.de/PHP_TokenStream-0.9.1 - -After the installation you can find the PHP_TokenStream source files inside your local PEAR directory; the path is usually `/usr/lib/php/PHP`. diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/ClassTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/ClassTest.php deleted file mode 100644 index 5dd6e997..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/ClassTest.php +++ /dev/null @@ -1,122 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.2 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token_CLASS class. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.2 - */ -class PHP_Token_ClassTest extends PHPUnit_Framework_TestCase -{ - protected $class; - protected $function; - - protected function setUp() - { - $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source2.php'); - - foreach ($ts as $token) { - if ($token instanceof PHP_Token_CLASS) { - $this->class = $token; - } - - if ($token instanceof PHP_Token_FUNCTION) { - $this->function = $token; - break; - } - } - } - - /** - * @covers PHP_Token_CLASS::getKeywords - */ - public function testGetClassKeywords() - { - $this->assertEquals('abstract', $this->class->getKeywords()); - } - - /** - * @covers PHP_Token_FUNCTION::getKeywords - */ - public function testGetFunctionKeywords() - { - $this->assertEquals('abstract,static', $this->function->getKeywords()); - } - - /** - * @covers PHP_Token_FUNCTION::getVisibility - */ - public function testGetFunctionVisibility() - { - $this->assertEquals('public', $this->function->getVisibility()); - } - - public function testIssue19() - { - $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue19.php'); - - foreach ($ts as $token) { - if ($token instanceof PHP_Token_CLASS) { - $this->assertFalse($token->hasInterfaces()); - } - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php deleted file mode 100644 index d57162b5..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php +++ /dev/null @@ -1,160 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token_FUNCTION class. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.0 - */ -class PHP_Token_FunctionTest extends PHPUnit_Framework_TestCase -{ - protected $functions; - - protected function setUp() - { - $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source.php'); - - foreach ($ts as $token) { - if ($token instanceof PHP_Token_FUNCTION) { - $this->functions[] = $token; - } - } - } - - /** - * @covers PHP_Token_FUNCTION::getArguments - */ - public function testGetArguments() - { - $this->assertEquals(array(), $this->functions[0]->getArguments()); - - $this->assertEquals( - array('$baz' => 'Baz'), $this->functions[1]->getArguments() - ); - - $this->assertEquals( - array('$foobar' => 'Foobar'), $this->functions[2]->getArguments() - ); - - $this->assertEquals( - array('$barfoo' => 'Barfoo'), $this->functions[3]->getArguments() - ); - - $this->assertEquals(array(), $this->functions[4]->getArguments()); - } - - /** - * @covers PHP_Token_FUNCTION::getName - */ - public function testGetName() - { - $this->assertEquals('foo', $this->functions[0]->getName()); - $this->assertEquals('bar', $this->functions[1]->getName()); - $this->assertEquals('foobar', $this->functions[2]->getName()); - $this->assertEquals('barfoo', $this->functions[3]->getName()); - $this->assertEquals('baz', $this->functions[4]->getName()); - } - - /** - * @covers PHP_Token::getLine - */ - public function testGetLine() - { - $this->assertEquals(5, $this->functions[0]->getLine()); - $this->assertEquals(10, $this->functions[1]->getLine()); - $this->assertEquals(17, $this->functions[2]->getLine()); - $this->assertEquals(21, $this->functions[3]->getLine()); - $this->assertEquals(29, $this->functions[4]->getLine()); - } - - /** - * @covers PHP_TokenWithScope::getEndLine - */ - public function testGetEndLine() - { - $this->assertEquals(5, $this->functions[0]->getEndLine()); - $this->assertEquals(12, $this->functions[1]->getEndLine()); - $this->assertEquals(19, $this->functions[2]->getEndLine()); - $this->assertEquals(23, $this->functions[3]->getEndLine()); - $this->assertEquals(31, $this->functions[4]->getEndLine()); - } - - /** - * @covers PHP_Token_FUNCTION::getDocblock - */ - public function testGetDocblock() - { - $this->assertNull($this->functions[0]->getDocblock()); - - $this->assertEquals( - "/**\n * @param Baz \$baz\n */", - $this->functions[1]->getDocblock() - ); - - $this->assertEquals( - "/**\n * @param Foobar \$foobar\n */", - $this->functions[2]->getDocblock() - ); - - $this->assertNull($this->functions[3]->getDocblock()); - $this->assertNull($this->functions[4]->getDocblock()); - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/IncludeTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/IncludeTest.php deleted file mode 100644 index 710be223..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/IncludeTest.php +++ /dev/null @@ -1,117 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.2 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token_REQUIRE_ONCE, PHP_Token_REQUIRE - * PHP_Token_INCLUDE_ONCE and PHP_Token_INCLUDE_ONCE classes. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.2 - */ -class PHP_Token_IncludeTest extends PHPUnit_Framework_TestCase -{ - protected $ts; - - protected function setUp() - { - $this->ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source3.php'); - } - - /** - * @covers PHP_Token_Includes::getName - * @covers PHP_Token_Includes::getType - */ - public function testGetIncludes() - { - $this->assertSame( - array('test4.php', 'test3.php', 'test2.php', 'test1.php'), - $this->ts->getIncludes() - ); - } - - /** - * @covers PHP_Token_Includes::getName - * @covers PHP_Token_Includes::getType - */ - public function testGetIncludesCategorized() - { - $this->assertSame( - array( - 'require_once' => array('test4.php'), - 'require' => array('test3.php'), - 'include_once' => array('test2.php'), - 'include' => array('test1.php') - ), - $this->ts->getIncludes(TRUE) - ); - } - - /** - * @covers PHP_Token_Includes::getName - * @covers PHP_Token_Includes::getType - */ - public function testGetIncludesCategory() - { - $this->assertSame( - array('test4.php'), - $this->ts->getIncludes(TRUE, 'require_once') - ); - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/InterfaceTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/InterfaceTest.php deleted file mode 100644 index 1c689bf8..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/InterfaceTest.php +++ /dev/null @@ -1,236 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token_INTERFACE class. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @author Laurent Laville - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.0 - */ -class PHP_Token_InterfaceTest extends PHPUnit_Framework_TestCase -{ - protected $class; - protected $interfaces; - - protected function setUp() - { - $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source4.php'); - $i = 0; - foreach ($ts as $token) { - if ($token instanceof PHP_Token_CLASS) { - $this->class = $token; - } - elseif ($token instanceof PHP_Token_INTERFACE) { - $this->interfaces[$i] = $token; - $i++; - } - } - } - - /** - * @covers PHP_Token_INTERFACE::getName - */ - public function testGetName() - { - $this->assertEquals( - 'iTemplate', $this->interfaces[0]->getName() - ); - } - - /** - * @covers PHP_Token_INTERFACE::getParent - */ - public function testGetParentNotExists() - { - $this->assertFalse( - $this->interfaces[0]->getParent() - ); - } - - /** - * @covers PHP_Token_INTERFACE::hasParent - */ - public function testHasParentNotExists() - { - $this->assertFalse( - $this->interfaces[0]->hasParent() - ); - } - - /** - * @covers PHP_Token_INTERFACE::getParent - */ - public function testGetParentExists() - { - $this->assertEquals( - 'a', $this->interfaces[2]->getParent() - ); - } - - /** - * @covers PHP_Token_INTERFACE::hasParent - */ - public function testHasParentExists() - { - $this->assertTrue( - $this->interfaces[2]->hasParent() - ); - } - - /** - * @covers PHP_Token_INTERFACE::getInterfaces - */ - public function testGetInterfacesExists() - { - $this->assertEquals( - array('b'), - $this->class->getInterfaces() - ); - } - - /** - * @covers PHP_Token_INTERFACE::hasInterfaces - */ - public function testHasInterfacesExists() - { - $this->assertTrue( - $this->class->hasInterfaces() - ); - } - /** - * @covers PHP_Token_INTERFACE::getPackage - */ - public function testGetPackageNamespace() { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php'); - foreach($tokenStream as $token) { - if($token instanceOf PHP_Token_INTERFACE) { - $package = $token->getPackage(); - $this->assertSame('Foo\\Bar', $package['namespace']); - } - } - } - - - public function provideFilesWithClassesWithinMultipleNamespaces() { - return array( - array(TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingBraces.php'), - array(TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingNonBraceSyntax.php'), - ); - } - - /** - * @dataProvider provideFilesWithClassesWithinMultipleNamespaces - * @covers PHP_Token_INTERFACE::getPackage - */ - public function testGetPackageNamespaceForFileWithMultipleNamespaces($filepath) { - $tokenStream = new PHP_Token_Stream($filepath); - $firstClassFound = false; - foreach($tokenStream as $token) { - if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) { - $package = $token->getPackage(); - $this->assertSame('TestClassInBar', $token->getName()); - $this->assertSame('Foo\\Bar', $package['namespace']); - $firstClassFound = true; - continue; - } - // Secound class - if($token instanceOf PHP_Token_INTERFACE) { - $package = $token->getPackage(); - $this->assertSame('TestClassInBaz', $token->getName()); - $this->assertSame('Foo\\Baz', $package['namespace']); - return; - } - } - $this->fail("Seachring for 2 classes failed"); - } - - public function testGetPackageNamespaceIsEmptyForInterfacesThatAreNotWithinNamespaces() { - foreach($this->interfaces as $token) { - $package = $token->getPackage(); - $this->assertSame("", $package['namespace']); - } - } - - /** - * @covers PHP_Token_INTERFACE::getPackage - */ - public function testGetPackageNamespaceWhenExtentingFromNamespaceClass() { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classExtendsNamespacedClass.php'); - $firstClassFound = false; - foreach($tokenStream as $token) { - if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) { - $package = $token->getPackage(); - $this->assertSame('Baz', $token->getName()); - $this->assertSame('Foo\\Bar', $package['namespace']); - $firstClassFound = true; - continue; - } - if($token instanceOf PHP_Token_INTERFACE) { - $package = $token->getPackage(); - $this->assertSame('Extender', $token->getName()); - $this->assertSame('Other\\Space', $package['namespace']); - return; - } - } - $this->fail("Searching for 2 classes failed"); - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/NamespaceTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/NamespaceTest.php deleted file mode 100644 index bc0dbcb3..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/Token/NamespaceTest.php +++ /dev/null @@ -1,124 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . - '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token_NAMESPACE class. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.0 - */ -class PHP_Token_NamespaceTest extends PHPUnit_Framework_TestCase -{ - /** - * @covers PHP_Token_NAMESPACE::getName - */ - public function testGetName() - { - $tokenStream = new PHP_Token_Stream( - TEST_FILES_PATH . 'classInNamespace.php' - ); - - foreach ($tokenStream as $token) { - if ($token instanceof PHP_Token_NAMESPACE) { - $this->assertSame('Foo\\Bar', $token->getName()); - } - } - } - - public function testGetStartLineWithUnscopedNamespace() - { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php'); - foreach($tokenStream as $token) { - if($token instanceOf PHP_Token_NAMESPACE) { - $this->assertSame(2, $token->getLine()); - } - } - } - - public function testGetEndLineWithUnscopedNamespace() - { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php'); - foreach($tokenStream as $token) { - if($token instanceOf PHP_Token_NAMESPACE) { - $this->assertSame(2, $token->getEndLine()); - } - } - } - public function testGetStartLineWithScopedNamespace() - { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php'); - foreach($tokenStream as $token) { - if($token instanceOf PHP_Token_NAMESPACE) { - $this->assertSame(2, $token->getLine()); - } - } - } - - public function testGetEndLineWithScopedNamespace() - { - $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php'); - foreach($tokenStream as $token) { - if($token instanceOf PHP_Token_NAMESPACE) { - $this->assertSame(8, $token->getEndLine()); - } - } - } - -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/TokenTest.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/TokenTest.php deleted file mode 100644 index 60cd0c7d..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/TokenTest.php +++ /dev/null @@ -1,85 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @since File available since Release 1.0.0 - */ - -if (!defined('TEST_FILES_PATH')) { - define( - 'TEST_FILES_PATH', - dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR - ); -} - -require_once 'PHP/Token/Stream.php'; - -/** - * Tests for the PHP_Token class. - * - * @package PHP_TokenStream - * @subpackage Tests - * @author Sebastian Bergmann - * @copyright 2009-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/php-token-stream/ - * @since Class available since Release 1.0.0 - */ -class PHP_TokenTest extends PHPUnit_Framework_TestCase -{ - /** - * @covers PHP_Token::__construct - * @covers PHP_Token::__toString - */ - public function testToString() - { - $this->markTestIncomplete(); - } - - /** - * @covers PHP_Token::__construct - * @covers PHP_Token::getLine - */ - public function testGetLine() - { - $this->markTestIncomplete(); - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php b/includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php deleted file mode 100644 index 560eec94..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-token-stream/build/phpmd.xml b/includes/kohana/vendor/phpunit/php-token-stream/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/php-token-stream/composer.json b/includes/kohana/vendor/phpunit/php-token-stream/composer.json deleted file mode 100644 index d67c0347..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/composer.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "phpunit/php-token-stream", - "description": "Wrapper around PHP's tokenizer extension.", - "type": "library", - "keywords": [ - "tokenizer" - ], - "homepage": "http://www.phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3", - "ext-tokenizer": "*" - }, - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/php-token-stream/package-composer.json b/includes/kohana/vendor/phpunit/php-token-stream/package-composer.json deleted file mode 100644 index a42eb944..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/package-composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "phpunit/php-token-stream", - "keywords": [ "tokenizer" ], - "license": "BSD-3-Clause", - "homepage": "http://www.phpunit.de/", - "dependency_map": { }, - "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "autoload": { - "classmap": [ "PHP/" ] - }, - "include_path": [ - "" - ], - "version": false, - "time": false -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/php-token-stream/package.xml b/includes/kohana/vendor/phpunit/php-token-stream/package.xml deleted file mode 100644 index d2f758d2..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/package.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - PHP_TokenStream - pear.phpunit.de - Wrapper around PHP's tokenizer extension. - Wrapper around PHP's tokenizer extension. - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-05 - - 1.1.5 - 1.1.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/php-token-stream/tree - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.4 - - - tokenizer - - - - - diff --git a/includes/kohana/vendor/phpunit/php-token-stream/phpunit.xml.dist b/includes/kohana/vendor/phpunit/php-token-stream/phpunit.xml.dist deleted file mode 100644 index 6d307c40..00000000 --- a/includes/kohana/vendor/phpunit/php-token-stream/phpunit.xml.dist +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Tests - - - - - - - - - - - - PHP - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md b/includes/kohana/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md deleted file mode 100644 index b2905398..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md +++ /dev/null @@ -1,5 +0,0 @@ -Pull Requests for bug fixes should be made against the current release branch (1.2). - -Pull Requests for new features should be made against master. - -For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/ChangeLog.markdown b/includes/kohana/vendor/phpunit/phpunit-mock-objects/ChangeLog.markdown deleted file mode 100644 index b55b1251..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/ChangeLog.markdown +++ /dev/null @@ -1,17 +0,0 @@ -PHPUnit_MockObject 1.2 -====================== - -This is the list of changes for the PHPUnit_MockObject 1.2 release series. - -PHPUnit_MockObject 1.2.1 ------------------------- - -* No changes. - -PHPUnit_MockObject 1.2.0 ------------------------- - -* Implemented #47: Make cloning of arguments passed to mocked methods optional. -* Implemented #84: `getMockFromWsdl()` now works with namespaces. -* Fixed #90: Mocks with a fixed class name could only be created once. - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/LICENSE b/includes/kohana/vendor/phpunit/phpunit-mock-objects/LICENSE deleted file mode 100644 index e91e033f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -PHPUnit_MockObject - -Copyright (c) 2002-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php deleted file mode 100644 index 296a1aca..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php +++ /dev/null @@ -1,100 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'phpunit_framework_mockobject_builder_identity' => '/Framework/MockObject/Builder/Identity.php', - 'phpunit_framework_mockobject_builder_invocationmocker' => '/Framework/MockObject/Builder/InvocationMocker.php', - 'phpunit_framework_mockobject_builder_match' => '/Framework/MockObject/Builder/Match.php', - 'phpunit_framework_mockobject_builder_methodnamematch' => '/Framework/MockObject/Builder/MethodNameMatch.php', - 'phpunit_framework_mockobject_builder_namespace' => '/Framework/MockObject/Builder/Namespace.php', - 'phpunit_framework_mockobject_builder_parametersmatch' => '/Framework/MockObject/Builder/ParametersMatch.php', - 'phpunit_framework_mockobject_builder_stub' => '/Framework/MockObject/Builder/Stub.php', - 'phpunit_framework_mockobject_generator' => '/Framework/MockObject/Generator.php', - 'phpunit_framework_mockobject_invocation' => '/Framework/MockObject/Invocation.php', - 'phpunit_framework_mockobject_invocation_object' => '/Framework/MockObject/Invocation/Object.php', - 'phpunit_framework_mockobject_invocation_static' => '/Framework/MockObject/Invocation/Static.php', - 'phpunit_framework_mockobject_invocationmocker' => '/Framework/MockObject/InvocationMocker.php', - 'phpunit_framework_mockobject_invokable' => '/Framework/MockObject/Invokable.php', - 'phpunit_framework_mockobject_matcher' => '/Framework/MockObject/Matcher.php', - 'phpunit_framework_mockobject_matcher_anyinvokedcount' => '/Framework/MockObject/Matcher/AnyInvokedCount.php', - 'phpunit_framework_mockobject_matcher_anyparameters' => '/Framework/MockObject/Matcher/AnyParameters.php', - 'phpunit_framework_mockobject_matcher_invocation' => '/Framework/MockObject/Matcher/Invocation.php', - 'phpunit_framework_mockobject_matcher_invokedatindex' => '/Framework/MockObject/Matcher/InvokedAtIndex.php', - 'phpunit_framework_mockobject_matcher_invokedatleastonce' => '/Framework/MockObject/Matcher/InvokedAtLeastOnce.php', - 'phpunit_framework_mockobject_matcher_invokedcount' => '/Framework/MockObject/Matcher/InvokedCount.php', - 'phpunit_framework_mockobject_matcher_invokedrecorder' => '/Framework/MockObject/Matcher/InvokedRecorder.php', - 'phpunit_framework_mockobject_matcher_methodname' => '/Framework/MockObject/Matcher/MethodName.php', - 'phpunit_framework_mockobject_matcher_parameters' => '/Framework/MockObject/Matcher/Parameters.php', - 'phpunit_framework_mockobject_matcher_statelessinvocation' => '/Framework/MockObject/Matcher/StatelessInvocation.php', - 'phpunit_framework_mockobject_mockbuilder' => '/Framework/MockObject/MockBuilder.php', - 'phpunit_framework_mockobject_mockobject' => '/Framework/MockObject/MockObject.php', - 'phpunit_framework_mockobject_stub' => '/Framework/MockObject/Stub.php', - 'phpunit_framework_mockobject_stub_consecutivecalls' => '/Framework/MockObject/Stub/ConsecutiveCalls.php', - 'phpunit_framework_mockobject_stub_exception' => '/Framework/MockObject/Stub/Exception.php', - 'phpunit_framework_mockobject_stub_matchercollection' => '/Framework/MockObject/Stub/MatcherCollection.php', - 'phpunit_framework_mockobject_stub_return' => '/Framework/MockObject/Stub/Return.php', - 'phpunit_framework_mockobject_stub_returnargument' => '/Framework/MockObject/Stub/ReturnArgument.php', - 'phpunit_framework_mockobject_stub_returncallback' => '/Framework/MockObject/Stub/ReturnCallback.php', - 'phpunit_framework_mockobject_stub_returnself' => '/Framework/MockObject/Stub/ReturnSelf.php', - 'phpunit_framework_mockobject_stub_returnvaluemap' => '/Framework/MockObject/Stub/ReturnValueMap.php', - 'phpunit_framework_mockobject_verifiable' => '/Framework/MockObject/Verifiable.php' - ); - - $path = dirname(dirname(dirname(__FILE__))); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php.in b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php.in deleted file mode 100644 index fe019c06..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Autoload.php.in +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.1.0 - */ - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(dirname(dirname(__FILE__))); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php deleted file mode 100644 index 83177f4b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php +++ /dev/null @@ -1,70 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder interface for unique identifiers. - * - * Defines the interface for recording unique identifiers. The identifiers - * can be used to define the invocation order of expectations. The expectation - * is recorded using id() and then defined in order using - * PHPUnit_Framework_MockObject_Builder_Match::after(). - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_Identity -{ - /** - * Sets the identification of the expectation to $id. - * - * @note The identifier is unique per mock object. - * @param string $id Unique identifiation of expectation. - */ - public function id($id); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php deleted file mode 100644 index 7fc4fedc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php +++ /dev/null @@ -1,193 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder for mocked or stubbed invocations. - * - * Provides methods for building expectations without having to resort to - * instantiating the various matchers manually. These methods also form a - * more natural way of reading the expectation. This class should be together - * with the test case PHPUnit_Framework_MockObject_TestCase. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Builder_InvocationMocker implements PHPUnit_Framework_MockObject_Builder_MethodNameMatch -{ - /** - * @var PHPUnit_Framework_MockObject_Stub_MatcherCollection - */ - protected $collection; - - /** - * @var PHPUnit_Framework_MockObject_Matcher - */ - protected $matcher; - - /** - * @param PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher - */ - public function __construct(PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection, PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher) - { - $this->collection = $collection; - $this->matcher = new PHPUnit_Framework_MockObject_Matcher( - $invocationMatcher - ); - - $this->collection->addMatcher($this->matcher); - } - - /** - * @return PHPUnit_Framework_MockObject_Matcher - */ - public function getMatcher() - { - return $this->matcher; - } - - /** - * @param mixed $id - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function id($id) - { - $this->collection->registerId($id, $this); - - return $this; - } - - /** - * @param PHPUnit_Framework_MockObject_Stub $stub - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function will(PHPUnit_Framework_MockObject_Stub $stub) - { - $this->matcher->stub = $stub; - - return $this; - } - - /** - * @param mixed $id - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function after($id) - { - $this->matcher->afterMatchBuilderId = $id; - - return $this; - } - - /** - * @param mixed $argument, ... - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function with() - { - $args = func_get_args(); - - if ($this->matcher->methodNameMatcher === NULL) { - throw new PHPUnit_Framework_Exception( - 'Method name matcher is not defined, cannot define parameter ' . - ' matcher without one' - ); - } - - if ($this->matcher->parametersMatcher !== NULL) { - throw new PHPUnit_Framework_Exception( - 'Parameter matcher is already defined, cannot redefine' - ); - } - - $this->matcher->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_Parameters($args); - - return $this; - } - - /** - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function withAnyParameters() - { - if ($this->matcher->methodNameMatcher === NULL) { - throw new PHPUnit_Framework_Exception( - 'Method name matcher is not defined, cannot define parameter ' . - 'matcher without one' - ); - } - - if ($this->matcher->parametersMatcher !== NULL) { - throw new PHPUnit_Framework_Exception( - 'Parameter matcher is already defined, cannot redefine' - ); - } - - $this->matcher->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_AnyParameters; - - return $this; - } - - /** - * @param PHPUnit_Framework_Constraint|string $constraint - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function method($constraint) - { - if ($this->matcher->methodNameMatcher !== NULL) { - throw new PHPUnit_Framework_Exception( - 'Method name matcher is already defined, cannot redefine' - ); - } - - $this->matcher->methodNameMatcher = new PHPUnit_Framework_MockObject_Matcher_MethodName($constraint); - - return $this; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Match.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Match.php deleted file mode 100644 index ce998cbf..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Match.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder interface for invocation order matches. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_Match extends PHPUnit_Framework_MockObject_Builder_Stub -{ - /** - * Defines the expectation which must occur before the current is valid. - * - * @param string $id The identification of the expectation that should - * occur before this one. - * @return PHPUnit_Framework_MockObject_Builder_Stub - */ - public function after($id); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php deleted file mode 100644 index 63468421..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php +++ /dev/null @@ -1,68 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder interface for matcher of method names. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_MethodNameMatch extends PHPUnit_Framework_MockObject_Builder_ParametersMatch -{ - /** - * Adds a new method name match and returns the parameter match object for - * further matching possibilities. - * - * @param PHPUnit_Framework_Constraint $name - * Constraint for matching method, if a string is passed it will use - * the PHPUnit_Framework_Constraint_IsEqual. - * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch - */ - public function method($name); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Namespace.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Namespace.php deleted file mode 100644 index e14a9a75..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Namespace.php +++ /dev/null @@ -1,79 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for builders which can register builders with a given identification. - * - * This interface relates to PHPUnit_Framework_MockObject_Builder_Identity. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_Namespace -{ - /** - * Looks up the match builder with identification $id and returns it. - * - * @param string $id The identifiction of the match builder. - * @return PHPUnit_Framework_MockObject_Builder_Match - */ - public function lookupId($id); - - /** - * Registers the match builder $builder with the identification $id. The - * builder can later be looked up using lookupId() to figure out if it - * has been invoked. - * - * @param string $id - * The identification of the match builder. - * @param PHPUnit_Framework_MockObject_Builder_Match $builder - * The builder which is being registered. - */ - public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php deleted file mode 100644 index c9074567..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php +++ /dev/null @@ -1,89 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder interface for parameter matchers. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_ParametersMatch extends PHPUnit_Framework_MockObject_Builder_Match -{ - /** - * Sets the parameters to match for, each parameter to this funtion will - * be part of match. To perform specific matches or constraints create a - * new PHPUnit_Framework_Constraint and use it for the parameter. - * If the parameter value is not a constraint it will use the - * PHPUnit_Framework_Constraint_IsEqual for the value. - * - * Some examples: - * - * // match first parameter with value 2 - * $b->with(2); - * // match first parameter with value 'smock' and second identical to 42 - * $b->with('smock', new PHPUnit_Framework_Constraint_IsEqual(42)); - * - * - * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch - */ - public function with(); - - /** - * Sets a matcher which allows any kind of parameters. - * - * Some examples: - * - * // match any number of parameters - * $b->withAnyParamers(); - * - * - * @return PHPUnit_Framework_MockObject_Matcher_AnyParameters - */ - public function withAnyParameters(); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Stub.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Stub.php deleted file mode 100644 index 25c31c98..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Stub.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Builder interface for stubs which are actions replacing an invocation. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Builder_Stub extends PHPUnit_Framework_MockObject_Builder_Identity -{ - /** - * Stubs the matching method with the stub object $stub. Any invocations of - * the matched method will now be handled by the stub instead. - * - * @param PHPUnit_Framework_MockObject_Stub $stub The stub object. - * @return PHPUnit_Framework_MockObject_Builder_Identity - */ - public function will(PHPUnit_Framework_MockObject_Stub $stub); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php deleted file mode 100644 index 45f0d22b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator.php +++ /dev/null @@ -1,811 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Mock Object Code Generator - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Generator -{ - /** - * @var array - */ - protected static $cache = array(); - - /** - * @var array - */ - protected static $blacklistedMethodNames = array( - '__clone' => TRUE, - 'abstract' => TRUE, - 'and' => TRUE, - 'array' => TRUE, - 'as' => TRUE, - 'break' => TRUE, - 'case' => TRUE, - 'catch' => TRUE, - 'class' => TRUE, - 'clone' => TRUE, - 'const' => TRUE, - 'continue' => TRUE, - 'declare' => TRUE, - 'default' => TRUE, - 'die' => TRUE, - 'do' => TRUE, - 'echo' => TRUE, - 'else' => TRUE, - 'elseif' => TRUE, - 'empty' => TRUE, - 'enddeclare' => TRUE, - 'endfor' => TRUE, - 'endforeach' => TRUE, - 'endif' => TRUE, - 'endswitch' => TRUE, - 'endwhile' => TRUE, - 'eval' => TRUE, - 'exit' => TRUE, - 'expects' => TRUE, - 'extends' => TRUE, - 'final' => TRUE, - 'for' => TRUE, - 'foreach' => TRUE, - 'function' => TRUE, - 'global' => TRUE, - 'goto' => TRUE, - 'if' => TRUE, - 'implements' => TRUE, - 'include' => TRUE, - 'include_once' => TRUE, - 'instanceof' => TRUE, - 'interface' => TRUE, - 'isset' => TRUE, - 'list' => TRUE, - 'namespace' => TRUE, - 'new' => TRUE, - 'or' => TRUE, - 'print' => TRUE, - 'private' => TRUE, - 'protected' => TRUE, - 'public' => TRUE, - 'require' => TRUE, - 'require_once' => TRUE, - 'return' => TRUE, - 'static' => TRUE, - 'staticExpects' => TRUE, - 'switch' => TRUE, - 'throw' => TRUE, - 'try' => TRUE, - 'unset' => TRUE, - 'use' => TRUE, - 'var' => TRUE, - 'while' => TRUE, - 'xor' => TRUE - ); - - /** - * @var boolean - */ - protected static $soapLoaded = NULL; - - /** - * Returns a mock object for the specified class. - * - * @param string $originalClassName - * @param array $methods - * @param array $arguments - * @param string $mockClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return object - * @throws InvalidArgumentException - * @since Method available since Release 1.0.0 - */ - public static function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE, $cloneArguments = TRUE) - { - if (!is_string($originalClassName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($mockClassName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'string'); - } - - if (!is_array($methods) && !is_null($methods)) { - throw new InvalidArgumentException; - } - - if (NULL !== $methods) { - foreach ($methods as $method) { - if (!preg_match('~[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*~', $method)) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Cannot stub or mock method with invalid name "%s"', - $method - ) - ); - } - } - if ($methods != array_unique($methods)) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Cannot stub or mock using a method list that contains duplicates: "%s"', - implode(', ', $methods) - ) - ); - } - } - - if ($mockClassName != '' && class_exists($mockClassName, FALSE)) { - $reflect = new ReflectionClass($mockClassName); - if (!$reflect->implementsInterface("PHPUnit_Framework_MockObject_MockObject")) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Class "%s" already exists.', - $mockClassName - ) - ); - } - } - - $mock = self::generate( - $originalClassName, - $methods, - $mockClassName, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - - return self::getObject( - $mock['code'], - $mock['mockClassName'], - $originalClassName, - $callOriginalConstructor, - $callAutoload, - $arguments - ); - } - - /** - * @param string $code - * @param string $className - * @param string $originalClassName - * @param string $callOriginalConstructor - * @param string $callAutoload - * @param array $arguments - * @return object - */ - protected static function getObject($code, $className, $originalClassName = '', $callOriginalConstructor = FALSE, $callAutoload = FALSE, array $arguments = array()) - { - if (!class_exists($className, FALSE)) { - eval($code); - } - - if ($callOriginalConstructor && - !interface_exists($originalClassName, $callAutoload)) { - if (count($arguments) == 0) { - $object = new $className; - } else { - $class = new ReflectionClass($className); - $object = $class->newInstanceArgs($arguments); - } - } else { - // Use a trick to create a new object of a class - // without invoking its constructor. - $object = unserialize( - sprintf('O:%d:"%s":0:{}', strlen($className), $className) - ); - } - - if ($object instanceof PHPUnit_Framework_MockObject_MockObject) { - $object->__phpunit_setId(); - } - - return $object; - } - - /** - * Returns a mock object for the specified abstract class with all abstract - * methods of the class mocked. Concrete methods to mock can be specified with - * the last parameter - * - * @param string $originalClassName - * @param array $arguments - * @param string $mockClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param array $mockedMethods - * @param boolean $cloneArguments - * @return object - * @since Method available since Release 1.0.0 - * @throws InvalidArgumentException - */ - public static function getMockForAbstractClass($originalClassName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE, $mockedMethods = array(), $cloneArguments = TRUE) - { - if (!is_string($originalClassName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($mockClassName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'string'); - } - - if (class_exists($originalClassName, $callAutoload) || - interface_exists($originalClassName, $callAutoload)) { - $methods = array(); - $reflector = new ReflectionClass($originalClassName); - - foreach ($reflector->getMethods() as $method) { - if ($method->isAbstract() || in_array($method->getName(), $mockedMethods)) { - $methods[] = $method->getName(); - } - } - - if (empty($methods)) { - $methods = NULL; - } - - return self::getMock( - $originalClassName, - $methods, - $arguments, - $mockClassName, - $callOriginalConstructor, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - } else { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Class "%s" does not exist.', - $originalClassName - ) - ); - } - } - - /** - * Returns an object for the specified trait. - * - * @param string $traitName - * @param array $arguments - * @param string $traitClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @return object - * @since Method available since Release 1.1.0 - * @throws InvalidArgumentException - */ - public static function getObjectForTrait($traitName, array $arguments = array(), $traitClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE) - { - if (!is_string($traitName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($traitClassName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'string'); - } - - if (!trait_exists($traitName, $callAutoload)) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Trait "%s" does not exist.', - $traitName - ) - ); - } - - $className = self::generateClassName( - $traitName, $traitClassName, 'Trait_' - ); - - $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . - DIRECTORY_SEPARATOR; - $classTemplate = new Text_Template( - $templateDir . 'trait_class.tpl' - ); - - $classTemplate->setVar( - array( - 'class_name' => $className['className'], - 'trait_name' => $traitName - ) - ); - - return self::getObject( - $classTemplate->render(), - $className['className'] - ); - } - - /** - * @param string $originalClassName - * @param array $methods - * @param string $mockClassName - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return array - */ - public static function generate($originalClassName, array $methods = NULL, $mockClassName = '', $callOriginalClone = TRUE, $callAutoload = TRUE, $cloneArguments = TRUE) - { - if ($mockClassName == '') { - $key = md5( - $originalClassName . - serialize($methods) . - serialize($callOriginalClone) - ); - - if (isset(self::$cache[$key])) { - return self::$cache[$key]; - } - } - - $mock = self::generateMock( - $originalClassName, - $methods, - $mockClassName, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - - if (isset($key)) { - self::$cache[$key] = $mock; - } - - return $mock; - } - - /** - * @param string $wsdlFile - * @param string $originalClassName - * @param array $methods - * @param array $options - * @return array - */ - public static function generateClassFromWsdl($wsdlFile, $originalClassName, array $methods = array(), array $options = array()) - { - if (self::$soapLoaded === NULL) { - self::$soapLoaded = extension_loaded('soap'); - } - - if (self::$soapLoaded) { - $client = new SOAPClient($wsdlFile, $options); - $_methods = array_unique($client->__getFunctions()); - unset($client); - - $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . - 'Generator' . DIRECTORY_SEPARATOR; - $methodTemplate = new Text_Template( - $templateDir . 'wsdl_method.tpl' - ); - $methodsBuffer = ''; - - foreach ($_methods as $method) { - $nameStart = strpos($method, ' ') + 1; - $nameEnd = strpos($method, '('); - $name = substr($method, $nameStart, $nameEnd - $nameStart); - - if (empty($methods) || in_array($name, $methods)) { - $args = explode( - ',', - substr( - $method, - $nameEnd + 1, - strpos($method, ')') - $nameEnd - 1 - ) - ); - $numArgs = count($args); - - for ($i = 0; $i < $numArgs; $i++) { - $args[$i] = substr($args[$i], strpos($args[$i], '$')); - } - - $methodTemplate->setVar( - array( - 'method_name' => $name, - 'arguments' => join(', ', $args) - ) - ); - - $methodsBuffer .= $methodTemplate->render(); - } - } - - $optionsBuffer = 'array('; - foreach ($options as $key => $value) { - $optionsBuffer .= $key . ' => ' . $value; - } - - $optionsBuffer .= ')'; - - $classTemplate = new Text_Template( - $templateDir . 'wsdl_class.tpl' - ); - - $namespace = ''; - if(strpos($originalClassName, '\\') !== FALSE) { - $parts = explode('\\', $originalClassName); - $originalClassName = array_pop($parts); - $namespace = 'namespace ' . join('\\', $parts) . ';'; - } - - $classTemplate->setVar( - array( - 'namespace' => $namespace, - 'class_name' => $originalClassName, - 'wsdl' => $wsdlFile, - 'options' => $optionsBuffer, - 'methods' => $methodsBuffer - ) - ); - - return $classTemplate->render(); - } else { - throw new PHPUnit_Framework_Exception( - 'The SOAP extension is required to generate a mock object ' . - 'from WSDL.' - ); - } - } - - /** - * @param string $originalClassName - * @param array|null $methods - * @param string $mockClassName - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return array - */ - protected static function generateMock($originalClassName, $methods, $mockClassName, $callOriginalClone, $callAutoload, $cloneArguments = TRUE) - { - $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . - DIRECTORY_SEPARATOR; - $classTemplate = new Text_Template( - $templateDir . 'mocked_class.tpl' - ); - $cloneTemplate = ''; - $isClass = FALSE; - $isInterface = FALSE; - - $mockClassName = self::generateClassName( - $originalClassName, $mockClassName, 'Mock_' - ); - - if (class_exists($mockClassName['fullClassName'], $callAutoload)) { - $isClass = TRUE; - } else { - if (interface_exists($mockClassName['fullClassName'], $callAutoload)) { - $isInterface = TRUE; - } - } - - if (!class_exists($mockClassName['fullClassName'], $callAutoload) && - !interface_exists($mockClassName['fullClassName'], $callAutoload)) { - $prologue = 'class ' . $mockClassName['originalClassName'] . "\n{\n}\n\n"; - - if (!empty($mockClassName['namespaceName'])) { - $prologue = 'namespace ' . $mockClassName['namespaceName'] . - " {\n\n" . $prologue . "}\n\n" . - "namespace {\n\n"; - - $epilogue = "\n\n}"; - } - - $cloneTemplate = new Text_Template( - $templateDir . 'mocked_clone.tpl' - ); - } else { - $class = new ReflectionClass($mockClassName['fullClassName']); - - if ($class->isFinal()) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Class "%s" is declared "final" and cannot be mocked.', - $mockClassName['fullClassName'] - ) - ); - } - - if ($class->hasMethod('__clone')) { - $cloneMethod = $class->getMethod('__clone'); - - if (!$cloneMethod->isFinal()) { - if ($callOriginalClone && !$isInterface) { - $cloneTemplate = new Text_Template( - $templateDir . 'unmocked_clone.tpl' - ); - } else { - $cloneTemplate = new Text_Template( - $templateDir . 'mocked_clone.tpl' - ); - } - } - } else { - $cloneTemplate = new Text_Template( - $templateDir . 'mocked_clone.tpl' - ); - } - } - - if (is_object($cloneTemplate)) { - $cloneTemplate = $cloneTemplate->render(); - } - - if (is_array($methods) && empty($methods) && - ($isClass || $isInterface)) { - $methods = get_class_methods($mockClassName['fullClassName']); - } - - if (!is_array($methods)) { - $methods = array(); - } - - $mockedMethods = ''; - - if (isset($class)) { - foreach ($methods as $methodName) { - try { - $method = $class->getMethod($methodName); - - if (self::canMockMethod($method)) { - $mockedMethods .= self::generateMockedMethodDefinitionFromExisting( - $templateDir, $method, $cloneArguments - ); - } - } - - catch (ReflectionException $e) { - $mockedMethods .= self::generateMockedMethodDefinition( - $templateDir, $mockClassName['fullClassName'], $methodName, $cloneArguments - ); - } - } - } else { - foreach ($methods as $methodName) { - $mockedMethods .= self::generateMockedMethodDefinition( - $templateDir, $mockClassName['fullClassName'], $methodName, $cloneArguments - ); - } - } - - $classTemplate->setVar( - array( - 'prologue' => isset($prologue) ? $prologue : '', - 'epilogue' => isset($epilogue) ? $epilogue : '', - 'class_declaration' => self::generateMockClassDeclaration( - $mockClassName, $isInterface - ), - 'clone' => $cloneTemplate, - 'mock_class_name' => $mockClassName['className'], - 'mocked_methods' => $mockedMethods - ) - ); - - return array( - 'code' => $classTemplate->render(), - 'mockClassName' => $mockClassName['className'] - ); - } - - /** - * @param string $originalClassName - * @param string $className - * @param string $prefix - * @return array - */ - protected static function generateClassName($originalClassName, $className, $prefix) - { - if ($originalClassName[0] == '\\') { - $originalClassName = substr($originalClassName, 1); - } - - $classNameParts = explode('\\', $originalClassName); - - if (count($classNameParts) > 1) { - $originalClassName = array_pop($classNameParts); - $namespaceName = join('\\', $classNameParts); - $fullClassName = $namespaceName . '\\' . $originalClassName; - } else { - $namespaceName = ''; - $fullClassName = $originalClassName; - } - - if ($className == '') { - do { - $className = $prefix . $originalClassName . '_' . - substr(md5(microtime()), 0, 8); - } - while (class_exists($className, FALSE)); - } - - return array( - 'className' => $className, - 'originalClassName' => $originalClassName, - 'fullClassName' => $fullClassName, - 'namespaceName' => $namespaceName - ); - } - - /** - * @param array $mockClassName - * @param boolean $isInterface - * @return array - */ - protected static function generateMockClassDeclaration(array $mockClassName, $isInterface) - { - $buffer = 'class '; - - if ($isInterface) { - $buffer .= sprintf( - "%s implements PHPUnit_Framework_MockObject_MockObject, %s%s", - $mockClassName['className'], - !empty($mockClassName['namespaceName']) ? $mockClassName['namespaceName'] . '\\' : '', - $mockClassName['originalClassName'] - ); - } else { - $buffer .= sprintf( - "%s extends %s%s implements PHPUnit_Framework_MockObject_MockObject", - $mockClassName['className'], - !empty($mockClassName['namespaceName']) ? $mockClassName['namespaceName'] . '\\' : '', - $mockClassName['originalClassName'] - ); - } - - return $buffer; - } - - /** - * @param string $templateDir - * @param ReflectionMethod $method - * @param boolean $cloneArguments - * @return string - */ - protected static function generateMockedMethodDefinitionFromExisting($templateDir, ReflectionMethod $method, $cloneArguments = TRUE) - { - if ($method->isPrivate()) { - $modifier = 'private'; - } - - else if ($method->isProtected()) { - $modifier = 'protected'; - } - - else { - $modifier = 'public'; - } - - if ($method->isStatic()) { - $static = TRUE; - } else { - $static = FALSE; - } - - if ($method->returnsReference()) { - $reference = '&'; - } else { - $reference = ''; - } - - return self::generateMockedMethodDefinition( - $templateDir, - $method->getDeclaringClass()->getName(), - $method->getName(), - $cloneArguments, - $modifier, - PHPUnit_Util_Class::getMethodParameters($method), - PHPUnit_Util_Class::getMethodParameters($method, TRUE), - $reference, - $static - ); - } - - /** - * @param string $templateDir - * @param string $className - * @param string $methodName - * @param boolean $cloneArguments - * @param string $modifier - * @param string $arguments_decl - * @param string $arguments_call - * @param string $reference - * @param boolean $static - * @return string - */ - protected static function generateMockedMethodDefinition($templateDir, $className, $methodName, $cloneArguments = TRUE, $modifier = 'public', $arguments_decl = '', $arguments_call = '', $reference = '', $static = FALSE) - { - if ($static) { - $template = new Text_Template( - $templateDir . 'mocked_static_method.tpl' - ); - } else { - $template = new Text_Template( - $templateDir . 'mocked_object_method.tpl' - ); - } - - $template->setVar( - array( - 'arguments_decl' => $arguments_decl, - 'arguments_call' => $arguments_call, - 'arguments_count' => !empty($arguments_call) ? count(explode(',', $arguments_call)) : 0, - 'class_name' => $className, - 'method_name' => $methodName, - 'modifier' => $modifier, - 'reference' => $reference, - 'clone_arguments' => $cloneArguments ? 'TRUE' : 'FALSE' - ) - ); - - return $template->render(); - } - - /** - * @param ReflectionMethod $method - * @return boolean - */ - protected static function canMockMethod(ReflectionMethod $method) - { - if ($method->isConstructor() || $method->isFinal() || - isset(self::$blacklistedMethodNames[$method->getName()])) { - return FALSE; - } - - return TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist deleted file mode 100644 index 5e22d7b8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist +++ /dev/null @@ -1,60 +0,0 @@ -{prologue}{class_declaration} -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - -{clone}{mocked_methods} - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -}{epilogue} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist deleted file mode 100644 index e8d7ad02..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist +++ /dev/null @@ -1,5 +0,0 @@ - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist deleted file mode 100644 index e2f55d9f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist +++ /dev/null @@ -1,22 +0,0 @@ - - {modifier} function {reference}{method_name}({arguments_decl}) - { - $arguments = array({arguments_call}); - $count = func_num_args(); - - if ($count > {arguments_count}) { - $_arguments = func_get_args(); - - for ($i = {arguments_count}; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - '{class_name}', '{method_name}', $arguments, $this, {clone_arguments} - ) - ); - - return $result; - } diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist deleted file mode 100644 index 06df0706..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist +++ /dev/null @@ -1,22 +0,0 @@ - - {modifier} static function {reference}{method_name}({arguments_decl}) - { - $arguments = array({arguments_call}); - $count = func_num_args(); - - if ($count > {arguments_count}) { - $_arguments = func_get_args(); - - for ($i = {arguments_count}; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = self::__phpunit_getStaticInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Static( - '{class_name}', '{method_name}', $arguments, {clone_arguments} - ) - ); - - return $result; - } diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist deleted file mode 100644 index 48b4bbf2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist +++ /dev/null @@ -1,4 +0,0 @@ -class {class_name} -{ - use {trait_name}; -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist deleted file mode 100644 index df829bd9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist +++ /dev/null @@ -1,6 +0,0 @@ - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - parent::__clone(); - } diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist deleted file mode 100644 index 05ad1d78..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist +++ /dev/null @@ -1,9 +0,0 @@ -{namespace} - -class {class_name} extends \SOAPClient -{ - public function __construct($wsdl, array $options) - { - parent::__construct('{wsdl}', $options); - } -{methods}} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist deleted file mode 100644 index bb16e763..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist +++ /dev/null @@ -1,4 +0,0 @@ - - public function {method_name}({arguments}) - { - } diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation.php deleted file mode 100644 index 70666ac0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation.php +++ /dev/null @@ -1,58 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for invocations. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Invocation -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Object.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Object.php deleted file mode 100644 index 70754c5e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Object.php +++ /dev/null @@ -1,75 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Represents a non-static invocation. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Invocation_Object extends PHPUnit_Framework_MockObject_Invocation_Static -{ - /** - * @var object - */ - public $object; - - /** - * @param string $className - * @param string $methodname - * @param array $parameters - * @param object $object - * @param object $cloneObjects - */ - public function __construct($className, $methodName, array $parameters, $object, $cloneObjects = FALSE) - { - parent::__construct($className, $methodName, $parameters, $cloneObjects); - $this->object = $object; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Static.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Static.php deleted file mode 100644 index 4155788a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invocation/Static.php +++ /dev/null @@ -1,191 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Represents a static invocation. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Invocation_Static implements PHPUnit_Framework_MockObject_Invocation, PHPUnit_Framework_SelfDescribing -{ - /** - * @var array - */ - protected static $uncloneableExtensions = array( - 'mysqli' => TRUE, - 'SQLite' => TRUE, - 'sqlite3' => TRUE, - 'tidy' => TRUE, - 'xmlwriter' => TRUE, - 'xsl' => TRUE - ); - - /** - * @var array - */ - protected static $uncloneableClasses = array( - 'Closure', - 'COMPersistHelper', - 'IteratorIterator', - 'RecursiveIteratorIterator', - 'SplFileObject', - 'PDORow', - 'ZipArchive' - ); - - /** - * @var string - */ - public $className; - - /** - * @var string - */ - public $methodName; - - /** - * @var array - */ - public $parameters; - - /** - * @param string $className - * @param string $methodname - * @param array $parameters - * @param boolean $cloneObjects - */ - public function __construct($className, $methodName, array $parameters, $cloneObjects = FALSE) - { - $this->className = $className; - $this->methodName = $methodName; - $this->parameters = $parameters; - - if (!$cloneObjects) { - return; - } - - foreach ($this->parameters as $key => $value) { - if (is_object($value)) { - $this->parameters[$key] = $this->cloneObject($value); - } - } - } - - /** - * @return string - */ - public function toString() - { - return sprintf( - "%s::%s(%s)", - - $this->className, - $this->methodName, - join( - ', ', - array_map( - array('PHPUnit_Util_Type', 'shortenedExport'), - $this->parameters - ) - ) - ); - } - - /** - * @param object $original - * @return object - */ - protected function cloneObject($original) - { - $cloneable = NULL; - $object = new ReflectionObject($original); - - // Check the blacklist before asking PHP reflection to work around - // https://bugs.php.net/bug.php?id=53967 - if ($object->isInternal() && - isset(self::$uncloneableExtensions[$object->getExtensionName()])) { - $cloneable = FALSE; - } - - if ($cloneable === NULL) { - foreach (self::$uncloneableClasses as $class) { - if ($original instanceof $class) { - $cloneable = FALSE; - break; - } - } - } - - if ($cloneable === NULL && method_exists($object, 'isCloneable')) { - $cloneable = $object->isCloneable(); - } - - if ($cloneable === NULL && $object->hasMethod('__clone')) { - $method = $object->getMethod('__clone'); - $cloneable = $method->isPublic(); - } - - if ($cloneable === NULL) { - $cloneable = TRUE; - } - - if ($cloneable) { - try { - return clone $original; - } - - catch (Exception $e) { - return $original; - } - } else { - return $original; - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/InvocationMocker.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/InvocationMocker.php deleted file mode 100644 index 4a3c04a9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/InvocationMocker.php +++ /dev/null @@ -1,201 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Mocker for invocations which are sent from - * PHPUnit_Framework_MockObject_MockObject objects. - * - * Keeps track of all expectations and stubs as well as registering - * identifications for builders. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_InvocationMocker implements PHPUnit_Framework_MockObject_Stub_MatcherCollection, PHPUnit_Framework_MockObject_Invokable, PHPUnit_Framework_MockObject_Builder_Namespace -{ - /** - * @var PHPUnit_Framework_MockObject_Matcher_Invocation[] - */ - protected $matchers = array(); - - /** - * @var PHPUnit_Framework_MockObject_Builder_Match[] - */ - protected $builderMap = array(); - - /** - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher - */ - public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - $this->matchers[] = $matcher; - } - - /** - * @since Method available since Release 1.1.0 - */ - public function hasMatchers() - { - if (empty($this->matchers)) { - return FALSE; - } - - foreach ($this->matchers as $matcher) { - if (!$matcher instanceof PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount) { - return TRUE; - } - } - - return FALSE; - } - - /** - * @param mixed $id - * @return boolean|null - */ - public function lookupId($id) - { - if (isset($this->builderMap[$id])) { - return $this->builderMap[$id]; - } - - return NULL; - } - - /** - * @param mixed $id - * @param PHPUnit_Framework_MockObject_Builder_Match $builder - * @throws PHPUnit_Framework_Exception - */ - public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder) - { - if (isset($this->builderMap[$id])) { - throw new PHPUnit_Framework_Exception( - 'Match builder with id <' . $id . '> is already registered.' - ); - } - - $this->builderMap[$id] = $builder; - } - - /** - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return new PHPUnit_Framework_MockObject_Builder_InvocationMocker( - $this, $matcher - ); - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return mixed - */ - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $exception = NULL; - $hasReturnValue = FALSE; - - if (strtolower($invocation->methodName) == '__tostring') { - $returnValue = ''; - } else { - $returnValue = NULL; - } - - foreach ($this->matchers as $match) { - try { - if ($match->matches($invocation)) { - $value = $match->invoked($invocation); - - if (!$hasReturnValue) { - $returnValue = $value; - $hasReturnValue = TRUE; - } - } - } - - catch (Exception $e) { - $exception = $e; - } - } - - if ($exception !== NULL) { - throw $exception; - } - - return $returnValue; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - foreach ($this->matchers as $matcher) { - if (!$matcher->matches($invocation)) { - return FALSE; - } - } - - return TRUE; - } - - /** - * @return boolean - */ - public function verify() - { - foreach ($this->matchers as $matcher) { - $matcher->verify(); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php deleted file mode 100644 index 13d34391..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php +++ /dev/null @@ -1,79 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for classes which can be invoked. - * - * The invocation will be taken from a mock object and passed to an object - * of this class. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Invokable extends PHPUnit_Framework_MockObject_Verifiable -{ - /** - * Invokes the invocation object $invocation so that it can be checked for - * expectations or matched against stubs. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * The invocation object passed from mock object. - * @return object - */ - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation); - - /** - * Checks if the invocation matches. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * The invocation object passed from mock object. - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php deleted file mode 100644 index 13cc2a03..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php +++ /dev/null @@ -1,308 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Main matcher which defines a full expectation using method, parameter and - * invocation matchers. - * This matcher encapsulates all the other matchers and allows the builder to - * set the specific matchers when the appropriate methods are called (once(), - * where() etc.). - * - * All properties are public so that they can easily be accessed by the builder. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation -{ - /** - * @var PHPUnit_Framework_MockObject_Matcher_Invocation - */ - public $invocationMatcher; - - /** - * @var mixed - */ - public $afterMatchBuilderId = NULL; - - /** - * @var boolean - */ - public $afterMatchBuilderIsInvoked = FALSE; - - /** - * @var PHPUnit_Framework_MockObject_Matcher_MethodName - */ - public $methodNameMatcher = NULL; - - /** - * @var PHPUnit_Framework_MockObject_Matcher_Parameters - */ - public $parametersMatcher = NULL; - - /** - * @var PHPUnit_Framework_MockObject_Stub - */ - public $stub = NULL; - - /** - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher - */ - public function __construct(PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher) - { - $this->invocationMatcher = $invocationMatcher; - } - - /** - * @return string - */ - public function toString() - { - $list = array(); - - if ($this->invocationMatcher !== NULL) { - $list[] = $this->invocationMatcher->toString(); - } - - if ($this->methodNameMatcher !== NULL) { - $list[] = 'where ' . $this->methodNameMatcher->toString(); - } - - if ($this->parametersMatcher !== NULL) { - $list[] = 'and ' . $this->parametersMatcher->toString(); - } - - if ($this->afterMatchBuilderId !== NULL) { - $list[] = 'after ' . $this->afterMatchBuilderId; - } - - if ($this->stub !== NULL) { - $list[] = 'will ' . $this->stub->toString(); - } - - return join(' ', $list); - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return mixed - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) - { - if ($this->invocationMatcher === NULL) { - throw new PHPUnit_Framework_Exception( - 'No invocation matcher is set' - ); - } - - if ($this->methodNameMatcher === NULL) { - throw new PHPUnit_Framework_Exception('No method matcher is set'); - } - - if ($this->afterMatchBuilderId !== NULL) { - $builder = $invocation->object - ->__phpunit_getInvocationMocker() - ->lookupId($this->afterMatchBuilderId); - - if (!$builder) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'No builder found for match builder identification <%s>', - - $this->afterMatchBuilderId - ) - ); - } - - $matcher = $builder->getMatcher(); - - if ($matcher && $matcher->invocationMatcher->hasBeenInvoked()) { - $this->afterMatchBuilderIsInvoked = TRUE; - } - } - - $this->invocationMatcher->invoked($invocation); - - try { - if ( $this->parametersMatcher !== NULL && - !$this->parametersMatcher->matches($invocation)) { - $this->parametersMatcher->verify(); - } - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - "Expectation failed for %s when %s\n%s", - - $this->methodNameMatcher->toString(), - $this->invocationMatcher->toString(), - $e->getMessage() - ), - $e->getComparisonFailure() - ); - } - - if ($this->stub) { - return $this->stub->invoke($invocation); - } - - return NULL; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - if ($this->afterMatchBuilderId !== NULL) { - $builder = $invocation->object - ->__phpunit_getInvocationMocker() - ->lookupId($this->afterMatchBuilderId); - - if (!$builder) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'No builder found for match builder identification <%s>', - - $this->afterMatchBuilderId - ) - ); - } - - $matcher = $builder->getMatcher(); - - if (!$matcher) { - return FALSE; - } - - if (!$matcher->invocationMatcher->hasBeenInvoked()) { - return FALSE; - } - } - - if ($this->invocationMatcher === NULL) { - throw new PHPUnit_Framework_Exception( - 'No invocation matcher is set' - ); - } - - if ($this->methodNameMatcher === NULL) { - throw new PHPUnit_Framework_Exception('No method matcher is set'); - } - - if (!$this->invocationMatcher->matches($invocation)) { - return FALSE; - } - - try { - if (!$this->methodNameMatcher->matches($invocation)) { - return FALSE; - } - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - "Expectation failed for %s when %s\n%s", - - $this->methodNameMatcher->toString(), - $this->invocationMatcher->toString(), - $e->getMessage() - ), - $e->getComparisonFailure() - ); - } - - return TRUE; - } - - /** - * @throws PHPUnit_Framework_Exception - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify() - { - if ($this->invocationMatcher === NULL) { - throw new PHPUnit_Framework_Exception( - 'No invocation matcher is set' - ); - } - - if ($this->methodNameMatcher === NULL) { - throw new PHPUnit_Framework_Exception('No method matcher is set'); - } - - try { - $this->invocationMatcher->verify(); - - if ($this->parametersMatcher === NULL) { - $this->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_AnyParameters; - } - - $invocationIsAny = get_class($this->invocationMatcher) === 'PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount'; - if (!$invocationIsAny) { - $this->parametersMatcher->verify(); - } - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - "Expectation failed for %s when %s.\n%s", - - $this->methodNameMatcher->toString(), - $this->invocationMatcher->toString(), - $e->getMessage() - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php deleted file mode 100644 index cf86c9e3..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php +++ /dev/null @@ -1,72 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which checks if a method has been invoked zero or more - * times. This matcher will always match. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder -{ - /** - * @return string - */ - public function toString() - { - return 'invoked zero or more times'; - } - - /** - */ - public function verify() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php deleted file mode 100644 index 5c20f418..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php +++ /dev/null @@ -1,74 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which allos any parameters to a method. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_AnyParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation -{ - /** - * @return string - */ - public function toString() - { - return 'with any parameters'; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - return TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php deleted file mode 100644 index 8ffcdcf9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php +++ /dev/null @@ -1,88 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for classes which matches an invocation based on its - * method name, argument, order or call count. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Matcher_Invocation extends PHPUnit_Framework_SelfDescribing, PHPUnit_Framework_MockObject_Verifiable -{ - /** - * Registers the invocation $invocation in the object as being invoked. - * This will only occur after matches() returns true which means the - * current invocation is the correct one. - * - * The matcher can store information from the invocation which can later - * be checked in verify(), or it can check the values directly and throw - * and exception if an expectation is not met. - * - * If the matcher is a stub it will also have a return value. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * Object containing information on a mocked or stubbed method which - * was invoked. - * @return mixed - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation); - - /** - * Checks if the invocation $invocation matches the current rules. If it does - * the matcher will get the invoked() method called which should check if an - * expectation is met. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * Object containing information on a mocked or stubbed method which - * was invoked. - * @return bool - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php deleted file mode 100644 index 30261826..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php +++ /dev/null @@ -1,127 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which checks if a method was invoked at a certain index. - * - * If the expected index number does not match the current invocation index it - * will not match which means it skips all method and parameter matching. Only - * once the index is reached will the method and parameter start matching and - * verifying. - * - * If the index is never reached it will throw an exception in index. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex implements PHPUnit_Framework_MockObject_Matcher_Invocation -{ - /** - * @var integer - */ - protected $sequenceIndex; - - /** - * @var integer - */ - protected $currentIndex = -1; - - /** - * @param integer $sequenceIndex - */ - public function __construct($sequenceIndex) - { - $this->sequenceIndex = $sequenceIndex; - } - - /** - * @return string - */ - public function toString() - { - return 'invoked at sequence index ' . $this->sequenceIndex; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $this->currentIndex++; - - return $this->currentIndex == $this->sequenceIndex; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) - { - } - - /** - * Verifies that the current expectation is valid. If everything is OK the - * code should just return, if not it must throw an exception. - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify() - { - if ($this->currentIndex < $this->sequenceIndex) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - 'The expected invocation at index %s was never reached.', - - $this->sequenceIndex - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php deleted file mode 100644 index 24941109..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php +++ /dev/null @@ -1,85 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which checks if a method has been invoked at least one - * time. - * - * If the number of invocations is 0 it will throw an exception in verify. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder -{ - /** - * @return string - */ - public function toString() - { - return 'invoked at least once'; - } - - /** - * Verifies that the current expectation is valid. If everything is OK the - * code should just return, if not it must throw an exception. - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify() - { - $count = $this->getInvocationCount(); - - if ($count < 1) { - throw new PHPUnit_Framework_ExpectationFailedException( - 'Expected invocation at least once but it never occured.' - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php deleted file mode 100644 index 3c40018e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php +++ /dev/null @@ -1,143 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which checks if a method has been invoked a certain amount - * of times. - * If the number of invocations exceeds the value it will immediately throw an - * exception, - * If the number is less it will later be checked in verify() and also throw an - * exception. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_InvokedCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder -{ - /** - * @var integer - */ - protected $expectedCount; - - /** - * @param interger $expectedCount - */ - public function __construct($expectedCount) - { - $this->expectedCount = $expectedCount; - } - - /** - * @return string - */ - public function toString() - { - return 'invoked ' . $this->expectedCount . ' time(s)'; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) - { - parent::invoked($invocation); - - $count = $this->getInvocationCount(); - - if ($count > $this->expectedCount) { - $message = $invocation->toString() . ' '; - - switch ($this->expectedCount) { - case 0: { - $message .= 'was not expected to be called.'; - } - break; - - case 1: { - $message .= 'was not expected to be called more than once.'; - } - break; - - default: { - $message .= sprintf( - 'was not expected to be called more than %d times.', - - $this->expectedCount - ); - } - } - - throw new PHPUnit_Framework_ExpectationFailedException($message); - } - } - - /** - * Verifies that the current expectation is valid. If everything is OK the - * code should just return, if not it must throw an exception. - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify() - { - $count = $this->getInvocationCount(); - - if ($count !== $this->expectedCount) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - 'Method was expected to be called %d times, ' . - 'actually called %d times.', - - $this->expectedCount, - $count - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php deleted file mode 100644 index ab6f7531..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php +++ /dev/null @@ -1,107 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Records invocations and provides convenience methods for checking them later - * on. - * This abstract class can be implemented by matchers which needs to check the - * number of times an invocation has occured. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - * @abstract - */ -abstract class PHPUnit_Framework_MockObject_Matcher_InvokedRecorder implements PHPUnit_Framework_MockObject_Matcher_Invocation -{ - /** - * @var PHPUnit_Framework_MockObject_Invocation[] - */ - protected $invocations = array(); - - /** - * @return integer - */ - public function getInvocationCount() - { - return count($this->invocations); - } - - /** - * @return PHPUnit_Framework_MockObject_Invocation[] - */ - public function getInvocations() - { - return $this->invocations; - } - - /** - * @return boolean - */ - public function hasBeenInvoked() - { - return count($this->invocations) > 0; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $this->invocations[] = $invocation; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - return TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/MethodName.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/MethodName.php deleted file mode 100644 index 58b151ee..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/MethodName.php +++ /dev/null @@ -1,102 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which looks for a specific method name in the invocations. - * - * Checks the method name all incoming invocations, the name is checked against - * the defined constraint $constraint. If the constraint is met it will return - * true in matches(). - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_MethodName extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation -{ - /** - * @var PHPUnit_Framework_Constraint - */ - protected $constraint; - - /** - * @param PHPUnit_Framework_Constraint|string - * @throws PHPUnit_Framework_Constraint - */ - public function __construct($constraint) - { - if (!$constraint instanceof PHPUnit_Framework_Constraint) { - if (!is_string($constraint)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_IsEqual( - $constraint, 0, 10, FALSE, TRUE - ); - } - - $this->constraint = $constraint; - } - - /** - * @return string - */ - public function toString() - { - return 'method name ' . $this->constraint->toString(); - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - return $this->constraint->evaluate($invocation->methodName, '', TRUE); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Parameters.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Parameters.php deleted file mode 100644 index c2700a79..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Parameters.php +++ /dev/null @@ -1,160 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which looks for specific parameters in the invocations. - * - * Checks the parameters of all incoming invocations, the parameter list is - * checked against the defined constraints in $parameters. If the constraint - * is met it will return true in matches(). - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Matcher_Parameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation -{ - /** - * @var array - */ - protected $parameters = array(); - - /** - * @var PHPUnit_Framework_MockObject_Invocation - */ - protected $invocation; - - /** - * @param array $parameters - */ - public function __construct(array $parameters) - { - foreach ($parameters as $parameter) { - if (!($parameter instanceof PHPUnit_Framework_Constraint)) { - $parameter = new PHPUnit_Framework_Constraint_IsEqual( - $parameter - ); - } - - $this->parameters[] = $parameter; - } - } - - /** - * @return string - */ - public function toString() - { - $text = 'with parameter'; - - foreach ($this->parameters as $index => $parameter) { - if ($index > 0) { - $text .= ' and'; - } - - $text .= ' ' . $index . ' ' . $parameter->toString(); - } - - return $text; - } - - /** - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * @return boolean - */ - public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $this->invocation = $invocation; - $this->verify(); - - return count($invocation->parameters) < count($this->parameters); - } - - /** - * Checks if the invocation $invocation matches the current rules. If it - * does the matcher will get the invoked() method called which should check - * if an expectation is met. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * Object containing information on a mocked or stubbed method which - * was invoked. - * @return bool - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify() - { - if ($this->invocation === NULL) { - throw new PHPUnit_Framework_ExpectationFailedException( - 'Mocked method does not exist.' - ); - } - - if (count($this->invocation->parameters) < count($this->parameters)) { - throw new PHPUnit_Framework_ExpectationFailedException( - sprintf( - 'Parameter count for invocation %s is too low.', - - $this->invocation->toString() - ) - ); - } - - foreach ($this->parameters as $i => $parameter) { - $parameter->evaluate( - $this->invocation->parameters[$i], - sprintf( - 'Parameter %s for invocation %s does not match expected ' . - 'value.', - - $i, - $this->invocation->toString() - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php deleted file mode 100644 index 1b3203f3..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Invocation matcher which does not care about previous state from earlier - * invocations. - * - * This abstract class can be implemented by matchers which does not care about - * state but only the current run-time value of the invocation itself. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - * @abstract - */ -abstract class PHPUnit_Framework_MockObject_Matcher_StatelessInvocation implements PHPUnit_Framework_MockObject_Matcher_Invocation -{ - /** - * Registers the invocation $invocation in the object as being invoked. - * This will only occur after matches() returns true which means the - * current invocation is the correct one. - * - * The matcher can store information from the invocation which can later - * be checked in verify(), or it can check the values directly and throw - * and exception if an expectation is not met. - * - * If the matcher is a stub it will also have a return value. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * Object containing information on a mocked or stubbed method which - * was invoked. - * @return mixed - */ - public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) - { - } - - /** - * Checks if the invocation $invocation matches the current rules. If it does - * the matcher will get the invoked() method called which should check if an - * expectation is met. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * Object containing information on a mocked or stubbed method which - * was invoked. - * @return bool - */ - public function verify() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockBuilder.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockBuilder.php deleted file mode 100644 index 02a2675a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockBuilder.php +++ /dev/null @@ -1,291 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Giorgio Sironi - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Implementation of the Builder pattern for Mock objects. - * - * @package PHPUnit_MockObject - * @author Giorgio Sironi - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_MockBuilder -{ - /** - * @var PHPUnit_Framework_TestCase - */ - protected $testCase; - - /** - * @var string - */ - protected $className; - - /** - * @var array - */ - protected $methods = array(); - - /** - * @var string - */ - protected $mockClassName = ''; - - /** - * @var array - */ - protected $constructorArgs = array(); - - /** - * @var boolean - */ - protected $originalConstructor = TRUE; - - /** - * @var boolean - */ - protected $originalClone = TRUE; - - /** - * @var boolean - */ - protected $autoload = TRUE; - - /** - * @var boolean - */ - protected $cloneArguments = FALSE; - - /** - * @param PHPUnit_Framework_TestCase - * @param string - */ - public function __construct(PHPUnit_Framework_TestCase $testCase, $className) - { - $this->testCase = $testCase; - $this->className = $className; - } - - /** - * Creates a mock object using a fluent interface. - * - * @return PHPUnit_Framework_MockObject_MockObject - */ - public function getMock() - { - return $this->testCase->getMock( - $this->className, - $this->methods, - $this->constructorArgs, - $this->mockClassName, - $this->originalConstructor, - $this->originalClone, - $this->autoload, - $this->cloneArguments - ); - } - - /** - * Creates a mock object for an abstract class using a fluent interface. - * - * @return PHPUnit_Framework_MockObject_MockObject - */ - public function getMockForAbstractClass() - { - return $this->testCase->getMockForAbstractClass( - $this->className, - $this->constructorArgs, - $this->mockClassName, - $this->originalConstructor, - $this->originalClone, - $this->autoload, - $this->methods, - $this->cloneArguments - ); - } - - /** - * Specifies the subset of methods to mock. Default is to mock all of them. - * - * @param array|null $methods - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function setMethods($methods) - { - $this->methods = $methods; - - return $this; - } - - /** - * Specifies the arguments for the constructor. - * - * @param array $args - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function setConstructorArgs(array $args) - { - $this->constructorArgs = $args; - - return $this; - } - - /** - * Specifies the name for the mock class. - * - * @param string $name - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function setMockClassName($name) - { - $this->mockClassName = $name; - - return $this; - } - - /** - * Disables the invocation of the original constructor. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function disableOriginalConstructor() - { - $this->originalConstructor = FALSE; - - return $this; - } - - /** - * Enables the invocation of the original constructor. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 1.2.0 - */ - public function enableOriginalConstructor() - { - $this->originalConstructor = TRUE; - - return $this; - } - - /** - * Disables the invocation of the original clone constructor. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function disableOriginalClone() - { - $this->originalClone = FALSE; - - return $this; - } - - /** - * Enables the invocation of the original clone constructor. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 1.2.0 - */ - public function enableOriginalClone() - { - $this->originalClone = TRUE; - - return $this; - } - - /** - * Disables the use of class autoloading while creating the mock object. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - */ - public function disableAutoload() - { - $this->autoload = FALSE; - - return $this; - } - - /** - * Enables the use of class autoloading while creating the mock object. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 1.2.0 - */ - public function enableAutoload() - { - $this->autoload = TRUE; - - return $this; - } - - /** - * Disables the cloning of arguments passed to mocked methods. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 1.2.0 - */ - public function disableArgumentCloning() - { - $this->cloneArguments = FALSE; - - return $this; - } - - /** - * Enables the cloning of arguments passed to mocked methods. - * - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 1.2.0 - */ - public function enableArgumentCloning() - { - $this->cloneArguments = TRUE; - - return $this; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php deleted file mode 100644 index 20db63ba..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php +++ /dev/null @@ -1,94 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for all mock objects which are generated by - * PHPUnit_Framework_MockObject_Mock. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_MockObject /*extends PHPUnit_Framework_MockObject_Verifiable*/ -{ - /** - * Registers a new expectation in the mock object and returns the match - * object which can be infused with further details. - * - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); - - /** - * Registers a new static expectation in the mock object and returns the - * match object which can be infused with further details. - * - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher - * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker - */ - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); - - /** - * @return PHPUnit_Framework_MockObject_InvocationMocker - */ - public function __phpunit_getInvocationMocker(); - - /** - * @return PHPUnit_Framework_MockObject_InvocationMocker - */ - public static function __phpunit_getStaticInvocationMocker(); - - /** - * Verifies that the current expectation is valid. If everything is OK the - * code should just return, if not it must throw an exception. - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function __phpunit_verify(); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub.php deleted file mode 100644 index db3aebc9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub.php +++ /dev/null @@ -1,71 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * An object that stubs the process of a normal method for a mock object. - * - * The stub object will replace the code for the stubbed method and return a - * specific value instead of the original value. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Stub extends PHPUnit_Framework_SelfDescribing -{ - /** - * Fakes the processing of the invocation $invocation by returning a - * specific value. - * - * @param PHPUnit_Framework_MockObject_Invocation $invocation - * The invocation which was mocked and matched by the current method - * and argument matchers. - * @return mixed - */ - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php deleted file mode 100644 index eedd6a1d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php +++ /dev/null @@ -1,87 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Patrick Müller - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Stubs a method by returning a user-defined stack of values. - * - * @package PHPUnit_MockObject - * @author Patrick Müller - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls implements PHPUnit_Framework_MockObject_Stub -{ - protected $stack; - protected $value; - - public function __construct($stack) - { - $this->stack = $stack; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $this->value = array_shift($this->stack); - - if ($this->value instanceof PHPUnit_Framework_MockObject_Stub) { - $this->value = $this->value->invoke($invocation); - } - - return $this->value; - } - - public function toString() - { - return sprintf( - 'return user-specified value %s', - - PHPUnit_Util_Type::toString($this->value) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php deleted file mode 100644 index 571f9f68..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php +++ /dev/null @@ -1,80 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Oliver Schlicht - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Stubs a method by raising a user-defined exception. - * - * @package PHPUnit_MockObject - * @author Oliver Schlicht - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Stub_Exception implements PHPUnit_Framework_MockObject_Stub -{ - protected $exception; - - public function __construct(Exception $exception) - { - $this->exception = $exception; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - throw $this->exception; - } - - public function toString() - { - return sprintf( - 'raise user-specified exception %s', - - PHPUnit_Util_Type::toString($this->exception) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php deleted file mode 100644 index a6c04477..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Stubs a method by returning a user-defined value. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Stub_MatcherCollection -{ - /** - * Adds a new matcher to the collection which can be used as an expectation - * or a stub. - * - * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher - * Matcher for invocations to mock objects. - */ - public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Return.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Return.php deleted file mode 100644 index bcbfd5ed..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Return.php +++ /dev/null @@ -1,78 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Stubs a method by returning a user-defined value. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Stub_Return implements PHPUnit_Framework_MockObject_Stub -{ - protected $value; - - public function __construct($value) - { - $this->value = $value; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - return $this->value; - } - - public function toString() - { - return sprintf( - 'return user-specified value %s', - - PHPUnit_Util_Type::toString($this->value) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php deleted file mode 100644 index 0060f81f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php +++ /dev/null @@ -1,78 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Stubs a method by returning an argument that was passed to the mocked method. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Stub_ReturnArgument extends PHPUnit_Framework_MockObject_Stub_Return -{ - protected $argumentIndex; - - public function __construct($argumentIndex) - { - $this->argumentIndex = $argumentIndex; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - if (isset($invocation->parameters[$this->argumentIndex])) { - return $invocation->parameters[$this->argumentIndex]; - } else { - return NULL; - } - } - - public function toString() - { - return sprintf('return argument #%d', $this->argumentIndex); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php deleted file mode 100644 index c98c4f78..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php +++ /dev/null @@ -1,94 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.0.0 - */ -class PHPUnit_Framework_MockObject_Stub_ReturnCallback implements PHPUnit_Framework_MockObject_Stub -{ - protected $callback; - - public function __construct($callback) - { - $this->callback = $callback; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - return call_user_func_array($this->callback, $invocation->parameters); - } - - public function toString() - { - if (is_array($this->callback)) { - if (is_object($this->callback[0])) { - $class = get_class($this->callback[0]); - $type = '->'; - } else { - $class = $this->callback[0]; - $type = '::'; - } - - return sprintf( - 'return result of user defined callback %s%s%s() with the ' . - 'passed arguments', - - $class, - $type, - $this->callback[1] - ); - } else { - return 'return result of user defined callback ' . $this->callback . - ' with the passed arguments'; - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnSelf.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnSelf.php deleted file mode 100644 index e686c1bd..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnSelf.php +++ /dev/null @@ -1,76 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @author Kris Wallsmith - * @copyright 2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.1.0 - */ - -/** - * Stubs a method by returning the current object. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @author Kris Wallsmith - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.1.0 - */ -class PHPUnit_Framework_MockObject_Stub_ReturnSelf implements PHPUnit_Framework_MockObject_Stub -{ - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - if (!$invocation instanceof PHPUnit_Framework_MockObject_Invocation_Object) { - throw new PHPUnit_Framework_Exception( - 'The current object can only be returned when mocking an ' . - 'object, not a static class.' - ); - } - - return $invocation->object; - } - - public function toString() - { - return 'return the current object'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnValueMap.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnValueMap.php deleted file mode 100644 index 5280b339..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnValueMap.php +++ /dev/null @@ -1,87 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.1.0 - */ - -/** - * Stubs a method by returning a value from a map. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Class available since Release 1.1.0 - */ -class PHPUnit_Framework_MockObject_Stub_ReturnValueMap implements PHPUnit_Framework_MockObject_Stub -{ - protected $valueMap; - - public function __construct(array $valueMap) - { - $this->valueMap = $valueMap; - } - - public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) - { - $parameterCount = count($invocation->parameters); - - foreach ($this->valueMap as $map) { - if (!is_array($map) || $parameterCount != count($map) - 1) { - continue; - } - - $return = array_pop($map); - if ($invocation->parameters === $map) { - return $return; - } - } - - return NULL; - } - - public function toString() - { - return 'return value from a map'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Verifiable.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Verifiable.php deleted file mode 100644 index 77aa492a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Verifiable.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -/** - * Interface for classes which must verify a given expectation. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since Interface available since Release 1.0.0 - */ -interface PHPUnit_Framework_MockObject_Verifiable -{ - /** - * Verifies that the current expectation is valid. If everything is OK the - * code should just return, if not it must throw an exception. - * - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function verify(); -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/GeneratorTest.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/GeneratorTest.php deleted file mode 100644 index 1a08df3b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/GeneratorTest.php +++ /dev/null @@ -1,89 +0,0 @@ -assertTrue(method_exists($mock, 'testFunction')); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getMock - * @expectedException PHPUnit_Framework_Exception - * @expectedExceptionMessage duplicates: "foo, foo" - */ - public function testGetMockGeneratorFails() - { - $mock = PHPUnit_Framework_MockObject_Generator::getMock('StdClass', array('foo', 'foo')); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getObject - */ - public function testMockObjectHasUniqueIdSoThatTwoMockObjectsOfTheSameClassAreNotEqual() - { - $mock1 = PHPUnit_Framework_MockObject_Generator::getMock('stdClass'); - $mock2 = PHPUnit_Framework_MockObject_Generator::getMock('stdClass'); - $this->assertNotEquals($mock1, $mock2); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass - */ - public function testGetMockForAbstractClassDoesNotFailWhenFakingInterfaces() - { - $mock = PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass('Countable'); - $this->assertTrue(method_exists($mock, 'count')); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass - */ - public function testGetMockForAbstractClassStubbingAbstractClass() - { - $mock = PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass('AbstractMockTestClass'); - $this->assertTrue(method_exists($mock, 'doSomething')); - } - - /** - * @dataProvider getMockForAbstractClassExpectsInvalidArgumentExceptionDataprovider - * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass - * @expectedException PHPUnit_Framework_Exception - */ - public function testGetMockForAbstractClassExpectingInvalidArgumentException($className, $mockClassName) - { - $mock = PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass($className, array(), $mockClassName); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass - * @expectedException PHPUnit_Framework_Exception - */ - public function testGetMockForAbstractClassAnstractClassDoesNotExist() - { - $mock = PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass('Tux'); - } - - /** - * Dataprovider for test "testGetMockForAbstractClassExpectingInvalidArgumentException" - */ - public static function getMockForAbstractClassExpectsInvalidArgumentExceptionDataprovider() - { - return array( - 'className not a string' => array(array(), ''), - 'mockClassName not a string' => array('Countable', new StdClass), - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php deleted file mode 100644 index 1746a314..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php +++ /dev/null @@ -1,152 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Giorgio Sironi - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; - -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Mockable.php'; - -/** - * @package PHPUnit_MockObject - * @author Giorgio Sironi - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/phpunit-mock-objects - * @since File available since Release 1.0.0 - */ -class Framework_MockBuilderTest extends PHPUnit_Framework_TestCase -{ - public function testMockBuilderRequiresClassName() - { - $spec = $this->getMockBuilder('Mockable'); - $mock = $spec->getMock(); - $this->assertTrue($mock instanceof Mockable); - } - - public function testByDefaultMocksAllMethods() - { - $spec = $this->getMockBuilder('Mockable'); - $mock = $spec->getMock(); - $this->assertNull($mock->mockableMethod()); - $this->assertNull($mock->anotherMockableMethod()); - } - - public function testMethodsToMockCanBeSpecified() - { - $spec = $this->getMockBuilder('Mockable'); - $spec->setMethods(array('mockableMethod')); - $mock = $spec->getMock(); - $this->assertNull($mock->mockableMethod()); - $this->assertTrue($mock->anotherMockableMethod()); - } - - public function testByDefaultDoesNotPassArgumentsToTheConstructor() - { - $spec = $this->getMockBuilder('Mockable'); - $mock = $spec->getMock(); - $this->assertEquals(array(NULL, NULL), $mock->constructorArgs); - } - - public function testMockClassNameCanBeSpecified() - { - $spec = $this->getMockBuilder('Mockable'); - $spec->setMockClassName('ACustomClassName'); - $mock = $spec->getMock(); - $this->assertTrue($mock instanceof ACustomClassName); - } - - public function testConstructorArgumentsCanBeSpecified() - { - $spec = $this->getMockBuilder('Mockable'); - $spec->setConstructorArgs($expected = array(23, 42)); - $mock = $spec->getMock(); - $this->assertEquals($expected, $mock->constructorArgs); - } - - public function testOriginalConstructorCanBeDisabled() - { - $spec = $this->getMockBuilder('Mockable'); - $spec->disableOriginalConstructor(); - $mock = $spec->getMock(); - $this->assertNull($mock->constructorArgs); - } - - public function testByDefaultOriginalCloneIsPreserved() - { - $spec = $this->getMockBuilder('Mockable'); - $mock = $spec->getMock(); - $cloned = clone $mock; - $this->assertTrue($cloned->cloned); - } - - public function testOriginalCloneCanBeDisabled() - { - $spec = $this->getMockBuilder('Mockable'); - $spec->disableOriginalClone(); - $mock = $spec->getMock(); - $mock->cloned = FALSE; - $cloned = clone $mock; - $this->assertFalse($cloned->cloned); - } - - public function testCallingAutoloadCanBeDisabled() - { - // it is not clear to me how to test this nor the difference - // between calling it or not - $this->markTestIncomplete(); - } - - public function testProvidesAFluentInterface() - { - $spec = $this->getMockBuilder('Mockable') - ->setMethods(array('mockableMethod')) - ->setConstructorArgs(array()) - ->setMockClassName('DummyClassName') - ->disableOriginalConstructor() - ->disableOriginalClone() - ->disableAutoload(); - $this->assertTrue($spec instanceof PHPUnit_Framework_MockObject_MockBuilder); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/ObjectTest.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/ObjectTest.php deleted file mode 100644 index b28b1246..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/ObjectTest.php +++ /dev/null @@ -1,82 +0,0 @@ -assertSame('FooClass', $invocation->className); - } - - public function testAllowToGetMethodNameSetInConstructor() - { - $invocation = new PHPUnit_Framework_MockObject_Invocation_Object( - 'FooClass', - 'FooMethod', - array('an_argument'), - new StdClass); - - $this->assertSame('FooMethod', $invocation->methodName); - } - - public function testAllowToGetObjectSetInConstructor() - { - $expectedObject = new StdClass; - - $invocation = new PHPUnit_Framework_MockObject_Invocation_Object( - 'FooClass', - 'FooMethod', - array('an_argument'), - $expectedObject); - - $this->assertSame($expectedObject, $invocation->object); - } - - public function testAllowToGetMethodParametersSetInConstructor() - { - $expectedParameters = array( - 'foo', 5, array('a', 'b'), new StdClass, NULL, FALSE - ); - - $invocation = new PHPUnit_Framework_MockObject_Invocation_Object( - 'FooClass', - 'FooMethod', - $expectedParameters, - new StdClass - ); - - $this->assertSame($expectedParameters, $invocation->parameters); - } - - public function testConstructorAllowToSetFlagCloneObjectsInParameters() - { - $parameters = array(new StdClass); - $cloneObjects = TRUE; - - $invocation = new PHPUnit_Framework_MockObject_Invocation_Object( - 'FooClass', - 'FooMethod', - $parameters, - new StdClass, - $cloneObjects - ); - - $this->assertEquals($parameters, $invocation->parameters); - $this->assertNotSame($parameters, $invocation->parameters); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/StaticTest.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/StaticTest.php deleted file mode 100644 index 09e6e3c6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/Invocation/StaticTest.php +++ /dev/null @@ -1,52 +0,0 @@ -assertSame('FooClass', $invocation->className); - } - - public function testAllowToGetMethodNameSetInConstructor() - { - $invocation = new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', array('an_argument')); - - $this->assertSame('FooMethod', $invocation->methodName); - } - - public function testAllowToGetMethodParametersSetInConstructor() - { - $expectedParameters = array( - 'foo', 5, array('a', 'b'), new StdClass, NULL, FALSE - ); - - $invocation = new PHPUnit_Framework_MockObject_Invocation_Static( - 'FooClass', 'FooMethod', $expectedParameters - ); - - $this->assertSame($expectedParameters, $invocation->parameters); - } - - public function testConstructorAllowToSetFlagCloneObjectsInParameters() - { - $parameters = array(new StdClass); - $cloneObjects = TRUE; - - $invocation = new PHPUnit_Framework_MockObject_Invocation_Static( - 'FooClass', - 'FooMethod', - $parameters, - $cloneObjects - ); - - $this->assertEquals($parameters, $invocation->parameters); - $this->assertNotSame($parameters, $invocation->parameters); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class.phpt deleted file mode 100644 index 1df7d977..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class.phpt +++ /dev/null @@ -1,137 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function baz(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'baz', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_clone.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_clone.phpt deleted file mode 100644 index 421192eb..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_clone.phpt +++ /dev/null @@ -1,91 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - parent::__clone(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_constructor.phpt deleted file mode 100644 index 74ae1c74..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_call_parent_constructor.phpt +++ /dev/null @@ -1,90 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_clone.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_clone.phpt deleted file mode 100644 index 512400b7..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_clone.phpt +++ /dev/null @@ -1,90 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', FALSE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_constructor.phpt deleted file mode 100644 index 74ae1c74..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_dont_call_parent_constructor.phpt +++ /dev/null @@ -1,90 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_call_parent_constructor.phpt deleted file mode 100644 index b62504ad..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_call_parent_constructor.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt deleted file mode 100644 index b62504ad..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_partial.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_partial.phpt deleted file mode 100644 index c89a7149..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/class_partial.phpt +++ /dev/null @@ -1,116 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array('bar'), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/interface.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/interface.phpt deleted file mode 100644 index e322cbe0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/interface.phpt +++ /dev/null @@ -1,110 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo implements PHPUnit_Framework_MockObject_MockObject, Foo -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_object_clone_object.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_object_clone_object.phpt deleted file mode 100644 index 9aafafae..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_object_clone_object.phpt +++ /dev/null @@ -1,139 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function baz(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'Foo', 'baz', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_static_clone_object.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_static_clone_object.phpt deleted file mode 100644 index d5300914..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/invocation_static_clone_object.phpt +++ /dev/null @@ -1,139 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public static function bar(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = self::__phpunit_getStaticInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Static( - 'Foo', 'bar', $arguments, TRUE - ) - ); - - return $result; - } - - public static function baz(Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = self::__phpunit_getStaticInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Static( - 'Foo', 'baz', $arguments, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class.phpt deleted file mode 100644 index 22383ae7..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class.phpt +++ /dev/null @@ -1,140 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(NS\Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'NS\Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function baz(NS\Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'NS\Foo', 'baz', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_clone.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_clone.phpt deleted file mode 100644 index d82978ca..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_clone.phpt +++ /dev/null @@ -1,93 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - parent::__clone(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_constructor.phpt deleted file mode 100644 index 0bbbc71c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_call_parent_constructor.phpt +++ /dev/null @@ -1,92 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_clone.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_clone.phpt deleted file mode 100644 index 7829882d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_clone.phpt +++ /dev/null @@ -1,92 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', FALSE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt deleted file mode 100644 index 0bbbc71c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt +++ /dev/null @@ -1,92 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt deleted file mode 100644 index 901629c2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt +++ /dev/null @@ -1,97 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt deleted file mode 100644 index 901629c2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt +++ /dev/null @@ -1,97 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_partial.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_partial.phpt deleted file mode 100644 index 403a14b4..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_class_partial.phpt +++ /dev/null @@ -1,118 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array('bar'), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(NS\Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'NS\Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_interface.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_interface.phpt deleted file mode 100644 index f2cf88f2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/namespaced_interface.phpt +++ /dev/null @@ -1,112 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class MockFoo implements PHPUnit_Framework_MockObject_MockObject, NS\Foo -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function bar(NS\Foo $foo) - { - $arguments = array($foo); - $count = func_num_args(); - - if ($count > 1) { - $_arguments = func_get_args(); - - for ($i = 1; $i < $count; $i++) { - $arguments[] = $_arguments[$i]; - } - } - - $result = $this->__phpunit_getInvocationMocker()->invoke( - new PHPUnit_Framework_MockObject_Invocation_Object( - 'NS\Foo', 'bar', $arguments, $this, TRUE - ) - ); - - return $result; - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class.phpt deleted file mode 100644 index 01f1a5f5..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class.phpt +++ /dev/null @@ -1,87 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -class Foo -{ -} - -class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace.phpt deleted file mode 100644 index c05442a7..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -namespace NS { - -class Foo -{ -} - -} - -namespace { - -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt deleted file mode 100644 index 1f1f535f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt +++ /dev/null @@ -1,95 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE) ---FILE-- - ---EXPECTF-- -namespace NS { - -class Foo -{ -} - -} - -namespace { - -class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject -{ - private static $__phpunit_staticInvocationMocker; - private $__phpunit_invocationMocker; - private $__phpunit_id; - private static $__phpunit_nextId = 0; - - public function __clone() - { - $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); - $this->__phpunit_setId(); - } - - public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return $this->__phpunit_getInvocationMocker()->expects($matcher); - } - - public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) - { - return self::__phpunit_getStaticInvocationMocker()->expects($matcher); - } - - public function __phpunit_getInvocationMocker() - { - if ($this->__phpunit_invocationMocker === NULL) { - $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return $this->__phpunit_invocationMocker; - } - - public static function __phpunit_getStaticInvocationMocker() - { - if (self::$__phpunit_staticInvocationMocker === NULL) { - self::$__phpunit_staticInvocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker; - } - - return self::$__phpunit_staticInvocationMocker; - } - - public function __phpunit_hasMatchers() - { - return self::__phpunit_getStaticInvocationMocker()->hasMatchers() || - $this->__phpunit_getInvocationMocker()->hasMatchers(); - } - - public function __phpunit_verify() - { - self::__phpunit_getStaticInvocationMocker()->verify(); - $this->__phpunit_getInvocationMocker()->verify(); - } - - public function __phpunit_cleanup() - { - self::$__phpunit_staticInvocationMocker = NULL; - $this->__phpunit_invocationMocker = NULL; - $this->__phpunit_id = NULL; - } - - public function __phpunit_setId() - { - $this->__phpunit_id = sprintf('%s#%s', get_class($this), self::$__phpunit_nextId++); - } -} - -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt deleted file mode 100644 index 52c9839e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch') ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -class GoogleSearch extends \SOAPClient -{ - public function __construct($wsdl, array $options) - { - parent::__construct('%s/GoogleSearch.wsdl', $options); - } - - public function doGetCachedPage($key, $url) - { - } - - public function doSpellingSuggestion($key, $phrase) - { - } - - public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe) - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_namespace.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_namespace.phpt deleted file mode 100644 index b3075c54..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_namespace.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch') ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -namespace My\Space; - -class GoogleSearch extends \SOAPClient -{ - public function __construct($wsdl, array $options) - { - parent::__construct('%s/GoogleSearch.wsdl', $options); - } - - public function doGetCachedPage($key, $url) - { - } - - public function doSpellingSuggestion($key, $phrase) - { - } - - public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe) - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_partial.phpt b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_partial.phpt deleted file mode 100644 index 4a69f266..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_partial.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch')) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -class GoogleSearch extends \SOAPClient -{ - public function __construct($wsdl, array $options) - { - parent::__construct('%s/GoogleSearch.wsdl', $options); - } - - public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe) - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php deleted file mode 100644 index 12b80610..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php +++ /dev/null @@ -1,552 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; - -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'AbstractMockTestClass.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'AnInterface.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'FunctionCallback.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MethodCallback.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'PartialMockTestClass.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'SomeClass.php'; -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'StaticMockTestClass.php'; - -/** - * - * - * @package PHPUnit_MockObject - * @author Sebastian Bergmann - * @author Patrick Mueller - * @author Frank Kleine - * @copyright 2010-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @version Release: @package_version@ - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class Framework_MockObjectTest extends PHPUnit_Framework_TestCase -{ - public function testMockedMethodIsNeverCalled() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->never()) - ->method('doSomething'); - } - - public function testMockedMethodIsNotCalledWhenExpectsAnyWithParameter() - { - $mock = $this->getMock('SomeClass'); - $mock->expects($this->any()) - ->method('doSomethingElse') - ->with('someArg'); - } - - public function testMockedMethodIsCalledAtLeastOnce() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->atLeastOnce()) - ->method('doSomething'); - - $mock->doSomething(); - } - - public function testMockedMethodIsCalledAtLeastOnce2() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->atLeastOnce()) - ->method('doSomething'); - - $mock->doSomething(); - $mock->doSomething(); - } - - public function testMockedMethodIsCalledOnce() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->once()) - ->method('doSomething'); - - $mock->doSomething(); - } - - public function testMockedMethodIsCalledOnceWithParameter() - { - $mock = $this->getMock('SomeClass'); - $mock->expects($this->once()) - ->method('doSomethingElse') - ->with($this->equalTo('something')); - - $mock->doSomethingElse('something'); - } - - public function testMockedMethodIsCalledExactly() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->exactly(2)) - ->method('doSomething'); - - $mock->doSomething(); - $mock->doSomething(); - } - - public function testStubbedException() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->any()) - ->method('doSomething') - ->will($this->throwException(new Exception)); - - try { - $mock->doSomething(); - } - - catch (Exception $e) { - return; - } - - $this->fail(); - } - - public function testStubbedReturnValue() - { - $mock = $this->getMock('AnInterface'); - $mock->expects($this->any()) - ->method('doSomething') - ->will($this->returnValue('something')); - - $this->assertEquals('something', $mock->doSomething()); - } - - public function testStubbedReturnValueMap() - { - $map = array( - array('a', 'b', 'c', 'd'), - array('e', 'f', 'g', 'h') - ); - - $mock = $this->getMock('AnInterface'); - $mock->expects($this->any()) - ->method('doSomething') - ->will($this->returnValueMap($map)); - - $this->assertEquals('d', $mock->doSomething('a', 'b', 'c')); - $this->assertEquals('h', $mock->doSomething('e', 'f', 'g')); - $this->assertEquals(NULL, $mock->doSomething('foo', 'bar')); - } - - public function testFunctionCallback() - { - $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', FALSE); - $mock->expects($this->once()) - ->method('doSomething') - ->will($this->returnCallback('functionCallback')); - - $this->assertEquals('pass', $mock->doSomething('foo', 'bar')); - } - - public function testStaticMethodCallback() - { - $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', FALSE); - $mock->expects($this->once()) - ->method('doSomething') - ->will($this->returnCallback(array('MethodCallback', 'staticCallback'))); - - $this->assertEquals('pass', $mock->doSomething('foo', 'bar')); - } - - public function testPublicMethodCallback() - { - $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', FALSE); - $mock->expects($this->once()) - ->method('doSomething') - ->will($this->returnCallback(array(new MethodCallback, 'nonStaticCallback'))); - - $this->assertEquals('pass', $mock->doSomething('foo', 'bar')); - } - - public function testMockClassOnlyGeneratedOnce() - { - $mock1 = $this->getMock('AnInterface'); - $mock2 = $this->getMock('AnInterface'); - - $this->assertEquals(get_class($mock1), get_class($mock2)); - } - - public function testMockClassDifferentForPartialMocks() - { - $mock1 = $this->getMock('PartialMockTestClass'); - $mock2 = $this->getMock('PartialMockTestClass', array('doSomething')); - $mock3 = $this->getMock('PartialMockTestClass', array('doSomething')); - $mock4 = $this->getMock('PartialMockTestClass', array('doAnotherThing')); - $mock5 = $this->getMock('PartialMockTestClass', array('doAnotherThing')); - - $this->assertNotEquals(get_class($mock1), get_class($mock2)); - $this->assertNotEquals(get_class($mock1), get_class($mock3)); - $this->assertNotEquals(get_class($mock1), get_class($mock4)); - $this->assertNotEquals(get_class($mock1), get_class($mock5)); - $this->assertEquals(get_class($mock2), get_class($mock3)); - $this->assertNotEquals(get_class($mock2), get_class($mock4)); - $this->assertNotEquals(get_class($mock2), get_class($mock5)); - $this->assertEquals(get_class($mock4), get_class($mock5)); - } - - public function testMockClassStoreOverrulable() - { - $mock1 = $this->getMock('PartialMockTestClass'); - $mock2 = $this->getMock('PartialMockTestClass', array(), array(), 'MyMockClassNameForPartialMockTestClass1'); - $mock3 = $this->getMock('PartialMockTestClass'); - $mock4 = $this->getMock('PartialMockTestClass', array('doSomething'), array(), 'AnotherMockClassNameForPartialMockTestClass'); - $mock5 = $this->getMock('PartialMockTestClass', array(), array(), 'MyMockClassNameForPartialMockTestClass2'); - - $this->assertNotEquals(get_class($mock1), get_class($mock2)); - $this->assertEquals(get_class($mock1), get_class($mock3)); - $this->assertNotEquals(get_class($mock1), get_class($mock4)); - $this->assertNotEquals(get_class($mock2), get_class($mock3)); - $this->assertNotEquals(get_class($mock2), get_class($mock4)); - $this->assertNotEquals(get_class($mock2), get_class($mock5)); - $this->assertNotEquals(get_class($mock3), get_class($mock4)); - $this->assertNotEquals(get_class($mock3), get_class($mock5)); - $this->assertNotEquals(get_class($mock4), get_class($mock5)); - } - - /** - * @covers PHPUnit_Framework_MockObject_Generator::getMock - */ - public function testGetMockWithFixedClassNameCanProduceTheSameMockTwice() - { - $mock = $this->getMockBuilder('StdClass')->setMockClassName('FixedName')->getMock(); - $mock = $this->getMockBuilder('StdClass')->setMockClassName('FixedName')->getMock(); - $this->assertInstanceOf('StdClass', $mock); - } - - public function testOriginalConstructorSettingConsidered() - { - $mock1 = $this->getMock('PartialMockTestClass'); - $mock2 = $this->getMock('PartialMockTestClass', array(), array(), '', FALSE); - - $this->assertTrue($mock1->constructorCalled); - $this->assertFalse($mock2->constructorCalled); - } - - public function testOriginalCloneSettingConsidered() - { - $mock1 = $this->getMock('PartialMockTestClass'); - $mock2 = $this->getMock('PartialMockTestClass', array(), array(), '', TRUE, FALSE); - - $this->assertNotEquals(get_class($mock1), get_class($mock2)); - } - - public function testStubbedReturnValueForStaticMethod() - { - $this->getMockClass( - 'StaticMockTestClass', - array('doSomething'), - array(), - 'StaticMockTestClassMock' - ); - - StaticMockTestClassMock::staticExpects($this->any()) - ->method('doSomething') - ->will($this->returnValue('something')); - - $this->assertEquals( - 'something', StaticMockTestClassMock::doSomething() - ); - } - - public function testStubbedReturnValueForStaticMethod2() - { - $this->getMockClass( - 'StaticMockTestClass', - array('doSomething'), - array(), - 'StaticMockTestClassMock2' - ); - - StaticMockTestClassMock2::staticExpects($this->any()) - ->method('doSomething') - ->will($this->returnValue('something')); - - $this->assertEquals( - 'something', StaticMockTestClassMock2::doSomethingElse() - ); - } - - public function testGetMockForAbstractClass() - { - $mock = $this->getMock('AbstractMockTestClass'); - $mock->expects($this->never()) - ->method('doSomething'); - } - - public function testStaticMethodCallWithArgumentCloningEnabled() - { - $expectedObject = new StdClass; - - $this->getMockClass( - 'StaticMockTestClass', - array('doSomething'), - array(), - 'StaticMockTestClassMock3', - FALSE, - TRUE, - TRUE, - TRUE - ); - - $actualArguments = array(); - - StaticMockTestClassMock3::staticExpects($this->any()) - ->method('doSomething') - ->will($this->returnCallback(function() use (&$actualArguments) { - $actualArguments = func_get_args(); - })); - - StaticMockTestClassMock3::doSomething($expectedObject); - - $this->assertEquals(1, count($actualArguments)); - $this->assertNotSame($expectedObject, $actualArguments[0]); - } - - public function testStaticMethodCallWithArgumentCloningDisabled() - { - $expectedObject = new StdClass; - - $this->getMockClass( - 'StaticMockTestClass', - array('doSomething'), - array(), - 'StaticMockTestClassMock4', - FALSE, - TRUE, - TRUE, - FALSE - ); - - $actualArguments = array(); - - StaticMockTestClassMock4::staticExpects($this->any()) - ->method('doSomething') - ->will($this->returnCallback(function() use (&$actualArguments) { - $actualArguments = func_get_args(); - })); - - StaticMockTestClassMock4::doSomething($expectedObject); - - $this->assertEquals(1, count($actualArguments)); - $this->assertEquals($expectedObject, $actualArguments[0]); - $this->assertSame($expectedObject, $actualArguments[0]); - } - - public function testObjectMethodCallWithArgumentCloningEnabled() - { - $expectedObject = new StdClass; - - $mock = $this->getMockBuilder('SomeClass') - ->setMethods(array('doSomethingElse')) - ->enableArgumentCloning() - ->getMock(); - - $actualArguments = array(); - - $mock->expects($this->any()) - ->method('doSomethingElse') - ->will($this->returnCallback(function() use (&$actualArguments) { - $actualArguments = func_get_args(); - })); - - $mock->doSomethingElse($expectedObject); - - $this->assertEquals(1, count($actualArguments)); - $this->assertEquals($expectedObject, $actualArguments[0]); - $this->assertNotSame($expectedObject, $actualArguments[0]); - } - - public function testObjectMethodCallWithArgumentCloningDisabled() - { - $expectedObject = new StdClass; - - $mock = $this->getMockBuilder('SomeClass') - ->setMethods(array('doSomethingElse')) - ->disableArgumentCloning() - ->getMock(); - - $actualArguments = array(); - - $mock->expects($this->any()) - ->method('doSomethingElse') - ->will($this->returnCallback(function() use (&$actualArguments) { - $actualArguments = func_get_args(); - })); - - $mock->doSomethingElse($expectedObject); - - $this->assertEquals(1, count($actualArguments)); - $this->assertNotSame($expectedObject, $actualArguments[0]); - } - - public function testVerificationOfMethodNameFailsWithoutParameters() - { - $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', TRUE, TRUE, TRUE); - $mock->expects($this->once()) - ->method('right'); - - $mock->wrong(); - try { - $mock->__phpunit_verify(); - $this->fail('Expected exception'); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertSame( - "Expectation failed for method name is equal to when invoked 1 time(s).\n" - . 'Method was expected to be called 1 times, actually called 0 times.', - $e->getMessage() - ); - } - - $this->resetMockObjects(); - } - - public function testVerificationOfMethodNameFailsWithParameters() - { - $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', TRUE, TRUE, TRUE); - $mock->expects($this->once()) - ->method('right'); - - $mock->wrong(); - try { - $mock->__phpunit_verify(); - $this->fail('Expected exception'); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertSame( - "Expectation failed for method name is equal to when invoked 1 time(s).\n" - . 'Method was expected to be called 1 times, actually called 0 times.', - $e->getMessage() - ); - } - - $this->resetMockObjects(); - } - - public function testVerificationOfNeverFailsWithEmptyParameters() - { - $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', TRUE, TRUE, TRUE); - $mock->expects($this->never()) - ->method('right') - ->with(); - - try { - $mock->right(); - $this->fail('Expected exception'); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertSame( - 'SomeClass::right() was not expected to be called.', - $e->getMessage() - ); - } - - $this->resetMockObjects(); - } - - public function testVerificationOfNeverFailsWithAnyParameters() - { - $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', TRUE, TRUE, TRUE); - $mock->expects($this->never()) - ->method('right') - ->withAnyParameters(); - - try { - $mock->right(); - $this->fail('Expected exception'); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertSame( - 'SomeClass::right() was not expected to be called.', - $e->getMessage() - ); - } - - $this->resetMockObjects(); - } - - /** - * @requires extension soap - */ - public function testCreateMockFromWsdl() - { - $mock = $this->getMockFromWsdl(__DIR__ . '/_files/GoogleSearch.wsdl', 'WsdlMock'); - $this->assertStringStartsWith( - 'Mock_WsdlMock_', - get_class($mock) - ); - } - - /** - * @requires extension soap - */ - public function testCreateNamespacedMockFromWsdl() - { - $mock = $this->getMockFromWsdl(__DIR__ . '/_files/GoogleSearch.wsdl', 'My\\Space\\WsdlMock'); - $this->assertStringStartsWith( - 'Mock_WsdlMock_', - get_class($mock) - ); - } - - /** - * @requires extension soap - */ - public function testCreateTwoMocksOfOneWsdlFile() - { - $mock = $this->getMockFromWsdl(__DIR__ . '/_files/GoogleSearch.wsdl'); - $mock = $this->getMockFromWsdl(__DIR__ . '/_files/GoogleSearch.wsdl'); - } - - private function resetMockObjects() - { - $refl = new ReflectionObject($this); - $refl = $refl->getParentClass(); - $prop = $refl->getProperty('mockObjects'); - $prop->setAccessible(true); - $prop->setValue($this, array()); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/AbstractMockTestClass.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/AbstractMockTestClass.php deleted file mode 100644 index 1f2641f1..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/AbstractMockTestClass.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/MethodCallback.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/MethodCallback.php deleted file mode 100644 index f8db62ed..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/MethodCallback.php +++ /dev/null @@ -1,21 +0,0 @@ -constructorArgs = array($arg1, $arg2); - } - - public function mockableMethod() - { - // something different from NULL - return TRUE; - } - - public function anotherMockableMethod() - { - // something different from NULL - return TRUE; - } - - public function __clone() - { - $this->cloned = TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/PartialMockTestClass.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/PartialMockTestClass.php deleted file mode 100644 index 1b119f12..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/PartialMockTestClass.php +++ /dev/null @@ -1,18 +0,0 @@ -constructorCalled = TRUE; - } - - public function doSomething() - { - } - - public function doAnotherThing() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/SomeClass.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/SomeClass.php deleted file mode 100644 index 2cd53b21..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/SomeClass.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php b/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php deleted file mode 100644 index bf9d520d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php +++ /dev/null @@ -1,22 +0,0 @@ -getTokens(); - - if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE || - $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { - - $phpcsFile->addError( - 'Concatenation operator must be surrounded by whitespace', - $stackPtr - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/ruleset.xml b/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/ruleset.xml deleted file mode 100644 index 402f2140..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/PHPCS/ruleset.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - Sebastian Bergmann's coding standard - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/phpmd.xml b/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/phpmd.xml deleted file mode 100644 index 23ecb8b0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/build/phpmd.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Sebastian Bergmann's ruleset - - - - - - - - - - - - - - - - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/composer.json b/includes/kohana/vendor/phpunit/phpunit-mock-objects/composer.json deleted file mode 100644 index 4ed97c10..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/composer.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "phpunit/phpunit-mock-objects", - "description": "Mock Object library for PHPUnit", - "type": "library", - "keywords": [ - "xunit", - "mock" - ], - "homepage": "http://www.phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "version": "1.2.1", - "time": "2012-10-05", - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-text-template": ">=1.1.1@stable", - "ext-reflection": "*", - "ext-spl": "*" - }, - "suggest": { - "ext-soap": "*" - }, - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "include-path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/package-composer.json b/includes/kohana/vendor/phpunit/phpunit-mock-objects/package-composer.json deleted file mode 100644 index bff1cf45..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/package-composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "phpunit/phpunit-mock-objects", - "keywords": [ "xunit", "mock" ], - "license": "BSD-3-Clause", - "homepage": "http://www.phpunit.de/", - "dependency_map": { - "pear.phpunit.de/Text_Template": "phpunit/php-text-template" - }, - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", - "irc": "irc://irc.freenode.net/phpunit" - }, - "autoload": { - "classmap": [ "PHPUnit/" ] - }, - "include_path": [ - "" - ] -} diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/package.xml b/includes/kohana/vendor/phpunit/phpunit-mock-objects/package.xml deleted file mode 100644 index 85248add..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/package.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - PHPUnit_MockObject - pear.phpunit.de - Mock Object library for PHPUnit - Mock Object library for PHPUnit - - Sebastian Bergmann - sb - sb@sebastian-bergmann.de - yes - - 2012-10-05 - - 1.2.1 - 1.2.0 - - - stable - stable - - The BSD 3-Clause License - http://github.com/sebastianbergmann/phpunit-mock-objects/blob/master/README.markdown - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.3.3 - - - 1.9.4 - - - Text_Template - pear.phpunit.de - 1.1.1 - - - reflection - - - spl - - - - - soap - - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist b/includes/kohana/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist deleted file mode 100644 index 0ce22dff..00000000 --- a/includes/kohana/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - Tests - Tests - - - - - - - - - - - - PHPUnit - - PHPUnit/Framework/MockObject/Autoload.php - - - - diff --git a/includes/kohana/vendor/phpunit/phpunit/CONTRIBUTING.md b/includes/kohana/vendor/phpunit/phpunit/CONTRIBUTING.md deleted file mode 100644 index 156d2f09..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/CONTRIBUTING.md +++ /dev/null @@ -1,55 +0,0 @@ -Contributing to PHPUnit -======================= - -Contributions to PHPUnit, its related modules, and its documentation are always welcome. You make our lifes easier by sending us your contributions through GitHub pull requests. - -Please note that the `3.6.` branch is closed for features and that pull requests should to be based on `master` or the `3.7.` once it exists. - -We are trying to keep backwards compatibility breaks in PHPUnit 3.7 to an absolute minimum so please take this into account when proposing changes. - -Due to time constraints, we are not always able to respond as quickly as we would like. Please do not take delays personal and feel free to remind us here or on IRC if you feel that we forgot to respond. - -Using PHPUnit From a Git Checkout ---------------------------------- - -The following commands can be used to perform the initial checkout of PHPUnit and its dependencies from Git: - - mkdir phpunit && cd phpunit - git clone git://github.com/sebastianbergmann/phpunit.git - git clone git://github.com/sebastianbergmann/dbunit.git - git clone git://github.com/sebastianbergmann/php-file-iterator.git - git clone git://github.com/sebastianbergmann/php-text-template.git - git clone git://github.com/sebastianbergmann/php-code-coverage.git - git clone git://github.com/sebastianbergmann/php-token-stream.git - git clone git://github.com/sebastianbergmann/php-timer.git - git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git - git clone git://github.com/sebastianbergmann/phpunit-selenium.git - git clone git://github.com/sebastianbergmann/phpunit-story.git - git clone git://github.com/sebastianbergmann/php-invoker.git - -The `dbunit`, `php-code-coverage`, `php-file-iterator`, `php-text-template`, `php-timer`, `php-token-stream`, `phpunit`, `phpunit-mock-objects`, `phpunit-selenium`, `phpunit-story`, and `php-invoker` directories need to be added to the `include_path`. - -In addition to the checkouts listed above, the YAML component that is provided by the Symfony project is required: - - pear install pear.symfony.com/Yaml - -The `phpunit/phpunit.php` script can be used to invoke the PHPUnit test runner. - -Running the test suite(s) -------------------------- - -It is not possible to use a system-wide installed version of PHPUnit to run the test suite of a Git checkout. Because of that is is necessary to change the `include_paths` as described below. - -This can be achieved with a small wrapper script designed to work with every module in the PHPUnit stack. - -Note that you might have to change the path to your PEAR installation here pointing to `/usr/local/lib/php`. You can find it using `pear config-show | grep php_dir`. - -### Linux / MacOS X - - #!/bin/bash - php -d include_path='.:../phpunit/:../dbunit/:../php-code-coverage/:../php-file-iterator/:../php-invoker/:../php-text-template/:../php-timer:../php-token-stream:../phpunit-mock-objects/:../phpunit-selenium/:../phpunit-story/:/usr/local/lib/php' ../phpunit/phpunit.php $* - -### Windows - - @echo off - php -d include_path='.;../phpunit/;../dbunit/;../php-code-coverage/;../php-file-iterator/;../php-invoker/;../php-text-template/;../php-timer;../php-token-stream;../phpunit-mock-objects/;../phpunit-selenium/;../phpunit-story/;C:/Program Files/PHP/pear' ../phpunit/phpunit.php %* diff --git a/includes/kohana/vendor/phpunit/phpunit/ChangeLog.md b/includes/kohana/vendor/phpunit/phpunit/ChangeLog.md deleted file mode 100644 index 01b7741d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/ChangeLog.md +++ /dev/null @@ -1,82 +0,0 @@ -PHPUnit 3.7 -=========== - -This is the list of changes for the PHPUnit 3.7 release series. - -PHPUnit 3.7.8 -------------- - -* Fixed #688: Invoke autoloader when checking for `Symfony\Component\Yaml\Dumper`. - -PHPUnit 3.7.7 -------------- - -* Added missing file to PEAR package. - -PHPUnit 3.7.6 -------------- - -* Fixed #682: `phpunit` script appears in stacktrace (when PHPUnit is installed through Composer). - -PHPUnit 3.7.5 -------------- - -* PHPUnit now uses `$_SERVER['SCRIPT_NAME']` instead of `$_SERVER['_']` to filter the `phpunit` script (as the latter is not set when PHPUnit is invoked from Apache Ant's `` task, for instance). - -PHPUnit 3.7.4 -------------- - -* Fixed #682: `phpunit` script appears in stacktrace. - -PHPUnit 3.7.3 -------------- - -* Improvements to running PHPUnit from a PHAR. - -PHPUnit 3.7.2 -------------- - -* Implemented #656: Always clean up mock objects (and free up memory). -* Implemented #664: Do not rely on autoloader class map to populate blacklist. -* Added the `addUncoveredFilesFromWhitelist` configuration setting back in. -* Fixed #655: Reverted 'More than two positional arguments provided' check as it turned out to be a BC issue. -* Disable token caching (in PHP_TokenStream, used by PHP_CodeCoverage) by default (to reduce memory footprint). - -PHPUnit 3.7.1 -------------- - -* The version number is now displayed when using PHPUnit from a Composer install or Git checkout. - -PHPUnit 3.7.0 -------------- - -* PHPUnit 3.7 is only supported on PHP 5.3.3 (or later) and PHP 5.4.7 (or later) is highly recommended. -* Implemented #200: When using process-isolation don't die silently when unserializing the test result fails. -* Implemented #206: Added a `callback` constraint that is useful for making complex assertions. -* Implemented #207: Restore current working directory if is changed by a test case. -* Implemented #208: Added `--test-suffix` that allows specifying which filename suffixes are recognised by PHPUnit. -* Implemented #295: `assertArrayHasKey()` and `assertArrayNotHasKey()` now work with objects that implement ArrayAccess. -* Implemented #333: Improved reporting when there are unused CLI arguments to avoid misconceptions. -* Implemented #377: Show messages and stracktraces in JSON output for skipped and incomplete tests. -* Implemented #424: Added `assertJson*` functions that work like the existing `assertXml*` functions. -* Implemented #492: PHPUnit now provides a `configuration.xsd` schema file at [http://schema.phpunit.de/configuration.xsd]() that can be used to validate your `phpunit.xml` and `phpunit.xml.dist` configuration files. -* Implemented #504: Expanded the `@requires` annotation to allow for checking the existence of functions and extensions using multiple `@requires function name` statements. -* Implemented #508 #86: `@expectedExceptionCode` and `@expectedExceptionMessage` can now use constants like `Classname::CONST` as their parameters. They will get evaluated if the class constant exists and used for comparison so test authors can avoid duplication. -* Implemented #512: Test listeners now trigger one autoload call instead of being silently ignored when the class was not loaded. -* Implemented #514: Failed `assertStringMatchesFormat()` calls now produce a better readable diff by only marking lines as different that don't match the format specifiers. -* Implemented #515: Added `assertContainsOnlyInstancesOf()` to help checking Collection objects and arrays with a descriptive assertion. -* Implemented #561: When an `@expectedException` fails it now shows the message of the thrown exception to ease debugging. -* Implemented #586: Improved reporting of exceptions by printing out the previous exception names, messages and traces. -* The `@requires` annotation can now be used on the class DocBlock. Required versions can be overridden in the methods annotation, required functions and extensions will be merged. -* Added `processUncoveredFilesFromWhitelist` configuration setting. When enabled, uncovered whitelisted files are processed to properly calculate the number of executable lines. -* Fixed #322 #320 thanks to #607: Commandline option now override group/exclude settings in `phpunit.xml` -* Fixed #440: Possible crash when using `--process-isolation` with PHP 5.3 and `detect_unicode=on`. -* Fixed #523: `assertAttributeEquals()` now works with classes extending internal classes like `ArrayIterator`. -* Fixed #581: Generating a diffs could add extra newlines in Windows. -* Fixed #636, #631: Using Selenium in combination with autoloaders that `die()` or produce errors when a class cannot be found caused broken tests. -* If no tests where executed, for example because of a `--filter`, PHPUnit now prints a "No tests executed" warning instead of "OK (0 tests...)". -* It is possible again to expect the generic `Exception` class. -* Removed `addUncoveredFilesFromWhitelist` configuration setting. -* Removed deprecated `--skeleton-class` and `--skeleton-test` switches. The functionality is now provided by the `phpunit-skelgen` command of the `PHPUnit_SkeletonGenerator` package. -* Removed deprecated `PHPUnit_Extensions_OutputTestCase` class. - diff --git a/includes/kohana/vendor/phpunit/phpunit/LICENSE b/includes/kohana/vendor/phpunit/phpunit/LICENSE deleted file mode 100644 index a7015529..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/LICENSE +++ /dev/null @@ -1,33 +0,0 @@ -PHPUnit - -Copyright (c) 2002-2012, Sebastian Bergmann . -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - * Neither the name of Sebastian Bergmann nor the names of his - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php deleted file mode 100644 index a775c1dd..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php +++ /dev/null @@ -1,208 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/CodeCoverage/Autoload.php'; -require_once 'PHP/Timer/Autoload.php'; -require_once 'PHPUnit/Framework/MockObject/Autoload.php'; -require_once 'Text/Template/Autoload.php'; - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - 'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php', - 'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php', - 'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php', - 'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php', - 'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php', - 'phpunit_extensions_testdecorator' => '/Extensions/TestDecorator.php', - 'phpunit_extensions_ticketlistener' => '/Extensions/TicketListener.php', - 'phpunit_framework_assert' => '/Framework/Assert.php', - 'phpunit_framework_assertionfailederror' => '/Framework/AssertionFailedError.php', - 'phpunit_framework_comparator' => '/Framework/Comparator.php', - 'phpunit_framework_comparator_array' => '/Framework/Comparator/Array.php', - 'phpunit_framework_comparator_domdocument' => '/Framework/Comparator/DOMDocument.php', - 'phpunit_framework_comparator_double' => '/Framework/Comparator/Double.php', - 'phpunit_framework_comparator_exception' => '/Framework/Comparator/Exception.php', - 'phpunit_framework_comparator_mockobject' => '/Framework/Comparator/MockObject.php', - 'phpunit_framework_comparator_numeric' => '/Framework/Comparator/Numeric.php', - 'phpunit_framework_comparator_object' => '/Framework/Comparator/Object.php', - 'phpunit_framework_comparator_resource' => '/Framework/Comparator/Resource.php', - 'phpunit_framework_comparator_scalar' => '/Framework/Comparator/Scalar.php', - 'phpunit_framework_comparator_splobjectstorage' => '/Framework/Comparator/SplObjectStorage.php', - 'phpunit_framework_comparator_type' => '/Framework/Comparator/Type.php', - 'phpunit_framework_comparatorfactory' => '/Framework/ComparatorFactory.php', - 'phpunit_framework_comparisonfailure' => '/Framework/ComparisonFailure.php', - 'phpunit_framework_constraint' => '/Framework/Constraint.php', - 'phpunit_framework_constraint_and' => '/Framework/Constraint/And.php', - 'phpunit_framework_constraint_arrayhaskey' => '/Framework/Constraint/ArrayHasKey.php', - 'phpunit_framework_constraint_attribute' => '/Framework/Constraint/Attribute.php', - 'phpunit_framework_constraint_callback' => '/Framework/Constraint/Callback.php', - 'phpunit_framework_constraint_classhasattribute' => '/Framework/Constraint/ClassHasAttribute.php', - 'phpunit_framework_constraint_classhasstaticattribute' => '/Framework/Constraint/ClassHasStaticAttribute.php', - 'phpunit_framework_constraint_composite' => '/Framework/Constraint/Composite.php', - 'phpunit_framework_constraint_count' => '/Framework/Constraint/Count.php', - 'phpunit_framework_constraint_exception' => '/Framework/Constraint/Exception.php', - 'phpunit_framework_constraint_exceptioncode' => '/Framework/Constraint/ExceptionCode.php', - 'phpunit_framework_constraint_exceptionmessage' => '/Framework/Constraint/ExceptionMessage.php', - 'phpunit_framework_constraint_fileexists' => '/Framework/Constraint/FileExists.php', - 'phpunit_framework_constraint_greaterthan' => '/Framework/Constraint/GreaterThan.php', - 'phpunit_framework_constraint_isanything' => '/Framework/Constraint/IsAnything.php', - 'phpunit_framework_constraint_isempty' => '/Framework/Constraint/IsEmpty.php', - 'phpunit_framework_constraint_isequal' => '/Framework/Constraint/IsEqual.php', - 'phpunit_framework_constraint_isfalse' => '/Framework/Constraint/IsFalse.php', - 'phpunit_framework_constraint_isidentical' => '/Framework/Constraint/IsIdentical.php', - 'phpunit_framework_constraint_isinstanceof' => '/Framework/Constraint/IsInstanceOf.php', - 'phpunit_framework_constraint_isnull' => '/Framework/Constraint/IsNull.php', - 'phpunit_framework_constraint_istrue' => '/Framework/Constraint/IsTrue.php', - 'phpunit_framework_constraint_istype' => '/Framework/Constraint/IsType.php', - 'phpunit_framework_constraint_jsonmatches' => '/Framework/Constraint/JsonMatches.php', - 'phpunit_framework_constraint_jsonmatches_errormessageprovider' => '/Framework/Constraint/JsonMatches/ErrorMessageProvider.php', - 'phpunit_framework_constraint_lessthan' => '/Framework/Constraint/LessThan.php', - 'phpunit_framework_constraint_not' => '/Framework/Constraint/Not.php', - 'phpunit_framework_constraint_objecthasattribute' => '/Framework/Constraint/ObjectHasAttribute.php', - 'phpunit_framework_constraint_or' => '/Framework/Constraint/Or.php', - 'phpunit_framework_constraint_pcrematch' => '/Framework/Constraint/PCREMatch.php', - 'phpunit_framework_constraint_samesize' => '/Framework/Constraint/SameSize.php', - 'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php', - 'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php', - 'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php', - 'phpunit_framework_constraint_stringstartswith' => '/Framework/Constraint/StringStartsWith.php', - 'phpunit_framework_constraint_traversablecontains' => '/Framework/Constraint/TraversableContains.php', - 'phpunit_framework_constraint_traversablecontainsonly' => '/Framework/Constraint/TraversableContainsOnly.php', - 'phpunit_framework_constraint_xor' => '/Framework/Constraint/Xor.php', - 'phpunit_framework_error' => '/Framework/Error.php', - 'phpunit_framework_error_deprecated' => '/Framework/Error/Deprecated.php', - 'phpunit_framework_error_notice' => '/Framework/Error/Notice.php', - 'phpunit_framework_error_warning' => '/Framework/Error/Warning.php', - 'phpunit_framework_exception' => '/Framework/Exception.php', - 'phpunit_framework_expectationfailedexception' => '/Framework/ExpectationFailedException.php', - 'phpunit_framework_incompletetest' => '/Framework/IncompleteTest.php', - 'phpunit_framework_incompletetesterror' => '/Framework/IncompleteTestError.php', - 'phpunit_framework_outputerror' => '/Framework/OutputError.php', - 'phpunit_framework_selfdescribing' => '/Framework/SelfDescribing.php', - 'phpunit_framework_skippedtest' => '/Framework/SkippedTest.php', - 'phpunit_framework_skippedtesterror' => '/Framework/SkippedTestError.php', - 'phpunit_framework_skippedtestsuiteerror' => '/Framework/SkippedTestSuiteError.php', - 'phpunit_framework_syntheticerror' => '/Framework/SyntheticError.php', - 'phpunit_framework_test' => '/Framework/Test.php', - 'phpunit_framework_testcase' => '/Framework/TestCase.php', - 'phpunit_framework_testfailure' => '/Framework/TestFailure.php', - 'phpunit_framework_testlistener' => '/Framework/TestListener.php', - 'phpunit_framework_testresult' => '/Framework/TestResult.php', - 'phpunit_framework_testsuite' => '/Framework/TestSuite.php', - 'phpunit_framework_testsuite_dataprovider' => '/Framework/TestSuite/DataProvider.php', - 'phpunit_framework_warning' => '/Framework/Warning.php', - 'phpunit_runner_basetestrunner' => '/Runner/BaseTestRunner.php', - 'phpunit_runner_standardtestsuiteloader' => '/Runner/StandardTestSuiteLoader.php', - 'phpunit_runner_testsuiteloader' => '/Runner/TestSuiteLoader.php', - 'phpunit_runner_version' => '/Runner/Version.php', - 'phpunit_textui_command' => '/TextUI/Command.php', - 'phpunit_textui_resultprinter' => '/TextUI/ResultPrinter.php', - 'phpunit_textui_testrunner' => '/TextUI/TestRunner.php', - 'phpunit_util_class' => '/Util/Class.php', - 'phpunit_util_configuration' => '/Util/Configuration.php', - 'phpunit_util_deprecatedfeature' => '/Util/DeprecatedFeature.php', - 'phpunit_util_deprecatedfeature_logger' => '/Util/DeprecatedFeature/Logger.php', - 'phpunit_util_diff' => '/Util/Diff.php', - 'phpunit_util_errorhandler' => '/Util/ErrorHandler.php', - 'phpunit_util_fileloader' => '/Util/Fileloader.php', - 'phpunit_util_filesystem' => '/Util/Filesystem.php', - 'phpunit_util_filter' => '/Util/Filter.php', - 'phpunit_util_getopt' => '/Util/Getopt.php', - 'phpunit_util_globalstate' => '/Util/GlobalState.php', - 'phpunit_util_invalidargumenthelper' => '/Util/InvalidArgumentHelper.php', - 'phpunit_util_log_json' => '/Util/Log/JSON.php', - 'phpunit_util_log_junit' => '/Util/Log/JUnit.php', - 'phpunit_util_log_tap' => '/Util/Log/TAP.php', - 'phpunit_util_php' => '/Util/PHP.php', - 'phpunit_util_php_default' => '/Util/PHP/Default.php', - 'phpunit_util_php_windows' => '/Util/PHP/Windows.php', - 'phpunit_util_printer' => '/Util/Printer.php', - 'phpunit_util_string' => '/Util/String.php', - 'phpunit_util_test' => '/Util/Test.php', - 'phpunit_util_testdox_nameprettifier' => '/Util/TestDox/NamePrettifier.php', - 'phpunit_util_testdox_resultprinter' => '/Util/TestDox/ResultPrinter.php', - 'phpunit_util_testdox_resultprinter_html' => '/Util/TestDox/ResultPrinter/HTML.php', - 'phpunit_util_testdox_resultprinter_text' => '/Util/TestDox/ResultPrinter/Text.php', - 'phpunit_util_testsuiteiterator' => '/Util/TestSuiteIterator.php', - 'phpunit_util_type' => '/Util/Type.php', - 'phpunit_util_xml' => '/Util/XML.php' - ); - - $path = dirname(__FILE__); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); - -if (stream_resolve_include_path('PHP/Invoker/Autoload.php')) { - require_once 'PHP/Invoker/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/Database/Autoload.php')) { - require_once 'PHPUnit/Extensions/Database/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumCommon/Autoload.php')) { - require_once 'PHPUnit/Extensions/SeleniumCommon/Autoload.php'; -} - -else if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) { - require_once 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/Story/Autoload.php')) { - require_once 'PHPUnit/Extensions/Story/Autoload.php'; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php.in b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php.in deleted file mode 100644 index 1d16b94a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Autoload.php.in +++ /dev/null @@ -1,91 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/CodeCoverage/Autoload.php'; -require_once 'PHP/Timer/Autoload.php'; -require_once 'PHPUnit/Framework/MockObject/Autoload.php'; -require_once 'Text/Template/Autoload.php'; - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - static $path = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - - $path = dirname(__FILE__); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require $path . $classes[$cn]; - } - } -); - -if (stream_resolve_include_path('PHP/Invoker/Autoload.php')) { - require_once 'PHP/Invoker/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/Database/Autoload.php')) { - require_once 'PHPUnit/Extensions/Database/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumCommon/Autoload.php')) { - require_once 'PHPUnit/Extensions/SeleniumCommon/Autoload.php'; -} - -else if (stream_resolve_include_path('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) { - require_once 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php'; -} - -if (stream_resolve_include_path('PHPUnit/Extensions/Story/Autoload.php')) { - require_once 'PHPUnit/Extensions/Story/Autoload.php'; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/GroupTestSuite.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/GroupTestSuite.php deleted file mode 100644 index 80f83601..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/GroupTestSuite.php +++ /dev/null @@ -1,99 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * We have a TestSuite object A. - * In TestSuite object A we have Tests tagged with @group. - * We want a TestSuite object B that contains TestSuite objects C, D, ... - * for the Tests tagged with @group C, @group D, ... - * Running the Tests from TestSuite object B results in Tests tagged with both - * @group C and @group D in TestSuite object A to be run twice . - * - * - * $suite = new PHPUnit_Extensions_GroupTestSuite($A, array('C', 'D')); - * - * - * @package PHPUnit - * @subpackage Extensions - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Extensions_GroupTestSuite extends PHPUnit_Framework_TestSuite -{ - public function __construct(PHPUnit_Framework_TestSuite $suite, array $groups) - { - $groupSuites = array(); - $name = $suite->getName(); - - foreach ($groups as $group) { - $groupSuites[$group] = new PHPUnit_Framework_TestSuite($name . ' - ' . $group); - $this->addTest($groupSuites[$group]); - } - - $tests = new RecursiveIteratorIterator( - new PHPUnit_Util_TestSuiteIterator($suite), - RecursiveIteratorIterator::LEAVES_ONLY - ); - - foreach ($tests as $test) { - if ($test instanceof PHPUnit_Framework_TestCase) { - $testGroups = PHPUnit_Util_Test::getGroups( - get_class($test), $test->getName(FALSE) - ); - - foreach ($groups as $group) { - foreach ($testGroups as $testGroup) { - if ($group == $testGroup) { - $groupSuites[$group]->addTest($test); - } - } - } - } - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php deleted file mode 100644 index 16336bce..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php +++ /dev/null @@ -1,269 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.4 - */ - -if (stream_resolve_include_path('PEAR/RunTest.php')) { - $currentErrorReporting = error_reporting(E_ERROR | E_WARNING | E_PARSE); - require_once 'PEAR/RunTest.php'; - error_reporting($currentErrorReporting); -} - -/** - * Wrapper to run .phpt test cases. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.4 - */ -class PHPUnit_Extensions_PhptTestCase implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing -{ - /** - * The filename of the .phpt file. - * - * @var string - */ - protected $filename; - - /** - * Options for PEAR_RunTest. - * - * @var array - */ - protected $options = array(); - - /** - * Constructs a test case with the given filename. - * - * @param string $filename - * @param array $options - */ - public function __construct($filename, array $options = array()) - { - if (!is_string($filename)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_file($filename)) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'File "%s" does not exist.', - $filename - ) - ); - } - - $this->filename = $filename; - $this->options = $options; - } - - /** - * Counts the number of test cases executed by run(TestResult result). - * - * @return integer - */ - public function count() - { - return 1; - } - - /** - * Runs a test and collects its result in a TestResult instance. - * - * @param PHPUnit_Framework_TestResult $result - * @param array $options - * @return PHPUnit_Framework_TestResult - */ - public function run(PHPUnit_Framework_TestResult $result = NULL, array $options = array()) - { - if (!class_exists('PEAR_RunTest', FALSE)) { - throw new PHPUnit_Framework_Exception('Class PEAR_RunTest not found.'); - } - - if (isset($GLOBALS['_PEAR_destructor_object_list']) && - is_array($GLOBALS['_PEAR_destructor_object_list']) && - !empty($GLOBALS['_PEAR_destructor_object_list'])) { - $pearDestructorObjectListCount = count($GLOBALS['_PEAR_destructor_object_list']); - } else { - $pearDestructorObjectListCount = 0; - } - - if ($result === NULL) { - $result = new PHPUnit_Framework_TestResult; - } - - $coverage = $result->getCollectCodeCoverageInformation(); - $options = array_merge($options, $this->options); - - if (!isset($options['include_path'])) { - $options['include_path'] = get_include_path(); - } - - if ($coverage) { - $options['coverage'] = TRUE; - } else { - $options['coverage'] = FALSE; - } - - $currentErrorReporting = error_reporting(E_ERROR | E_WARNING | E_PARSE); - $runner = new PEAR_RunTest(new PHPUnit_Extensions_PhptTestCase_Logger, $options); - - if ($coverage) { - $runner->xdebug_loaded = TRUE; - } else { - $runner->xdebug_loaded = FALSE; - } - - $result->startTest($this); - - PHP_Timer::start(); - - $buffer = $runner->run($this->filename, $options); - $time = PHP_Timer::stop(); - - error_reporting($currentErrorReporting); - - $base = basename($this->filename); - $path = dirname($this->filename); - $coverageFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.xdebug', $base - ); - $diffFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.diff', $base - ); - $expFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.exp', $base - ); - $logFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.log', $base - ); - $outFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.out', $base - ); - $phpFile = $path . DIRECTORY_SEPARATOR . str_replace( - '.phpt', '.php', $base - ); - - if (is_object($buffer) && $buffer instanceof PEAR_Error) { - $result->addError( - $this, - new PHPUnit_Framework_Exception($buffer->getMessage()), - $time - ); - } - - else if ($buffer == 'SKIPPED') { - $result->addFailure($this, new PHPUnit_Framework_SkippedTestError, 0); - } - - else if ($buffer != 'PASSED') { - $expContent = file_get_contents($expFile); - $outContent = file_get_contents($outFile); - - $result->addFailure( - $this, - new PHPUnit_Framework_ComparisonFailure( - $expContent, - $outContent, - $expContent, - $outContent - ), - $time - ); - } - - foreach (array($diffFile, $expFile, $logFile, $phpFile, $outFile) as $file) { - if (file_exists($file)) { - unlink($file); - } - } - - if ($coverage && file_exists($coverageFile)) { - eval('$coverageData = ' . file_get_contents($coverageFile) . ';'); - unset($coverageData[$phpFile]); - - $result->getCodeCoverage()->append($coverageData, $this); - unlink($coverageFile); - } - - $result->endTest($this, $time); - - // Do not invoke PEAR's destructor mechanism for PHP 4 - // as it raises an E_STRICT. - if ($pearDestructorObjectListCount == 0) { - unset($GLOBALS['_PEAR_destructor_object_list']); - } else { - $count = count($GLOBALS['_PEAR_destructor_object_list']) - $pearDestructorObjectListCount; - - for ($i = 0; $i < $count; $i++) { - array_pop($GLOBALS['_PEAR_destructor_object_list']); - } - } - - return $result; - } - - /** - * Returns the name of the test case. - * - * @return string - */ - public function getName() - { - return $this->toString(); - } - - /** - * Returns a string representation of the test case. - * - * @return string - */ - public function toString() - { - return $this->filename; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase/Logger.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase/Logger.php deleted file mode 100644 index 6b33a41f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase/Logger.php +++ /dev/null @@ -1,62 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.4 - */ - -/** - * Dummy logger for PEAR_RunTest. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.4 - */ -class PHPUnit_Extensions_PhptTestCase_Logger -{ - public function log($level, $msg, $append_crlf = TRUE) - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestSuite.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestSuite.php deleted file mode 100644 index ad394f21..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestSuite.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.4 - */ - -/** - * Suite for .phpt test cases. - * - * @package PHPUnit - * @subpackage Extensions_PhptTestCase - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.4 - */ -class PHPUnit_Extensions_PhptTestSuite extends PHPUnit_Framework_TestSuite -{ - /** - * Constructs a new TestSuite for .phpt test cases. - * - * @param string $directory - * @param array $options Array with ini settings for the php instance run, - * key being the name if the setting, value the ini value. - * @throws PHPUnit_Framework_Exception - */ - public function __construct($directory, array $options = array()) - { - if (is_string($directory) && is_dir($directory)) { - $this->setName($directory); - - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray($directory, '.phpt'); - - foreach ($files as $file) { - $this->addTestFile($file, $options); - } - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'directory name'); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php deleted file mode 100644 index 261520bc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php +++ /dev/null @@ -1,155 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A Decorator that runs a test repeatedly. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Extensions_RepeatedTest extends PHPUnit_Extensions_TestDecorator -{ - /** - * @var mixed - */ - protected $filter = FALSE; - - /** - * @var array - */ - protected $groups = array(); - - /** - * @var array - */ - protected $excludeGroups = array(); - - /** - * @var boolean - */ - protected $processIsolation = FALSE; - - /** - * @var integer - */ - protected $timesRepeat = 1; - - /** - * Constructor. - * - * @param PHPUnit_Framework_Test $test - * @param integer $timesRepeat - * @param mixed $filter - * @param array $groups - * @param array $excludeGroups - * @param boolean $processIsolation - * @throws PHPUnit_Framework_Exception - */ - public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1, $filter = FALSE, array $groups = array(), array $excludeGroups = array(), $processIsolation = FALSE) - { - parent::__construct($test); - - if (is_integer($timesRepeat) && - $timesRepeat >= 0) { - $this->timesRepeat = $timesRepeat; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'positive integer' - ); - } - - $this->filter = $filter; - $this->groups = $groups; - $this->excludeGroups = $excludeGroups; - $this->processIsolation = $processIsolation; - } - - /** - * Counts the number of test cases that - * will be run by this test. - * - * @return integer - */ - public function count() - { - return $this->timesRepeat * count($this->test); - } - - /** - * Runs the decorated test and collects the - * result in a TestResult. - * - * @param PHPUnit_Framework_TestResult $result - * @return PHPUnit_Framework_TestResult - * @throws PHPUnit_Framework_Exception - */ - public function run(PHPUnit_Framework_TestResult $result = NULL) - { - if ($result === NULL) { - $result = $this->createResult(); - } - - //@codingStandardsIgnoreStart - for ($i = 0; $i < $this->timesRepeat && !$result->shouldStop(); $i++) { - //@codingStandardsIgnoreEnd - if ($this->test instanceof PHPUnit_Framework_TestSuite) { - $this->test->run( - $result, - $this->filter, - $this->groups, - $this->excludeGroups, - $this->processIsolation - ); - } else { - $this->test->run($result); - } - } - - return $result; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php deleted file mode 100644 index 8bdfb16e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TestDecorator.php +++ /dev/null @@ -1,149 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A Decorator for Tests. - * - * Use TestDecorator as the base class for defining new - * test decorators. Test decorator subclasses can be introduced - * to add behaviour before or after a test is run. - * - * @package PHPUnit - * @subpackage Extensions - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Extensions_TestDecorator extends PHPUnit_Framework_Assert implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing -{ - /** - * The Test to be decorated. - * - * @var object - */ - protected $test = NULL; - - /** - * Constructor. - * - * @param PHPUnit_Framework_Test $test - */ - public function __construct(PHPUnit_Framework_Test $test) - { - $this->test = $test; - } - - /** - * Returns a string representation of the test. - * - * @return string - */ - public function toString() - { - return $this->test->toString(); - } - - /** - * Runs the test and collects the - * result in a TestResult. - * - * @param PHPUnit_Framework_TestResult $result - */ - public function basicRun(PHPUnit_Framework_TestResult $result) - { - $this->test->run($result); - } - - /** - * Counts the number of test cases that - * will be run by this test. - * - * @return integer - */ - public function count() - { - return count($this->test); - } - - /** - * Creates a default TestResult object. - * - * @return PHPUnit_Framework_TestResult - */ - protected function createResult() - { - return new PHPUnit_Framework_TestResult; - } - - /** - * Returns the test to be run. - * - * @return PHPUnit_Framework_Test - */ - public function getTest() - { - return $this->test; - } - - /** - * Runs the decorated test and collects the - * result in a TestResult. - * - * @param PHPUnit_Framework_TestResult $result - * @return PHPUnit_Framework_TestResult - */ - public function run(PHPUnit_Framework_TestResult $result = NULL) - { - if ($result === NULL) { - $result = $this->createResult(); - } - - $this->basicRun($result); - - return $result; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TicketListener.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TicketListener.php deleted file mode 100644 index 4be38e1d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Extensions/TicketListener.php +++ /dev/null @@ -1,224 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Extensions_TicketListener - * @author Sean Coates - * @author Raphael Stolt - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Base class for test listeners that interact with an issue tracker. - * - * @package PHPUnit - * @subpackage Extensions_TicketListener - * @author Sean Coates - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -abstract class PHPUnit_Extensions_TicketListener implements PHPUnit_Framework_TestListener -{ - /** - * @var array - */ - protected $ticketCounts = array(); - - /** - * @var boolean - */ - protected $ran = FALSE; - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * A test suite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test suite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - if (!$test instanceof PHPUnit_Framework_Warning) { - if ($this->ran) { - return; - } - - $name = $test->getName(FALSE); - $tickets = PHPUnit_Util_Test::getTickets(get_class($test), $name); - - foreach ($tickets as $ticket) { - $this->ticketCounts[$ticket][$name] = 1; - } - - $this->ran = TRUE; - } - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if (!$test instanceof PHPUnit_Framework_Warning) { - if ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) { - $ifStatus = array('assigned', 'new', 'reopened'); - $newStatus = 'closed'; - $message = 'Automatically closed by PHPUnit (test passed).'; - $resolution = 'fixed'; - $cumulative = TRUE; - } - - else if ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE) { - $ifStatus = array('closed'); - $newStatus = 'reopened'; - $message = 'Automatically reopened by PHPUnit (test failed).'; - $resolution = ''; - $cumulative = FALSE; - } - - else { - return; - } - - $name = $test->getName(FALSE); - $tickets = PHPUnit_Util_Test::getTickets(get_class($test), $name); - - foreach ($tickets as $ticket) { - // Remove this test from the totals (if it passed). - if ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) { - unset($this->ticketCounts[$ticket][$name]); - } - - // Only close tickets if ALL referenced cases pass - // but reopen tickets if a single test fails. - if ($cumulative) { - // Determine number of to-pass tests: - if (count($this->ticketCounts[$ticket]) > 0) { - // There exist remaining test cases with this reference. - $adjustTicket = FALSE; - } else { - // No remaining tickets, go ahead and adjust. - $adjustTicket = TRUE; - } - } else { - $adjustTicket = TRUE; - } - - $ticketInfo = $this->getTicketInfo($ticket); - - if ($adjustTicket && in_array($ticketInfo['status'], $ifStatus)) { - $this->updateTicket($ticket, $newStatus, $message, $resolution); - } - } - } - } - - abstract protected function getTicketInfo($ticketId = NULL); - abstract protected function updateTicket($ticketId, $newStatus, $message, $resolution); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php deleted file mode 100644 index 66e2301c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php +++ /dev/null @@ -1,2832 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A set of assert methods. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -abstract class PHPUnit_Framework_Assert -{ - /** - * @var integer - */ - private static $count = 0; - - /** - * Asserts that an array has a specified key. - * - * @param mixed $key - * @param array|ArrayAccess $array - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertArrayHasKey($key, $array, $message = '') - { - if (!(is_integer($key) || is_string($key))) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'integer or string' - ); - } - if (!(is_array($array) || $array instanceof ArrayAccess)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'array or ArrayAccess' - ); - } - - $constraint = new PHPUnit_Framework_Constraint_ArrayHasKey($key); - - self::assertThat($array, $constraint, $message); - } - - /** - * Asserts that an array does not have a specified key. - * - * @param mixed $key - * @param array|ArrayAccess $array - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertArrayNotHasKey($key, $array, $message = '') - { - if (!(is_integer($key) || is_string($key))) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'integer or string' - ); - } - if (!(is_array($array) || $array instanceof ArrayAccess)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'array or ArrayAccess' - ); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_ArrayHasKey($key) - ); - - self::assertThat($array, $constraint, $message); - } - - /** - * Asserts that a haystack contains a needle. - * - * @param mixed $needle - * @param mixed $haystack - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 2.1.0 - */ - public static function assertContains($needle, $haystack, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) - { - if (is_array($haystack) || - is_object($haystack) && $haystack instanceof Traversable) { - $constraint = new PHPUnit_Framework_Constraint_TraversableContains( - $needle, $checkForObjectIdentity - ); - } - - else if (is_string($haystack)) { - $constraint = new PHPUnit_Framework_Constraint_StringContains( - $needle, $ignoreCase - ); - } - - else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'array, iterator or string' - ); - } - - self::assertThat($haystack, $constraint, $message); - } - - /** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object contains a needle. - * - * @param mixed $needle - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 3.0.0 - */ - public static function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) - { - self::assertContains( - $needle, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message, - $ignoreCase, - $checkForObjectIdentity - ); - } - - /** - * Asserts that a haystack does not contain a needle. - * - * @param mixed $needle - * @param mixed $haystack - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 2.1.0 - */ - public static function assertNotContains($needle, $haystack, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) - { - if (is_array($haystack) || - is_object($haystack) && $haystack instanceof Traversable) { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_TraversableContains( - $needle, $checkForObjectIdentity - ) - ); - } - - else if (is_string($haystack)) { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_StringContains( - $needle, $ignoreCase - ) - ); - } - - else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'array, iterator or string' - ); - } - - self::assertThat($haystack, $constraint, $message); - } - - /** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object does not contain a needle. - * - * @param mixed $needle - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 3.0.0 - */ - public static function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) - { - self::assertNotContains( - $needle, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message, - $ignoreCase, - $checkForObjectIdentity - ); - } - - /** - * Asserts that a haystack contains only values of a given type. - * - * @param string $type - * @param mixed $haystack - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ - public static function assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = '') - { - if (!(is_array($haystack) || - is_object($haystack) && $haystack instanceof Traversable)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'array or iterator' - ); - } - - if ($isNativeType == NULL) { - $isNativeType = PHPUnit_Util_Type::isType($type); - } - - self::assertThat( - $haystack, - new PHPUnit_Framework_Constraint_TraversableContainsOnly( - $type, $isNativeType - ), - $message - ); - } - - /** - * Asserts that a haystack contains only instances of a given classname - * - * @param string $classname - * @param array|Traversable $haystack - * @param string $message - */ - public static function assertContainsOnlyInstancesOf($classname, $haystack, $message = '') - { - if (!(is_array($haystack) || - is_object($haystack) && $haystack instanceof Traversable)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'array or iterator' - ); - } - - self::assertThat( - $haystack, - new PHPUnit_Framework_Constraint_TraversableContainsOnly( - $classname, FALSE - ), - $message - ); - } - - /** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object contains only values of a given type. - * - * @param string $type - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ - public static function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') - { - self::assertContainsOnly( - $type, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $isNativeType, - $message - ); - } - - /** - * Asserts that a haystack does not contain only values of a given type. - * - * @param string $type - * @param mixed $haystack - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ - public static function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = '') - { - if (!(is_array($haystack) || - is_object($haystack) && $haystack instanceof Traversable)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 2, 'array or iterator' - ); - } - - if ($isNativeType == NULL) { - $isNativeType = PHPUnit_Util_Type::isType($type); - } - - self::assertThat( - $haystack, - new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_TraversableContainsOnly( - $type, $isNativeType - ) - ), - $message - ); - } - - /** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object does not contain only values of a given - * type. - * - * @param string $type - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ - public static function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') - { - self::assertNotContainsOnly( - $type, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $isNativeType, - $message - ); - } - - /** - * Asserts the number of elements of an array, Countable or Iterator. - * - * @param integer $expectedCount - * @param mixed $haystack - * @param string $message - */ - public static function assertCount($expectedCount, $haystack, $message = '') - { - if (!is_int($expectedCount)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer'); - } - - if (!$haystack instanceof Countable && - !$haystack instanceof Iterator && - !is_array($haystack)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable'); - } - - self::assertThat( - $haystack, - new PHPUnit_Framework_Constraint_Count($expectedCount), - $message - ); - } - - /** - * Asserts the number of elements of an array, Countable or Iterator - * that is stored in an attribute. - * - * @param integer $expectedCount - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.6.0 - */ - public static function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') - { - self::assertCount( - $expectedCount, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message - ); - } - - /** - * Asserts the number of elements of an array, Countable or Iterator. - * - * @param integer $expectedCount - * @param mixed $haystack - * @param string $message - */ - public static function assertNotCount($expectedCount, $haystack, $message = '') - { - if (!is_int($expectedCount)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer'); - } - - if (!$haystack instanceof Countable && - !$haystack instanceof Iterator && - !is_array($haystack)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_Count($expectedCount) - ); - - self::assertThat($haystack, $constraint, $message); - } - - /** - * Asserts the number of elements of an array, Countable or Iterator - * that is stored in an attribute. - * - * @param integer $expectedCount - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.6.0 - */ - public static function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') - { - self::assertNotCount( - $expectedCount, - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message - ); - } - - /** - * Asserts that two variables are equal. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ - public static function assertEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - $constraint = new PHPUnit_Framework_Constraint_IsEqual( - $expected, $delta, $maxDepth, $canonicalize, $ignoreCase - ); - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that a variable is equal to an attribute of an object. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ - public static function assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertEquals( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message, - $delta, - $maxDepth, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that two variables are not equal. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 2.3.0 - */ - public static function assertNotEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_IsEqual( - $expected, $delta, $maxDepth, $canonicalize, $ignoreCase - ) - ); - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that a variable is not equal to an attribute of an object. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ - public static function assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertNotEquals( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message, - $delta, - $maxDepth, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that a variable is empty. - * - * @param mixed $actual - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ - public static function assertEmpty($actual, $message = '') - { - self::assertThat($actual, self::isEmpty(), $message); - } - - /** - * Asserts that a static attribute of a class or an attribute of an object - * is empty. - * - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') - { - self::assertEmpty( - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message - ); - } - - /** - * Asserts that a variable is not empty. - * - * @param mixed $actual - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ - public static function assertNotEmpty($actual, $message = '') - { - self::assertThat($actual, self::logicalNot(self::isEmpty()), $message); - } - - /** - * Asserts that a static attribute of a class or an attribute of an object - * is not empty. - * - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') - { - self::assertNotEmpty( - self::readAttribute($haystackClassOrObject, $haystackAttributeName), - $message - ); - } - - /** - * Asserts that a value is greater than another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertGreaterThan($expected, $actual, $message = '') - { - self::assertThat($actual, self::greaterThan($expected), $message); - } - - /** - * Asserts that an attribute is greater than another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertGreaterThan( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that a value is greater than or equal to another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertGreaterThanOrEqual($expected, $actual, $message = '') - { - self::assertThat( - $actual, self::greaterThanOrEqual($expected), $message - ); - } - - /** - * Asserts that an attribute is greater than or equal to another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertGreaterThanOrEqual( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that a value is smaller than another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertLessThan($expected, $actual, $message = '') - { - self::assertThat($actual, self::lessThan($expected), $message); - } - - /** - * Asserts that an attribute is smaller than another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertLessThan( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that a value is smaller than or equal to another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertLessThanOrEqual($expected, $actual, $message = '') - { - self::assertThat($actual, self::lessThanOrEqual($expected), $message); - } - - /** - * Asserts that an attribute is smaller than or equal to another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertLessThanOrEqual( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that the contents of one file is equal to the contents of another - * file. - * - * @param string $expected - * @param string $actual - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.2.14 - */ - public static function assertFileEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertFileExists($expected, $message); - self::assertFileExists($actual, $message); - - self::assertEquals( - file_get_contents($expected), - file_get_contents($actual), - $message, - 0, - 10, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that the contents of one file is not equal to the contents of - * another file. - * - * @param string $expected - * @param string $actual - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.2.14 - */ - public static function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertFileExists($expected, $message); - self::assertFileExists($actual, $message); - - self::assertNotEquals( - file_get_contents($expected), - file_get_contents($actual), - $message, - 0, - 10, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that the contents of a string is equal - * to the contents of a file. - * - * @param string $expectedFile - * @param string $actualString - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.3.0 - */ - public static function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertFileExists($expectedFile, $message); - - self::assertEquals( - file_get_contents($expectedFile), - $actualString, - $message, - 0, - 10, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that the contents of a string is not equal - * to the contents of a file. - * - * @param string $expectedFile - * @param string $actualString - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.3.0 - */ - public static function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) - { - self::assertFileExists($expectedFile, $message); - - self::assertNotEquals( - file_get_contents($expectedFile), - $actualString, - $message, - 0, - 10, - $canonicalize, - $ignoreCase - ); - } - - /** - * Asserts that a file exists. - * - * @param string $filename - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertFileExists($filename, $message = '') - { - if (!is_string($filename)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_FileExists; - - self::assertThat($filename, $constraint, $message); - } - - /** - * Asserts that a file does not exist. - * - * @param string $filename - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertFileNotExists($filename, $message = '') - { - if (!is_string($filename)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_FileExists - ); - - self::assertThat($filename, $constraint, $message); - } - - /** - * Asserts that a condition is true. - * - * @param boolean $condition - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ - public static function assertTrue($condition, $message = '') - { - self::assertThat($condition, self::isTrue(), $message); - } - - /** - * Asserts that a condition is false. - * - * @param boolean $condition - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ - public static function assertFalse($condition, $message = '') - { - self::assertThat($condition, self::isFalse(), $message); - } - - /** - * Asserts that a variable is not NULL. - * - * @param mixed $actual - * @param string $message - */ - public static function assertNotNull($actual, $message = '') - { - self::assertThat($actual, self::logicalNot(self::isNull()), $message); - } - - /** - * Asserts that a variable is NULL. - * - * @param mixed $actual - * @param string $message - */ - public static function assertNull($actual, $message = '') - { - self::assertThat($actual, self::isNull(), $message); - } - - /** - * Asserts that a class has a specified attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertClassHasAttribute($attributeName, $className, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($className) || !class_exists($className, FALSE)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name'); - } - - $constraint = new PHPUnit_Framework_Constraint_ClassHasAttribute( - $attributeName - ); - - self::assertThat($className, $constraint, $message); - } - - /** - * Asserts that a class does not have a specified attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertClassNotHasAttribute($attributeName, $className, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($className) || !class_exists($className, FALSE)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_ClassHasAttribute($attributeName) - ); - - self::assertThat($className, $constraint, $message); - } - - /** - * Asserts that a class has a specified static attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertClassHasStaticAttribute($attributeName, $className, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($className) || !class_exists($className, FALSE)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name'); - } - - $constraint = new PHPUnit_Framework_Constraint_ClassHasStaticAttribute( - $attributeName - ); - - self::assertThat($className, $constraint, $message); - } - - /** - * Asserts that a class does not have a specified static attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertClassNotHasStaticAttribute($attributeName, $className, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($className) || !class_exists($className, FALSE)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_ClassHasStaticAttribute( - $attributeName - ) - ); - - self::assertThat($className, $constraint, $message); - } - - /** - * Asserts that an object has a specified attribute. - * - * @param string $attributeName - * @param object $object - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertObjectHasAttribute($attributeName, $object, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_object($object)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'object'); - } - - $constraint = new PHPUnit_Framework_Constraint_ObjectHasAttribute( - $attributeName - ); - - self::assertThat($object, $constraint, $message); - } - - /** - * Asserts that an object does not have a specified attribute. - * - * @param string $attributeName - * @param object $object - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertObjectNotHasAttribute($attributeName, $object, $message = '') - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_object($object)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'object'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_ObjectHasAttribute($attributeName) - ); - - self::assertThat($object, $constraint, $message); - } - - /** - * Asserts that two variables have the same type and value. - * Used on objects, it asserts that two variables reference - * the same object. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - */ - public static function assertSame($expected, $actual, $message = '') - { - if (is_bool($expected) && is_bool($actual)) { - self::assertEquals($expected, $actual, $message); - } else { - $constraint = new PHPUnit_Framework_Constraint_IsIdentical( - $expected - ); - - self::assertThat($actual, $constraint, $message); - } - } - - /** - * Asserts that a variable and an attribute of an object have the same type - * and value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param object $actualClassOrObject - * @param string $message - */ - public static function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertSame( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that two variables do not have the same type and value. - * Used on objects, it asserts that two variables do not reference - * the same object. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - */ - public static function assertNotSame($expected, $actual, $message = '') - { - if (is_bool($expected) && is_bool($actual)) { - self::assertNotEquals($expected, $actual, $message); - } else { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_IsIdentical($expected) - ); - - self::assertThat($actual, $constraint, $message); - } - } - - /** - * Asserts that a variable and an attribute of an object do not have the - * same type and value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param object $actualClassOrObject - * @param string $message - */ - public static function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') - { - self::assertNotSame( - $expected, - self::readAttribute($actualClassOrObject, $actualAttributeName), - $message - ); - } - - /** - * Asserts that a variable is of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertInstanceOf($expected, $actual, $message = '') - { - if (is_string($expected)) { - if (class_exists($expected) || interface_exists($expected)) { - $constraint = new PHPUnit_Framework_Constraint_IsInstanceOf( - $expected - ); - } - - else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'class or interface name' - ); - } - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '') - { - self::assertInstanceOf( - $expected, - self::readAttribute($classOrObject, $attributeName), - $message - ); - } - - /** - * Asserts that a variable is not of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertNotInstanceOf($expected, $actual, $message = '') - { - if (is_string($expected)) { - if (class_exists($expected) || interface_exists($expected)) { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_IsInstanceOf($expected) - ); - } - - else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'class or interface name' - ); - } - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '') - { - self::assertNotInstanceOf( - $expected, - self::readAttribute($classOrObject, $attributeName), - $message - ); - } - - /** - * Asserts that a variable is of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertInternalType($expected, $actual, $message = '') - { - if (is_string($expected)) { - $constraint = new PHPUnit_Framework_Constraint_IsType( - $expected - ); - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '') - { - self::assertInternalType( - $expected, - self::readAttribute($classOrObject, $attributeName), - $message - ); - } - - /** - * Asserts that a variable is not of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertNotInternalType($expected, $actual, $message = '') - { - if (is_string($expected)) { - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_IsType($expected) - ); - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '') - { - self::assertNotInternalType( - $expected, - self::readAttribute($classOrObject, $attributeName), - $message - ); - } - - /** - * Asserts that a string matches a given regular expression. - * - * @param string $pattern - * @param string $string - * @param string $message - */ - public static function assertRegExp($pattern, $string, $message = '') - { - if (!is_string($pattern)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_PCREMatch($pattern); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string does not match a given regular expression. - * - * @param string $pattern - * @param string $string - * @param string $message - * @since Method available since Release 2.1.0 - */ - public static function assertNotRegExp($pattern, $string, $message = '') - { - if (!is_string($pattern)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_PCREMatch($pattern) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Assert that the size of two arrays (or `Countable` or `Iterator` objects) - * is the same. - * - * @param array|Countable|Iterator $expected - * @param array|Countable|Iterator $actual - * @param string $message - */ - public static function assertSameSize($expected, $actual, $message = '') - { - if (!$expected instanceof Countable && - !$expected instanceof Iterator && - !is_array($expected)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'countable'); - } - - if (!$actual instanceof Countable && - !$actual instanceof Iterator && - !is_array($actual)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable'); - } - - self::assertThat( - $actual, - new PHPUnit_Framework_Constraint_SameSize($expected), - $message - ); - } - - /** - * Assert that the size of two arrays (or `Countable` or `Iterator` objects) - * is not the same. - * - * @param array|Countable|Iterator $expected - * @param array|Countable|Iterator $actual - * @param string $message - */ - public static function assertNotSameSize($expected, $actual, $message = '') - { - if (!$expected instanceof Countable && - !$expected instanceof Iterator && - !is_array($expected)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'countable'); - } - - if (!$actual instanceof Countable && - !$actual instanceof Iterator && - !is_array($actual)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_SameSize($expected) - ); - - self::assertThat($actual, $constraint, $message); - } - - /** - * Asserts that a string matches a given format string. - * - * @param string $format - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertStringMatchesFormat($format, $string, $message = '') - { - if (!is_string($format)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_StringMatches($format); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string does not match a given format string. - * - * @param string $format - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertStringNotMatchesFormat($format, $string, $message = '') - { - if (!is_string($format)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_StringMatches($format) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string matches a given format file. - * - * @param string $formatFile - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertStringMatchesFormatFile($formatFile, $string, $message = '') - { - self::assertFileExists($formatFile, $message); - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_StringMatches( - file_get_contents($formatFile) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string does not match a given format string. - * - * @param string $formatFile - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ - public static function assertStringNotMatchesFormatFile($formatFile, $string, $message = '') - { - self::assertFileExists($formatFile, $message); - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_StringMatches( - file_get_contents($formatFile) - ) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string starts with a given prefix. - * - * @param string $prefix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ - public static function assertStringStartsWith($prefix, $string, $message = '') - { - if (!is_string($prefix)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_StringStartsWith( - $prefix - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string starts not with a given prefix. - * - * @param string $prefix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ - public static function assertStringStartsNotWith($prefix, $string, $message = '') - { - if (!is_string($prefix)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_StringStartsWith($prefix) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string ends with a given prefix. - * - * @param string $suffix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ - public static function assertStringEndsWith($suffix, $string, $message = '') - { - if (!is_string($suffix)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_StringEndsWith($suffix); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that a string ends not with a given prefix. - * - * @param string $suffix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ - public static function assertStringEndsNotWith($suffix, $string, $message = '') - { - if (!is_string($suffix)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!is_string($string)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $constraint = new PHPUnit_Framework_Constraint_Not( - new PHPUnit_Framework_Constraint_StringEndsWith($suffix) - ); - - self::assertThat($string, $constraint, $message); - } - - /** - * Asserts that two XML files are equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '') - { - self::assertFileExists($expectedFile); - self::assertFileExists($actualFile); - - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->load($expectedFile); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->load($actualFile); - - self::assertEquals($expected, $actual, $message); - } - - /** - * Asserts that two XML files are not equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '') - { - self::assertFileExists($expectedFile); - self::assertFileExists($actualFile); - - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->load($expectedFile); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->load($actualFile); - - self::assertNotEquals($expected, $actual, $message); - } - - /** - * Asserts that two XML documents are equal. - * - * @param string $expectedFile - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.3.0 - */ - public static function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '') - { - self::assertFileExists($expectedFile); - - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->load($expectedFile); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->loadXML($actualXml); - - self::assertEquals($expected, $actual, $message); - } - - /** - * Asserts that two XML documents are not equal. - * - * @param string $expectedFile - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.3.0 - */ - public static function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '') - { - self::assertFileExists($expectedFile); - - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->load($expectedFile); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->loadXML($actualXml); - - self::assertNotEquals($expected, $actual, $message); - } - - /** - * Asserts that two XML documents are equal. - * - * @param string $expectedXml - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '') - { - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->loadXML($expectedXml); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->loadXML($actualXml); - - self::assertEquals($expected, $actual, $message); - } - - /** - * Asserts that two XML documents are not equal. - * - * @param string $expectedXml - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.1.0 - */ - public static function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '') - { - $expected = new DOMDocument; - $expected->preserveWhiteSpace = FALSE; - $expected->loadXML($expectedXml); - - $actual = new DOMDocument; - $actual->preserveWhiteSpace = FALSE; - $actual->loadXML($actualXml); - - self::assertNotEquals($expected, $actual, $message); - } - - /** - * Asserts that a hierarchy of DOMElements matches. - * - * @param DOMElement $expectedElement - * @param DOMElement $actualElement - * @param boolean $checkAttributes - * @param string $message - * @author Mattis Stordalen Flister - * @since Method available since Release 3.3.0 - */ - public static function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = FALSE, $message = '') - { - self::assertEquals( - $expectedElement->tagName, - $actualElement->tagName, - $message - ); - - if ($checkAttributes) { - self::assertEquals( - $expectedElement->attributes->length, - $actualElement->attributes->length, - sprintf( - '%s%sNumber of attributes on node "%s" does not match', - $message, - !empty($message) ? "\n" : '', - $expectedElement->tagName - ) - ); - - for ($i = 0 ; $i < $expectedElement->attributes->length; $i++) { - $expectedAttribute = $expectedElement->attributes->item($i); - $actualAttribute = $actualElement->attributes->getNamedItem( - $expectedAttribute->name - ); - - if (!$actualAttribute) { - self::fail( - sprintf( - '%s%sCould not find attribute "%s" on node "%s"', - $message, - !empty($message) ? "\n" : '', - $expectedAttribute->name, - $expectedElement->tagName - ) - ); - } - } - } - - PHPUnit_Util_XML::removeCharacterDataNodes($expectedElement); - PHPUnit_Util_XML::removeCharacterDataNodes($actualElement); - - self::assertEquals( - $expectedElement->childNodes->length, - $actualElement->childNodes->length, - sprintf( - '%s%sNumber of child nodes of "%s" differs', - $message, - !empty($message) ? "\n" : '', - $expectedElement->tagName - ) - ); - - for ($i = 0; $i < $expectedElement->childNodes->length; $i++) { - self::assertEqualXMLStructure( - $expectedElement->childNodes->item($i), - $actualElement->childNodes->item($i), - $checkAttributes, - $message - ); - } - } - - /** - * Assert the presence, absence, or count of elements in a document matching - * the CSS $selector, regardless of the contents of those elements. - * - * The first argument, $selector, is the CSS selector used to match - * the elements in the $actual document. - * - * The second argument, $count, can be either boolean or numeric. - * When boolean, it asserts for presence of elements matching the selector - * (TRUE) or absence of elements (FALSE). - * When numeric, it asserts the count of elements. - * - * assertSelectCount("#binder", true, $xml); // any? - * assertSelectCount(".binder", 3, $xml); // exactly 3? - * - * @param array $selector - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertSelectCount($selector, $count, $actual, $message = '', $isHtml = TRUE) - { - self::assertSelectEquals( - $selector, TRUE, $count, $actual, $message, $isHtml - ); - } - - /** - * assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? - * assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml); // 3? - * - * @param array $selector - * @param string $pattern - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertSelectRegExp($selector, $pattern, $count, $actual, $message = '', $isHtml = TRUE) - { - self::assertSelectEquals( - $selector, "regexp:$pattern", $count, $actual, $message, $isHtml - ); - } - - /** - * assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? - * assertSelectEquals("#binder .name", "Chuck", false, $xml); // none? - * - * @param array $selector - * @param string $content - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertSelectEquals($selector, $content, $count, $actual, $message = '', $isHtml = TRUE) - { - $tags = PHPUnit_Util_XML::cssSelect( - $selector, $content, $actual, $isHtml - ); - - // assert specific number of elements - if (is_numeric($count)) { - $counted = $tags ? count($tags) : 0; - self::assertEquals($count, $counted, $message); - } - - // assert any elements exist if true, assert no elements exist if false - else if (is_bool($count)) { - $any = count($tags) > 0 && $tags[0] instanceof DOMNode; - - if ($count) { - self::assertTrue($any, $message); - } else { - self::assertFalse($any, $message); - } - } - - // check for range number of elements - else if (is_array($count) && - (isset($count['>']) || isset($count['<']) || - isset($count['>=']) || isset($count['<=']))) { - $counted = $tags ? count($tags) : 0; - - if (isset($count['>'])) { - self::assertTrue($counted > $count['>'], $message); - } - - if (isset($count['>='])) { - self::assertTrue($counted >= $count['>='], $message); - } - - if (isset($count['<'])) { - self::assertTrue($counted < $count['<'], $message); - } - - if (isset($count['<='])) { - self::assertTrue($counted <= $count['<='], $message); - } - } else { - throw new PHPUnit_Framework_Exception; - } - } - - /** - * Evaluate an HTML or XML string and assert its structure and/or contents. - * - * The first argument ($matcher) is an associative array that specifies the - * match criteria for the assertion: - * - * - `id` : the node with the given id attribute must match the - * corresponsing value. - * - `tag` : the node type must match the corresponding value. - * - `attributes` : a hash. The node's attributres must match the - * corresponsing values in the hash. - * - `content` : The text content must match the given value. - * - `parent` : a hash. The node's parent must match the - * corresponsing hash. - * - `child` : a hash. At least one of the node's immediate children - * must meet the criteria described by the hash. - * - `ancestor` : a hash. At least one of the node's ancestors must - * meet the criteria described by the hash. - * - `descendant` : a hash. At least one of the node's descendants must - * meet the criteria described by the hash. - * - `children` : a hash, for counting children of a node. - * Accepts the keys: - * - `count` : a number which must equal the number of children - * that match - * - `less_than` : the number of matching children must be greater - * than this number - * - `greater_than` : the number of matching children must be less than - * this number - * - `only` : another hash consisting of the keys to use to match - * on the children, and only matching children will be - * counted - * - * - * // Matcher that asserts that there is an element with an id="my_id". - * $matcher = array('id' => 'my_id'); - * - * // Matcher that asserts that there is a "span" tag. - * $matcher = array('tag' => 'span'); - * - * // Matcher that asserts that there is a "span" tag with the content - * // "Hello World". - * $matcher = array('tag' => 'span', 'content' => 'Hello World'); - * - * // Matcher that asserts that there is a "span" tag with content matching - * // the regular expression pattern. - * $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/'); - * - * // Matcher that asserts that there is a "span" with an "list" class - * // attribute. - * $matcher = array( - * 'tag' => 'span', - * 'attributes' => array('class' => 'list') - * ); - * - * // Matcher that asserts that there is a "span" inside of a "div". - * $matcher = array( - * 'tag' => 'span', - * 'parent' => array('tag' => 'div') - * ); - * - * // Matcher that asserts that there is a "span" somewhere inside a - * // "table". - * $matcher = array( - * 'tag' => 'span', - * 'ancestor' => array('tag' => 'table') - * ); - * - * // Matcher that asserts that there is a "span" with at least one "em" - * // child. - * $matcher = array( - * 'tag' => 'span', - * 'child' => array('tag' => 'em') - * ); - * - * // Matcher that asserts that there is a "span" containing a (possibly - * // nested) "strong" tag. - * $matcher = array( - * 'tag' => 'span', - * 'descendant' => array('tag' => 'strong') - * ); - * - * // Matcher that asserts that there is a "span" containing 5-10 "em" tags - * // as immediate children. - * $matcher = array( - * 'tag' => 'span', - * 'children' => array( - * 'less_than' => 11, - * 'greater_than' => 4, - * 'only' => array('tag' => 'em') - * ) - * ); - * - * // Matcher that asserts that there is a "div", with an "ul" ancestor and - * // a "li" parent (with class="enum"), and containing a "span" descendant - * // that contains an element with id="my_test" and the text "Hello World". - * $matcher = array( - * 'tag' => 'div', - * 'ancestor' => array('tag' => 'ul'), - * 'parent' => array( - * 'tag' => 'li', - * 'attributes' => array('class' => 'enum') - * ), - * 'descendant' => array( - * 'tag' => 'span', - * 'child' => array( - * 'id' => 'my_test', - * 'content' => 'Hello World' - * ) - * ) - * ); - * - * // Use assertTag() to apply a $matcher to a piece of $html. - * $this->assertTag($matcher, $html); - * - * // Use assertTag() to apply a $matcher to a piece of $xml. - * $this->assertTag($matcher, $xml, '', FALSE); - * - * - * The second argument ($actual) is a string containing either HTML or - * XML text to be tested. - * - * The third argument ($message) is an optional message that will be - * used if the assertion fails. - * - * The fourth argument ($html) is an optional flag specifying whether - * to load the $actual string into a DOMDocument using the HTML or - * XML load strategy. It is TRUE by default, which assumes the HTML - * load strategy. In many cases, this will be acceptable for XML as well. - * - * @param array $matcher - * @param string $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertTag($matcher, $actual, $message = '', $isHtml = TRUE) - { - $dom = PHPUnit_Util_XML::load($actual, $isHtml); - $tags = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml); - $matched = count($tags) > 0 && $tags[0] instanceof DOMNode; - - self::assertTrue($matched, $message); - } - - /** - * This assertion is the exact opposite of assertTag(). - * - * Rather than asserting that $matcher results in a match, it asserts that - * $matcher does not match. - * - * @param array $matcher - * @param string $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertNotTag($matcher, $actual, $message = '', $isHtml = TRUE) - { - $dom = PHPUnit_Util_XML::load($actual, $isHtml); - $tags = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml); - $matched = count($tags) > 0 && $tags[0] instanceof DOMNode; - - self::assertFalse($matched, $message); - } - - /** - * Evaluates a PHPUnit_Framework_Constraint matcher object. - * - * @param mixed $value - * @param PHPUnit_Framework_Constraint $constraint - * @param string $message - * @since Method available since Release 3.0.0 - */ - public static function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '') - { - self::$count += count($constraint); - - $constraint->evaluate($value, $message); - } - - /** - * Asserts that two given JSON encoded objects or arrays are equal. - * - * @param string $expectedJson - * @param string $actualJson - * @param string $message - */ - public static function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = '') - { - $expected = json_decode($expectedJson); - if ($jsonError = json_last_error()) { - $message .= - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - $jsonError, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix('expected') - ); - } - - $actual = json_decode($actualJson); - if ($jsonError = json_last_error()) { - $message .= - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - $jsonError, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix('actual') - ); - } - return self::assertEquals($expected, $actual, $message); - } - - /** - * Asserts that two given JSON encoded objects or arrays are not equal. - * - * @param string $expectedJson - * @param string $actualJson - * @param string $message - */ - public static function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '') - { - $expected = json_decode($expectedJson); - if ($jsonError = json_last_error()) { - $message .= - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - $jsonError, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix('expected') - ); - } - - $actual = json_decode($actualJson); - if ($jsonError = json_last_error()) { - $message .= - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - $jsonError, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix('actual') - ); - } - - self::assertNotEquals($expected, $actual, $message); - } - - /** - * Asserts that the generated JSON encoded object and the content of the given file are equal. - * - * @param string $expectedFile - * @param string $actualJson - * @param string $message - */ - public static function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = '') - { - self::assertFileExists($expectedFile, $message); - - if (!is_string($actualJson)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - // call constraint - $constraint = new PHPUnit_Framework_Constraint_JsonMatches( - file_get_contents($expectedFile) - ); - - self::assertThat($actualJson, $constraint, $message); - } - - /** - * Asserts that the generated JSON encoded object and the content of the given file are not equal. - * - * @param string $expectedFile - * @param string $actualJson - * @param string $message - */ - public static function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '') - { - self::assertFileExists($expectedFile, $message); - - if (!is_string($actualJson)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - // call constraint - $constraint = new PHPUnit_Framework_Constraint_JsonMatches( - file_get_contents($expectedFile) - ); - - self::assertThat($actualJson, new PHPUnit_Framework_Constraint_Not($constraint), $message); - } - - /** - * Asserts that two JSON files are not equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - */ - public static function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = '') - { - self::assertFileExists($expectedFile, $message); - self::assertFileExists($actualFile, $message); - - $actualJson = file_get_contents($actualFile); - $expectedJson = file_get_contents($expectedFile); - - // call constraint - $constraintExpected = new PHPUnit_Framework_Constraint_JsonMatches( - file_get_contents($expectedFile) - ); - - $constraintActual = new PHPUnit_Framework_Constraint_JsonMatches($actualJson); - - self::assertThat($expectedJson, new PHPUnit_Framework_Constraint_Not($constraintActual), $message); - self::assertThat($actualJson, new PHPUnit_Framework_Constraint_Not($constraintExpected), $message); - } - - /** - * Asserts that two JSON files are equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - */ - public static function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = '') - { - self::assertFileExists($expectedFile, $message); - self::assertFileExists($actualFile, $message); - - $actualJson = file_get_contents($actualFile); - $expectedJson = file_get_contents($expectedFile); - - // call constraint - $constraintExpected = new PHPUnit_Framework_Constraint_JsonMatches( - file_get_contents($expectedFile) - ); - - $constraintActual = new PHPUnit_Framework_Constraint_JsonMatches($actualJson); - - self::assertThat($expectedJson, $constraintActual, $message); - self::assertThat($actualJson, $constraintExpected, $message); - } - - /** - * Returns a PHPUnit_Framework_Constraint_And matcher object. - * - * @return PHPUnit_Framework_Constraint_And - * @since Method available since Release 3.0.0 - */ - public static function logicalAnd() - { - $constraints = func_get_args(); - - $constraint = new PHPUnit_Framework_Constraint_And; - $constraint->setConstraints($constraints); - - return $constraint; - } - - /** - * Returns a PHPUnit_Framework_Constraint_Or matcher object. - * - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.0.0 - */ - public static function logicalOr() - { - $constraints = func_get_args(); - - $constraint = new PHPUnit_Framework_Constraint_Or; - $constraint->setConstraints($constraints); - - return $constraint; - } - - /** - * Returns a PHPUnit_Framework_Constraint_Not matcher object. - * - * @param PHPUnit_Framework_Constraint $constraint - * @return PHPUnit_Framework_Constraint_Not - * @since Method available since Release 3.0.0 - */ - public static function logicalNot(PHPUnit_Framework_Constraint $constraint) - { - return new PHPUnit_Framework_Constraint_Not($constraint); - } - - /** - * Returns a PHPUnit_Framework_Constraint_Xor matcher object. - * - * @return PHPUnit_Framework_Constraint_Xor - * @since Method available since Release 3.0.0 - */ - public static function logicalXor() - { - $constraints = func_get_args(); - - $constraint = new PHPUnit_Framework_Constraint_Xor; - $constraint->setConstraints($constraints); - - return $constraint; - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsAnything matcher object. - * - * @return PHPUnit_Framework_Constraint_IsAnything - * @since Method available since Release 3.0.0 - */ - public static function anything() - { - return new PHPUnit_Framework_Constraint_IsAnything; - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsTrue matcher object. - * - * @return PHPUnit_Framework_Constraint_IsTrue - * @since Method available since Release 3.3.0 - */ - public static function isTrue() - { - return new PHPUnit_Framework_Constraint_IsTrue; - } - - /** - * Returns a PHPUnit_Framework_Constraint_Callback matcher object. - * - * @return PHPUnit_Framework_Constraint_Callback - */ - public static function callback($callback) - { - return new PHPUnit_Framework_Constraint_Callback($callback); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsFalse matcher object. - * - * @return PHPUnit_Framework_Constraint_IsFalse - * @since Method available since Release 3.3.0 - */ - public static function isFalse() - { - return new PHPUnit_Framework_Constraint_IsFalse; - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsNull matcher object. - * - * @return PHPUnit_Framework_Constraint_IsNull - * @since Method available since Release 3.3.0 - */ - public static function isNull() - { - return new PHPUnit_Framework_Constraint_IsNull; - } - - /** - * Returns a PHPUnit_Framework_Constraint_Attribute matcher object. - * - * @param PHPUnit_Framework_Constraint $constraint - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_Attribute - * @since Method available since Release 3.1.0 - */ - public static function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName) - { - return new PHPUnit_Framework_Constraint_Attribute( - $constraint, $attributeName - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher - * object. - * - * @param mixed $value - * @param boolean $checkForObjectIdentity - * @return PHPUnit_Framework_Constraint_TraversableContains - * @since Method available since Release 3.0.0 - */ - public static function contains($value, $checkForObjectIdentity = TRUE) - { - return new PHPUnit_Framework_Constraint_TraversableContains($value, $checkForObjectIdentity); - } - - /** - * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher - * object. - * - * @param string $type - * @return PHPUnit_Framework_Constraint_TraversableContainsOnly - * @since Method available since Release 3.1.4 - */ - public static function containsOnly($type) - { - return new PHPUnit_Framework_Constraint_TraversableContainsOnly($type); - } - - /** - * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher - * object. - * - * @param string $classname - * @return PHPUnit_Framework_Constraint_TraversableContainsOnly - */ - public static function containsOnlyInstancesOf($classname) - { - return new PHPUnit_Framework_Constraint_TraversableContainsOnly($classname, FALSE); - } - - /** - * Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object. - * - * @param mixed $key - * @return PHPUnit_Framework_Constraint_ArrayHasKey - * @since Method available since Release 3.0.0 - */ - public static function arrayHasKey($key) - { - return new PHPUnit_Framework_Constraint_ArrayHasKey($key); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object. - * - * @param mixed $value - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @return PHPUnit_Framework_Constraint_IsEqual - * @since Method available since Release 3.0.0 - */ - public static function equalTo($value, $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - return new PHPUnit_Framework_Constraint_IsEqual( - $value, $delta, $maxDepth, $canonicalize, $ignoreCase - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object - * that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher - * object. - * - * @param string $attributeName - * @param mixed $value - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @return PHPUnit_Framework_Constraint_Attribute - * @since Method available since Release 3.1.0 - */ - public static function attributeEqualTo($attributeName, $value, $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - return self::attribute( - self::equalTo( - $value, $delta, $maxDepth, $canonicalize, $ignoreCase - ), - $attributeName - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object. - * - * @return PHPUnit_Framework_Constraint_IsEmpty - * @since Method available since Release 3.5.0 - */ - public static function isEmpty() - { - return new PHPUnit_Framework_Constraint_IsEmpty; - } - /** - * Returns a PHPUnit_Framework_Constraint_FileExists matcher object. - * - * @return PHPUnit_Framework_Constraint_FileExists - * @since Method available since Release 3.0.0 - */ - public static function fileExists() - { - return new PHPUnit_Framework_Constraint_FileExists; - } - - /** - * Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_GreaterThan - * @since Method available since Release 3.0.0 - */ - public static function greaterThan($value) - { - return new PHPUnit_Framework_Constraint_GreaterThan($value); - } - - /** - * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps - * a PHPUnit_Framework_Constraint_IsEqual and a - * PHPUnit_Framework_Constraint_GreaterThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.1.0 - */ - public static function greaterThanOrEqual($value) - { - return self::logicalOr( - new PHPUnit_Framework_Constraint_IsEqual($value), - new PHPUnit_Framework_Constraint_GreaterThan($value) - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ClassHasAttribute - * @since Method available since Release 3.1.0 - */ - public static function classHasAttribute($attributeName) - { - return new PHPUnit_Framework_Constraint_ClassHasAttribute( - $attributeName - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher - * object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @since Method available since Release 3.1.0 - */ - public static function classHasStaticAttribute($attributeName) - { - return new PHPUnit_Framework_Constraint_ClassHasStaticAttribute( - $attributeName - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ObjectHasAttribute - * @since Method available since Release 3.0.0 - */ - public static function objectHasAttribute($attributeName) - { - return new PHPUnit_Framework_Constraint_ObjectHasAttribute( - $attributeName - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_IsIdentical - * @since Method available since Release 3.0.0 - */ - public static function identicalTo($value) - { - return new PHPUnit_Framework_Constraint_IsIdentical($value); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object. - * - * @param string $className - * @return PHPUnit_Framework_Constraint_IsInstanceOf - * @since Method available since Release 3.0.0 - */ - public static function isInstanceOf($className) - { - return new PHPUnit_Framework_Constraint_IsInstanceOf($className); - } - - /** - * Returns a PHPUnit_Framework_Constraint_IsType matcher object. - * - * @param string $type - * @return PHPUnit_Framework_Constraint_IsType - * @since Method available since Release 3.0.0 - */ - public static function isType($type) - { - return new PHPUnit_Framework_Constraint_IsType($type); - } - - /** - * Returns a PHPUnit_Framework_Constraint_LessThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_LessThan - * @since Method available since Release 3.0.0 - */ - public static function lessThan($value) - { - return new PHPUnit_Framework_Constraint_LessThan($value); - } - - /** - * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps - * a PHPUnit_Framework_Constraint_IsEqual and a - * PHPUnit_Framework_Constraint_LessThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.1.0 - */ - public static function lessThanOrEqual($value) - { - return self::logicalOr( - new PHPUnit_Framework_Constraint_IsEqual($value), - new PHPUnit_Framework_Constraint_LessThan($value) - ); - } - - /** - * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object. - * - * @param string $pattern - * @return PHPUnit_Framework_Constraint_PCREMatch - * @since Method available since Release 3.0.0 - */ - public static function matchesRegularExpression($pattern) - { - return new PHPUnit_Framework_Constraint_PCREMatch($pattern); - } - - /** - * Returns a PHPUnit_Framework_Constraint_StringMatches matcher object. - * - * @param string $string - * @return PHPUnit_Framework_Constraint_StringMatches - * @since Method available since Release 3.5.0 - */ - public static function matches($string) - { - return new PHPUnit_Framework_Constraint_StringMatches($string); - } - - /** - * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object. - * - * @param mixed $prefix - * @return PHPUnit_Framework_Constraint_StringStartsWith - * @since Method available since Release 3.4.0 - */ - public static function stringStartsWith($prefix) - { - return new PHPUnit_Framework_Constraint_StringStartsWith($prefix); - } - - /** - * Returns a PHPUnit_Framework_Constraint_StringContains matcher object. - * - * @param string $string - * @param boolean $case - * @return PHPUnit_Framework_Constraint_StringContains - * @since Method available since Release 3.0.0 - */ - public static function stringContains($string, $case = TRUE) - { - return new PHPUnit_Framework_Constraint_StringContains($string, $case); - } - - /** - * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object. - * - * @param mixed $suffix - * @return PHPUnit_Framework_Constraint_StringEndsWith - * @since Method available since Release 3.4.0 - */ - public static function stringEndsWith($suffix) - { - return new PHPUnit_Framework_Constraint_StringEndsWith($suffix); - } - - /** - * Fails a test with the given message. - * - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ - public static function fail($message = '') - { - throw new PHPUnit_Framework_AssertionFailedError($message); - } - - /** - * Returns the value of an attribute of a class or an object. - * This also works for attributes that are declared protected or private. - * - * @param mixed $classOrObject - * @param string $attributeName - * @return mixed - * @throws PHPUnit_Framework_Exception - */ - public static function readAttribute($classOrObject, $attributeName) - { - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - if (is_string($classOrObject)) { - if (!class_exists($classOrObject)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'class name' - ); - } - - return PHPUnit_Util_Class::getStaticAttribute( - $classOrObject, - $attributeName - ); - } - - else if (is_object($classOrObject)) { - return PHPUnit_Util_Class::getObjectAttribute( - $classOrObject, - $attributeName - ); - } - - else { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'class name or object' - ); - } - } - - /** - * Mark the test as incomplete. - * - * @param string $message - * @throws PHPUnit_Framework_IncompleteTestError - * @since Method available since Release 3.0.0 - */ - public static function markTestIncomplete($message = '') - { - throw new PHPUnit_Framework_IncompleteTestError($message); - } - - /** - * Mark the test as skipped. - * - * @param string $message - * @throws PHPUnit_Framework_SkippedTestError - * @since Method available since Release 3.0.0 - */ - public static function markTestSkipped($message = '') - { - throw new PHPUnit_Framework_SkippedTestError($message); - } - - /** - * Return the current assertion count. - * - * @return integer - * @since Method available since Release 3.3.3 - */ - public static function getCount() - { - return self::$count; - } - - /** - * Reset the assertion counter. - * - * @since Method available since Release 3.3.3 - */ - public static function resetCount() - { - self::$count = 0; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php deleted file mode 100644 index 057a9501..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php +++ /dev/null @@ -1,1972 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -/** - * Returns a matcher that matches when the method it is evaluated for - * is executed zero or more times. - * - * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount - * @since Method available since Release 3.0.0 - */ -function any() -{ - return PHPUnit_Framework_TestCase::any(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsAnything matcher object. - * - * @return PHPUnit_Framework_Constraint_IsAnything - * @since Method available since Release 3.0.0 - */ -function anything() -{ - return PHPUnit_Framework_Assert::anything(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object. - * - * @param mixed $key - * @return PHPUnit_Framework_Constraint_ArrayHasKey - * @since Method available since Release 3.0.0 - */ -function arrayHasKey($key) -{ - return PHPUnit_Framework_Assert::arrayHasKey($key); -} - -/** - * Asserts that an array has a specified key. - * - * @param mixed $key - * @param array $array - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertArrayHasKey($key, array $array, $message = '') -{ - return PHPUnit_Framework_Assert::assertArrayHasKey($key, $array, $message); -} - -/** - * Asserts that an array does not have a specified key. - * - * @param mixed $key - * @param array $array - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertArrayNotHasKey($key, array $array, $message = '') -{ - return PHPUnit_Framework_Assert::assertArrayNotHasKey($key, $array, $message); -} - -/** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object contains a needle. - * - * @param mixed $needle - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 3.0.0 - */ -function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) -{ - return PHPUnit_Framework_Assert::assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message, $ignoreCase, $checkForObjectIdentity); -} - -/** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object contains only values of a given type. - * - * @param string $type - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ -function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType, $message); -} - -/** - * Asserts the number of elements of an array, Countable or Iterator - * that is stored in an attribute. - * - * @param integer $expectedCount - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.6.0 - */ -function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message); -} - -/** - * Asserts that a static attribute of a class or an attribute of an object - * is empty. - * - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message); -} - -/** - * Asserts that a variable is equal to an attribute of an object. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ -function assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Asserts that an attribute is greater than another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that an attribute is greater than or equal to another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message); -} - -/** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeInternalType($expected, $attributeName, $classOrObject, $message); -} - -/** - * Asserts that an attribute is smaller than another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that an attribute is smaller than or equal to another value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object does not contain a needle. - * - * @param mixed $needle - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 3.0.0 - */ -function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) -{ - return PHPUnit_Framework_Assert::assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message, $ignoreCase, $checkForObjectIdentity); -} - -/** - * Asserts that a haystack that is stored in a static attribute of a class - * or an attribute of an object does not contain only values of a given - * type. - * - * @param string $type - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ -function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType, $message); -} - -/** - * Asserts the number of elements of an array, Countable or Iterator - * that is stored in an attribute. - * - * @param integer $expectedCount - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.6.0 - */ -function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message); -} - -/** - * Asserts that a static attribute of a class or an attribute of an object - * is not empty. - * - * @param string $haystackAttributeName - * @param mixed $haystackClassOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message); -} - -/** - * Asserts that a variable is not equal to an attribute of an object. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param string $actualClassOrObject - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ -function assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message); -} - -/** - * Asserts that an attribute is of a given type. - * - * @param string $expected - * @param string $attributeName - * @param mixed $classOrObject - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message); -} - -/** - * Asserts that a variable and an attribute of an object do not have the - * same type and value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param object $actualClassOrObject - * @param string $message - */ -function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that a variable and an attribute of an object have the same type - * and value. - * - * @param mixed $expected - * @param string $actualAttributeName - * @param object $actualClassOrObject - * @param string $message - */ -function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') -{ - return PHPUnit_Framework_Assert::assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message); -} - -/** - * Asserts that a class has a specified attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertClassHasAttribute($attributeName, $className, $message = '') -{ - return PHPUnit_Framework_Assert::assertClassHasAttribute($attributeName, $className, $message); -} - -/** - * Asserts that a class has a specified static attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertClassHasStaticAttribute($attributeName, $className, $message = '') -{ - return PHPUnit_Framework_Assert::assertClassHasStaticAttribute($attributeName, $className, $message); -} - -/** - * Asserts that a class does not have a specified attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertClassNotHasAttribute($attributeName, $className, $message = '') -{ - return PHPUnit_Framework_Assert::assertClassNotHasAttribute($attributeName, $className, $message); -} - -/** - * Asserts that a class does not have a specified static attribute. - * - * @param string $attributeName - * @param string $className - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertClassNotHasStaticAttribute($attributeName, $className, $message = '') -{ - return PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute($attributeName, $className, $message); -} - -/** - * Asserts that a haystack contains a needle. - * - * @param mixed $needle - * @param mixed $haystack - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 2.1.0 - */ -function assertContains($needle, $haystack, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) -{ - return PHPUnit_Framework_Assert::assertContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity); -} - -/** - * Asserts that a haystack contains only values of a given type. - * - * @param string $type - * @param mixed $haystack - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ -function assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = '') -{ - return PHPUnit_Framework_Assert::assertContainsOnly($type, $haystack, $isNativeType, $message); -} - -/** - * Asserts the number of elements of an array, Countable or Iterator. - * - * @param integer $expectedCount - * @param mixed $haystack - * @param string $message - */ -function assertCount($expectedCount, $haystack, $message = '') -{ - return PHPUnit_Framework_Assert::assertCount($expectedCount, $haystack, $message); -} - -/** - * Asserts that a variable is empty. - * - * @param mixed $actual - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ -function assertEmpty($actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertEmpty($actual, $message); -} - -/** - * Asserts that a hierarchy of DOMElements matches. - * - * @param DOMElement $expectedElement - * @param DOMElement $actualElement - * @param boolean $checkAttributes - * @param string $message - * @author Mattis Stordalen Flister - * @since Method available since Release 3.3.0 - */ -function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = FALSE, $message = '') -{ - return PHPUnit_Framework_Assert::assertEqualXMLStructure($expectedElement, $actualElement, $checkAttributes, $message); -} - -/** - * Asserts that two variables are equal. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ -function assertEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertEquals($expected, $actual, $message, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a condition is false. - * - * @param boolean $condition - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ -function assertFalse($condition, $message = '') -{ - return PHPUnit_Framework_Assert::assertFalse($condition, $message); -} - -/** - * Asserts that the contents of one file is equal to the contents of another - * file. - * - * @param string $expected - * @param string $actual - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.2.14 - */ -function assertFileEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertFileEquals($expected, $actual, $message, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a file exists. - * - * @param string $filename - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertFileExists($filename, $message = '') -{ - return PHPUnit_Framework_Assert::assertFileExists($filename, $message); -} - -/** - * Asserts that the contents of one file is not equal to the contents of - * another file. - * - * @param string $expected - * @param string $actual - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.2.14 - */ -function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertFileNotEquals($expected, $actual, $message, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a file does not exist. - * - * @param string $filename - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertFileNotExists($filename, $message = '') -{ - return PHPUnit_Framework_Assert::assertFileNotExists($filename, $message); -} - -/** - * Asserts that a value is greater than another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertGreaterThan($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertGreaterThan($expected, $actual, $message); -} - -/** - * Asserts that a value is greater than or equal to another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertGreaterThanOrEqual($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertGreaterThanOrEqual($expected, $actual, $message); -} - -/** - * Asserts that a variable is of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertInstanceOf($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertInstanceOf($expected, $actual, $message); -} - -/** - * Asserts that a variable is of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertInternalType($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertInternalType($expected, $actual, $message); -} - -/** - * Asserts that two given JSON encoded objects or arrays are equal. - * - * @param string $expectedJson - * @param string $actualJson - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = ''); -} - -/** - * Asserts that two given JSON encoded objects or arrays are not equal. - * - * @param string $expectedJson - * @param string $actualJson - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = ''); -} - -/** - * Asserts that the generated JSON encoded object and the content of the given file are equal. - * - * @param string $expectedFile - * @param string $actualJson - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = ''); -} - -/** - * Asserts that the generated JSON encoded object and the content of the given file are not equal. - * - * @param string $expectedFile - * @param string $actualJson - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = ''); -} - -/** - * Asserts that two JSON files are not equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = ''); -} - -/** - * Asserts that two JSON files are equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.7.0 - */ -function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = '') -{ - return PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = ''); -} - -/** - * Asserts that a value is smaller than another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertLessThan($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertLessThan($expected, $actual, $message); -} - -/** - * Asserts that a value is smaller than or equal to another value. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertLessThanOrEqual($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertLessThanOrEqual($expected, $actual, $message); -} - -/** - * Asserts that a haystack does not contain a needle. - * - * @param mixed $needle - * @param mixed $haystack - * @param string $message - * @param boolean $ignoreCase - * @param boolean $checkForObjectIdentity - * @since Method available since Release 2.1.0 - */ -function assertNotContains($needle, $haystack, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) -{ - return PHPUnit_Framework_Assert::assertNotContains($needle, $haystack, $message, $ignoreCase, $checkForObjectIdentity); -} - -/** - * Asserts that a haystack does not contain only values of a given type. - * - * @param string $type - * @param mixed $haystack - * @param boolean $isNativeType - * @param string $message - * @since Method available since Release 3.1.4 - */ -function assertNotContainsOnly($type, $haystack, $isNativeType = NULL, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotContainsOnly($type, $haystack, $isNativeType, $message); -} - -/** - * Asserts the number of elements of an array, Countable or Iterator. - * - * @param integer $expectedCount - * @param mixed $haystack - * @param string $message - */ -function assertNotCount($expectedCount, $haystack, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotCount($expectedCount, $haystack, $message); -} - -/** - * Asserts that a variable is not empty. - * - * @param mixed $actual - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ -function assertNotEmpty($actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotEmpty($actual, $message); -} - -/** - * Asserts that two variables are not equal. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 2.3.0 - */ -function assertNotEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertNotEquals($expected, $actual, $message, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a variable is not of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertNotInstanceOf($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotInstanceOf($expected, $actual, $message); -} - -/** - * Asserts that a variable is not of a given type. - * - * @param string $expected - * @param mixed $actual - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertNotInternalType($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotInternalType($expected, $actual, $message); -} - -/** - * Asserts that a variable is not NULL. - * - * @param mixed $actual - * @param string $message - */ -function assertNotNull($actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotNull($actual, $message); -} - -/** - * Asserts that a string does not match a given regular expression. - * - * @param string $pattern - * @param string $string - * @param string $message - * @since Method available since Release 2.1.0 - */ -function assertNotRegExp($pattern, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotRegExp($pattern, $string, $message); -} - -/** - * Asserts that two variables do not have the same type and value. - * Used on objects, it asserts that two variables do not reference - * the same object. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - */ -function assertNotSame($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotSame($expected, $actual, $message); -} - -/** - * Assert that the size of two arrays (or `Countable` or `Iterator` objects) - * is not the same. - * - * @param integer $expected - * @param mixed $actual - * @param string $message - */ -function assertNotSameSize($expectedCount, $haystack, $message = '') -{ - return PHPUnit_Framework_Assert::assertNotSameSize($expectedCount, $haystack, $message); -} - -/** - * This assertion is the exact opposite of assertTag(). - * - * Rather than asserting that $matcher results in a match, it asserts that - * $matcher does not match. - * - * @param array $matcher - * @param string $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ -function assertNotTag($matcher, $actual, $message = '', $isHtml = TRUE) -{ - return PHPUnit_Framework_Assert::assertNotTag($matcher, $actual, $message, $isHtml); -} - -/** - * Asserts that a variable is NULL. - * - * @param mixed $actual - * @param string $message - */ -function assertNull($actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertNull($actual, $message); -} - -/** - * Asserts that an object has a specified attribute. - * - * @param string $attributeName - * @param object $object - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertObjectHasAttribute($attributeName, $object, $message = '') -{ - return PHPUnit_Framework_Assert::assertObjectHasAttribute($attributeName, $object, $message); -} - -/** - * Asserts that an object does not have a specified attribute. - * - * @param string $attributeName - * @param object $object - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertObjectNotHasAttribute($attributeName, $object, $message = '') -{ - return PHPUnit_Framework_Assert::assertObjectNotHasAttribute($attributeName, $object, $message); -} - -/** - * Asserts that a string matches a given regular expression. - * - * @param string $pattern - * @param string $string - * @param string $message - */ -function assertRegExp($pattern, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertRegExp($pattern, $string, $message); -} - -/** - * Asserts that two variables have the same type and value. - * Used on objects, it asserts that two variables reference - * the same object. - * - * @param mixed $expected - * @param mixed $actual - * @param string $message - */ -function assertSame($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertSame($expected, $actual, $message); -} - -/** - * Assert that the size of two arrays (or `Countable` or `Iterator` objects) - * is the same. - * - * @param integer $expected - * @param mixed $actual - * @param string $message - */ -function assertSameSize($expected, $actual, $message = '') -{ - return PHPUnit_Framework_Assert::assertSameSize($expected, $actual, $message); -} - -/** - * Assert the presence, absence, or count of elements in a document matching - * the CSS $selector, regardless of the contents of those elements. - * - * The first argument, $selector, is the CSS selector used to match - * the elements in the $actual document. - * - * The second argument, $count, can be either boolean or numeric. - * When boolean, it asserts for presence of elements matching the selector - * (TRUE) or absence of elements (FALSE). - * When numeric, it asserts the count of elements. - * - * assertSelectCount("#binder", true, $xml); // any? - * assertSelectCount(".binder", 3, $xml); // exactly 3? - * - * @param array $selector - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ -function assertSelectCount($selector, $count, $actual, $message = '', $isHtml = TRUE) -{ - return PHPUnit_Framework_Assert::assertSelectCount($selector, $count, $actual, $message, $isHtml); -} - -/** - * assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? - * assertSelectEquals("#binder .name", "Chuck", false, $xml); // none? - * - * @param array $selector - * @param string $content - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ -function assertSelectEquals($selector, $content, $count, $actual, $message = '', $isHtml = TRUE) -{ - return PHPUnit_Framework_Assert::assertSelectEquals($selector, $content, $count, $actual, $message, $isHtml); -} - -/** - * assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? - * assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml);// 3? - * - * @param array $selector - * @param string $pattern - * @param integer $count - * @param mixed $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ -function assertSelectRegExp($selector, $pattern, $count, $actual, $message = '', $isHtml = TRUE) -{ - return PHPUnit_Framework_Assert::assertSelectRegExp($selector, $pattern, $count, $actual, $message, $isHtml); -} - -/** - * Asserts that a string ends not with a given prefix. - * - * @param string $suffix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ -function assertStringEndsNotWith($suffix, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringEndsNotWith($suffix, $string, $message); -} - -/** - * Asserts that a string ends with a given prefix. - * - * @param string $suffix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ -function assertStringEndsWith($suffix, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringEndsWith($suffix, $string, $message); -} - -/** - * Asserts that the contents of a string is equal - * to the contents of a file. - * - * @param string $expectedFile - * @param string $actualString - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.3.0 - */ -function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertStringEqualsFile($expectedFile, $actualString, $message, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a string matches a given format string. - * - * @param string $format - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertStringMatchesFormat($format, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringMatchesFormat($format, $string, $message); -} - -/** - * Asserts that a string matches a given format file. - * - * @param string $formatFile - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertStringMatchesFormatFile($formatFile, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringMatchesFormatFile($formatFile, $string, $message); -} - -/** - * Asserts that the contents of a string is not equal - * to the contents of a file. - * - * @param string $expectedFile - * @param string $actualString - * @param string $message - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @since Method available since Release 3.3.0 - */ -function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::assertStringNotEqualsFile($expectedFile, $actualString, $message, $canonicalize, $ignoreCase); -} - -/** - * Asserts that a string does not match a given format string. - * - * @param string $format - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertStringNotMatchesFormat($format, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringNotMatchesFormat($format, $string, $message); -} - -/** - * Asserts that a string does not match a given format string. - * - * @param string $formatFile - * @param string $string - * @param string $message - * @since Method available since Release 3.5.0 - */ -function assertStringNotMatchesFormatFile($formatFile, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile($formatFile, $string, $message); -} - -/** - * Asserts that a string starts not with a given prefix. - * - * @param string $prefix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ -function assertStringStartsNotWith($prefix, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringStartsNotWith($prefix, $string, $message); -} - -/** - * Asserts that a string starts with a given prefix. - * - * @param string $prefix - * @param string $string - * @param string $message - * @since Method available since Release 3.4.0 - */ -function assertStringStartsWith($prefix, $string, $message = '') -{ - return PHPUnit_Framework_Assert::assertStringStartsWith($prefix, $string, $message); -} - -/** - * Evaluate an HTML or XML string and assert its structure and/or contents. - * - * The first argument ($matcher) is an associative array that specifies the - * match criteria for the assertion: - * - * - `id` : the node with the given id attribute must match the - * corresponsing value. - * - `tag` : the node type must match the corresponding value. - * - `attributes` : a hash. The node's attributres must match the - * corresponsing values in the hash. - * - `content` : The text content must match the given value. - * - `parent` : a hash. The node's parent must match the - * corresponsing hash. - * - `child`: a hash. At least one of the node's immediate children - * must meet the criteria described by the hash. - * - `ancestor` : a hash. At least one of the node's ancestors must - * meet the criteria described by the hash. - * - `descendant` : a hash. At least one of the node's descendants must - * meet the criteria described by the hash. - * - `children` : a hash, for counting children of a node. - * Accepts the keys: - *- `count`: a number which must equal the number of children - * that match - *- `less_than`: the number of matching children must be greater - * than this number - *- `greater_than` : the number of matching children must be less than - * this number - *- `only` : another hash consisting of the keys to use to match - * on the children, and only matching children will be - * counted - * - * - * // Matcher that asserts that there is an element with an id="my_id". - * $matcher = array('id' => 'my_id'); - * - * // Matcher that asserts that there is a "span" tag. - * $matcher = array('tag' => 'span'); - * - * // Matcher that asserts that there is a "span" tag with the content - * // "Hello World". - * $matcher = array('tag' => 'span', 'content' => 'Hello World'); - * - * // Matcher that asserts that there is a "span" tag with content matching - * // the regular expression pattern. - * $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/'); - * - * // Matcher that asserts that there is a "span" with an "list" class - * // attribute. - * $matcher = array( - * 'tag'=> 'span', - * 'attributes' => array('class' => 'list') - * ); - * - * // Matcher that asserts that there is a "span" inside of a "div". - * $matcher = array( - * 'tag'=> 'span', - * 'parent' => array('tag' => 'div') - * ); - * - * // Matcher that asserts that there is a "span" somewhere inside a - * // "table". - * $matcher = array( - * 'tag' => 'span', - * 'ancestor' => array('tag' => 'table') - * ); - * - * // Matcher that asserts that there is a "span" with at least one "em" - * // child. - * $matcher = array( - * 'tag' => 'span', - * 'child' => array('tag' => 'em') - * ); - * - * // Matcher that asserts that there is a "span" containing a (possibly - * // nested) "strong" tag. - * $matcher = array( - * 'tag'=> 'span', - * 'descendant' => array('tag' => 'strong') - * ); - * - * // Matcher that asserts that there is a "span" containing 5-10 "em" tags - * // as immediate children. - * $matcher = array( - * 'tag' => 'span', - * 'children' => array( - * 'less_than'=> 11, - * 'greater_than' => 4, - * 'only' => array('tag' => 'em') - * ) - * ); - * - * // Matcher that asserts that there is a "div", with an "ul" ancestor and - * // a "li" parent (with class="enum"), and containing a "span" descendant - * // that contains an element with id="my_test" and the text "Hello World". - * $matcher = array( - * 'tag'=> 'div', - * 'ancestor' => array('tag' => 'ul'), - * 'parent' => array( - * 'tag'=> 'li', - * 'attributes' => array('class' => 'enum') - * ), - * 'descendant' => array( - * 'tag' => 'span', - * 'child' => array( - * 'id' => 'my_test', - * 'content' => 'Hello World' - * ) - * ) - * ); - * - * // Use assertTag() to apply a $matcher to a piece of $html. - * $this->assertTag($matcher, $html); - * - * // Use assertTag() to apply a $matcher to a piece of $xml. - * $this->assertTag($matcher, $xml, '', FALSE); - * - * - * The second argument ($actual) is a string containing either HTML or - * XML text to be tested. - * - * The third argument ($message) is an optional message that will be - * used if the assertion fails. - * - * The fourth argument ($html) is an optional flag specifying whether - * to load the $actual string into a DOMDocument using the HTML or - * XML load strategy. It is TRUE by default, which assumes the HTML - * load strategy. In many cases, this will be acceptable for XML as well. - * - * @param array $matcher - * @param string $actual - * @param string $message - * @param boolean $isHtml - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ -function assertTag($matcher, $actual, $message = '', $isHtml = TRUE) -{ - return PHPUnit_Framework_Assert::assertTag($matcher, $actual, $message, $isHtml); -} - -/** - * Evaluates a PHPUnit_Framework_Constraint matcher object. - * - * @param mixed$value - * @param PHPUnit_Framework_Constraint $constraint - * @param string $message - * @since Method available since Release 3.0.0 - */ -function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '') -{ - return PHPUnit_Framework_Assert::assertThat($value, $constraint, $message); -} - -/** - * Asserts that a condition is true. - * - * @param boolean $condition - * @param string $message - * @throws PHPUnit_Framework_AssertionFailedError - */ -function assertTrue($condition, $message = '') -{ - return PHPUnit_Framework_Assert::assertTrue($condition, $message); -} - -/** - * Asserts that two XML files are equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message); -} - -/** - * Asserts that two XML files are not equal. - * - * @param string $expectedFile - * @param string $actualFile - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message); -} - -/** - * Asserts that two XML documents are equal. - * - * @param string $expectedFile - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.3.0 - */ -function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message); -} - -/** - * Asserts that two XML documents are equal. - * - * @param string $expectedXml - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message); -} - -/** - * Asserts that two XML documents are not equal. - * - * @param string $expectedFile - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.3.0 - */ -function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message); -} - -/** - * Asserts that two XML documents are not equal. - * - * @param string $expectedXml - * @param string $actualXml - * @param string $message - * @since Method available since Release 3.1.0 - */ -function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '') -{ - return PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message); -} - -/** - * Returns a matcher that matches when the method it is evaluated for - * is invoked at the given $index. - * - * @param integer $index - * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex - * @since Method available since Release 3.0.0 - */ -function at($index) -{ - return PHPUnit_Framework_TestCase::at($index); -} - -/** - * Returns a matcher that matches when the method it is evaluated for - * is executed at least once. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce - * @since Method available since Release 3.0.0 - */ -function atLeastOnce() -{ - return PHPUnit_Framework_TestCase::atLeastOnce(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Attribute matcher object. - * - * @param PHPUnit_Framework_Constraint $constraint - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_Attribute - * @since Method available since Release 3.1.0 - */ -function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName) -{ - return PHPUnit_Framework_Assert::attribute($constraint, $attributeName); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object - * that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher - * object. - * - * @param string $attributeName - * @param mixed $value - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @return PHPUnit_Framework_Constraint_Attribute - * @since Method available since Release 3.1.0 - */ -function attributeEqualTo($attributeName, $value, $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::attributeEqualTo($attributeName, $value, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ClassHasAttribute - * @since Method available since Release 3.1.0 - */ -function classHasAttribute($attributeName) -{ - return PHPUnit_Framework_Assert::classHasAttribute($attributeName); -} - -/** - * Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher - * object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @since Method available since Release 3.1.0 - */ -function classHasStaticAttribute($attributeName) -{ - return PHPUnit_Framework_Assert::classHasStaticAttribute($attributeName); -} - -/** - * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher - * object. - * - * @param mixed $value - * @param boolean $checkForObjectIdentity - * @return PHPUnit_Framework_Constraint_TraversableContains - * @since Method available since Release 3.0.0 - */ -function contains($value, $checkForObjectIdentity = TRUE) -{ - return PHPUnit_Framework_Assert::contains($value, $checkForObjectIdentity); -} - -/** - * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher - * object. - * - * @param string $type - * @return PHPUnit_Framework_Constraint_TraversableContainsOnly - * @since Method available since Release 3.1.4 - */ -function containsOnly($type) -{ - return PHPUnit_Framework_Assert::containsOnly($type); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object. - * - * @param mixed $value - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - * @return PHPUnit_Framework_Constraint_IsEqual - * @since Method available since Release 3.0.0 - */ -function equalTo($value, $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) -{ - return PHPUnit_Framework_Assert::equalTo($value, $delta, $maxDepth, $canonicalize, $ignoreCase); -} - -/** - * Returns a matcher that matches when the method it is evaluated for - * is executed exactly $count times. - * - * @param integer $count - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ -function exactly($count) -{ - return PHPUnit_Framework_TestCase::exactly($count); -} - -/** - * Returns a PHPUnit_Framework_Constraint_FileExists matcher object. - * - * @return PHPUnit_Framework_Constraint_FileExists - * @since Method available since Release 3.0.0 - */ -function fileExists() -{ - return PHPUnit_Framework_Assert::fileExists(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_GreaterThan - * @since Method available since Release 3.0.0 - */ -function greaterThan($value) -{ - return PHPUnit_Framework_Assert::greaterThan($value); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps - * a PHPUnit_Framework_Constraint_IsEqual and a - * PHPUnit_Framework_Constraint_GreaterThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.1.0 - */ -function greaterThanOrEqual($value) -{ - return PHPUnit_Framework_Assert::greaterThanOrEqual($value); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_IsIdentical - * @since Method available since Release 3.0.0 - */ -function identicalTo($value) -{ - return PHPUnit_Framework_Assert::identicalTo($value); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object. - * - * @return PHPUnit_Framework_Constraint_IsEmpty - * @since Method available since Release 3.5.0 - */ -function isEmpty() -{ - return PHPUnit_Framework_Assert::isEmpty(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsFalse matcher object. - * - * @return PHPUnit_Framework_Constraint_IsFalse - * @since Method available since Release 3.3.0 - */ -function isFalse() -{ - return PHPUnit_Framework_Assert::isFalse(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object. - * - * @param string $className - * @return PHPUnit_Framework_Constraint_IsInstanceOf - * @since Method available since Release 3.0.0 - */ -function isInstanceOf($className) -{ - return PHPUnit_Framework_Assert::isInstanceOf($className); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsNull matcher object. - * - * @return PHPUnit_Framework_Constraint_IsNull - * @since Method available since Release 3.3.0 - */ -function isNull() -{ - return PHPUnit_Framework_Assert::isNull(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsTrue matcher object. - * - * @return PHPUnit_Framework_Constraint_IsTrue - * @since Method available since Release 3.3.0 - */ -function isTrue() -{ - return PHPUnit_Framework_Assert::isTrue(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Callback matcher object. - * - * @return PHPUnit_Framework_Constraint_Callback - */ -function callback() -{ - return PHPUnit_Framework_Assert::callback(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_IsType matcher object. - * - * @param string $type - * @return PHPUnit_Framework_Constraint_IsType - * @since Method available since Release 3.0.0 - */ -function isType($type) -{ - return PHPUnit_Framework_Assert::isType($type); -} - -/** - * Returns a PHPUnit_Framework_Constraint_LessThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_LessThan - * @since Method available since Release 3.0.0 - */ -function lessThan($value) -{ - return PHPUnit_Framework_Assert::lessThan($value); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps - * a PHPUnit_Framework_Constraint_IsEqual and a - * PHPUnit_Framework_Constraint_LessThan matcher object. - * - * @param mixed $value - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.1.0 - */ -function lessThanOrEqual($value) -{ - return PHPUnit_Framework_Assert::lessThanOrEqual($value); -} - -/** - * Returns a PHPUnit_Framework_Constraint_And matcher object. - * - * @return PHPUnit_Framework_Constraint_And - * @since Method available since Release 3.0.0 - */ -function logicalAnd() -{ - return PHPUnit_Framework_Assert::logicalAnd(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Not matcher object. - * - * @param PHPUnit_Framework_Constraint $constraint - * @return PHPUnit_Framework_Constraint_Not - * @since Method available since Release 3.0.0 - */ -function logicalNot(PHPUnit_Framework_Constraint $constraint) -{ - return PHPUnit_Framework_Assert::logicalNot($constraint); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Or matcher object. - * - * @return PHPUnit_Framework_Constraint_Or - * @since Method available since Release 3.0.0 - */ -function logicalOr() -{ - return PHPUnit_Framework_Assert::logicalOr(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_Xor matcher object. - * - * @return PHPUnit_Framework_Constraint_Xor - * @since Method available since Release 3.0.0 - */ -function logicalXor() -{ - return PHPUnit_Framework_Assert::logicalXor(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_StringMatches matcher object. - * - * @param string $string - * @return PHPUnit_Framework_Constraint_StringMatches - * @since Method available since Release 3.5.0 - */ -function matches($string) -{ - return PHPUnit_Framework_Assert::matches($string); -} - -/** - * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object. - * - * @param string $pattern - * @return PHPUnit_Framework_Constraint_PCREMatch - * @since Method available since Release 3.0.0 - */ -function matchesRegularExpression($pattern) -{ - return PHPUnit_Framework_Assert::matchesRegularExpression($pattern); -} - -/** - * Returns a matcher that matches when the method it is evaluated for - * is never executed. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ -function never() -{ - return PHPUnit_Framework_TestCase::never(); -} - -/** - * Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object. - * - * @param string $attributeName - * @return PHPUnit_Framework_Constraint_ObjectHasAttribute - * @since Method available since Release 3.0.0 - */ -function objectHasAttribute($attributeName) -{ - return PHPUnit_Framework_Assert::objectHasAttribute($attributeName); -} - -/** - * - * - * @param mixed $value, ... - * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls - * @since Method available since Release 3.0.0 - */ -function onConsecutiveCalls() -{ - return PHPUnit_Framework_TestCase::onConsecutiveCalls(); -} - -/** - * Returns a matcher that matches when the method it is evaluated for - * is executed exactly once. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ -function once() -{ - return PHPUnit_Framework_TestCase::once(); -} - -/** - * - * - * @param integer $argumentIndex - * @return PHPUnit_Framework_MockObject_Stub_ReturnArgument - * @since Method available since Release 3.3.0 - */ -function returnArgument($argumentIndex) -{ - return PHPUnit_Framework_TestCase::returnArgument($argumentIndex); -} - -/** - * - * - * @param mixed $callback - * @return PHPUnit_Framework_MockObject_Stub_ReturnCallback - * @since Method available since Release 3.3.0 - */ -function returnCallback($callback) -{ - return PHPUnit_Framework_TestCase::returnCallback($callback); -} - -/** - * Returns the current object. - * - * This method is useful when mocking a fluent interface. - * - * @return PHPUnit_Framework_MockObject_Stub_ReturnSelf - * @since Method available since Release 3.6.0 - */ -function returnSelf() -{ - return PHPUnit_Framework_TestCase::returnSelf(); -} - -/** - * - * - * @param mixed $value - * @return PHPUnit_Framework_MockObject_Stub_Return - * @since Method available since Release 3.0.0 - */ -function returnValue($value) -{ - return PHPUnit_Framework_TestCase::returnValue($value); -} - -/** - * - * - * @param array $valueMap - * @return PHPUnit_Framework_MockObject_Stub_ReturnValueMap - * @since Method available since Release 3.6.0 - */ -function returnValueMap(array $valueMap) -{ - return PHPUnit_Framework_TestCase::returnValueMap($valueMap); -} - -/** - * Returns a PHPUnit_Framework_Constraint_StringContains matcher object. - * - * @param string $string - * @param boolean $case - * @return PHPUnit_Framework_Constraint_StringContains - * @since Method available since Release 3.0.0 - */ -function stringContains($string, $case = TRUE) -{ - return PHPUnit_Framework_Assert::stringContains($string, $case); -} - -/** - * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object. - * - * @param mixed $suffix - * @return PHPUnit_Framework_Constraint_StringEndsWith - * @since Method available since Release 3.4.0 - */ -function stringEndsWith($suffix) -{ - return PHPUnit_Framework_Assert::stringEndsWith($suffix); -} - -/** - * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object. - * - * @param mixed $prefix - * @return PHPUnit_Framework_Constraint_StringStartsWith - * @since Method available since Release 3.4.0 - */ -function stringStartsWith($prefix) -{ - return PHPUnit_Framework_Assert::stringStartsWith($prefix); -} - -/** - * - * - * @param Exception $exception - * @return PHPUnit_Framework_MockObject_Stub_Exception - * @since Method available since Release 3.1.0 - */ -function throwException(Exception $exception) -{ - return PHPUnit_Framework_TestCase::throwException($exception); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php.in b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php.in deleted file mode 100644 index ada7bfcb..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php.in +++ /dev/null @@ -1,44 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */{functions} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php deleted file mode 100644 index b3ab961e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php +++ /dev/null @@ -1,68 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Thrown when an assertion failed. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_AssertionFailedError extends PHPUnit_Framework_Exception implements PHPUnit_Framework_SelfDescribing -{ - /** - * Wrapper for getMessage() which is declared as final. - * - * @return string - */ - public function toString() - { - return $this->getMessage(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator.php deleted file mode 100644 index c63398be..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator.php +++ /dev/null @@ -1,97 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Abstract base class for comparators which compare values for equality. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -abstract class PHPUnit_Framework_Comparator -{ - /** - * @var PHPUnit_Framework_ComparatorFactory - */ - protected $factory; - - /** - * @param PHPUnit_Framework_ComparatorFactory $factory - */ - public function setFactory(PHPUnit_Framework_ComparatorFactory $factory) - { - $this->factory = $factory; - } - - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - abstract public function accepts($expected, $actual); - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - abstract public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php deleted file mode 100644 index 9e3d4ab0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php +++ /dev/null @@ -1,177 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares arrays for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Array extends PHPUnit_Framework_Comparator -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return is_array($expected) && is_array($actual); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE, array &$processed = array()) - { - if ($canonicalize) { - sort($expected); - sort($actual); - } - - $remaining = $actual; - $expString = $actString = "Array (\n"; - $equal = TRUE; - - foreach ($expected as $key => $value) { - unset($remaining[$key]); - - if (!array_key_exists($key, $actual)) { - $expString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - PHPUnit_Util_Type::shortenedExport($value) - ); - $equal = FALSE; - continue; - } - - try { - $this->factory->getComparatorFor($value, $actual[$key])->assertEquals($value, $actual[$key], $delta, $canonicalize, $ignoreCase, $processed); - $expString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - PHPUnit_Util_Type::shortenedExport($value) - ); - $actString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - PHPUnit_Util_Type::shortenedExport($actual[$key]) - ); - } - - catch (PHPUnit_Framework_ComparisonFailure $e) { - $expString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - $e->getExpectedAsString() - ? $this->indent($e->getExpectedAsString()) - : PHPUnit_Util_Type::shortenedExport($e->getExpected()) - ); - $actString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - $e->getActualAsString() - ? $this->indent($e->getActualAsString()) - : PHPUnit_Util_Type::shortenedExport($e->getActual()) - ); - $equal = FALSE; - } - } - - foreach ($remaining as $key => $value) { - $actString .= sprintf( - " %s => %s\n", - - PHPUnit_Util_Type::export($key), - PHPUnit_Util_Type::shortenedExport($value) - ); - $equal = FALSE; - } - - $expString .= ')'; - $actString .= ')'; - - if (!$equal) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - $expString, - $actString, - FALSE, - 'Failed asserting that two arrays are equal.' - ); - } - } - - protected function indent($lines) - { - return trim(str_replace("\n", "\n ", $lines)); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/DOMDocument.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/DOMDocument.php deleted file mode 100644 index 400204e0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/DOMDocument.php +++ /dev/null @@ -1,114 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares DOMDocument instances for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_DOMDocument extends PHPUnit_Framework_Comparator_Object -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return $expected instanceof DOMDocument && $actual instanceof DOMDocument; - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if ($expected->C14N() !== $actual->C14N()) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - $this->domToText($expected), - $this->domToText($actual), - FALSE, - 'Failed asserting that two DOM documents are equal.' - ); - } - } - - /** - * Returns the normalized, whitespace-cleaned, and indented textual - * representation of a DOMDocument. - * - * @param DOMDocument $document - * @return string - */ - protected function domToText(DOMDocument $document) - { - $document->formatOutput = TRUE; - $document->normalizeDocument(); - - return $document->saveXML(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Double.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Double.php deleted file mode 100644 index e2d8d776..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Double.php +++ /dev/null @@ -1,101 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares doubles for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Double extends PHPUnit_Framework_Comparator_Numeric -{ - /** - * Smallest value available in PHP. - * - * @var float - */ - const EPSILON = 0.0000000001; - - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return (is_double($expected) || is_double($actual)) && is_numeric($expected) && is_numeric($actual); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if ($delta == 0) { - $delta = self::EPSILON; - } - - parent::assertEquals($expected, $actual, $delta, $canonicalize, $ignoreCase); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Exception.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Exception.php deleted file mode 100644 index e4b2e97b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Exception.php +++ /dev/null @@ -1,92 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares Exception instances for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Exception extends PHPUnit_Framework_Comparator_Object -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return $expected instanceof Exception && $actual instanceof Exception; - } - - /** - * Converts an object to an array containing all of its private, protected - * and public properties. - * - * @param object $object - * @return array - */ - protected function toArray($object) - { - $array = parent::toArray($object); - - unset( - $array['file'], - $array['line'], - $array['trace'], - $array['string'], // some internal property of Exception - $array['xdebug_message'] // some internal property added by XDebug - ); - - return $array; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/MockObject.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/MockObject.php deleted file mode 100644 index 52af9b18..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/MockObject.php +++ /dev/null @@ -1,86 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares PHPUnit_Framework_MockObject_MockObject instances for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_MockObject extends PHPUnit_Framework_Comparator_Object -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return $expected instanceof PHPUnit_Framework_MockObject_MockObject && $actual instanceof PHPUnit_Framework_MockObject_MockObject; - } - - /** - * Converts an object to an array containing all of its private, protected - * and public properties. - * - * @param object $object - * @return array - */ - protected function toArray($object) - { - $array = parent::toArray($object); - - unset($array['__phpunit_invocationMocker']); - - return $array; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Numeric.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Numeric.php deleted file mode 100644 index 2ab9b06c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Numeric.php +++ /dev/null @@ -1,116 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares numerical values for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @author Alexander - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Numeric extends PHPUnit_Framework_Comparator_Scalar -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - // all numerical values, but not if one of them is a double - return is_numeric($expected) && is_numeric($actual) && !(is_double($expected) || is_double($actual)); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if (is_infinite($actual) && is_infinite($expected)) { - return; - } - - if (is_nan($actual) && is_nan($expected)) { - return; - } - - if ((is_infinite($actual) XOR is_infinite($expected)) || - (is_nan($actual) XOR is_nan($expected)) || - abs($actual - $expected) > $delta) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - '', - '', - FALSE, - sprintf( - 'Failed asserting that %s matches expected %s.', - - PHPUnit_Util_Type::export($actual), - PHPUnit_Util_Type::export($expected) - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php deleted file mode 100644 index cba32c8f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php +++ /dev/null @@ -1,145 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares objects for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Object extends PHPUnit_Framework_Comparator_Array -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return is_object($expected) && is_object($actual); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE, array &$processed = array()) - { - if (get_class($actual) !== get_class($expected)) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - PHPUnit_Util_Type::export($expected), - PHPUnit_Util_Type::export($actual), - FALSE, - sprintf( - '%s is not instance of expected class "%s".', - - PHPUnit_Util_Type::export($actual), - get_class($expected) - ) - ); - } - - // don't compare twice to allow for cyclic dependencies - if (in_array(array($actual, $expected), $processed, TRUE) || - in_array(array($expected, $actual), $processed, TRUE)) { - return; - } - - $processed[] = array($actual, $expected); - - // don't compare objects if they are identical - // this helps to avoid the error "maximum function nesting level reached" - // CAUTION: this conditional clause is not tested - if ($actual !== $expected) { - try { - parent::assertEquals($this->toArray($expected), $this->toArray($actual), $delta, $canonicalize, $ignoreCase, $processed); - } - - catch (PHPUnit_Framework_ComparisonFailure $e) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - // replace "Array" with "MyClass object" - substr_replace($e->getExpectedAsString(), get_class($expected) . ' Object', 0, 5), - substr_replace($e->getActualAsString(), get_class($actual) . ' Object', 0, 5), - FALSE, - 'Failed asserting that two objects are equal.' - ); - } - } - } - - /** - * Converts an object to an array containing all of its private, protected - * and public properties. - * - * @param object $object - * @return array - */ - protected function toArray($object) - { - return PHPUnit_Util_Type::toArray($object); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Resource.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Resource.php deleted file mode 100644 index 30f751f5..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Resource.php +++ /dev/null @@ -1,97 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares resources for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Resource extends PHPUnit_Framework_Comparator -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return is_resource($expected) && is_resource($actual); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if ($actual != $expected) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - PHPUnit_Util_Type::export($expected), - PHPUnit_Util_Type::export($actual) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Scalar.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Scalar.php deleted file mode 100644 index e13bf756..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Scalar.php +++ /dev/null @@ -1,136 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares scalar or NULL values for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Scalar extends PHPUnit_Framework_Comparator -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - * @since Method available since Release 3.6.0 - */ - public function accepts($expected, $actual) - { - return ((is_scalar($expected) XOR NULL === $expected) && - (is_scalar($actual) XOR NULL === $actual)) - // allow comparison between strings and objects featuring __toString() - || (is_string($expected) && is_object($actual) && method_exists($actual, '__toString')) - || (is_object($expected) && method_exists($expected, '__toString') && is_string($actual)); - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - $expectedToCompare = $expected; - $actualToCompare = $actual; - - // always compare as strings to avoid strange behaviour - // otherwise 0 == 'Foobar' - if (is_string($expected) || is_string($actual)) { - $expectedToCompare = (string)$expectedToCompare; - $actualToCompare = (string)$actualToCompare; - - if ($ignoreCase) { - $expectedToCompare = strtolower($expectedToCompare); - $actualToCompare = strtolower($actualToCompare); - } - } - - if ($expectedToCompare != $actualToCompare) { - if (is_string($expected) && is_string($actual)) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - PHPUnit_Util_Type::export($expected), - PHPUnit_Util_Type::export($actual), - FALSE, - 'Failed asserting that two strings are equal.' - ); - } - - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - // no diff is required - '', - '', - FALSE, - sprintf( - 'Failed asserting that %s matches expected %s.', - - PHPUnit_Util_Type::export($actual), - PHPUnit_Util_Type::export($expected) - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/SplObjectStorage.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/SplObjectStorage.php deleted file mode 100644 index efbf2c70..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/SplObjectStorage.php +++ /dev/null @@ -1,114 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares SplObjectStorage instances for equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_SplObjectStorage extends PHPUnit_Framework_Comparator -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return $expected instanceof SplObjectStorage && $actual instanceof SplObjectStorage; - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - foreach ($actual as $object) { - if (!$expected->contains($object)) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - PHPUnit_Util_Type::export($expected), - PHPUnit_Util_Type::export($actual), - FALSE, - 'Failed asserting that two objects are equal.' - ); - } - } - - foreach ($expected as $object) { - if (!$actual->contains($object)) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - PHPUnit_Util_Type::export($expected), - PHPUnit_Util_Type::export($actual), - FALSE, - 'Failed asserting that two objects are equal.' - ); - } - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Type.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Type.php deleted file mode 100644 index 5cfcf564..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Type.php +++ /dev/null @@ -1,105 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Compares values for type equality. - * - * @package PHPUnit - * @subpackage Framework_Comparator - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Comparator_Type extends PHPUnit_Framework_Comparator -{ - /** - * Returns whether the comparator can compare two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return boolean - */ - public function accepts($expected, $actual) - { - return TRUE; - } - - /** - * Asserts that two values are equal. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @param float $delta The allowed numerical distance between two values to - * consider them equal - * @param bool $canonicalize If set to TRUE, arrays are sorted before - * comparison - * @param bool $ignoreCase If set to TRUE, upper- and lowercasing is - * ignored when comparing string values - * @throws PHPUnit_Framework_ComparisonFailure Thrown when the comparison - * fails. Contains information about the - * specific errors that lead to the failure. - */ - public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if (gettype($expected) != gettype($actual)) { - throw new PHPUnit_Framework_ComparisonFailure( - $expected, - $actual, - // we don't need a diff - '', - '', - FALSE, - sprintf( - '%s does not match expected type "%s".', - - PHPUnit_Util_Type::shortenedExport($actual), - gettype($expected) - ) - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparatorFactory.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparatorFactory.php deleted file mode 100644 index 7a1ecb05..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparatorFactory.php +++ /dev/null @@ -1,156 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Factory for comparators which compare values for equality. - * - * @package PHPUnit - * @subpackage Framework - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_ComparatorFactory -{ - /** - * @var array - */ - protected $comparators = array(); - - /** - * @var PHPUnit_Framework_ComparatorFactory - */ - private static $defaultInstance = NULL; - - /** - * Constructs a new factory. - */ - public function __construct() - { - $this->register(new PHPUnit_Framework_Comparator_Type); - $this->register(new PHPUnit_Framework_Comparator_Scalar); - $this->register(new PHPUnit_Framework_Comparator_Numeric); - $this->register(new PHPUnit_Framework_Comparator_Double); - $this->register(new PHPUnit_Framework_Comparator_Array); - $this->register(new PHPUnit_Framework_Comparator_Resource); - $this->register(new PHPUnit_Framework_Comparator_Object); - $this->register(new PHPUnit_Framework_Comparator_Exception); - $this->register(new PHPUnit_Framework_Comparator_SplObjectStorage); - $this->register(new PHPUnit_Framework_Comparator_DOMDocument); - $this->register(new PHPUnit_Framework_Comparator_MockObject); - } - - /** - * Returns the default instance. - * - * @return PHPUnit_Framework_ComparatorFactory - */ - public static function getDefaultInstance() - { - if (self::$defaultInstance === NULL) { - self::$defaultInstance = new PHPUnit_Framework_ComparatorFactory; - } - - return self::$defaultInstance; - } - - /** - * Returns the correct comparator for comparing two values. - * - * @param mixed $expected The first value to compare - * @param mixed $actual The second value to compare - * @return PHPUnit_Framework_Comparator - * @throws PHPUnit_Framework_Exception - */ - public function getComparatorFor($expected, $actual) - { - foreach ($this->comparators as $comparator) { - if ($comparator->accepts($expected, $actual)) { - return $comparator; - } - } - - throw new PHPUnit_Framework_Exception( - sprintf( - 'No comparator is registered for comparing the types "%s" and "%s"', - gettype($expected), gettype($actual) - ) - ); - } - - /** - * Registers a new comparator. - * - * This comparator will be returned by getInstance() if its accept() method - * returns TRUE for the compared values. It has higher priority than the - * existing comparators, meaning that its accept() method will be tested - * before those of the other comparators. - * - * @param PHPUnit_Framework_Comparator $comparator The registered comparator - */ - public function register(PHPUnit_Framework_Comparator $comparator) - { - array_unshift($this->comparators, $comparator); - $comparator->setFactory($this); - } - - /** - * Unregisters a comparator. - * - * This comparator will no longer be returned by getInstance(). - * - * @param PHPUnit_Framework_Comparator $comparator The unregistered comparator - */ - public function unregister(PHPUnit_Framework_Comparator $comparator) - { - foreach ($this->comparators as $key => $_comparator) { - if ($comparator === $_comparator) { - unset($this->comparators[$key]); - } - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php deleted file mode 100644 index 54823378..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php +++ /dev/null @@ -1,166 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Thrown when an assertion for string equality failed. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_ComparisonFailure extends PHPUnit_Framework_AssertionFailedError -{ - /** - * Expected value of the retrieval which does not match $actual. - * @var mixed - */ - protected $expected; - - /** - * Actually retrieved value which does not match $expected. - * @var mixed - */ - protected $actual; - - /** - * The string representation of the expected value - * @var string - */ - protected $expectedAsString; - - /** - * The string representation of the actual value - * @var string - */ - protected $actualAsString; - - /** - * @var boolean - */ - protected $identical; - - /** - * Optional message which is placed in front of the first line - * returned by toString(). - * @var string - */ - protected $message; - - /** - * Initialises with the expected value and the actual value. - * - * @param mixed $expected Expected value retrieved. - * @param mixed $actual Actual value retrieved. - * @param string $expectedAsString - * @param string $actualAsString - * @param boolean $identical - * @param string $message A string which is prefixed on all returned lines - * in the difference output. - */ - public function __construct($expected, $actual, $expectedAsString, $actualAsString, $identical = FALSE, $message = '') - { - $this->expected = $expected; - $this->actual = $actual; - $this->expectedAsString = $expectedAsString; - $this->actualAsString = $actualAsString; - $this->message = $message; - } - - /** - * @return mixed - */ - public function getActual() - { - return $this->actual; - } - - /** - * @return mixed - */ - public function getExpected() - { - return $this->expected; - } - - /** - * @return string - */ - public function getActualAsString() - { - return $this->actualAsString; - } - - /** - * @return string - */ - public function getExpectedAsString() - { - return $this->expectedAsString; - } - - /** - * @return string - */ - public function getDiff() - { - return $this->actualAsString || $this->expectedAsString - ? PHPUnit_Util_Diff::diff($this->expectedAsString, $this->actualAsString) - : ''; - } - - /** - * @return string - */ - public function toString() - { - return $this->message . $this->getDiff(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php deleted file mode 100644 index dcb6ca3e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php +++ /dev/null @@ -1,180 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Abstract base class for constraints. which are placed upon any value. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 3.0.0 - */ -abstract class PHPUnit_Framework_Constraint implements Countable, PHPUnit_Framework_SelfDescribing -{ - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = FALSE; - - if ($this->matches($other)) { - $success = TRUE; - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * This method can be overridden to implement the evaluation algorithm. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return FALSE; - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.4.0 - */ - public function count() - { - return 1; - } - - /** - * Throws an exception for the given compared value and test description - * - * @param mixed $other Evaluated value or object. - * @param string $description Additional information about the test - * @param PHPUnit_Framework_ComparisonFailure $comparisonFailure - * @throws PHPUnit_Framework_ExpectationFailedException - */ - protected function fail($other, $description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL) - { - $failureDescription = sprintf( - 'Failed asserting that %s.', - $this->failureDescription($other) - ); - - $additionalFailureDescription = $this->additionalFailureDescription($other); - if ($additionalFailureDescription) { - $failureDescription .= "\n" . $additionalFailureDescription; - } - - if (!empty($description)) { - $failureDescription = $description . "\n" . $failureDescription; - } - - throw new PHPUnit_Framework_ExpectationFailedException( - $failureDescription, - $comparisonFailure - ); - } - - /** - * Return additional failure description where needed - * - * The function can be overridden to provide additional failure - * information like a diff - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function additionalFailureDescription($other) - { - return ""; - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * To provide additional failure information additionalFailureDescription - * can be used. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return PHPUnit_Util_Type::export($other) . ' ' . $this->toString(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/And.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/And.php deleted file mode 100644 index d8d03371..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/And.php +++ /dev/null @@ -1,164 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Logical AND. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_And extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint[] - */ - protected $constraints = array(); - - /** - * @var PHPUnit_Framework_Constraint - */ - protected $lastConstraint = NULL; - - /** - * @param PHPUnit_Framework_Constraint[] $constraints - * @throws PHPUnit_Framework_Exception - */ - public function setConstraints(array $constraints) - { - $this->constraints = array(); - - foreach ($constraints as $key => $constraint) { - if (!($constraint instanceof PHPUnit_Framework_Constraint)) { - throw new PHPUnit_Framework_Exception( - 'All parameters to ' . __CLASS__ . - ' must be a constraint object.' - ); - } - - $this->constraints[] = $constraint; - } - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = TRUE; - $constraint = NULL; - - foreach ($this->constraints as $constraint) { - if (!$constraint->evaluate($other, $description, TRUE)) { - $success = FALSE; - break; - } - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - $text = ''; - - foreach ($this->constraints as $key => $constraint) { - if ($key > 0) { - $text .= ' and '; - } - - $text .= $constraint->toString(); - } - - return $text; - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.4.0 - */ - public function count() - { - $count = 0; - - foreach ($this->constraints as $constraint) { - $count += count($constraint); - } - - return $count; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php deleted file mode 100644 index 443eb362..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php +++ /dev/null @@ -1,114 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the array it is evaluated for has a given key. - * - * Uses array_key_exists() to check if the key is found in the input array, if - * not found the evaluaton fails. - * - * The array key is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_ArrayHasKey extends PHPUnit_Framework_Constraint -{ - /** - * @var integer|string - */ - protected $key; - - /** - * @param integer|string $key - */ - public function __construct($key) - { - $this->key = $key; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return array_key_exists($this->key, $other); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'has the key ' . PHPUnit_Util_Type::export($this->key); - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return 'an array ' . $this->toString(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php deleted file mode 100644 index d47ef725..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php +++ /dev/null @@ -1,129 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ - -class PHPUnit_Framework_Constraint_Attribute extends PHPUnit_Framework_Constraint_Composite -{ - /** - * @var string - */ - protected $attributeName; - - /** - * @param PHPUnit_Framework_Constraint $constraint - * @param string $attributeName - */ - public function __construct(PHPUnit_Framework_Constraint $constraint, $attributeName) - { - parent::__construct($constraint); - - $this->attributeName = $attributeName; - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - return parent::evaluate( - PHPUnit_Framework_Assert::readAttribute( - $other, $this->attributeName - ), - $description, - $returnResult - ); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'attribute "' . $this->attributeName . '" ' . - $this->innerConstraint->toString(); - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return $this->toString(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php deleted file mode 100644 index 7a3340dc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php +++ /dev/null @@ -1,116 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - */ - -/** - * Constraint that evaluates against a specified closure. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Timon Rapp - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - */ -class PHPUnit_Framework_Constraint_Callback extends PHPUnit_Framework_Constraint -{ - private $callback; - - /** - * @param callable $value - * @throws InvalidArgumentException - */ - public function __construct($callback) - { - if (!is_callable($callback)) { - throw new InvalidArgumentException( - sprintf( - 'Specified callback <%s> is not callable.', - $this->callbackToString($callback) - ) - ); - } - $this->callback = $callback; - } - - /** - * Evaluates the constraint for parameter $value. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $value Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return call_user_func($this->callback, $other); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is accepted by specified callback'; - } - - private function callbackToString($callback) - { - if (!is_array($callback)) { - return $callback; - } - if (empty($callback)) { - return "empty array"; - } - if (!isset($callback[0]) || !isset($callback[1])) { - return "array without indexes 0 and 1 set"; - } - if (is_object($callback[0])) { - $callback[0] = get_class($callback[0]); - } - return $callback[0] . '::' . $callback[1]; - } - -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php deleted file mode 100644 index 5a6c2e5e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php +++ /dev/null @@ -1,124 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * Constraint that asserts that the class it is evaluated for has a given - * attribute. - * - * The attribute name is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ -class PHPUnit_Framework_Constraint_ClassHasAttribute extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $attributeName; - - /** - * @param string $attributeName - */ - public function __construct($attributeName) - { - $this->attributeName = $attributeName; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - $class = new ReflectionClass($other); - - return $class->hasProperty($this->attributeName); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return sprintf( - 'has attribute "%s"', - - $this->attributeName - ); - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - '%sclass "%s" %s', - - is_object($other) ? 'object of ' : '', - is_object($other) ? get_class($other) : $other, - $this->toString() - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php deleted file mode 100644 index e9667fc5..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php +++ /dev/null @@ -1,98 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * Constraint that asserts that the class it is evaluated for has a given - * static attribute. - * - * The attribute name is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ -class PHPUnit_Framework_Constraint_ClassHasStaticAttribute extends PHPUnit_Framework_Constraint_ClassHasAttribute -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - $class = new ReflectionClass($other); - - if ($class->hasProperty($this->attributeName)) { - $attribute = $class->getProperty($this->attributeName); - - return $attribute->isStatic(); - } else { - return FALSE; - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - * @since Method available since Release 3.3.0 - */ - public function toString() - { - return sprintf( - 'has static attribute "%s"', - - $this->attributeName - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Composite.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Composite.php deleted file mode 100644 index a533f29f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Composite.php +++ /dev/null @@ -1,114 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ - -abstract class PHPUnit_Framework_Constraint_Composite extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint - */ - protected $innerConstraint; - - /** - * @param PHPUnit_Framework_Constraint $innerConstraint - * @param string $attributeName - */ - public function __construct(PHPUnit_Framework_Constraint $innerConstraint) - { - $this->innerConstraint = $innerConstraint; - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - try { - return $this->innerConstraint->evaluate( - $other, - $description, - $returnResult - ); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->fail($other, $description); - } - } - - /** - * Counts the number of constraint elements. - * - * @return integer - */ - public function count() - { - return count($this->innerConstraint); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php deleted file mode 100644 index e3c9f0c6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php +++ /dev/null @@ -1,128 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Constraint_Count extends PHPUnit_Framework_Constraint -{ - /** - * @var integer - */ - protected $expectedCount = 0; - - /** - * @param integer $expected - */ - public function __construct($expected) - { - $this->expectedCount = $expected; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other - * @return boolean - */ - protected function matches($other) - { - return $this->expectedCount === $this->getCountOf($other); - } - - /** - * @param mixed $other - * @return boolean - */ - protected function getCountOf($other) - { - if ($other instanceof Countable || is_array($other)) { - return count($other); - } - - else if ($other instanceof Iterator) { - return iterator_count($other); - } - } - - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - 'actual size %d matches expected size %d', - - $this->getCountOf($other), - $this->expectedCount - ); - } - - /** - * @return string - */ - public function toString() - { - return 'count matches '; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php deleted file mode 100644 index 41585899..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php +++ /dev/null @@ -1,129 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.6 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.6 - */ -class PHPUnit_Framework_Constraint_Exception extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $className; - - /** - * @param string $className - */ - public function __construct($className) - { - $this->className = $className; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $other instanceof $this->className; - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - if ($other !== NULL) { - $message = ''; - if ($other instanceof Exception && $other->getMessage()) { - $message = '. Message was: "' . $other->getMessage() . '"'; - } - return sprintf( - 'exception of type "%s" matches expected exception "%s"%s', - - get_class($other), - $this->className, - $message - ); - } - - return sprintf( - 'exception of type "%s" is thrown', - - $this->className - ); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return sprintf( - 'exception of type "%s"', - - $this->className - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionCode.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionCode.php deleted file mode 100644 index 5105657f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionCode.php +++ /dev/null @@ -1,109 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.6 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.6 - */ -class PHPUnit_Framework_Constraint_ExceptionCode extends PHPUnit_Framework_Constraint -{ - /** - * @var integer - */ - protected $expectedCode; - - /** - * @param integer $expected - */ - public function __construct($expected) - { - $this->expectedCode = $expected; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param Exception $other - * @return boolean - */ - protected function matches($other) - { - return (string)$other->getCode() == (string)$this->expectedCode; - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - '%s is equal to expected exception code %s', - PHPUnit_Util_Type::export($other->getCode()), - PHPUnit_Util_Type::export($this->expectedCode) - ); - } - - /** - * @return string - */ - public function toString() - { - return 'exception code is '; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php deleted file mode 100644 index 64263dc6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php +++ /dev/null @@ -1,109 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.6 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.6 - */ -class PHPUnit_Framework_Constraint_ExceptionMessage extends PHPUnit_Framework_Constraint -{ - /** - * @var integer - */ - protected $expectedMessage; - - /** - * @param string $expected - */ - public function __construct($expected) - { - $this->expectedMessage = $expected; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param Exception $other - * @return boolean - */ - protected function matches($other) - { - return strpos($other->getMessage(), $this->expectedMessage) !== FALSE; - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - "exception message '%s' contains '%s'", - $other->getMessage(), - $this->expectedMessage - ); - } - - /** - * @return string - */ - public function toString() - { - return 'exception message contains '; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/FileExists.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/FileExists.php deleted file mode 100644 index f1e4908c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/FileExists.php +++ /dev/null @@ -1,102 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that checks if the file(name) that it is evaluated for exists. - * - * The file path to check is passed as $other in evaluate(). - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_FileExists extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return file_exists($other); - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - 'file "%s" exists', - - $other - ); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'file exists'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/GreaterThan.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/GreaterThan.php deleted file mode 100644 index dc78aa25..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/GreaterThan.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the value it is evaluated for is greater - * than a given value. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_GreaterThan extends PHPUnit_Framework_Constraint -{ - /** - * @var numeric - */ - protected $value; - - /** - * @param numeric $value - */ - public function __construct($value) - { - $this->value = $value; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $this->value < $other; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is greater than ' . PHPUnit_Util_Type::export($this->value); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsAnything.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsAnything.php deleted file mode 100644 index 9ace7f0f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsAnything.php +++ /dev/null @@ -1,102 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that accepts any input value. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_IsAnything extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - return $returnResult ? TRUE : NULL; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is anything'; - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.5.0 - */ - public function count() - { - return 0; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEmpty.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEmpty.php deleted file mode 100644 index a3bd9f86..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEmpty.php +++ /dev/null @@ -1,104 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -/** - * Constraint that checks whether a variable is empty(). - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.0 - */ -class PHPUnit_Framework_Constraint_IsEmpty extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return empty($other); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is empty'; - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - $type = gettype($other); - - return sprintf( - '%s %s %s', - - $type[0] == 'a' || $type[0] == 'o' ? 'an' : 'a', - $type, - $this->toString() - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php deleted file mode 100644 index 76a86249..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsEqual.php +++ /dev/null @@ -1,215 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Kore Nordmann - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that checks if one value is equal to another. - * - * Equality is checked with PHP's == operator, the operator is explained in - * detail at {@url http://www.php.net/manual/en/types.comparisons.php}. - * Two values are equal if they have the same value disregarding type. - * - * The expected value is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Kore Nordmann - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_IsEqual extends PHPUnit_Framework_Constraint -{ - /** - * @var mixed - */ - protected $value; - - /** - * @var float - */ - protected $delta = 0; - - /** - * @var integer - */ - protected $maxDepth = 10; - - /** - * @var boolean - */ - protected $canonicalize = FALSE; - - /** - * @var boolean - */ - protected $ignoreCase = FALSE; - - /** - * @var PHPUnit_Framework_ComparisonFailure - */ - protected $lastFailure; - - /** - * @param mixed $value - * @param float $delta - * @param integer $maxDepth - * @param boolean $canonicalize - * @param boolean $ignoreCase - */ - public function __construct($value, $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE) - { - if (!is_numeric($delta)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'numeric'); - } - - if (!is_int($maxDepth)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'integer'); - } - - if (!is_bool($canonicalize)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'boolean'); - } - - if (!is_bool($ignoreCase)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(5, 'boolean'); - } - - $this->value = $value; - $this->delta = $delta; - $this->maxDepth = $maxDepth; - $this->canonicalize = $canonicalize; - $this->ignoreCase = $ignoreCase; - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $comparatorFactory = PHPUnit_Framework_ComparatorFactory::getDefaultInstance(); - - try { - $comparator = $comparatorFactory->getComparatorFor( - $other, $this->value - ); - - $comparator->assertEquals( - $this->value, - $other, - $this->delta, - $this->canonicalize, - $this->ignoreCase - ); - } - - catch (PHPUnit_Framework_ComparisonFailure $f) { - if ($returnResult) { - return FALSE; - } - - throw new PHPUnit_Framework_ExpectationFailedException( - trim($description . "\n" . $f->getMessage()), - $f - ); - } - - return TRUE; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - $delta = ''; - - if (is_string($this->value)) { - if (strpos($this->value, "\n") !== FALSE) { - return 'is equal to '; - } else { - return sprintf( - 'is equal to ', - - $this->value - ); - } - } else { - if ($this->delta != 0) { - $delta = sprintf( - ' with delta <%F>', - - $this->delta - ); - } - - return sprintf( - 'is equal to %s%s', - - PHPUnit_Util_Type::export($this->value), - $delta - ); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsFalse.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsFalse.php deleted file mode 100644 index d2320087..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsFalse.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Constraint that accepts FALSE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Constraint_IsFalse extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $other === FALSE; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is false'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php deleted file mode 100644 index 604258b5..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php +++ /dev/null @@ -1,172 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that one value is identical to another. - * - * Identical check is performed with PHP's === operator, the operator is - * explained in detail at - * {@url http://www.php.net/manual/en/types.comparisons.php}. - * Two values are identical if they have the same value and are of the same - * type. - * - * The expected value is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_IsIdentical extends PHPUnit_Framework_Constraint -{ - /** - * @var double - */ - const EPSILON = 0.0000000001; - - /** - * @var mixed - */ - protected $value; - - /** - * @param mixed $value - */ - public function __construct($value) - { - $this->value = $value; - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - if (is_double($this->value) && is_double($other) && - !is_infinite($this->value) && !is_infinite($other)) { - $success = abs($this->value - $other) < self::EPSILON; - } - - else { - $success = $this->value === $other; - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $f = NULL; - - // if both values are strings, make sure a diff is generated - if (is_string($this->value) && is_string($other)) { - $f = new PHPUnit_Framework_ComparisonFailure( - $this->value, - $other, - $this->value, - $other - ); - } - - $this->fail($other, $description, $f); - } - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - if (is_object($this->value) && is_object($other)) { - return 'two variables reference the same object'; - } - - if (is_string($this->value) && is_string($other)) { - return 'two strings are identical'; - } - - return parent::failureDescription($other); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - if (is_object($this->value)) { - return 'is identical to an object of class "' . - get_class($this->value) . '"'; - } else { - return 'is identical to ' . - PHPUnit_Util_Type::export($this->value); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsInstanceOf.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsInstanceOf.php deleted file mode 100644 index d590f123..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsInstanceOf.php +++ /dev/null @@ -1,121 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the object it is evaluated for is an instance - * of a given class. - * - * The expected class name is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_IsInstanceOf extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $className; - - /** - * @param string $className - */ - public function __construct($className) - { - $this->className = $className; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return ($other instanceof $this->className); - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - '%s is an instance of class "%s"', - - PHPUnit_Util_Type::shortenedExport($other), - $this->className - ); - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return sprintf( - 'is instance of class "%s"', - - $this->className - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsNull.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsNull.php deleted file mode 100644 index 784f1ade..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsNull.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Constraint that accepts NULL. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Constraint_IsNull extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $other === NULL; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is null'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsTrue.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsTrue.php deleted file mode 100644 index 262da8e6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsTrue.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Constraint that accepts TRUE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Constraint_IsTrue extends PHPUnit_Framework_Constraint -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $other === TRUE; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is true'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsType.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsType.php deleted file mode 100644 index 0fad628f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsType.php +++ /dev/null @@ -1,190 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the value it is evaluated for is of a - * specified type. - * - * The expected value is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint -{ - const TYPE_ARRAY = 'array'; - const TYPE_BOOL = 'bool'; - const TYPE_FLOAT = 'float'; - const TYPE_INT = 'int'; - const TYPE_NULL = 'null'; - const TYPE_NUMERIC = 'numeric'; - const TYPE_OBJECT = 'object'; - const TYPE_RESOURCE = 'resource'; - const TYPE_STRING = 'string'; - const TYPE_SCALAR = 'scalar'; - const TYPE_CALLABLE = 'callable'; - - /** - * @var array - */ - protected $types = array( - 'array' => TRUE, - 'boolean' => TRUE, - 'bool' => TRUE, - 'float' => TRUE, - 'integer' => TRUE, - 'int' => TRUE, - 'null' => TRUE, - 'numeric' => TRUE, - 'object' => TRUE, - 'resource' => TRUE, - 'string' => TRUE, - 'scalar' => TRUE, - 'callable' => TRUE - ); - - /** - * @var string - */ - protected $type; - - /** - * @param string $type - * @throws PHPUnit_Framework_Exception - */ - public function __construct($type) - { - if (!isset($this->types[$type])) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Type specified for PHPUnit_Framework_Constraint_IsType <%s> ' . - 'is not a valid type.', - $type - ) - ); - } - - $this->type = $type; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - switch ($this->type) { - case 'numeric': { - return is_numeric($other); - } - - case 'integer': - case 'int': { - return is_integer($other); - } - - case 'float': { - return is_float($other); - } - - case 'string': { - return is_string($other); - } - - case 'boolean': - case 'bool': { - return is_bool($other); - } - - case 'null': { - return is_null($other); - } - - case 'array': { - return is_array($other); - } - - case 'object': { - return is_object($other); - } - - case 'resource': { - return is_resource($other); - } - - case 'scalar': { - return is_scalar($other); - } - - case 'callable': { - return is_callable($other); - } - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return sprintf( - 'is of type "%s"', - - $this->type - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches.php deleted file mode 100644 index 01bb70b8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches.php +++ /dev/null @@ -1,126 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bastian Feder - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ - -/** - * Asserts whether or not two JSON objects are equal. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bastian Feder - * @copyright 2011 Bastian Feder - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since Class available since Release 3.7.0 - */ -class PHPUnit_Framework_Constraint_JsonMatches extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $value; - - /** - * Creates a new constraint. - * - * @param string $value - */ - public function __construct($value) - { - $this->value = $value; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * This method can be overridden to implement the evaluation algorithm. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - $decodedOther = json_decode($other); - if (!is_object($decodedOther)) { - $this->failure_reason = $this->getJsonError(); - return FALSE; - } - - $decodedValue = json_decode($this->value); - if (!is_object($decodedValue)) { - $this->failure_reason = $this->getJsonError(); - return FALSE; - } - - return $decodedOther == $decodedValue; - } - - /** - * Finds the last occurd JSON error. - * - * @param string $messagePrefix - * @return string The last JSON error prefixed with $messagePrefix. - */ - protected function getJsonError($messagePrefix = 'Json error!') - { - return PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - json_last_error(), - $messagePrefix - ); - } - - /** - * Returns a string representation of the object. - * - * @return string - */ - public function toString() - { - return sprintf( - 'matches JSON string "%s"', - $this->value - ); - } -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php deleted file mode 100644 index 5a984db0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/JsonMatches/ErrorMessageProvider.php +++ /dev/null @@ -1,106 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bastian Feder - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ - -/** - * Provides human readable messages for each JSON error. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Bastian Feder - * @copyright 2011 Bastian Feder - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since Class available since Release 3.7.0 - */ -class PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider -{ - /** - * Translatets accourd JSON error to a human readable string. - * - * @param string $error - * @return string - */ - public static function determineJsonError($error, $prefix = '') - { - switch (strtoupper($error)) { - case 'JSON_ERROR_NONE': - return; - case 'JSON_ERROR_DEPTH': - return $prefix . 'Maximum stack depth exceeded'; - case 'JSON_ERROR_STATE_MISMATCH': - return $prefix . 'Underflow or the modes mismatch'; - case 'JSON_ERROR_CTRL_CHAR': - return $prefix . 'Unexpected control character found'; - case 'JSON_ERROR_SYNTAX': - return $prefix . 'Syntax error, malformed JSON'; - case 'JSON_ERROR_UTF8': - return $prefix . 'Malformed UTF-8 characters, possibly incorrectly encoded'; - default: - return $prefix . 'Unknown error'; - } - } - - /** - * Translates a given type to a human readable message prefix. - * - * @param string $type - * @return string - */ - public static function translateTypeToPrefix($type) - { - switch (strtolower($type)) { - case 'expected': - $prefix = 'Expected value JSON decode error - '; - break; - case 'actual': - $prefix = 'Actual value JSON decode error - '; - break; - default: - $prefix = ''; - break; - } - return $prefix; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/LessThan.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/LessThan.php deleted file mode 100644 index 27eaa1f6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/LessThan.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the value it is evaluated for is less than - * a given value. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_LessThan extends PHPUnit_Framework_Constraint -{ - /** - * @var numeric - */ - protected $value; - - /** - * @param numeric $value - */ - public function __construct($value) - { - $this->value = $value; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return $this->value > $other; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'is less than ' . PHPUnit_Util_Type::export($this->value); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php deleted file mode 100644 index c839487e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Not.php +++ /dev/null @@ -1,203 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Logical NOT. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ - -class PHPUnit_Framework_Constraint_Not extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint - */ - protected $constraint; - - /** - * @param PHPUnit_Framework_Constraint $constraint - */ - public function __construct($constraint) - { - if (!($constraint instanceof PHPUnit_Framework_Constraint)) { - $constraint = new PHPUnit_Framework_Constraint_IsEqual($constraint); - } - - $this->constraint = $constraint; - } - - /** - * @param string $string - * @return string - */ - public static function negate($string) - { - return str_replace( - array( - 'contains ', - 'exists', - 'has ', - 'is ', - 'are ', - 'matches ', - 'starts with ', - 'ends with ', - 'reference ', - 'not not ' - ), - array( - 'does not contain ', - 'does not exist', - 'does not have ', - 'is not ', - 'are not ', - 'does not match ', - 'starts not with ', - 'ends not with ', - 'don\'t reference ', - 'not ' - ), - $string - ); - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = !$this->constraint->evaluate($other, $description, TRUE); - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - switch (get_class($this->constraint)) { - case 'PHPUnit_Framework_Constraint_And': - case 'PHPUnit_Framework_Constraint_Not': - case 'PHPUnit_Framework_Constraint_Or': { - return 'not( ' . $this->constraint->failureDescription($other) . ' )'; - } - break; - - default: { - return self::negate( - $this->constraint->failureDescription($other) - ); - } - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - switch (get_class($this->constraint)) { - case 'PHPUnit_Framework_Constraint_And': - case 'PHPUnit_Framework_Constraint_Not': - case 'PHPUnit_Framework_Constraint_Or': { - return 'not( ' . $this->constraint->toString() . ' )'; - } - break; - - default: { - return self::negate( - $this->constraint->toString() - ); - } - } - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.4.0 - */ - public function count() - { - return count($this->constraint); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ObjectHasAttribute.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ObjectHasAttribute.php deleted file mode 100644 index 872c3b31..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ObjectHasAttribute.php +++ /dev/null @@ -1,77 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the object it is evaluated for has a given - * attribute. - * - * The attribute name is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_ObjectHasAttribute extends PHPUnit_Framework_Constraint_ClassHasAttribute -{ - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - $object = new ReflectionObject($other); - - return $object->hasProperty($this->attributeName); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Or.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Or.php deleted file mode 100644 index 6ee3842d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Or.php +++ /dev/null @@ -1,157 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Logical OR. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_Or extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint[] - */ - protected $constraints = array(); - - /** - * @param PHPUnit_Framework_Constraint[] $constraints - */ - public function setConstraints(array $constraints) - { - $this->constraints = array(); - - foreach ($constraints as $key => $constraint) { - if (!($constraint instanceof PHPUnit_Framework_Constraint)) { - $constraint = new PHPUnit_Framework_Constraint_IsEqual( - $constraint - ); - } - - $this->constraints[] = $constraint; - } - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = FALSE; - $constraint = NULL; - - foreach ($this->constraints as $constraint) { - if ($constraint->evaluate($other, $description, TRUE)) { - $success = TRUE; - break; - } - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - $text = ''; - - foreach ($this->constraints as $key => $constraint) { - if ($key > 0) { - $text .= ' or '; - } - - $text .= $constraint->toString(); - } - - return $text; - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.4.0 - */ - public function count() - { - $count = 0; - - foreach ($this->constraints as $constraint) { - $count += count($constraint); - } - - return $count; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/PCREMatch.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/PCREMatch.php deleted file mode 100644 index 7f00e4a8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/PCREMatch.php +++ /dev/null @@ -1,105 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the string it is evaluated for matches - * a regular expression. - * - * Checks a given value using the Perl Compatible Regular Expression extension - * in PHP. The pattern is matched by executing preg_match(). - * - * The pattern string passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_PCREMatch extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $pattern; - - /** - * @param string $pattern - */ - public function __construct($pattern) - { - $this->pattern = $pattern; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return preg_match($this->pattern, $other) > 0; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return sprintf( - 'matches PCRE pattern "%s"', - - $this->pattern - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/SameSize.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/SameSize.php deleted file mode 100644 index 2f4d8ab9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/SameSize.php +++ /dev/null @@ -1,73 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count -{ - /** - * @var integer - */ - protected $expectedCount; - - /** - * @param integer $expected - */ - public function __construct($expected) - { - $this->expectedCount = $this->getCountOf($expected); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringContains.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringContains.php deleted file mode 100644 index ab4eb41c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringContains.php +++ /dev/null @@ -1,122 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the string it is evaluated for contains - * a given string. - * - * Uses strpos() to find the position of the string in the input, if not found - * the evaluaton fails. - * - * The sub-string is passed in the constructor. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_StringContains extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $string; - - /** - * @var boolean - */ - protected $ignoreCase; - - /** - * @param string $string - * @param boolean $ignoreCase - */ - public function __construct($string, $ignoreCase = FALSE) - { - $this->string = $string; - $this->ignoreCase = $ignoreCase; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - if ($this->ignoreCase) { - return stripos($other, $this->string) !== FALSE; - } else { - return strpos($other, $this->string) !== FALSE; - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - if ($this->ignoreCase) { - $string = strtolower($this->string); - } else { - $string = $this->string; - } - - return sprintf( - 'contains "%s"', - - $string - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringEndsWith.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringEndsWith.php deleted file mode 100644 index cd145e6f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringEndsWith.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Constraint that asserts that the string it is evaluated for ends with a given - * suffix. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Framework_Constraint_StringEndsWith extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $suffix; - - /** - * @param string $suffix - */ - public function __construct($suffix) - { - $this->suffix = $suffix; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return substr($other, 0 - strlen($this->suffix)) == $this->suffix; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'ends with "' . $this->suffix . '"'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php deleted file mode 100644 index 9d216649..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php +++ /dev/null @@ -1,134 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -/** - * ... - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.0 - */ -class PHPUnit_Framework_Constraint_StringMatches extends PHPUnit_Framework_Constraint_PCREMatch -{ - /** - * @var string - */ - protected $string; - - /** - * @param string $string - */ - public function __construct($string) - { - $this->pattern = $this->createPatternFromFormat( - preg_replace('/\r\n/', "\n", $string) - ); - $this->string = $string; - } - - protected function failureDescription($other) - { - return "format description matches text"; - } - - protected function additionalFailureDescription($other) - { - $from = preg_split('(\r\n|\r|\n)', $this->string); - $to = preg_split('(\r\n|\r|\n)', $other); - foreach ($from as $index => $line) { - if (isset($to[$index]) && $line !== $to[$index]) { - $line = $this->createPatternFromFormat($line); - if (preg_match($line, $to[$index]) > 0) { - $from[$index] = $to[$index]; - } - } - } - $this->string = join("\n", $from); - $other = join("\n", $to); - return PHPUnit_Util_Diff::diff($this->string, $other); - } - - protected function createPatternFromFormat($string) - { - $string = str_replace( - array( - '%e', - '%s', - '%S', - '%a', - '%A', - '%w', - '%i', - '%d', - '%x', - '%f', - '%c' - ), - array( - '\\' . DIRECTORY_SEPARATOR, - '[^\r\n]+', - '[^\r\n]*', - '.+', - '.*', - '\s*', - '[+-]?\d+', - '\d+', - '[0-9a-fA-F]+', - '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', - '.' - ), - preg_quote($string, '/') - ); - return '/^' . $string . '$/s'; - } - -} - diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringStartsWith.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringStartsWith.php deleted file mode 100644 index 6051a05c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringStartsWith.php +++ /dev/null @@ -1,96 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Constraint that asserts that the string it is evaluated for begins with a - * given prefix. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Framework_Constraint_StringStartsWith extends PHPUnit_Framework_Constraint -{ - /** - * @var string - */ - protected $prefix; - - /** - * @param string $prefix - */ - public function __construct($prefix) - { - $this->prefix = $prefix; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - return strpos($other, $this->prefix) === 0; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'starts with "' . $this->prefix . '"'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContains.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContains.php deleted file mode 100644 index 46f1beda..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContains.php +++ /dev/null @@ -1,152 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Constraint that asserts that the Traversable it is applied to contains - * a given value. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_TraversableContains extends PHPUnit_Framework_Constraint -{ - /** - * @var boolean - */ - protected $checkForObjectIdentity; - - /** - * @var mixed - */ - protected $value; - - /** - * @param boolean $value - * @param mixed $checkForObjectIdentity - * @throws PHPUnit_Framework_Exception - */ - public function __construct($value, $checkForObjectIdentity = TRUE) - { - if (!is_bool($checkForObjectIdentity)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'boolean'); - } - - $this->checkForObjectIdentity = $checkForObjectIdentity; - $this->value = $value; - } - - /** - * Evaluates the constraint for parameter $other. Returns TRUE if the - * constraint is met, FALSE otherwise. - * - * @param mixed $other Value or object to evaluate. - * @return bool - */ - protected function matches($other) - { - if ($other instanceof SplObjectStorage) { - return $other->contains($this->value); - } - - if (is_object($this->value)) { - foreach ($other as $element) { - if (($this->checkForObjectIdentity && - $element === $this->value) || - (!$this->checkForObjectIdentity && - $element == $this->value)) { - return TRUE; - } - } - } else { - foreach ($other as $element) { - if ($element == $this->value) { - return TRUE; - } - } - } - - return FALSE; - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - if (is_string($this->value) && strpos($this->value, "\n") !== FALSE) { - return 'contains "' . $this->value . '"'; - } else { - return 'contains ' . PHPUnit_Util_Type::export($this->value); - } - } - - /** - * Returns the description of the failure - * - * The beginning of failure messages is "Failed asserting that" in most - * cases. This method should return the second part of that sentence. - * - * @param mixed $other Evaluated value or object. - * @return string - */ - protected function failureDescription($other) - { - return sprintf( - 'an %s %s', - - is_array($other) ? 'array' : 'iterator', - $this->toString() - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContainsOnly.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContainsOnly.php deleted file mode 100644 index bab400c8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/TraversableContainsOnly.php +++ /dev/null @@ -1,135 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.4 - */ - -/** - * Constraint that asserts that the Traversable it is applied to contains - * only values of a given type. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.4 - */ -class PHPUnit_Framework_Constraint_TraversableContainsOnly extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint - */ - protected $constraint; - - /** - * @var string - */ - protected $type; - - /** - * @param string $type - * @param boolean $isNativeType - */ - public function __construct($type, $isNativeType = TRUE) - { - if ($isNativeType) { - $this->constraint = new PHPUnit_Framework_Constraint_IsType($type); - } else { - $this->constraint = new PHPUnit_Framework_Constraint_IsInstanceOf( - $type - ); - } - - $this->type = $type; - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = TRUE; - $constraint = NULL; - - foreach ($other as $item) { - if (!$this->constraint->evaluate($item, '', TRUE)) { - $success = FALSE; - break; - } - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - return 'contains only values of type "' . $this->type . '"'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Xor.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Xor.php deleted file mode 100644 index cc9c0670..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Xor.php +++ /dev/null @@ -1,162 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Logical XOR. - * - * @package PHPUnit - * @subpackage Framework_Constraint - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_Constraint_Xor extends PHPUnit_Framework_Constraint -{ - /** - * @var PHPUnit_Framework_Constraint[] - */ - protected $constraints = array(); - - /** - * @param PHPUnit_Framework_Constraint[] $constraints - */ - public function setConstraints(array $constraints) - { - $this->constraints = array(); - - foreach ($constraints as $key => $constraint) { - if (!($constraint instanceof PHPUnit_Framework_Constraint)) { - $constraint = new PHPUnit_Framework_Constraint_IsEqual( - $constraint - ); - } - - $this->constraints[] = $constraint; - } - } - - /** - * Evaluates the constraint for parameter $other - * - * If $returnResult is set to FALSE (the default), an exception is thrown - * in case of a failure. NULL is returned otherwise. - * - * If $returnResult is TRUE, the result of the evaluation is returned as - * a boolean value instead: TRUE in case of success, FALSE in case of a - * failure. - * - * @param mixed $other Value or object to evaluate. - * @param string $description Additional information about the test - * @param bool $returnResult Whether to return a result or throw an exception - * @return mixed - * @throws PHPUnit_Framework_ExpectationFailedException - */ - public function evaluate($other, $description = '', $returnResult = FALSE) - { - $success = TRUE; - $lastResult = NULL; - $constraint = NULL; - - foreach ($this->constraints as $constraint) { - $result = $constraint->evaluate($other, $description, TRUE); - - if ($result === $lastResult) { - $success = FALSE; - break; - } - - $lastResult = $result; - } - - if ($returnResult) { - return $success; - } - - if (!$success) { - $this->fail($other, $description); - } - } - - /** - * Returns a string representation of the constraint. - * - * @return string - */ - public function toString() - { - $text = ''; - - foreach ($this->constraints as $key => $constraint) { - if ($key > 0) { - $text .= ' xor '; - } - - $text .= $constraint->toString(); - } - - return $text; - } - - /** - * Counts the number of constraint elements. - * - * @return integer - * @since Method available since Release 3.4.0 - */ - public function count() - { - $count = 0; - - foreach ($this->constraints as $constraint) { - $count += count($constraint); - } - - return $count; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error.php deleted file mode 100644 index 04f632ab..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error.php +++ /dev/null @@ -1,75 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.2.0 - */ - -/** - * Wrapper for PHP errors. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.2.0 - */ -class PHPUnit_Framework_Error extends Exception -{ - /** - * Constructor. - * - * @param string $message - * @param integer $code - * @param string $file - * @param integer $line - * @param Exception $previous - */ - public function __construct($message, $code, $file, $line, Exception $previous = NULL) - { - parent::__construct($message, $code, $previous); - - $this->file = $file; - $this->line = $line; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Deprecated.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Deprecated.php deleted file mode 100644 index 42526685..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Deprecated.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Wrapper for PHP deprecated errors. - * You can disable deprecated-to-exception conversion by setting - * - * - * PHPUnit_Framework_Error_Deprecated::$enabled = FALSE; - * - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Error_Deprecated extends PHPUnit_Framework_Error -{ - public static $enabled = TRUE; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Notice.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Notice.php deleted file mode 100644 index c640692b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Notice.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Wrapper for PHP notices. - * You can disable notice-to-exception conversion by setting - * - * - * PHPUnit_Framework_Error_Notice::$enabled = FALSE; - * - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Error_Notice extends PHPUnit_Framework_Error -{ - public static $enabled = TRUE; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Warning.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Warning.php deleted file mode 100644 index d6064fc2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Error/Warning.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * Wrapper for PHP warnings. - * You can disable notice-to-exception conversion by setting - * - * - * PHPUnit_Framework_Error_Warning::$enabled = FALSE; - * - * - * @package PHPUnit - * @subpackage Framework_Error - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Framework_Error_Warning extends PHPUnit_Framework_Error -{ - public static $enabled = TRUE; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Exception.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Exception.php deleted file mode 100644 index 2c0b3987..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Exception.php +++ /dev/null @@ -1,59 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Exception for PHPUnit runtime errors. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Framework_Exception extends RuntimeException -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ExpectationFailedException.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ExpectationFailedException.php deleted file mode 100644 index ba088518..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/ExpectationFailedException.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Exception for expectations which failed their check. - * - * The exception contains the error message and optionally a - * PHPUnit_Framework_ComparisonFailure which is used to - * generate diff output of the failed expectations. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_AssertionFailedError -{ - /** - * @var PHPUnit_Framework_ComparisonFailure - */ - protected $comparisonFailure; - - public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, Exception $previous = NULL) - { - $this->comparisonFailure = $comparisonFailure; - - parent::__construct($message, 0, $previous); - } - - /** - * @return PHPUnit_Framework_ComparisonFailure - */ - public function getComparisonFailure() - { - return $this->comparisonFailure; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTest.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTest.php deleted file mode 100644 index 12ac5889..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTest.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A marker interface for marking any exception/error as result of an unit - * test as incomplete implementation or currently not implemented. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 2.0.0 - */ -interface PHPUnit_Framework_IncompleteTest -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTestError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTestError.php deleted file mode 100644 index 4ae6d5f3..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/IncompleteTestError.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Extension to PHPUnit_Framework_AssertionFailedError to mark the special - * case of an incomplete test. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_IncompleteTestError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_IncompleteTest -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/OutputError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/OutputError.php deleted file mode 100644 index 507363e4..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/OutputError.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * Extension to PHPUnit_Framework_AssertionFailedError to mark the special - * case of a test that printed output. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Framework_OutputError extends PHPUnit_Framework_AssertionFailedError -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Process/TestCaseMethod.tpl.dist b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Process/TestCaseMethod.tpl.dist deleted file mode 100644 index 369e3edd..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Process/TestCaseMethod.tpl.dist +++ /dev/null @@ -1,51 +0,0 @@ -setCodeCoverage(new PHP_CodeCoverage); - } - - $result->strictMode({strict}); - - $test = new {className}('{methodName}', unserialize('{data}'), '{dataName}'); - $test->setDependencyInput(unserialize('{dependencyInput}')); - $test->setInIsolation(TRUE); - - ob_end_clean(); - ob_start(); - $test->run($result); - $output = ob_get_clean(); - - print serialize( - array( - 'testResult' => $test->getResult(), - 'numAssertions' => $test->getNumAssertions(), - 'result' => $result, - 'output' => $output - ) - ); - - ob_start(); -} - -{constants} -{included_files} -{globals} - -if (isset($GLOBALS['__PHPUNIT_BOOTSTRAP'])) { - require_once $GLOBALS['__PHPUNIT_BOOTSTRAP']; - unset($GLOBALS['__PHPUNIT_BOOTSTRAP']); -} - -__phpunit_run_isolated_test(); -ob_end_clean(); diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SelfDescribing.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SelfDescribing.php deleted file mode 100644 index 38014055..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SelfDescribing.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Interface for classes that can return a description of itself. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 3.0.0 - */ -interface PHPUnit_Framework_SelfDescribing -{ - /** - * Returns a string representation of the object. - * - * @return string - */ - public function toString(); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTest.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTest.php deleted file mode 100644 index 5b3eae9b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTest.php +++ /dev/null @@ -1,59 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * A marker interface for marking a unit test as being skipped. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 3.0.0 - */ -interface PHPUnit_Framework_SkippedTest -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestError.php deleted file mode 100644 index 94c0022b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestError.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Extension to PHPUnit_Framework_AssertionFailedError to mark the special - * case of a skipped test. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Framework_SkippedTestError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SkippedTest -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestSuiteError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestSuiteError.php deleted file mode 100644 index 95d4dde9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SkippedTestSuiteError.php +++ /dev/null @@ -1,60 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * Extension to PHPUnit_Framework_AssertionFailedError to mark the special - * case of a skipped test suite. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ -class PHPUnit_Framework_SkippedTestSuiteError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SkippedTest -{ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SyntheticError.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SyntheticError.php deleted file mode 100644 index 0a6c6187..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/SyntheticError.php +++ /dev/null @@ -1,121 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.0 - */ - -/** - * Creates a synthetic failed assertion. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.0 - */ -class PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError -{ - /** - * The synthetic file. - * - * @var string - */ - protected $syntheticFile = ''; - - /** - * The synthetic line number. - * - * @var integer - */ - protected $syntheticLine = 0; - - /** - * The synthetic trace. - * - * @var array - */ - protected $syntheticTrace = array(); - - /** - * Constructor. - * - * @param string $message - * @param integer $code - * @param string $file - * @param integer $line - * @param array $trace - */ - public function __construct($message, $code, $file, $line, $trace) - { - parent::__construct($message, $code); - - $this->syntheticFile = $file; - $this->syntheticLine = $line; - $this->syntheticTrace = $trace; - } - - /** - * @return string - */ - public function getSyntheticFile() - { - return $this->syntheticFile; - } - - /** - * @return integer - */ - public function getSyntheticLine() - { - return $this->syntheticLine; - } - - /** - * @return array - */ - public function getSyntheticTrace() - { - return $this->syntheticTrace; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Test.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Test.php deleted file mode 100644 index c8737489..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Test.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A Test can be run and collect its results. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 2.0.0 - */ -interface PHPUnit_Framework_Test extends Countable -{ - /** - * Runs a test and collects its result in a TestResult instance. - * - * @param PHPUnit_Framework_TestResult $result - * @return PHPUnit_Framework_TestResult - */ - public function run(PHPUnit_Framework_TestResult $result = NULL); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php deleted file mode 100644 index a432a51d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php +++ /dev/null @@ -1,1880 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A TestCase defines the fixture to run multiple tests. - * - * To define a TestCase - * - * 1) Implement a subclass of PHPUnit_Framework_TestCase. - * 2) Define instance variables that store the state of the fixture. - * 3) Initialize the fixture state by overriding setUp(). - * 4) Clean-up after a test by overriding tearDown(). - * - * Each test runs in its own fixture so there can be no side effects - * among test runs. - * - * Here is an example: - * - * - * value1 = 2; - * $this->value2 = 3; - * } - * } - * ?> - * - * - * For each test implement a method which interacts with the fixture. - * Verify the expected results with assertions specified by calling - * assert with a boolean. - * - * - * assertTrue($this->value1 + $this->value2 == 5); - * } - * ?> - * - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing -{ - /** - * Enable or disable the backup and restoration of the $GLOBALS array. - * Overwrite this attribute in a child class of TestCase. - * Setting this attribute in setUp() has no effect! - * - * @var boolean - */ - protected $backupGlobals = NULL; - - /** - * @var array - */ - protected $backupGlobalsBlacklist = array(); - - /** - * Enable or disable the backup and restoration of static attributes. - * Overwrite this attribute in a child class of TestCase. - * Setting this attribute in setUp() has no effect! - * - * @var boolean - */ - protected $backupStaticAttributes = NULL; - - /** - * @var array - */ - protected $backupStaticAttributesBlacklist = array(); - - /** - * Whether or not this test is to be run in a separate PHP process. - * - * @var boolean - */ - protected $runTestInSeparateProcess = NULL; - - /** - * Whether or not this test should preserve the global state when - * running in a separate PHP process. - * - * @var boolean - */ - protected $preserveGlobalState = TRUE; - - /** - * Whether or not this test is running in a separate PHP process. - * - * @var boolean - */ - private $inIsolation = FALSE; - - /** - * @var array - */ - private $data = array(); - - /** - * @var string - */ - private $dataName = ''; - - /** - * @var boolean - */ - private $useErrorHandler = NULL; - - /** - * @var boolean - */ - private $useOutputBuffering = NULL; - - /** - * The name of the expected Exception. - * - * @var mixed - */ - private $expectedException = NULL; - - /** - * The message of the expected Exception. - * - * @var string - */ - private $expectedExceptionMessage = ''; - - /** - * The code of the expected Exception. - * - * @var integer - */ - private $expectedExceptionCode; - - /** - * The required preconditions for a test. - * - * @var array - */ - private $required = array( - 'PHP' => NULL, - 'PHPUnit' => NULL, - 'functions' => array(), - 'extensions' => array() - ); - - /** - * The name of the test case. - * - * @var string - */ - private $name = NULL; - - /** - * @var array - */ - private $dependencies = array(); - - /** - * @var array - */ - private $dependencyInput = array(); - - /** - * @var array - */ - private $iniSettings = array(); - - /** - * @var array - */ - private $locale = array(); - - /** - * @var array - */ - private $mockObjects = array(); - - /** - * @var integer - */ - private $status; - - /** - * @var string - */ - private $statusMessage = ''; - - /** - * @var integer - */ - private $numAssertions = 0; - - /** - * @var PHPUnit_Framework_TestResult - */ - private $result; - - /** - * @var mixed - */ - private $testResult; - - /** - * @var string - */ - private $output = ''; - - /** - * @var string - */ - private $outputExpectedRegex = NULL; - - /** - * @var string - */ - private $outputExpectedString = NULL; - - /** - * @var bool - */ - private $hasPerformedExpectationsOnOutput = FALSE; - - /** - * @var mixed - */ - private $outputCallback = FALSE; - - /** - * @var boolean - */ - private $outputBufferingActive = FALSE; - - /** - * Constructs a test case with the given name. - * - * @param string $name - * @param array $data - * @param string $dataName - */ - public function __construct($name = NULL, array $data = array(), $dataName = '') - { - if ($name !== NULL) { - $this->setName($name); - } - - $this->data = $data; - $this->dataName = $dataName; - } - - /** - * Returns a string representation of the test case. - * - * @return string - */ - public function toString() - { - $class = new ReflectionClass($this); - - $buffer = sprintf( - '%s::%s', - - $class->name, - $this->getName(FALSE) - ); - - return $buffer . $this->getDataSetAsString(); - } - - /** - * Counts the number of test cases executed by run(TestResult result). - * - * @return integer - */ - public function count() - { - return 1; - } - - /** - * Returns the annotations for this test. - * - * @return array - * @since Method available since Release 3.4.0 - */ - public function getAnnotations() - { - return PHPUnit_Util_Test::parseTestMethodAnnotations( - get_class($this), $this->name - ); - } - - /** - * Gets the name of a TestCase. - * - * @param boolean $withDataSet - * @return string - */ - public function getName($withDataSet = TRUE) - { - if ($withDataSet) { - return $this->name . $this->getDataSetAsString(FALSE); - } else { - return $this->name; - } - } - - /** - * Returns the size of the test. - * - * @return integer - * @since Method available since Release 3.6.0 - */ - public function getSize() - { - return PHPUnit_Util_Test::getSize( - get_class($this), $this->getName(FALSE) - ); - } - - /** - * @return string - * @since Method available since Release 3.6.0 - */ - public function getActualOutput() - { - if (!$this->outputBufferingActive) { - return $this->output; - } else { - return ob_get_contents(); - } - } - - /** - * @return string - * @since Method available since Release 3.6.0 - */ - public function hasOutput() - { - if (empty($this->output)) { - return FALSE; - } - - if ($this->outputExpectedString !== NULL || - $this->outputExpectedRegex !== NULL || - $this->hasPerformedExpectationsOnOutput) { - return FALSE; - } - - return TRUE; - } - - /** - * @param string $expectedRegex - * @since Method available since Release 3.6.0 - */ - public function expectOutputRegex($expectedRegex) - { - if ($this->outputExpectedString !== NULL) { - throw new PHPUnit_Framework_Exception; - } - - if (is_string($expectedRegex) || is_null($expectedRegex)) { - $this->outputExpectedRegex = $expectedRegex; - } - } - - /** - * @param string $expectedString - * @since Method available since Release 3.6.0 - */ - public function expectOutputString($expectedString) - { - if ($this->outputExpectedRegex !== NULL) { - throw new PHPUnit_Framework_Exception; - } - - if (is_string($expectedString) || is_null($expectedString)) { - $this->outputExpectedString = $expectedString; - } - } - - /** - * @return bool - * @since Method available since Release 3.6.5 - */ - public function hasPerformedExpectationsOnOutput() - { - return $this->hasPerformedExpectationsOnOutput; - } - - /** - * @return string - * @since Method available since Release 3.2.0 - */ - public function getExpectedException() - { - return $this->expectedException; - } - - /** - * @param mixed $exceptionName - * @param string $exceptionMessage - * @param integer $exceptionCode - * @since Method available since Release 3.2.0 - */ - public function setExpectedException($exceptionName, $exceptionMessage = '', $exceptionCode = NULL) - { - $this->expectedException = $exceptionName; - $this->expectedExceptionMessage = $exceptionMessage; - $this->expectedExceptionCode = $exceptionCode; - } - - /** - * @since Method available since Release 3.4.0 - */ - protected function setExpectedExceptionFromAnnotation() - { - try { - $expectedException = PHPUnit_Util_Test::getExpectedException( - get_class($this), $this->name - ); - - if ($expectedException !== FALSE) { - $this->setExpectedException( - $expectedException['class'], - $expectedException['message'], - $expectedException['code'] - ); - } - } - - catch (ReflectionException $e) { - } - } - - /** - * @param boolean $useErrorHandler - * @since Method available since Release 3.4.0 - */ - public function setUseErrorHandler($useErrorHandler) - { - $this->useErrorHandler = $useErrorHandler; - } - - /** - * @since Method available since Release 3.4.0 - */ - protected function setUseErrorHandlerFromAnnotation() - { - try { - $useErrorHandler = PHPUnit_Util_Test::getErrorHandlerSettings( - get_class($this), $this->name - ); - - if ($useErrorHandler !== NULL) { - $this->setUseErrorHandler($useErrorHandler); - } - } - - catch (ReflectionException $e) { - } - } - - /** - * @param boolean $useOutputBuffering - * @since Method available since Release 3.4.0 - */ - public function setUseOutputBuffering($useOutputBuffering) - { - $this->useOutputBuffering = $useOutputBuffering; - } - - /** - * @since Method available since Release 3.4.0 - */ - protected function setUseOutputBufferingFromAnnotation() - { - try { - $useOutputBuffering = PHPUnit_Util_Test::getOutputBufferingSettings( - get_class($this), $this->name - ); - - if ($useOutputBuffering !== NULL) { - $this->setUseOutputBuffering($useOutputBuffering); - } - } - - catch (ReflectionException $e) { - } - } - - /** - * @since Method available since Release 3.6.0 - */ - protected function setRequirementsFromAnnotation() - { - try { - $requirements = PHPUnit_Util_Test::getRequirements( - get_class($this), $this->name - ); - - if (isset($requirements['PHP'])) { - $this->required['PHP'] = $requirements['PHP']; - } - - if (isset($requirements['PHPUnit'])) { - $this->required['PHPUnit'] = $requirements['PHPUnit']; - } - - if (isset($requirements['extensions'])) { - $this->required['extensions'] = $requirements['extensions']; - } - - if (isset($requirements['functions'])) { - $this->required['functions'] = $requirements['functions']; - } - } - - catch (ReflectionException $e) { - } - } - - /** - * @since Method available since Release 3.6.0 - */ - protected function checkRequirements() - { - $this->setRequirementsFromAnnotation(); - - $missingRequirements = array(); - - if ($this->required['PHP'] && - version_compare(PHP_VERSION, $this->required['PHP'], '<')) { - $missingRequirements[] = sprintf( - 'PHP %s (or later) is required.', - $this->required['PHP'] - ); - } - - $phpunitVersion = PHPUnit_Runner_Version::id(); - if ($this->required['PHPUnit'] && - version_compare($phpunitVersion, $this->required['PHPUnit'], '<')) { - $missingRequirements[] = sprintf( - 'PHPUnit %s (or later) is required.', - $this->required['PHPUnit'] - ); - } - - foreach ($this->required['functions'] as $requiredFunction) { - if (!function_exists($requiredFunction)) { - $missingRequirements[] = sprintf( - 'Function %s is required.', - $requiredFunction - ); - } - } - - foreach ($this->required['extensions'] as $requiredExtension) { - if (!extension_loaded($requiredExtension)) { - $missingRequirements[] = sprintf( - 'Extension %s is required.', - $requiredExtension - ); - } - } - - if ($missingRequirements) { - $this->markTestSkipped( - implode( - PHP_EOL, - $missingRequirements - ) - ); - } - } - - /** - * Returns the status of this test. - * - * @return integer - * @since Method available since Release 3.1.0 - */ - public function getStatus() - { - return $this->status; - } - - /** - * Returns the status message of this test. - * - * @return string - * @since Method available since Release 3.3.0 - */ - public function getStatusMessage() - { - return $this->statusMessage; - } - - /** - * Returns whether or not this test has failed. - * - * @return boolean - * @since Method available since Release 3.0.0 - */ - public function hasFailed() - { - $status = $this->getStatus(); - - return $status == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE || - $status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR; - } - - /** - * Runs the test case and collects the results in a TestResult object. - * If no TestResult object is passed a new one will be created. - * - * @param PHPUnit_Framework_TestResult $result - * @return PHPUnit_Framework_TestResult - * @throws PHPUnit_Framework_Exception - */ - public function run(PHPUnit_Framework_TestResult $result = NULL) - { - if ($result === NULL) { - $result = $this->createResult(); - } - - if (!$this instanceof PHPUnit_Framework_Warning) { - $this->setTestResultObject($result); - $this->setUseErrorHandlerFromAnnotation(); - $this->setUseOutputBufferingFromAnnotation(); - } - - if ($this->useErrorHandler !== NULL) { - $oldErrorHandlerSetting = $result->getConvertErrorsToExceptions(); - $result->convertErrorsToExceptions($this->useErrorHandler); - } - - if (!$this->handleDependencies()) { - return; - } - - if ($this->runTestInSeparateProcess === TRUE && - $this->inIsolation !== TRUE && - !$this instanceof PHPUnit_Extensions_SeleniumTestCase && - !$this instanceof PHPUnit_Extensions_PhptTestCase) { - $class = new ReflectionClass($this); - - $template = new Text_Template( - sprintf( - '%s%sProcess%sTestCaseMethod.tpl', - - __DIR__, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR, - DIRECTORY_SEPARATOR - ) - ); - - if ($this->preserveGlobalState) { - $constants = PHPUnit_Util_GlobalState::getConstantsAsString(); - $globals = PHPUnit_Util_GlobalState::getGlobalsAsString(); - $includedFiles = PHPUnit_Util_GlobalState::getIncludedFilesAsString(); - } else { - $constants = ''; - $globals = ''; - $includedFiles = ''; - } - - if ($result->getCollectCodeCoverageInformation()) { - $coverage = 'TRUE'; - } else { - $coverage = 'FALSE'; - } - - if ($result->isStrict()) { - $strict = 'TRUE'; - } else { - $strict = 'FALSE'; - } - - $data = var_export(serialize($this->data), TRUE); - $dependencyInput = var_export(serialize($this->dependencyInput), TRUE); - $includePath = var_export(get_include_path(), TRUE); - // must do these fixes because TestCaseMethod.tpl has unserialize('{data}') in it, and we can't break BC - // the lines above used to use addcslashes() rather than var_export(), which breaks null byte escape sequences - $data = "'." . $data . ".'"; - $dependencyInput = "'." . $dependencyInput . ".'"; - $includePath = "'." . $includePath . ".'"; - - $template->setVar( - array( - 'filename' => $class->getFileName(), - 'className' => $class->getName(), - 'methodName' => $this->name, - 'collectCodeCoverageInformation' => $coverage, - 'data' => $data, - 'dataName' => $this->dataName, - 'dependencyInput' => $dependencyInput, - 'constants' => $constants, - 'globals' => $globals, - 'include_path' => $includePath, - 'included_files' => $includedFiles, - 'strict' => $strict - ) - ); - - $this->prepareTemplate($template); - - $php = PHPUnit_Util_PHP::factory(); - $php->runJob($template->render(), $this, $result); - } else { - $result->run($this); - } - - if ($this->useErrorHandler !== NULL) { - $result->convertErrorsToExceptions($oldErrorHandlerSetting); - } - - $this->result = NULL; - - return $result; - } - - /** - * Runs the bare test sequence. - */ - public function runBare() - { - $this->numAssertions = 0; - - // Backup the $GLOBALS array and static attributes. - if ($this->runTestInSeparateProcess !== TRUE && - $this->inIsolation !== TRUE) { - if ($this->backupGlobals === NULL || - $this->backupGlobals === TRUE) { - PHPUnit_Util_GlobalState::backupGlobals( - $this->backupGlobalsBlacklist - ); - } - - if ($this->backupStaticAttributes === TRUE) { - PHPUnit_Util_GlobalState::backupStaticAttributes( - $this->backupStaticAttributesBlacklist - ); - } - } - - // Start output buffering. - ob_start(); - $this->outputBufferingActive = TRUE; - - // Clean up stat cache. - clearstatcache(); - - // Backup the cwd - $currentWorkingDirectory = getcwd(); - - try { - if ($this->inIsolation) { - $this->setUpBeforeClass(); - } - - $this->setExpectedExceptionFromAnnotation(); - $this->setUp(); - $this->checkRequirements(); - $this->assertPreConditions(); - $this->testResult = $this->runTest(); - $this->verifyMockObjects(); - $this->assertPostConditions(); - $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED; - } - - catch (PHPUnit_Framework_IncompleteTest $e) { - $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE; - $this->statusMessage = $e->getMessage(); - } - - catch (PHPUnit_Framework_SkippedTest $e) { - $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED; - $this->statusMessage = $e->getMessage(); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE; - $this->statusMessage = $e->getMessage(); - } - - catch (Exception $e) { - $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_ERROR; - $this->statusMessage = $e->getMessage(); - } - - // Clean up the mock objects. - $this->mockObjects = array(); - - // Tear down the fixture. An exception raised in tearDown() will be - // caught and passed on when no exception was raised before. - try { - $this->tearDown(); - - if ($this->inIsolation) { - $this->tearDownAfterClass(); - } - } - - catch (Exception $_e) { - if (!isset($e)) { - $e = $_e; - } - } - - // Stop output buffering. - if ($this->outputCallback === FALSE) { - $this->output = ob_get_contents(); - } else { - $this->output = call_user_func_array( - $this->outputCallback, array(ob_get_contents()) - ); - } - - ob_end_clean(); - $this->outputBufferingActive = FALSE; - - // Clean up stat cache. - clearstatcache(); - - // Restore the cwd if it was changed by the test - if ($currentWorkingDirectory != getcwd()) { - chdir($currentWorkingDirectory); - } - - // Restore the $GLOBALS array and static attributes. - if ($this->runTestInSeparateProcess !== TRUE && - $this->inIsolation !== TRUE) { - if ($this->backupGlobals === NULL || - $this->backupGlobals === TRUE) { - PHPUnit_Util_GlobalState::restoreGlobals( - $this->backupGlobalsBlacklist - ); - } - - if ($this->backupStaticAttributes === TRUE) { - PHPUnit_Util_GlobalState::restoreStaticAttributes(); - } - } - - // Clean up INI settings. - foreach ($this->iniSettings as $varName => $oldValue) { - ini_set($varName, $oldValue); - } - - $this->iniSettings = array(); - - // Clean up locale settings. - foreach ($this->locale as $category => $locale) { - setlocale($category, $locale); - } - - // Perform assertion on output. - if (!isset($e)) { - try { - if ($this->outputExpectedRegex !== NULL) { - $this->hasPerformedExpectationsOnOutput = TRUE; - $this->assertRegExp($this->outputExpectedRegex, $this->output); - $this->outputExpectedRegex = NULL; - } - - else if ($this->outputExpectedString !== NULL) { - $this->hasPerformedExpectationsOnOutput = TRUE; - $this->assertEquals($this->outputExpectedString, $this->output); - $this->outputExpectedString = NULL; - } - } - - catch (Exception $_e) { - $e = $_e; - } - } - - // Workaround for missing "finally". - if (isset($e)) { - $this->onNotSuccessfulTest($e); - } - } - - /** - * Override to run the test and assert its state. - * - * @return mixed - * @throws PHPUnit_Framework_Exception - */ - protected function runTest() - { - if ($this->name === NULL) { - throw new PHPUnit_Framework_Exception( - 'PHPUnit_Framework_TestCase::$name must not be NULL.' - ); - } - - try { - $class = new ReflectionClass($this); - $method = $class->getMethod($this->name); - } - - catch (ReflectionException $e) { - $this->fail($e->getMessage()); - } - - try { - $testResult = $method->invokeArgs( - $this, array_merge($this->data, $this->dependencyInput) - ); - } - - catch (Exception $e) { - $checkException = FALSE; - - if (is_string($this->expectedException)) { - $checkException = TRUE; - - if ($e instanceof PHPUnit_Framework_Exception) { - $checkException = FALSE; - } - - $reflector = new ReflectionClass($this->expectedException); - - if ($this->expectedException == 'PHPUnit_Framework_Exception' || - $reflector->isSubclassOf('PHPUnit_Framework_Exception')) { - $checkException = TRUE; - } - } - - if ($checkException) { - $this->assertThat( - $e, - new PHPUnit_Framework_Constraint_Exception( - $this->expectedException - ) - ); - - if (is_string($this->expectedExceptionMessage) && - !empty($this->expectedExceptionMessage)) { - $this->assertThat( - $e, - new PHPUnit_Framework_Constraint_ExceptionMessage( - $this->expectedExceptionMessage - ) - ); - } - - if ($this->expectedExceptionCode !== NULL) { - $this->assertThat( - $e, - new PHPUnit_Framework_Constraint_ExceptionCode( - $this->expectedExceptionCode - ) - ); - } - - return; - } else { - throw $e; - } - } - - if ($this->expectedException !== NULL) { - $this->assertThat( - NULL, - new PHPUnit_Framework_Constraint_Exception( - $this->expectedException - ) - ); - } - - return $testResult; - } - - /** - * Verifies the mock object expectations. - * - * @since Method available since Release 3.5.0 - */ - protected function verifyMockObjects() - { - foreach ($this->mockObjects as $mockObject) { - if ($mockObject->__phpunit_hasMatchers()) { - $this->numAssertions++; - } - - $mockObject->__phpunit_verify(); - $mockObject->__phpunit_cleanup(); - } - } - - /** - * Sets the name of a TestCase. - * - * @param string - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Sets the dependencies of a TestCase. - * - * @param array $dependencies - * @since Method available since Release 3.4.0 - */ - public function setDependencies(array $dependencies) - { - $this->dependencies = $dependencies; - } - - /** - * Sets - * - * @param array $dependencyInput - * @since Method available since Release 3.4.0 - */ - public function setDependencyInput(array $dependencyInput) - { - $this->dependencyInput = $dependencyInput; - } - - /** - * Calling this method in setUp() has no effect! - * - * @param boolean $backupGlobals - * @since Method available since Release 3.3.0 - */ - public function setBackupGlobals($backupGlobals) - { - if (is_null($this->backupGlobals) && is_bool($backupGlobals)) { - $this->backupGlobals = $backupGlobals; - } - } - - /** - * Calling this method in setUp() has no effect! - * - * @param boolean $backupStaticAttributes - * @since Method available since Release 3.4.0 - */ - public function setBackupStaticAttributes($backupStaticAttributes) - { - if (is_null($this->backupStaticAttributes) && - is_bool($backupStaticAttributes)) { - $this->backupStaticAttributes = $backupStaticAttributes; - } - } - - /** - * @param boolean $runTestInSeparateProcess - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.4.0 - */ - public function setRunTestInSeparateProcess($runTestInSeparateProcess) - { - if (is_bool($runTestInSeparateProcess)) { - if ($this->runTestInSeparateProcess === NULL) { - $this->runTestInSeparateProcess = $runTestInSeparateProcess; - } - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * @param boolean $preserveGlobalState - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.4.0 - */ - public function setPreserveGlobalState($preserveGlobalState) - { - if (is_bool($preserveGlobalState)) { - $this->preserveGlobalState = $preserveGlobalState; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * @param boolean $inIsolation - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.4.0 - */ - public function setInIsolation($inIsolation) - { - if (is_bool($inIsolation)) { - $this->inIsolation = $inIsolation; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * @return mixed - * @since Method available since Release 3.4.0 - */ - public function getResult() - { - return $this->testResult; - } - - /** - * @param mixed $result - * @since Method available since Release 3.4.0 - */ - public function setResult($result) - { - $this->testResult = $result; - } - - /** - * @param callable $callback - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.6.0 - */ - public function setOutputCallback($callback) - { - if (!is_callable($callback)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'callback'); - } - - $this->outputCallback = $callback; - } - - /** - * @return PHPUnit_Framework_TestResult - * @since Method available since Release 3.5.7 - */ - public function getTestResultObject() - { - return $this->result; - } - - /** - * @param PHPUnit_Framework_TestResult $result - * @since Method available since Release 3.6.0 - */ - public function setTestResultObject(PHPUnit_Framework_TestResult $result) - { - $this->result = $result; - } - - /** - * This method is a wrapper for the ini_set() function that automatically - * resets the modified php.ini setting to its original value after the - * test is run. - * - * @param string $varName - * @param string $newValue - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.0.0 - */ - protected function iniSet($varName, $newValue) - { - if (!is_string($varName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - $currentValue = ini_set($varName, $newValue); - - if ($currentValue !== FALSE) { - $this->iniSettings[$varName] = $currentValue; - } else { - throw new PHPUnit_Framework_Exception( - sprintf( - 'INI setting "%s" could not be set to "%s".', - $varName, - $newValue - ) - ); - } - } - - /** - * This method is a wrapper for the setlocale() function that automatically - * resets the locale to its original value after the test is run. - * - * @param integer $category - * @param string $locale - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.1.0 - */ - protected function setLocale() - { - $args = func_get_args(); - - if (count($args) < 2) { - throw new PHPUnit_Framework_Exception; - } - - $category = $args[0]; - $locale = $args[1]; - - $categories = array( - LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME - ); - - if (defined('LC_MESSAGES')) { - $categories[] = LC_MESSAGES; - } - - if (!in_array($category, $categories)) { - throw new PHPUnit_Framework_Exception; - } - - if (!is_array($locale) && !is_string($locale)) { - throw new PHPUnit_Framework_Exception; - } - - $this->locale[$category] = setlocale($category, NULL); - - $result = call_user_func_array( 'setlocale', $args ); - - if ($result === FALSE) { - throw new PHPUnit_Framework_Exception( - 'The locale functionality is not implemented on your platform, ' . - 'the specified locale does not exist or the category name is ' . - 'invalid.' - ); - } - } - - /** - * Returns a mock object for the specified class. - * - * @param string $originalClassName - * @param array $methods - * @param array $arguments - * @param string $mockClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return PHPUnit_Framework_MockObject_MockObject - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.0.0 - */ - public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE, $cloneArguments = FALSE) - { - $mockObject = PHPUnit_Framework_MockObject_Generator::getMock( - $originalClassName, - $methods, - $arguments, - $mockClassName, - $callOriginalConstructor, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - - $this->mockObjects[] = $mockObject; - - return $mockObject; - } - - /** - * Returns a builder object to create mock objects using a fluent interface. - * - * @param string $className - * @return PHPUnit_Framework_MockObject_MockBuilder - * @since Method available since Release 3.5.0 - */ - public function getMockBuilder($className) - { - return new PHPUnit_Framework_MockObject_MockBuilder( - $this, $className - ); - } - - /** - * Mocks the specified class and returns the name of the mocked class. - * - * @param string $originalClassName - * @param array $methods - * @param array $arguments - * @param string $mockClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return string - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.5.0 - */ - protected function getMockClass($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = FALSE, $callOriginalClone = TRUE, $callAutoload = TRUE, $cloneArguments = FALSE) - { - $mock = $this->getMock( - $originalClassName, - $methods, - $arguments, - $mockClassName, - $callOriginalConstructor, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - - return get_class($mock); - } - - /** - * Returns a mock object for the specified abstract class with all abstract - * methods of the class mocked. Concrete methods to mock can be specified with - * the last parameter - * - * @param string $originalClassName - * @param array $arguments - * @param string $mockClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param array $mockedMethods - * @param boolean $cloneArguments - * @return PHPUnit_Framework_MockObject_MockObject - * @since Method available since Release 3.4.0 - * @throws PHPUnit_Framework_Exception - */ - public function getMockForAbstractClass($originalClassName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE, $mockedMethods = array(), $cloneArguments = FALSE) - { - $mockObject = PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass( - $originalClassName, - $arguments, - $mockClassName, - $callOriginalConstructor, - $callOriginalClone, - $callAutoload, - $mockedMethods, - $cloneArguments - ); - - $this->mockObjects[] = $mockObject; - - return $mockObject; - } - - /** - * Returns a mock object based on the given WSDL file. - * - * @param string $wsdlFile - * @param string $originalClassName - * @param string $mockClassName - * @param array $methods - * @param boolean $callOriginalConstructor - * @return PHPUnit_Framework_MockObject_MockObject - * @since Method available since Release 3.4.0 - */ - protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = array(), $callOriginalConstructor = TRUE) - { - if ($originalClassName === '') { - $originalClassName = str_replace( - '.wsdl', '', basename($wsdlFile) - ); - } - - if (!class_exists($originalClassName)) { - eval( - PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl( - $wsdlFile, $originalClassName, $methods - ) - ); - } - - return $this->getMock( - $originalClassName, - $methods, - array('', array()), - $mockClassName, - $callOriginalConstructor, - FALSE, - FALSE - ); - } - - /** - * Returns an object for the specified trait. - * - * @param string $traitName - * @param array $arguments - * @param string $traitClassName - * @param boolean $callOriginalConstructor - * @param boolean $callOriginalClone - * @param boolean $callAutoload - * @param boolean $cloneArguments - * @return object - * @since Method available since Release 3.6.0 - * @throws PHPUnit_Framework_Exception - */ - protected function getObjectForTrait($traitName, array $arguments = array(), $traitClassName = '', $callOriginalConstructor = TRUE, $callOriginalClone = TRUE, $callAutoload = TRUE, $cloneArguments = FALSE) - { - return PHPUnit_Framework_MockObject_Generator::getObjectForTrait( - $traitName, - $arguments, - $traitClassName, - $callOriginalConstructor, - $callOriginalClone, - $callAutoload, - $cloneArguments - ); - } - - /** - * Adds a value to the assertion counter. - * - * @param integer $count - * @since Method available since Release 3.3.3 - */ - public function addToAssertionCount($count) - { - $this->numAssertions += $count; - } - - /** - * Returns the number of assertions performed by this test. - * - * @return integer - * @since Method available since Release 3.3.0 - */ - public function getNumAssertions() - { - return $this->numAssertions; - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is executed zero or more times. - * - * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount - * @since Method available since Release 3.0.0 - */ - public static function any() - { - return new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount; - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is never executed. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ - public static function never() - { - return new PHPUnit_Framework_MockObject_Matcher_InvokedCount(0); - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is executed at least once. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce - * @since Method available since Release 3.0.0 - */ - public static function atLeastOnce() - { - return new PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce; - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is executed exactly once. - * - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ - public static function once() - { - return new PHPUnit_Framework_MockObject_Matcher_InvokedCount(1); - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is executed exactly $count times. - * - * @param integer $count - * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount - * @since Method available since Release 3.0.0 - */ - public static function exactly($count) - { - return new PHPUnit_Framework_MockObject_Matcher_InvokedCount($count); - } - - /** - * Returns a matcher that matches when the method it is evaluated for - * is invoked at the given $index. - * - * @param integer $index - * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex - * @since Method available since Release 3.0.0 - */ - public static function at($index) - { - return new PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex($index); - } - - /** - * - * - * @param mixed $value - * @return PHPUnit_Framework_MockObject_Stub_Return - * @since Method available since Release 3.0.0 - */ - public static function returnValue($value) - { - return new PHPUnit_Framework_MockObject_Stub_Return($value); - } - - /** - * - * - * @param array $valueMap - * @return PHPUnit_Framework_MockObject_Stub_ReturnValueMap - * @since Method available since Release 3.6.0 - */ - public static function returnValueMap(array $valueMap) - { - return new PHPUnit_Framework_MockObject_Stub_ReturnValueMap($valueMap); - } - - /** - * - * - * @param integer $argumentIndex - * @return PHPUnit_Framework_MockObject_Stub_ReturnArgument - * @since Method available since Release 3.3.0 - */ - public static function returnArgument($argumentIndex) - { - return new PHPUnit_Framework_MockObject_Stub_ReturnArgument( - $argumentIndex - ); - } - - /** - * - * - * @param mixed $callback - * @return PHPUnit_Framework_MockObject_Stub_ReturnCallback - * @since Method available since Release 3.3.0 - */ - public static function returnCallback($callback) - { - return new PHPUnit_Framework_MockObject_Stub_ReturnCallback($callback); - } - - /** - * Returns the current object. - * - * This method is useful when mocking a fluent interface. - * - * @return PHPUnit_Framework_MockObject_Stub_ReturnSelf - * @since Method available since Release 3.6.0 - */ - public static function returnSelf() - { - return new PHPUnit_Framework_MockObject_Stub_ReturnSelf(); - } - - /** - * - * - * @param Exception $exception - * @return PHPUnit_Framework_MockObject_Stub_Exception - * @since Method available since Release 3.1.0 - */ - public static function throwException(Exception $exception) - { - return new PHPUnit_Framework_MockObject_Stub_Exception($exception); - } - - /** - * - * - * @param mixed $value, ... - * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls - * @since Method available since Release 3.0.0 - */ - public static function onConsecutiveCalls() - { - $args = func_get_args(); - - return new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls($args); - } - - /** - * @param mixed $data - * @return string - * @since Method available since Release 3.2.1 - */ - protected function dataToString($data) - { - $result = array(); - - // There seems to be no other way to check arrays for recursion - // http://www.php.net/manual/en/language.types.array.php#73936 - preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($data, TRUE), $matches); - $recursiveKeys = array_unique($matches[1]); - - // Convert to valid array keys - // Numeric integer strings are automatically converted to integers - // by PHP - foreach ($recursiveKeys as $key => $recursiveKey) { - if ((string)(integer)$recursiveKey === $recursiveKey) { - $recursiveKeys[$key] = (integer)$recursiveKey; - } - } - - foreach ($data as $key => $_data) { - if (in_array($key, $recursiveKeys, TRUE)) { - $result[] = '*RECURSION*'; - } - - else if (is_array($_data)) { - $result[] = 'array(' . $this->dataToString($_data) . ')'; - } - - else if (is_object($_data)) { - $object = new ReflectionObject($_data); - - if ($object->hasMethod('__toString')) { - $result[] = (string)$_data; - } else { - $result[] = get_class($_data); - } - } - - else if (is_resource($_data)) { - $result[] = ''; - } - - else { - $result[] = var_export($_data, TRUE); - } - } - - return join(', ', $result); - } - - /** - * Gets the data set description of a TestCase. - * - * @param boolean $includeData - * @return string - * @since Method available since Release 3.3.0 - */ - protected function getDataSetAsString($includeData = TRUE) - { - $buffer = ''; - - if (!empty($this->data)) { - if (is_int($this->dataName)) { - $buffer .= sprintf(' with data set #%d', $this->dataName); - } else { - $buffer .= sprintf(' with data set "%s"', $this->dataName); - } - - if ($includeData) { - $buffer .= sprintf(' (%s)', $this->dataToString($this->data)); - } - } - - return $buffer; - } - - /** - * Creates a default TestResult object. - * - * @return PHPUnit_Framework_TestResult - */ - protected function createResult() - { - return new PHPUnit_Framework_TestResult; - } - - /** - * @since Method available since Release 3.5.4 - */ - protected function handleDependencies() - { - if (!empty($this->dependencies) && !$this->inIsolation) { - $className = get_class($this); - $passed = $this->result->passed(); - $passedKeys = array_keys($passed); - $numKeys = count($passedKeys); - - for ($i = 0; $i < $numKeys; $i++) { - $pos = strpos($passedKeys[$i], ' with data set'); - - if ($pos !== FALSE) { - $passedKeys[$i] = substr($passedKeys[$i], 0, $pos); - } - } - - $passedKeys = array_flip(array_unique($passedKeys)); - - foreach ($this->dependencies as $dependency) { - if (strpos($dependency, '::') === FALSE) { - $dependency = $className . '::' . $dependency; - } - - if (!isset($passedKeys[$dependency])) { - $this->result->addError( - $this, - new PHPUnit_Framework_SkippedTestError( - sprintf( - 'This test depends on "%s" to pass.', $dependency - ) - ), - 0 - ); - - return FALSE; - } - - if (isset($passed[$dependency])) { - if ($passed[$dependency]['size'] > $this->getSize()) { - $this->result->addError( - $this, - new PHPUnit_Framework_SkippedTestError( - 'This test depends on a test that is larger than itself.' - ), - 0 - ); - - return FALSE; - } - - $this->dependencyInput[] = $passed[$dependency]['result']; - } else { - $this->dependencyInput[] = NULL; - } - } - } - - return TRUE; - } - - /** - * This method is called before the first test of this test class is run. - * - * @since Method available since Release 3.4.0 - */ - public static function setUpBeforeClass() - { - } - - /** - * Sets up the fixture, for example, open a network connection. - * This method is called before a test is executed. - * - */ - protected function setUp() - { - } - - /** - * Performs assertions shared by all tests of a test case. - * - * This method is called before the execution of a test starts - * and after setUp() is called. - * - * @since Method available since Release 3.2.8 - */ - protected function assertPreConditions() - { - } - - /** - * Performs assertions shared by all tests of a test case. - * - * This method is called before the execution of a test ends - * and before tearDown() is called. - * - * @since Method available since Release 3.2.8 - */ - protected function assertPostConditions() - { - } - - /** - * Tears down the fixture, for example, close a network connection. - * This method is called after a test is executed. - */ - protected function tearDown() - { - } - - /** - * This method is called after the last test of this test class is run. - * - * @since Method available since Release 3.4.0 - */ - public static function tearDownAfterClass() - { - } - - /** - * This method is called when a test method did not execute successfully. - * - * @param Exception $e - * @since Method available since Release 3.4.0 - */ - protected function onNotSuccessfulTest(Exception $e) - { - throw $e; - } - - /** - * Performs custom preparations on the process isolation template. - * - * @param Text_Template $template - * @since Method available since Release 3.4.0 - */ - protected function prepareTemplate(Text_Template $template) - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php deleted file mode 100644 index 5bde6afe..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php +++ /dev/null @@ -1,179 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A TestFailure collects a failed test together with the caught exception. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_TestFailure -{ - /** - * @var PHPUnit_Framework_Test - */ - protected $failedTest; - - /** - * @var Exception - */ - protected $thrownException; - - /** - * Constructs a TestFailure with the given test and exception. - * - * @param PHPUnit_Framework_Test $failedTest - * @param Exception $thrownException - */ - public function __construct(PHPUnit_Framework_Test $failedTest, Exception $thrownException) - { - $this->failedTest = $failedTest; - $this->thrownException = $thrownException; - } - - /** - * Returns a short description of the failure. - * - * @return string - */ - public function toString() - { - return sprintf( - '%s: %s', - - $this->failedTest, - $this->thrownException->getMessage() - ); - } - - /** - * Returns a description for the thrown exception. - * - * @return string - * @since Method available since Release 3.4.0 - */ - public function getExceptionAsString() - { - return self::exceptionToString($this->thrownException); - } - - /** - * Returns a description for an exception. - * - * @param Exception $e - * @return string - * @since Method available since Release 3.2.0 - */ - public static function exceptionToString(Exception $e) - { - if ($e instanceof PHPUnit_Framework_SelfDescribing) { - $buffer = $e->toString(); - - if ($e instanceof PHPUnit_Framework_ExpectationFailedException && $e->getComparisonFailure()) { - $buffer = $buffer . "\n" . $e->getComparisonFailure()->getDiff(); - } - - if (!empty($buffer)) { - $buffer = trim($buffer) . "\n"; - } - } - - else if ($e instanceof PHPUnit_Framework_Error) { - $buffer = $e->getMessage() . "\n"; - } - - else { - $buffer = get_class($e) . ': ' . $e->getMessage() . "\n"; - } - - return $buffer; - } - - /** - * Gets the failed test. - * - * @return Test - */ - public function failedTest() - { - return $this->failedTest; - } - - /** - * Gets the thrown exception. - * - * @return Exception - */ - public function thrownException() - { - return $this->thrownException; - } - - /** - * Returns the exception's message. - * - * @return string - */ - public function exceptionMessage() - { - return $this->thrownException()->getMessage(); - } - - /** - * Returns TRUE if the thrown exception - * is of type AssertionFailedError. - * - * @return boolean - */ - public function isFailure() - { - return ($this->thrownException() instanceof PHPUnit_Framework_AssertionFailedError); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestListener.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestListener.php deleted file mode 100644 index e25fef7d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestListener.php +++ /dev/null @@ -1,126 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A Listener for test progress. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 2.0.0 - */ -interface PHPUnit_Framework_TestListener -{ - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time); - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time); - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time); - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time); - - /** - * A test suite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite); - - /** - * A test suite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite); - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test); - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php deleted file mode 100644 index 2df29ab0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php +++ /dev/null @@ -1,956 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A TestResult collects the results of executing a test case. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_TestResult implements Countable -{ - /** - * @var boolean - */ - protected static $xdebugLoaded = NULL; - - /** - * @var boolean - */ - protected static $useXdebug = NULL; - - /** - * @var array - */ - protected $passed = array(); - - /** - * @var array - */ - protected $errors = array(); - - /** - * @var array - */ - protected $deprecatedFeatures = array(); - - /** - * @var array - */ - protected $failures = array(); - - /** - * @var array - */ - protected $notImplemented = array(); - - /** - * @var array - */ - protected $skipped = array(); - - /** - * @var array - */ - protected $listeners = array(); - - /** - * @var integer - */ - protected $runTests = 0; - - /** - * @var float - */ - protected $time = 0; - - /** - * @var PHPUnit_Framework_TestSuite - */ - protected $topTestSuite = NULL; - - /** - * Code Coverage information. - * - * @var PHP_CodeCoverage - */ - protected $codeCoverage; - - /** - * @var boolean - */ - protected $convertErrorsToExceptions = TRUE; - - /** - * @var boolean - */ - protected $stop = FALSE; - - /** - * @var boolean - */ - protected $stopOnError = FALSE; - - /** - * @var boolean - */ - protected $stopOnFailure = FALSE; - - /** - * @var boolean - */ - protected $strictMode = FALSE; - - /** - * @var boolean - */ - protected $stopOnIncomplete = FALSE; - - /** - * @var boolean - */ - protected $stopOnSkipped = FALSE; - - /** - * @var boolean - */ - protected $lastTestFailed = FALSE; - - /** - * @var integer - */ - protected $timeoutForSmallTests = 1; - - /** - * @var integer - */ - protected $timeoutForMediumTests = 10; - - /** - * @var integer - */ - protected $timeoutForLargeTests = 60; - - /** - * Registers a TestListener. - * - * @param PHPUnit_Framework_TestListener - */ - public function addListener(PHPUnit_Framework_TestListener $listener) - { - $this->listeners[] = $listener; - } - - /** - * Unregisters a TestListener. - * - * @param PHPUnit_Framework_TestListener $listener - */ - public function removeListener(PHPUnit_Framework_TestListener $listener) - { - foreach ($this->listeners as $key => $_listener) { - if ($listener === $_listener) { - unset($this->listeners[$key]); - } - } - } - - /** - * Flushes all flushable TestListeners. - * - * @since Method available since Release 3.0.0 - */ - public function flushListeners() - { - foreach ($this->listeners as $listener) { - if ($listener instanceof PHPUnit_Util_Printer) { - $listener->flush(); - } - } - } - - /** - * Adds an error to the list of errors. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($e instanceof PHPUnit_Framework_IncompleteTest) { - $this->notImplemented[] = new PHPUnit_Framework_TestFailure( - $test, $e - ); - - $notifyMethod = 'addIncompleteTest'; - - if ($this->stopOnIncomplete) { - $this->stop(); - } - } - - else if ($e instanceof PHPUnit_Framework_SkippedTest) { - $this->skipped[] = new PHPUnit_Framework_TestFailure($test, $e); - $notifyMethod = 'addSkippedTest'; - - if ($this->stopOnSkipped) { - $this->stop(); - } - } - - else { - $this->errors[] = new PHPUnit_Framework_TestFailure($test, $e); - $notifyMethod = 'addError'; - - if ($this->stopOnError || $this->stopOnFailure) { - $this->stop(); - } - } - - foreach ($this->listeners as $listener) { - $listener->$notifyMethod($test, $e, $time); - } - - $this->lastTestFailed = TRUE; - $this->time += $time; - } - - /** - * Adds a failure to the list of failures. - * The passed in exception caused the failure. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - if ($e instanceof PHPUnit_Framework_IncompleteTest) { - $this->notImplemented[] = new PHPUnit_Framework_TestFailure( - $test, $e - ); - - $notifyMethod = 'addIncompleteTest'; - - if ($this->stopOnIncomplete) { - $this->stop(); - } - } - - else if ($e instanceof PHPUnit_Framework_SkippedTest) { - $this->skipped[] = new PHPUnit_Framework_TestFailure($test, $e); - $notifyMethod = 'addSkippedTest'; - - if ($this->stopOnSkipped) { - $this->stop(); - } - } - - else { - $this->failures[] = new PHPUnit_Framework_TestFailure($test, $e); - $notifyMethod = 'addFailure'; - - if ($this->stopOnFailure) { - $this->stop(); - } - } - - foreach ($this->listeners as $listener) { - $listener->$notifyMethod($test, $e, $time); - } - - $this->lastTestFailed = TRUE; - $this->time += $time; - } - - /** - * Adds a deprecated feature notice to the list of deprecated features used during run - * - * @param PHPUnit_Util_DeprecatedFeature $deprecatedFeature - */ - public function addDeprecatedFeature(PHPUnit_Util_DeprecatedFeature $deprecatedFeature) - { - $this->deprecatedFeatures[] = $deprecatedFeature; - } - - /** - * Informs the result that a testsuite will be started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - if ($this->topTestSuite === NULL) { - $this->topTestSuite = $suite; - } - - foreach ($this->listeners as $listener) { - $listener->startTestSuite($suite); - } - } - - /** - * Informs the result that a testsuite was completed. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - foreach ($this->listeners as $listener) { - $listener->endTestSuite($suite); - } - } - - /** - * Informs the result that a test will be started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - $this->lastTestFailed = FALSE; - $this->runTests += count($test); - - foreach ($this->listeners as $listener) { - $listener->startTest($test); - } - } - - /** - * Informs the result that a test was completed. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - foreach ($this->listeners as $listener) { - $listener->endTest($test, $time); - } - - if (!$this->lastTestFailed && $test instanceof PHPUnit_Framework_TestCase) { - $class = get_class($test); - $key = $class . '::' . $test->getName(); - - $this->passed[$key] = array( - 'result' => $test->getResult(), - 'size' => PHPUnit_Util_Test::getSize( - $class, $test->getName(FALSE) - ) - ); - - $this->time += $time; - } - } - - /** - * Returns TRUE if no incomplete test occured. - * - * @return boolean - */ - public function allCompletlyImplemented() - { - return $this->notImplementedCount() == 0; - } - - /** - * Gets the number of incomplete tests. - * - * @return integer - */ - public function notImplementedCount() - { - return count($this->notImplemented); - } - - /** - * Returns an Enumeration for the incomplete tests. - * - * @return array - */ - public function notImplemented() - { - return $this->notImplemented; - } - - /** - * Returns TRUE if no test has been skipped. - * - * @return boolean - * @since Method available since Release 3.0.0 - */ - public function noneSkipped() - { - return $this->skippedCount() == 0; - } - - /** - * Gets the number of skipped tests. - * - * @return integer - * @since Method available since Release 3.0.0 - */ - public function skippedCount() - { - return count($this->skipped); - } - - /** - * Returns an Enumeration for the skipped tests. - * - * @return array - * @since Method available since Release 3.0.0 - */ - public function skipped() - { - return $this->skipped; - } - - /** - * Gets the number of detected errors. - * - * @return integer - */ - public function errorCount() - { - return count($this->errors); - } - - /** - * Returns an Enumeration for the errors. - * - * @return array - */ - public function errors() - { - return $this->errors; - } - - /** - * Returns an Enumeration for the deprecated features used. - * - * @return array - * @since Method available since Release 3.5.7 - */ - public function deprecatedFeatures() - { - return $this->deprecatedFeatures; - } - - /** - * Returns an Enumeration for the deprecated features used. - * - * @return array - * @since Method available since Release 3.5.7 - */ - public function deprecatedFeaturesCount() - { - return count($this->deprecatedFeatures); - } - - /** - * Gets the number of detected failures. - * - * @return integer - */ - public function failureCount() - { - return count($this->failures); - } - - /** - * Returns an Enumeration for the failures. - * - * @return array - */ - public function failures() - { - return $this->failures; - } - - /** - * Returns the names of the tests that have passed. - * - * @return array - * @since Method available since Release 3.4.0 - */ - public function passed() - { - return $this->passed; - } - - /** - * Returns the (top) test suite. - * - * @return PHPUnit_Framework_TestSuite - * @since Method available since Release 3.0.0 - */ - public function topTestSuite() - { - return $this->topTestSuite; - } - - /** - * Returns whether code coverage information should be collected. - * - * @return boolean If code coverage should be collected - * @since Method available since Release 3.2.0 - */ - public function getCollectCodeCoverageInformation() - { - return $this->codeCoverage !== NULL; - } - - /** - * Returns the strict mode configuration option - * - * @return boolean - */ - public function isStrict() - { - return $this->strictMode; - } - - /** - * Runs a TestCase. - * - * @param PHPUnit_Framework_Test $test - */ - public function run(PHPUnit_Framework_Test $test) - { - PHPUnit_Framework_Assert::resetCount(); - - $error = FALSE; - $failure = FALSE; - $incomplete = FALSE; - $skipped = FALSE; - - $this->startTest($test); - - $errorHandlerSet = FALSE; - - if ($this->convertErrorsToExceptions) { - $oldErrorHandler = set_error_handler( - array('PHPUnit_Util_ErrorHandler', 'handleError'), - E_ALL | E_STRICT - ); - - if ($oldErrorHandler === NULL) { - $errorHandlerSet = TRUE; - } else { - restore_error_handler(); - } - } - - if (self::$xdebugLoaded === NULL) { - self::$xdebugLoaded = extension_loaded('xdebug'); - self::$useXdebug = self::$xdebugLoaded; - } - - $useXdebug = self::$useXdebug && - $this->codeCoverage !== NULL && - !$test instanceof PHPUnit_Extensions_SeleniumTestCase && - !$test instanceof PHPUnit_Framework_Warning; - - if ($useXdebug) { - // We need to blacklist test source files when no whitelist is used. - if (!$this->codeCoverage->filter()->hasWhitelist()) { - $classes = PHPUnit_Util_Class::getHierarchy( - get_class($test), TRUE - ); - - foreach ($classes as $class) { - $this->codeCoverage->filter()->addFileToBlacklist( - $class->getFileName() - ); - } - } - - $this->codeCoverage->start($test); - } - - PHP_Timer::start(); - - try { - if (!$test instanceof PHPUnit_Framework_Warning && - $this->strictMode && - extension_loaded('pcntl') && class_exists('PHP_Invoker')) { - switch ($test->getSize()) { - case PHPUnit_Util_Test::SMALL: { - $_timeout = $this->timeoutForSmallTests; - } - break; - - case PHPUnit_Util_Test::MEDIUM: { - $_timeout = $this->timeoutForMediumTests; - } - break; - - case PHPUnit_Util_Test::LARGE: { - $_timeout = $this->timeoutForLargeTests; - } - break; - } - - $invoker = new PHP_Invoker; - $invoker->invoke(array($test, 'runBare'), array(), $_timeout); - } else { - $test->runBare(); - } - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - $failure = TRUE; - - if ($e instanceof PHPUnit_Framework_IncompleteTestError) { - $incomplete = TRUE; - } - - else if ($e instanceof PHPUnit_Framework_SkippedTestError) { - $skipped = TRUE; - } - } - - catch (Exception $e) { - $error = TRUE; - } - - $time = PHP_Timer::stop(); - $test->addToAssertionCount(PHPUnit_Framework_Assert::getCount()); - - if ($this->strictMode && $test->getNumAssertions() == 0) { - $incomplete = TRUE; - } - - if ($useXdebug) { - try { - $this->codeCoverage->stop(!$incomplete && !$skipped); - } - - catch (PHP_CodeCoverage_Exception $cce) { - $error = TRUE; - - if (!isset($e)) { - $e = $cce; - } - } - } - - if ($errorHandlerSet === TRUE) { - restore_error_handler(); - } - - if ($error === TRUE) { - $this->addError($test, $e, $time); - } - - else if ($failure === TRUE) { - $this->addFailure($test, $e, $time); - } - - else if ($this->strictMode && $test->getNumAssertions() == 0) { - $this->addFailure( - $test, - new PHPUnit_Framework_IncompleteTestError( - 'This test did not perform any assertions' - ), - $time - ); - } - - else if ($this->strictMode && $test->hasOutput()) { - $this->addFailure( - $test, - new PHPUnit_Framework_OutputError( - sprintf( - 'This test printed output: %s', - $test->getActualOutput() - ) - ), - $time - ); - } - - $this->endTest($test, $time); - } - - /** - * Gets the number of run tests. - * - * @return integer - */ - public function count() - { - return $this->runTests; - } - - /** - * Checks whether the test run should stop. - * - * @return boolean - */ - public function shouldStop() - { - return $this->stop; - } - - /** - * Marks that the test run should stop. - * - */ - public function stop() - { - $this->stop = TRUE; - } - - /** - * Returns the PHP_CodeCoverage object. - * - * @return PHP_CodeCoverage - * @since Method available since Release 3.5.0 - */ - public function getCodeCoverage() - { - return $this->codeCoverage; - } - - /** - * Returns the PHP_CodeCoverage object. - * - * @return PHP_CodeCoverage - * @since Method available since Release 3.6.0 - */ - public function setCodeCoverage(PHP_CodeCoverage $codeCoverage) - { - $this->codeCoverage = $codeCoverage; - } - - /** - * Enables or disables the error-to-exception conversion. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.2.14 - */ - public function convertErrorsToExceptions($flag) - { - if (is_bool($flag)) { - $this->convertErrorsToExceptions = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Returns the error-to-exception conversion setting. - * - * @return boolean - * @since Method available since Release 3.4.0 - */ - public function getConvertErrorsToExceptions() - { - return $this->convertErrorsToExceptions; - } - - /** - * Enables or disables the stopping when an error occurs. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.5.0 - */ - public function stopOnError($flag) - { - if (is_bool($flag)) { - $this->stopOnError = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Enables or disables the stopping when a failure occurs. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.1.0 - */ - public function stopOnFailure($flag) - { - if (is_bool($flag)) { - $this->stopOnFailure = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Enables or disables the strict mode. - * - * When active - * * Tests that do not assert anything will be marked as incomplete. - * * Tests that are incomplete or skipped yield no code coverage. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.5.2 - */ - public function strictMode($flag) - { - if (is_bool($flag)) { - $this->strictMode = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Enables or disables the stopping for incomplete tests. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.5.0 - */ - public function stopOnIncomplete($flag) - { - if (is_bool($flag)) { - $this->stopOnIncomplete = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Enables or disables the stopping for skipped tests. - * - * @param boolean $flag - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.1.0 - */ - public function stopOnSkipped($flag) - { - if (is_bool($flag)) { - $this->stopOnSkipped = $flag; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } - - /** - * Returns the time spent running the tests. - * - * @return float - */ - public function time() - { - return $this->time; - } - - /** - * Returns whether the entire test was successful or not. - * - * @return boolean - */ - public function wasSuccessful() - { - return empty($this->errors) && empty($this->failures); - } - - /** - * Sets the timeout for small tests. - * - * @param integer $timeout - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.6.0 - */ - public function setTimeoutForSmallTests($timeout) - { - if (is_integer($timeout)) { - $this->timeoutForSmallTests = $timeout; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer'); - } - } - - /** - * Sets the timeout for medium tests. - * - * @param integer $timeout - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.6.0 - */ - public function setTimeoutForMediumTests($timeout) - { - if (is_integer($timeout)) { - $this->timeoutForMediumTests = $timeout; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer'); - } - } - - /** - * Sets the timeout for large tests. - * - * @param integer $timeout - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.6.0 - */ - public function setTimeoutForLargeTests($timeout) - { - if (is_integer($timeout)) { - $this->timeoutForLargeTests = $timeout; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer'); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php deleted file mode 100644 index b78c39be..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php +++ /dev/null @@ -1,950 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A TestSuite is a composite of Tests. It runs a collection of test cases. - * - * Here is an example using the dynamic test definition. - * - * - * addTest(new MathTest('testPass')); - * ?> - * - * - * Alternatively, a TestSuite can extract the tests to be run automatically. - * To do so you pass a ReflectionClass instance for your - * PHPUnit_Framework_TestCase class to the PHPUnit_Framework_TestSuite - * constructor. - * - * - * - * - * - * This constructor creates a suite with all the methods starting with - * "test" that take no arguments. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_TestSuite implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing, IteratorAggregate -{ - /** - * Enable or disable the backup and restoration of the $GLOBALS array. - * - * @var boolean - */ - protected $backupGlobals = NULL; - - /** - * Enable or disable the backup and restoration of static attributes. - * - * @var boolean - */ - protected $backupStaticAttributes = NULL; - - /** - * The name of the test suite. - * - * @var string - */ - protected $name = ''; - - /** - * The test groups of the test suite. - * - * @var array - */ - protected $groups = array(); - - /** - * The tests in the test suite. - * - * @var array - */ - protected $tests = array(); - - /** - * The number of tests in the test suite. - * - * @var integer - */ - protected $numTests = -1; - - /** - * @var boolean - */ - protected $testCase = FALSE; - - /** - * Constructs a new TestSuite: - * - * - PHPUnit_Framework_TestSuite() constructs an empty TestSuite. - * - * - PHPUnit_Framework_TestSuite(ReflectionClass) constructs a - * TestSuite from the given class. - * - * - PHPUnit_Framework_TestSuite(ReflectionClass, String) - * constructs a TestSuite from the given class with the given - * name. - * - * - PHPUnit_Framework_TestSuite(String) either constructs a - * TestSuite from the given class (if the passed string is the - * name of an existing class) or constructs an empty TestSuite - * with the given name. - * - * @param mixed $theClass - * @param string $name - * @throws PHPUnit_Framework_Exception - */ - public function __construct($theClass = '', $name = '') - { - $argumentsValid = FALSE; - - if (is_object($theClass) && - $theClass instanceof ReflectionClass) { - $argumentsValid = TRUE; - } - - else if (is_string($theClass) && - $theClass !== '' && - class_exists($theClass, FALSE)) { - $argumentsValid = TRUE; - - if ($name == '') { - $name = $theClass; - } - - $theClass = new ReflectionClass($theClass); - } - - else if (is_string($theClass)) { - $this->setName($theClass); - return; - } - - if (!$argumentsValid) { - throw new PHPUnit_Framework_Exception; - } - - if (!$theClass->isSubclassOf('PHPUnit_Framework_TestCase')) { - throw new PHPUnit_Framework_Exception( - 'Class "' . $theClass->name . '" does not extend PHPUnit_Framework_TestCase.' - ); - } - - if ($name != '') { - $this->setName($name); - } else { - $this->setName($theClass->getName()); - } - - $constructor = $theClass->getConstructor(); - - if ($constructor !== NULL && - !$constructor->isPublic()) { - $this->addTest( - self::warning( - sprintf( - 'Class "%s" has no public constructor.', - - $theClass->getName() - ) - ) - ); - - return; - } - - foreach ($theClass->getMethods() as $method) { - $this->addTestMethod($theClass, $method); - } - - if (empty($this->tests)) { - $this->addTest( - self::warning( - sprintf( - 'No tests found in class "%s".', - - $theClass->getName() - ) - ) - ); - } - - $this->testCase = TRUE; - } - - /** - * Returns a string representation of the test suite. - * - * @return string - */ - public function toString() - { - return $this->getName(); - } - - /** - * Adds a test to the suite. - * - * @param PHPUnit_Framework_Test $test - * @param array $groups - */ - public function addTest(PHPUnit_Framework_Test $test, $groups = array()) - { - $class = new ReflectionClass($test); - - if (!$class->isAbstract()) { - $this->tests[] = $test; - $this->numTests = -1; - - if ($test instanceof PHPUnit_Framework_TestSuite && - empty($groups)) { - $groups = $test->getGroups(); - } - - if (empty($groups)) { - $groups = array('__nogroup__'); - } - - foreach ($groups as $group) { - if (!isset($this->groups[$group])) { - $this->groups[$group] = array($test); - } else { - $this->groups[$group][] = $test; - } - } - } - } - - /** - * Adds the tests from the given class to the suite. - * - * @param mixed $testClass - * @throws PHPUnit_Framework_Exception - */ - public function addTestSuite($testClass) - { - if (is_string($testClass) && class_exists($testClass)) { - $testClass = new ReflectionClass($testClass); - } - - if (!is_object($testClass)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'class name or object' - ); - } - - if ($testClass instanceof PHPUnit_Framework_TestSuite) { - $this->addTest($testClass); - } - - else if ($testClass instanceof ReflectionClass) { - $suiteMethod = FALSE; - - if (!$testClass->isAbstract()) { - if ($testClass->hasMethod(PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME)) { - $method = $testClass->getMethod( - PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME - ); - - if ($method->isStatic()) { - $this->addTest( - $method->invoke(NULL, $testClass->getName()) - ); - - $suiteMethod = TRUE; - } - } - } - - if (!$suiteMethod && !$testClass->isAbstract()) { - $this->addTest(new PHPUnit_Framework_TestSuite($testClass)); - } - } - - else { - throw new PHPUnit_Framework_Exception; - } - } - - /** - * Wraps both addTest() and addTestSuite - * as well as the separate import statements for the user's convenience. - * - * If the named file cannot be read or there are no new tests that can be - * added, a PHPUnit_Framework_Warning will be created instead, - * leaving the current test run untouched. - * - * @param string $filename - * @param array $phptOptions Array with ini settings for the php instance - * run, key being the name if the setting, - * value the ini value. - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 2.3.0 - * @author Stefano F. Rausch - */ - public function addTestFile($filename, $phptOptions = array()) - { - if (!is_string($filename)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (file_exists($filename) && substr($filename, -5) == '.phpt') { - $this->addTest( - new PHPUnit_Extensions_PhptTestCase($filename, $phptOptions) - ); - - return; - } - - PHPUnit_Util_Class::collectStart(); - $filename = PHPUnit_Util_Fileloader::checkAndLoad($filename); - $newClasses = PHPUnit_Util_Class::collectEnd(); - $baseName = str_replace('.php', '', basename($filename)); - - foreach ($newClasses as $className) { - if (substr($className, 0 - strlen($baseName)) == $baseName) { - $class = new ReflectionClass($className); - - if ($class->getFileName() == $filename) { - $newClasses = array($className); - break; - } - } - } - - $testsFound = FALSE; - - foreach ($newClasses as $className) { - $class = new ReflectionClass($className); - - if (!$class->isAbstract()) { - if ($class->hasMethod(PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME)) { - $method = $class->getMethod( - PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME - ); - - if ($method->isStatic()) { - $this->addTest($method->invoke(NULL, $className)); - - $testsFound = TRUE; - } - } - - else if ($class->implementsInterface('PHPUnit_Framework_Test')) { - $this->addTestSuite($class); - - $testsFound = TRUE; - } - } - } - - $this->numTests = -1; - } - - /** - * Wrapper for addTestFile() that adds multiple test files. - * - * @param array|Iterator $filenames - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 2.3.0 - */ - public function addTestFiles($filenames) - { - if (!(is_array($filenames) || - (is_object($filenames) && $filenames instanceof Iterator))) { - throw PHPUnit_Util_InvalidArgumentHelper::factory( - 1, 'array or iterator' - ); - } - - foreach ($filenames as $filename) { - $this->addTestFile((string)$filename); - } - } - - /** - * Counts the number of test cases that will be run by this test. - * - * @return integer - */ - public function count() - { - if ($this->numTests > -1) { - return $this->numTests; - } - - $this->numTests = 0; - - foreach ($this->tests as $test) { - $this->numTests += count($test); - } - - return $this->numTests; - } - - /** - * @param ReflectionClass $theClass - * @param string $name - * @return PHPUnit_Framework_Test - * @throws PHPUnit_Framework_Exception - */ - public static function createTest(ReflectionClass $theClass, $name) - { - $className = $theClass->getName(); - - if (!$theClass->isInstantiable()) { - return self::warning( - sprintf('Cannot instantiate class "%s".', $className) - ); - } - - $backupSettings = PHPUnit_Util_Test::getBackupSettings( - $className, $name - ); - $preserveGlobalState = PHPUnit_Util_Test::getPreserveGlobalStateSettings( - $className, $name - ); - $runTestInSeparateProcess = PHPUnit_Util_Test::getProcessIsolationSettings( - $className, $name - ); - - $constructor = $theClass->getConstructor(); - - if ($constructor !== NULL) { - $parameters = $constructor->getParameters(); - - // TestCase() or TestCase($name) - if (count($parameters) < 2) { - $test = new $className; - } - - // TestCase($name, $data) - else { - try { - $data = PHPUnit_Util_Test::getProvidedData( - $className, $name - ); - } - - catch (Exception $e) { - $message = sprintf( - 'The data provider specified for %s::%s is invalid.', - $className, - $name - ); - - $_message = $e->getMessage(); - - if (!empty($_message)) { - $message .= "\n" . $_message; - } - - $data = self::warning($message); - } - - // Test method with @dataProvider. - if (isset($data)) { - $test = new PHPUnit_Framework_TestSuite_DataProvider( - $className . '::' . $name - ); - - if (empty($data)) { - $data = self::warning( - sprintf( - 'No tests found in suite "%s".', - $test->getName() - ) - ); - } - - if ($data instanceof PHPUnit_Framework_Warning) { - $test->addTest($data); - } - - else { - $groups = PHPUnit_Util_Test::getGroups($className, $name); - - foreach ($data as $_dataName => $_data) { - $_test = new $className($name, $_data, $_dataName); - - if ($runTestInSeparateProcess) { - $_test->setRunTestInSeparateProcess(TRUE); - - if ($preserveGlobalState !== NULL) { - $_test->setPreserveGlobalState($preserveGlobalState); - } - } - - if ($backupSettings['backupGlobals'] !== NULL) { - $_test->setBackupGlobals( - $backupSettings['backupGlobals'] - ); - } - - if ($backupSettings['backupStaticAttributes'] !== NULL) { - $_test->setBackupStaticAttributes( - $backupSettings['backupStaticAttributes'] - ); - } - - $test->addTest($_test, $groups); - } - } - } - - else { - $test = new $className; - } - } - } - - if (!isset($test)) { - throw new PHPUnit_Framework_Exception('No valid test provided.'); - } - - if ($test instanceof PHPUnit_Framework_TestCase) { - $test->setName($name); - - if ($runTestInSeparateProcess) { - $test->setRunTestInSeparateProcess(TRUE); - - if ($preserveGlobalState !== NULL) { - $test->setPreserveGlobalState($preserveGlobalState); - } - } - - if ($backupSettings['backupGlobals'] !== NULL) { - $test->setBackupGlobals($backupSettings['backupGlobals']); - } - - if ($backupSettings['backupStaticAttributes'] !== NULL) { - $test->setBackupStaticAttributes( - $backupSettings['backupStaticAttributes'] - ); - } - } - - return $test; - } - - /** - * Creates a default TestResult object. - * - * @return PHPUnit_Framework_TestResult - */ - protected function createResult() - { - return new PHPUnit_Framework_TestResult; - } - - /** - * Returns the name of the suite. - * - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Returns the test groups of the suite. - * - * @return array - * @since Method available since Release 3.2.0 - */ - public function getGroups() - { - return array_keys($this->groups); - } - - /** - * Runs the tests and collects their result in a TestResult. - * - * @param PHPUnit_Framework_TestResult $result - * @param mixed $filter - * @param array $groups - * @param array $excludeGroups - * @param boolean $processIsolation - * @return PHPUnit_Framework_TestResult - * @throws PHPUnit_Framework_Exception - */ - public function run(PHPUnit_Framework_TestResult $result = NULL, $filter = FALSE, array $groups = array(), array $excludeGroups = array(), $processIsolation = FALSE) - { - if ($result === NULL) { - $result = $this->createResult(); - } - - $result->startTestSuite($this); - - $doSetup = TRUE; - - if (!empty($excludeGroups)) { - foreach ($this->groups as $_group => $_tests) { - if (in_array($_group, $excludeGroups) && - count($_tests) == count($this->tests)) { - $doSetup = FALSE; - } - } - } - - if ($doSetup) { - try { - $this->setUp(); - - if ($this->testCase && - // Some extensions use test names that are not classes; - // The method_exists() triggers an autoload call that causes issues with die()ing autoloaders. - class_exists($this->name, false) && - method_exists($this->name, 'setUpBeforeClass')) { - call_user_func(array($this->name, 'setUpBeforeClass')); - } - } - - catch (PHPUnit_Framework_SkippedTestSuiteError $e) { - $numTests = count($this); - - for ($i = 0; $i < $numTests; $i++) { - $result->addFailure($this, $e, 0); - } - - return $result; - } - - catch (Exception $e) { - $numTests = count($this); - - for ($i = 0; $i < $numTests; $i++) { - $result->addError($this, $e, 0); - } - - return $result; - } - } - - if (empty($groups)) { - $tests = $this->tests; - } else { - $tests = new SplObjectStorage; - - foreach ($groups as $group) { - if (isset($this->groups[$group])) { - foreach ($this->groups[$group] as $test) { - $tests->attach($test); - } - } - } - } - - foreach ($tests as $test) { - if ($result->shouldStop()) { - break; - } - - if ($test instanceof PHPUnit_Framework_TestSuite) { - $test->setBackupGlobals($this->backupGlobals); - $test->setBackupStaticAttributes($this->backupStaticAttributes); - - $test->run( - $result, $filter, $groups, $excludeGroups, $processIsolation - ); - } else { - $runTest = TRUE; - - if ($filter !== FALSE ) { - $tmp = PHPUnit_Util_Test::describe($test, FALSE); - - if ($tmp[0] != '') { - $name = join('::', $tmp); - } else { - $name = $tmp[1]; - } - - if (preg_match($filter, $name) == 0) { - $runTest = FALSE; - } - } - - if ($runTest && !empty($excludeGroups)) { - foreach ($this->groups as $_group => $_tests) { - if (in_array($_group, $excludeGroups)) { - foreach ($_tests as $_test) { - if ($test === $_test) { - $runTest = FALSE; - break 2; - } - } - } - } - } - - if ($runTest) { - if ($test instanceof PHPUnit_Framework_TestCase) { - $test->setBackupGlobals($this->backupGlobals); - $test->setBackupStaticAttributes( - $this->backupStaticAttributes - ); - $test->setRunTestInSeparateProcess($processIsolation); - } - - $this->runTest($test, $result); - } - } - } - - if ($doSetup) { - if ($this->testCase && - // Some extensions use test names that are not classes; - // The method_exists() triggers an autoload call that causes issues with die()ing autoloaders. - class_exists($this->name, false) && - method_exists($this->name, 'tearDownAfterClass')) { - call_user_func(array($this->name, 'tearDownAfterClass')); - } - - $this->tearDown(); - } - - $result->endTestSuite($this); - - return $result; - } - - /** - * Runs a test. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_TestResult $result - */ - public function runTest(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result) - { - $test->run($result); - } - - /** - * Sets the name of the suite. - * - * @param string - */ - public function setName($name) - { - $this->name = $name; - } - - /** - * Returns the test at the given index. - * - * @param integer - * @return PHPUnit_Framework_Test - */ - public function testAt($index) - { - if (isset($this->tests[$index])) { - return $this->tests[$index]; - } else { - return FALSE; - } - } - - /** - * Returns the tests as an enumeration. - * - * @return array - */ - public function tests() - { - return $this->tests; - } - - /** - * Mark the test suite as skipped. - * - * @param string $message - * @throws PHPUnit_Framework_SkippedTestSuiteError - * @since Method available since Release 3.0.0 - */ - public function markTestSuiteSkipped($message = '') - { - throw new PHPUnit_Framework_SkippedTestSuiteError($message); - } - - /** - * @param ReflectionClass $class - * @param ReflectionMethod $method - */ - protected function addTestMethod(ReflectionClass $class, ReflectionMethod $method) - { - $name = $method->getName(); - - if ($this->isPublicTestMethod($method)) { - $test = self::createTest($class, $name); - - if ($test instanceof PHPUnit_Framework_TestCase || - $test instanceof PHPUnit_Framework_TestSuite_DataProvider) { - $test->setDependencies( - PHPUnit_Util_Test::getDependencies($class->getName(), $name) - ); - } - - $this->addTest($test, PHPUnit_Util_Test::getGroups( - $class->getName(), $name) - ); - } - - else if ($this->isTestMethod($method)) { - $this->addTest( - self::warning( - sprintf( - 'Test method "%s" in test class "%s" is not public.', - $name, - $class->getName() - ) - ) - ); - } - } - - /** - * @param ReflectionMethod $method - * @return boolean - */ - public static function isPublicTestMethod(ReflectionMethod $method) - { - return (self::isTestMethod($method) && $method->isPublic()); - } - - /** - * @param ReflectionMethod $method - * @return boolean - */ - public static function isTestMethod(ReflectionMethod $method) - { - if (strpos($method->name, 'test') === 0) { - return TRUE; - } - - // @scenario on TestCase::testMethod() - // @test on TestCase::testMethod() - return strpos($method->getDocComment(), '@test') !== FALSE || - strpos($method->getDocComment(), '@scenario') !== FALSE; - } - - /** - * @param string $message - * @return PHPUnit_Framework_Warning - */ - protected static function warning($message) - { - return new PHPUnit_Framework_Warning($message); - } - - /** - * @param boolean $backupGlobals - * @since Method available since Release 3.3.0 - */ - public function setBackupGlobals($backupGlobals) - { - if (is_null($this->backupGlobals) && is_bool($backupGlobals)) { - $this->backupGlobals = $backupGlobals; - } - } - - /** - * @param boolean $backupStaticAttributes - * @since Method available since Release 3.4.0 - */ - public function setBackupStaticAttributes($backupStaticAttributes) - { - if (is_null($this->backupStaticAttributes) && - is_bool($backupStaticAttributes)) { - $this->backupStaticAttributes = $backupStaticAttributes; - } - } - - /** - * Returns an iterator for this test suite. - * - * @return RecursiveIteratorIterator - * @since Method available since Release 3.1.0 - */ - public function getIterator() - { - return new RecursiveIteratorIterator( - new PHPUnit_Util_TestSuiteIterator($this) - ); - } - - /** - * Template Method that is called before the tests - * of this test suite are run. - * - * @since Method available since Release 3.1.0 - */ - protected function setUp() - { - } - - /** - * Template Method that is called after the tests - * of this test suite have finished running. - * - * @since Method available since Release 3.1.0 - */ - protected function tearDown() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite/DataProvider.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite/DataProvider.php deleted file mode 100644 index 31f08089..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite/DataProvider.php +++ /dev/null @@ -1,70 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework_TestSuite - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Framework_TestSuite - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Framework_TestSuite_DataProvider extends PHPUnit_Framework_TestSuite -{ - /** - * Sets the dependencies of a TestCase. - * - * @param array $dependencies - */ - public function setDependencies(array $dependencies) - { - foreach ($this->tests as $test) { - $test->setDependencies($dependencies); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php deleted file mode 100644 index 72b30d82..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php +++ /dev/null @@ -1,125 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A warning. - * - * @package PHPUnit - * @subpackage Framework - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Framework_Warning extends PHPUnit_Framework_TestCase -{ - /** - * @var string - */ - protected $message = ''; - - /** - * @var boolean - */ - protected $backupGlobals = FALSE; - - /** - * @var boolean - */ - protected $backupStaticAttributes = FALSE; - - /** - * @var boolean - */ - protected $runTestInSeparateProcess = FALSE; - - /** - * @var boolean - */ - protected $useErrorHandler = FALSE; - - /** - * @var boolean - */ - protected $useOutputBuffering = FALSE; - - /** - * @param string $message - */ - public function __construct($message = '') - { - $this->message = $message; - parent::__construct('Warning'); - } - - /** - * @throws PHPUnit_Framework_Exception - */ - protected function runTest() - { - $this->fail($this->message); - } - - /** - * @return string - * @since Method available since Release 3.0.0 - */ - public function getMessage() - { - return $this->message; - } - - /** - * Returns a string representation of the test case. - * - * @return string - * @since Method available since Release 3.4.0 - */ - public function toString() - { - return 'Warning'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/BaseTestRunner.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/BaseTestRunner.php deleted file mode 100644 index c80af8f8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/BaseTestRunner.php +++ /dev/null @@ -1,189 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Base class for all test runners. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -abstract class PHPUnit_Runner_BaseTestRunner -{ - const STATUS_PASSED = 0; - const STATUS_SKIPPED = 1; - const STATUS_INCOMPLETE = 2; - const STATUS_FAILURE = 3; - const STATUS_ERROR = 4; - const SUITE_METHODNAME = 'suite'; - - /** - * Returns the loader to be used. - * - * @return PHPUnit_Runner_TestSuiteLoader - */ - public function getLoader() - { - return new PHPUnit_Runner_StandardTestSuiteLoader; - } - - /** - * Returns the Test corresponding to the given suite. - * This is a template method, subclasses override - * the runFailed() and clearStatus() methods. - * - * @param string $suiteClassName - * @param string $suiteClassFile - * @param mixed $suffixes - * @return PHPUnit_Framework_Test - */ - public function getTest($suiteClassName, $suiteClassFile = '', $suffixes = '') - { - if (is_dir($suiteClassName) && - !is_file($suiteClassName . '.php') && empty($suiteClassFile)) { - $facade = new File_Iterator_Facade; - $files = $facade->getFilesAsArray( - $suiteClassName, $suffixes - ); - - $suite = new PHPUnit_Framework_TestSuite($suiteClassName); - $suite->addTestFiles($files); - - return $suite; - } - - try { - $testClass = $this->loadSuiteClass( - $suiteClassName, $suiteClassFile - ); - } - - catch (Exception $e) { - $this->runFailed($e->getMessage()); - return NULL; - } - - try { - $suiteMethod = $testClass->getMethod(self::SUITE_METHODNAME); - - if (!$suiteMethod->isStatic()) { - $this->runFailed( - 'suite() method must be static.' - ); - - return NULL; - } - - try { - $test = $suiteMethod->invoke(NULL, $testClass->getName()); - } - - catch (ReflectionException $e) { - $this->runFailed( - sprintf( - "Failed to invoke suite() method.\n%s", - - $e->getMessage() - ) - ); - - return NULL; - } - } - - catch (ReflectionException $e) { - try { - $test = new PHPUnit_Framework_TestSuite($testClass); - } - - catch (PHPUnit_Framework_Exception $e) { - $test = new PHPUnit_Framework_TestSuite; - $test->setName($suiteClassName); - } - } - - $this->clearStatus(); - - return $test; - } - - /** - * Returns the loaded ReflectionClass for a suite name. - * - * @param string $suiteClassName - * @param string $suiteClassFile - * @return ReflectionClass - */ - protected function loadSuiteClass($suiteClassName, $suiteClassFile = '') - { - $loader = $this->getLoader(); - - if ($loader instanceof PHPUnit_Runner_StandardTestSuiteLoader) { - return $loader->load($suiteClassName, $suiteClassFile); - } else { - return $loader->load($suiteClassName, $suiteClassFile); - } - } - - /** - * Clears the status message. - * - */ - protected function clearStatus() - { - } - - /** - * Override to define how to handle a failed loading of - * a test suite. - * - * @param string $message - */ - abstract protected function runFailed($message); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/StandardTestSuiteLoader.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/StandardTestSuiteLoader.php deleted file mode 100644 index 88574e28..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/StandardTestSuiteLoader.php +++ /dev/null @@ -1,153 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * The standard test suite loader. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Runner_StandardTestSuiteLoader implements PHPUnit_Runner_TestSuiteLoader -{ - /** - * @param string $suiteClassName - * @param string $suiteClassFile - * @return ReflectionClass - * @throws PHPUnit_Framework_Exception - */ - public function load($suiteClassName, $suiteClassFile = '') - { - $suiteClassName = str_replace('.php', '', $suiteClassName); - - if (empty($suiteClassFile)) { - $suiteClassFile = PHPUnit_Util_Filesystem::classNameToFilename( - $suiteClassName - ); - } - - if (!class_exists($suiteClassName, FALSE)) { - PHPUnit_Util_Class::collectStart(); - $filename = PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile); - $loadedClasses = PHPUnit_Util_Class::collectEnd(); - } - - if (!class_exists($suiteClassName, FALSE) && !empty($loadedClasses)) { - $offset = 0 - strlen($suiteClassName); - - foreach ($loadedClasses as $loadedClass) { - $class = new ReflectionClass($loadedClass); - if (substr($loadedClass, $offset) === $suiteClassName && - $class->getFileName() == $filename) { - $suiteClassName = $loadedClass; - break; - } - } - } - - if (!class_exists($suiteClassName, FALSE) && !empty($loadedClasses)) { - $testCaseClass = 'PHPUnit_Framework_TestCase'; - - foreach ($loadedClasses as $loadedClass) { - $class = new ReflectionClass($loadedClass); - $classFile = $class->getFileName(); - - if ($class->isSubclassOf($testCaseClass) && - !$class->isAbstract()) { - $suiteClassName = $loadedClass; - $testCaseClass = $loadedClass; - - if ($classFile == realpath($suiteClassFile)) { - break; - } - } - - if ($class->hasMethod('suite')) { - $method = $class->getMethod('suite'); - - if (!$method->isAbstract() && - $method->isPublic() && - $method->isStatic()) { - $suiteClassName = $loadedClass; - - if ($classFile == realpath($suiteClassFile)) { - break; - } - } - } - } - } - - if (class_exists($suiteClassName, FALSE)) { - $class = new ReflectionClass($suiteClassName); - - if ($class->getFileName() == realpath($suiteClassFile)) { - return $class; - } - } - - throw new PHPUnit_Framework_Exception( - sprintf( - "Class '%s' could not be found in '%s'.", - - $suiteClassName, - $suiteClassFile - ) - ); - } - - /** - * @param ReflectionClass $aClass - * @return ReflectionClass - */ - public function reload(ReflectionClass $aClass) - { - return $aClass; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/TestSuiteLoader.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/TestSuiteLoader.php deleted file mode 100644 index 7cad44fb..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/TestSuiteLoader.php +++ /dev/null @@ -1,71 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * An interface to define how a test suite should be loaded. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 2.0.0 - */ -interface PHPUnit_Runner_TestSuiteLoader -{ - /** - * @param string $suiteClassName - * @param string $suiteClassFile - * @return ReflectionClass - */ - public function load($suiteClassName, $suiteClassFile = ''); - - /** - * @param ReflectionClass $aClass - * @return ReflectionClass - */ - public function reload(ReflectionClass $aClass); -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/Version.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/Version.php deleted file mode 100644 index 3691c328..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Runner/Version.php +++ /dev/null @@ -1,100 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * This class defines the current version of PHPUnit. - * - * @package PHPUnit - * @subpackage Runner - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Runner_Version -{ - const VERSION = '3.7.8'; - protected static $version; - - /** - * Returns the current version of PHPUnit. - * - * @return string - */ - public static function id() - { - if (self::$version === NULL) { - self::$version = self::VERSION; - - if (is_dir(dirname(dirname(__DIR__)) . '/.git')) { - $dir = getcwd(); - chdir(__DIR__); - $version = exec('git describe --tags'); - chdir($dir); - - if ($version) { - if (count(explode('.', self::VERSION)) == 3) { - self::$version = $version; - } else { - $version = explode('-', $version); - - self::$version = self::VERSION . '-' . $version[2]; - } - } - } - } - - return self::$version; - } - - /** - * @return string - */ - public static function getVersionString() - { - return 'PHPUnit ' . self::id() . ' by Sebastian Bergmann.'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php deleted file mode 100644 index cc5bac7f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php +++ /dev/null @@ -1,897 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * A TestRunner for the Command Line Interface (CLI) - * PHP SAPI Module. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_TextUI_Command -{ - /** - * @var array - */ - protected $arguments = array( - 'listGroups' => FALSE, - 'loader' => NULL, - 'useDefaultConfiguration' => TRUE - ); - - /** - * @var array - */ - protected $options = array(); - - /** - * @var array - */ - protected $longOptions = array( - 'colors' => NULL, - 'bootstrap=' => NULL, - 'configuration=' => NULL, - 'coverage-html=' => NULL, - 'coverage-clover=' => NULL, - 'coverage-php=' => NULL, - 'coverage-text==' => NULL, - 'debug' => NULL, - 'exclude-group=' => NULL, - 'filter=' => NULL, - 'testsuite=' => NULL, - 'group=' => NULL, - 'help' => NULL, - 'include-path=' => NULL, - 'list-groups' => NULL, - 'loader=' => NULL, - 'log-json=' => NULL, - 'log-junit=' => NULL, - 'log-tap=' => NULL, - 'process-isolation' => NULL, - 'repeat=' => NULL, - 'stderr' => NULL, - 'stop-on-error' => NULL, - 'stop-on-failure' => NULL, - 'stop-on-incomplete' => NULL, - 'stop-on-skipped' => NULL, - 'strict' => NULL, - 'tap' => NULL, - 'testdox' => NULL, - 'testdox-html=' => NULL, - 'testdox-text=' => NULL, - 'test-suffix=' => NULL, - 'no-configuration' => NULL, - 'no-globals-backup' => NULL, - 'printer=' => NULL, - 'static-backup' => NULL, - 'verbose' => NULL, - 'version' => NULL - ); - - /** - * @var array - */ - protected $missingExtensions = array(); - - /** - * @param boolean $exit - */ - public static function main($exit = TRUE) - { - $command = new PHPUnit_TextUI_Command; - return $command->run($_SERVER['argv'], $exit); - } - - /** - * @param array $argv - * @param boolean $exit - */ - public function run(array $argv, $exit = TRUE) - { - $this->handleArguments($argv); - - $runner = $this->createRunner(); - - if (is_object($this->arguments['test']) && - $this->arguments['test'] instanceof PHPUnit_Framework_Test) { - $suite = $this->arguments['test']; - } else { - $suite = $runner->getTest( - $this->arguments['test'], - $this->arguments['testFile'], - $this->arguments['testSuffixes'] - ); - } - - if ($this->arguments['listGroups']) { - PHPUnit_TextUI_TestRunner::printVersionString(); - - print "Available test group(s):\n"; - - $groups = $suite->getGroups(); - sort($groups); - - foreach ($groups as $group) { - print " - $group\n"; - } - - if ($exit) { - exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT); - } else { - return PHPUnit_TextUI_TestRunner::SUCCESS_EXIT; - } - } - - unset($this->arguments['test']); - unset($this->arguments['testFile']); - - try { - $result = $runner->doRun($suite, $this->arguments); - } - - catch (PHPUnit_Framework_Exception $e) { - print $e->getMessage() . "\n"; - } - - $ret = PHPUnit_TextUI_TestRunner::FAILURE_EXIT; - - if (isset($result) && $result->wasSuccessful()) { - $ret = PHPUnit_TextUI_TestRunner::SUCCESS_EXIT; - } - - else if (!isset($result) || $result->errorCount() > 0) { - $ret = PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT; - } - - if ($exit) { - exit($ret); - } else { - return $ret; - } - } - - /** - * Create a TestRunner, override in subclasses. - * - * @return PHPUnit_TextUI_TestRunner - * @since Method available since Release 3.6.0 - */ - protected function createRunner() - { - return new PHPUnit_TextUI_TestRunner($this->arguments['loader']); - } - - /** - * Handles the command-line arguments. - * - * A child class of PHPUnit_TextUI_Command can hook into the argument - * parsing by adding the switch(es) to the $longOptions array and point to a - * callback method that handles the switch(es) in the child class like this - * - * - * longOptions['--my-switch'] = 'myHandler'; - * } - * - * // --my-switch foo -> myHandler('foo') - * protected function myHandler($value) - * { - * } - * } - * - * - * @param array $argv - */ - protected function handleArguments(array $argv) - { - try { - $this->options = PHPUnit_Util_Getopt::getopt( - $argv, - 'd:c:hv', - array_keys($this->longOptions) - ); - } - - catch (PHPUnit_Framework_Exception $e) { - PHPUnit_TextUI_TestRunner::showError($e->getMessage()); - } - - foreach ($this->options[0] as $option) { - switch ($option[0]) { - case '--colors': { - $this->arguments['colors'] = TRUE; - } - break; - - case '--bootstrap': { - $this->arguments['bootstrap'] = $option[1]; - } - break; - - case 'c': - case '--configuration': { - $this->arguments['configuration'] = $option[1]; - } - break; - - case '--coverage-clover': - case '--coverage-html': - case '--coverage-php': - case '--coverage-text': { - if (!extension_loaded('tokenizer')) { - $this->showExtensionNotLoadedMessage( - 'tokenizer', 'No code coverage will be generated.' - ); - - continue; - } - - if (!extension_loaded('xdebug')) { - $this->showExtensionNotLoadedMessage( - 'Xdebug', 'No code coverage will be generated.' - ); - - continue; - } - - switch ($option[0]) { - case '--coverage-clover': { - $this->arguments['coverageClover'] = $option[1]; - } - break; - - case '--coverage-html': { - $this->arguments['reportDirectory'] = $option[1]; - } - break; - - case '--coverage-php': { - $this->arguments['coveragePHP'] = $option[1]; - } - break; - - case '--coverage-text': { - if ($option[1] === NULL) { - $option[1] = 'php://stdout'; - } - - $this->arguments['coverageText'] = $option[1]; - $this->arguments['coverageTextShowUncoveredFiles'] = FALSE; - } - break; - } - } - break; - - case 'd': { - $ini = explode('=', $option[1]); - - if (isset($ini[0])) { - if (isset($ini[1])) { - ini_set($ini[0], $ini[1]); - } else { - ini_set($ini[0], TRUE); - } - } - } - break; - - case '--debug': { - $this->arguments['debug'] = TRUE; - } - break; - - case 'h': - case '--help': { - $this->showHelp(); - exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT); - } - break; - - case '--filter': { - $this->arguments['filter'] = $option[1]; - } - break; - - case '--testsuite': { - $this->arguments['testsuite'] = $option[1]; - } - break; - - case '--group': { - $this->arguments['groups'] = explode(',', $option[1]); - } - break; - - case '--exclude-group': { - $this->arguments['excludeGroups'] = explode( - ',', $option[1] - ); - } - break; - - case '--test-suffix': { - $this->arguments['testSuffixes'] = explode( - ',', $option[1] - ); - } - break; - - case '--include-path': { - $includePath = $option[1]; - } - break; - - case '--list-groups': { - $this->arguments['listGroups'] = TRUE; - } - break; - - case '--printer': { - $this->arguments['printer'] = $option[1]; - } - break; - - case '--loader': { - $this->arguments['loader'] = $option[1]; - } - break; - - case '--log-json': { - $this->arguments['jsonLogfile'] = $option[1]; - } - break; - - case '--log-junit': { - $this->arguments['junitLogfile'] = $option[1]; - } - break; - - case '--log-tap': { - $this->arguments['tapLogfile'] = $option[1]; - } - break; - - case '--process-isolation': { - $this->arguments['processIsolation'] = TRUE; - } - break; - - case '--repeat': { - $this->arguments['repeat'] = (int)$option[1]; - } - break; - - case '--stderr': { - $this->arguments['printer'] = new PHPUnit_TextUI_ResultPrinter( - 'php://stderr', - isset($this->arguments['verbose']) ? $this->arguments['verbose'] : FALSE - ); - } - break; - - case '--stop-on-error': { - $this->arguments['stopOnError'] = TRUE; - } - break; - - case '--stop-on-failure': { - $this->arguments['stopOnFailure'] = TRUE; - } - break; - - case '--stop-on-incomplete': { - $this->arguments['stopOnIncomplete'] = TRUE; - } - break; - - case '--stop-on-skipped': { - $this->arguments['stopOnSkipped'] = TRUE; - } - break; - - case '--tap': { - $this->arguments['printer'] = new PHPUnit_Util_Log_TAP; - } - break; - - case '--testdox': { - $this->arguments['printer'] = new PHPUnit_Util_TestDox_ResultPrinter_Text; - } - break; - - case '--testdox-html': { - $this->arguments['testdoxHTMLFile'] = $option[1]; - } - break; - - case '--testdox-text': { - $this->arguments['testdoxTextFile'] = $option[1]; - } - break; - - case '--no-configuration': { - $this->arguments['useDefaultConfiguration'] = FALSE; - } - break; - - case '--no-globals-backup': { - $this->arguments['backupGlobals'] = FALSE; - } - break; - - case '--static-backup': { - $this->arguments['backupStaticAttributes'] = TRUE; - } - break; - - case 'v': - case '--verbose': { - $this->arguments['verbose'] = TRUE; - } - break; - - case '--version': { - PHPUnit_TextUI_TestRunner::printVersionString(); - exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT); - } - break; - - case '--strict': { - $this->arguments['strict'] = TRUE; - } - break; - - default: { - $optionName = str_replace('--', '', $option[0]); - - if (isset($this->longOptions[$optionName])) { - $handler = $this->longOptions[$optionName]; - } - - else if (isset($this->longOptions[$optionName . '='])) { - $handler = $this->longOptions[$optionName . '=']; - } - - if (isset($handler) && is_callable(array($this, $handler))) { - $this->$handler($option[1]); - } - } - } - } - - $this->handleCustomTestSuite(); - - if (!isset($this->arguments['test'])) { - - if (isset($this->options[1][0])) { - $this->arguments['test'] = $this->options[1][0]; - } - - if (isset($this->options[1][1])) { - $this->arguments['testFile'] = $this->options[1][1]; - } else { - $this->arguments['testFile'] = ''; - } - - if (isset($this->arguments['test']) && - is_file($this->arguments['test']) && - substr($this->arguments['test'], -5, 5) != '.phpt') { - $this->arguments['testFile'] = realpath($this->arguments['test']); - $this->arguments['test'] = substr($this->arguments['test'], 0, strrpos($this->arguments['test'], '.')); - } - } - - if (!isset($this->arguments['testSuffixes'])) { - $this->arguments['testSuffixes'] = array('Test.php', '.phpt'); - } - - if (isset($includePath)) { - ini_set( - 'include_path', - $includePath . PATH_SEPARATOR . ini_get('include_path') - ); - } - - if (isset($this->arguments['bootstrap'])) { - $this->handleBootstrap($this->arguments['bootstrap']); - } - - if (isset($this->arguments['printer']) && - is_string($this->arguments['printer'])) { - $this->arguments['printer'] = $this->handlePrinter($this->arguments['printer']); - } - - if ($this->arguments['loader'] !== NULL) { - $this->arguments['loader'] = $this->handleLoader($this->arguments['loader']); - } - - if (isset($this->arguments['configuration']) && - is_dir($this->arguments['configuration'])) { - $configurationFile = $this->arguments['configuration'] . - '/phpunit.xml'; - - if (file_exists($configurationFile)) { - $this->arguments['configuration'] = realpath( - $configurationFile - ); - } - - else if (file_exists($configurationFile . '.dist')) { - $this->arguments['configuration'] = realpath( - $configurationFile . '.dist' - ); - } - } - - else if (!isset($this->arguments['configuration']) && - $this->arguments['useDefaultConfiguration']) { - if (file_exists('phpunit.xml')) { - $this->arguments['configuration'] = realpath('phpunit.xml'); - } else if (file_exists('phpunit.xml.dist')) { - $this->arguments['configuration'] = realpath( - 'phpunit.xml.dist' - ); - } - } - - if (isset($this->arguments['configuration'])) { - try { - $configuration = PHPUnit_Util_Configuration::getInstance( - $this->arguments['configuration'] - ); - } - - catch (Exception $e) { - print $e->getMessage() . "\n"; - exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT); - } - - $phpunit = $configuration->getPHPUnitConfiguration(); - - $configuration->handlePHPConfiguration(); - - if (!isset($this->arguments['bootstrap']) && isset($phpunit['bootstrap'])) { - $this->handleBootstrap($phpunit['bootstrap']); - } - - if (isset($phpunit['printerClass'])) { - if (isset($phpunit['printerFile'])) { - $file = $phpunit['printerFile']; - } else { - $file = ''; - } - - $this->arguments['printer'] = $this->handlePrinter( - $phpunit['printerClass'], $file - ); - } - - if (isset($phpunit['testSuiteLoaderClass'])) { - if (isset($phpunit['testSuiteLoaderFile'])) { - $file = $phpunit['testSuiteLoaderFile']; - } else { - $file = ''; - } - - $this->arguments['loader'] = $this->handleLoader( - $phpunit['testSuiteLoaderClass'], $file - ); - } - - $logging = $configuration->getLoggingConfiguration(); - - if (isset($logging['coverage-html']) || isset($logging['coverage-clover']) || isset($logging['coverage-text']) ) { - if (!extension_loaded('tokenizer')) { - $this->showExtensionNotLoadedMessage( - 'tokenizer', 'No code coverage will be generated.' - ); - } - - else if (!extension_loaded('Xdebug')) { - $this->showExtensionNotLoadedMessage( - 'Xdebug', 'No code coverage will be generated.' - ); - } - } - - $browsers = $configuration->getSeleniumBrowserConfiguration(); - - if (!empty($browsers) && - class_exists('PHPUnit_Extensions_SeleniumTestCase')) { - PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers; - } - - if (!isset($this->arguments['test'])) { - $testSuite = $configuration->getTestSuiteConfiguration(isset($this->arguments['testsuite']) ? $this->arguments['testsuite'] : null); - - if ($testSuite !== NULL) { - $this->arguments['test'] = $testSuite; - } - } - } - - if (isset($this->arguments['test']) && is_string($this->arguments['test']) && substr($this->arguments['test'], -5, 5) == '.phpt') { - $test = new PHPUnit_Extensions_PhptTestCase($this->arguments['test']); - - $this->arguments['test'] = new PHPUnit_Framework_TestSuite; - $this->arguments['test']->addTest($test); - } - - if (!isset($this->arguments['test']) || - (isset($this->arguments['testDatabaseLogRevision']) && !isset($this->arguments['testDatabaseDSN']))) { - $this->showHelp(); - exit(PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT); - } - } - - /** - * Handles the loading of the PHPUnit_Runner_TestSuiteLoader implementation. - * - * @param string $loaderClass - * @param string $loaderFile - * @return PHPUnit_Runner_TestSuiteLoader - */ - protected function handleLoader($loaderClass, $loaderFile = '') - { - if (!class_exists($loaderClass, FALSE)) { - if ($loaderFile == '') { - $loaderFile = PHPUnit_Util_Filesystem::classNameToFilename( - $loaderClass - ); - } - - $loaderFile = stream_resolve_include_path($loaderFile); - - if ($loaderFile) { - require $loaderFile; - } - } - - if (class_exists($loaderClass, FALSE)) { - $class = new ReflectionClass($loaderClass); - - if ($class->implementsInterface('PHPUnit_Runner_TestSuiteLoader') && - $class->isInstantiable()) { - $loader = $class->newInstance(); - } - } - - if (!isset($loader)) { - PHPUnit_TextUI_TestRunner::showError( - sprintf( - 'Could not use "%s" as loader.', - - $loaderClass - ) - ); - } - - return $loader; - } - - /** - * Handles the loading of the PHPUnit_Util_Printer implementation. - * - * @param string $printerClass - * @param string $printerFile - * @return PHPUnit_Util_Printer - */ - protected function handlePrinter($printerClass, $printerFile = '') - { - if (!class_exists($printerClass, FALSE)) { - if ($printerFile == '') { - $printerFile = PHPUnit_Util_Filesystem::classNameToFilename( - $printerClass - ); - } - - $printerFile = stream_resolve_include_path($printerFile); - - if ($printerFile) { - require $printerFile; - } - } - - if (class_exists($printerClass, FALSE)) { - $class = new ReflectionClass($printerClass); - - if ($class->implementsInterface('PHPUnit_Framework_TestListener') && - $class->isSubclassOf('PHPUnit_Util_Printer') && - $class->isInstantiable()) { - $printer = $class->newInstance(); - } - } - - if (!isset($printer)) { - PHPUnit_TextUI_TestRunner::showError( - sprintf( - 'Could not use "%s" as printer.', - - $printerClass - ) - ); - } - - return $printer; - } - - /** - * Loads a bootstrap file. - * - * @param string $filename - */ - protected function handleBootstrap($filename) - { - try { - PHPUnit_Util_Fileloader::checkAndLoad($filename); - } - - catch (PHPUnit_Framework_Exception $e) { - PHPUnit_TextUI_TestRunner::showError($e->getMessage()); - } - } - - /** - * @param string $message - * @since Method available since Release 3.6.0 - */ - protected function showExtensionNotLoadedMessage($extension, $message = '') - { - if (isset($this->missingExtensions[$extension])) { - return; - } - - if (!empty($message)) { - $message = ' ' . $message; - } - - $this->showMessage( - 'The ' . $extension . ' extension is not loaded.' . $message . "\n", - FALSE - ); - - $this->missingExtensions[$extension] = TRUE; - } - - /** - * Shows a message. - * - * @param string $message - * @param boolean $exit - */ - protected function showMessage($message, $exit = TRUE) - { - PHPUnit_TextUI_TestRunner::printVersionString(); - print $message . "\n"; - - if ($exit) { - exit(PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT); - } else { - print "\n"; - } - } - - /** - * Show the help message. - */ - protected function showHelp() - { - PHPUnit_TextUI_TestRunner::printVersionString(); - - print << - - --log-junit Log test execution in JUnit XML format to file. - --log-tap Log test execution in TAP format to file. - --log-json Log test execution in JSON format. - - --coverage-clover Generate code coverage report in Clover XML format. - --coverage-html Generate code coverage report in HTML format. - --coverage-php Serialize PHP_CodeCoverage object to file. - --coverage-text= Generate code coverage report in text format. - Default to writing to the standard output. - - --testdox-html Write agile documentation in HTML format to file. - --testdox-text Write agile documentation in Text format to file. - - --filter Filter which tests to run. - --testsuite Filter which testsuite to run. - --group ... Only runs tests from the specified group(s). - --exclude-group ... Exclude tests from the specified group(s). - --list-groups List available test groups. - --test-suffix ... Only search for test in files with specified - suffix(es). Default: Test.php,.phpt - - --loader TestSuiteLoader implementation to use. - --printer TestSuiteListener implementation to use. - --repeat Runs the test(s) repeatedly. - - --tap Report test execution progress in TAP format. - --testdox Report test execution progress in TestDox format. - - --colors Use colors in output. - --stderr Write to STDERR instead of STDOUT. - --stop-on-error Stop execution upon first error. - --stop-on-failure Stop execution upon first error or failure. - --stop-on-skipped Stop execution upon first skipped test. - --stop-on-incomplete Stop execution upon first incomplete test. - --strict Run tests in strict mode. - -v|--verbose Output more verbose information. - --debug Display debugging information during test execution. - - --process-isolation Run each test in a separate PHP process. - --no-globals-backup Do not backup and restore \$GLOBALS for each test. - --static-backup Backup and restore static attributes for each test. - - --bootstrap A "bootstrap" PHP file that is run before the tests. - -c|--configuration Read configuration from XML file. - --no-configuration Ignore default configuration file (phpunit.xml). - --include-path Prepend PHP's include_path with given path(s). - -d key[=value] Sets a php.ini value. - - -h|--help Prints this usage information. - --version Prints the version and exits. - -EOT; - } - - /** - * Custom callback for test suite discovery. - */ - protected function handleCustomTestSuite() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php deleted file mode 100644 index 0ed0ed2a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php +++ /dev/null @@ -1,664 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Prints the result of a TextUI TestRunner run. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_TextUI_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener -{ - const EVENT_TEST_START = 0; - const EVENT_TEST_END = 1; - const EVENT_TESTSUITE_START = 2; - const EVENT_TESTSUITE_END = 3; - - /** - * @var integer - */ - protected $column = 0; - - /** - * @var integer - */ - protected $maxColumn; - - /** - * @var boolean - */ - protected $lastTestFailed = FALSE; - - /** - * @var integer - */ - protected $numAssertions = 0; - - /** - * @var integer - */ - protected $numTests = -1; - - /** - * @var integer - */ - protected $numTestsRun = 0; - - /** - * @var integer - */ - protected $numTestsWidth; - - /** - * @var boolean - */ - protected $colors = FALSE; - - /** - * @var boolean - */ - protected $debug = FALSE; - - /** - * @var boolean - */ - protected $verbose = FALSE; - - /** - * Constructor. - * - * @param mixed $out - * @param boolean $verbose - * @param boolean $colors - * @param boolean $debug - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.0.0 - */ - public function __construct($out = NULL, $verbose = FALSE, $colors = FALSE, $debug = FALSE) - { - parent::__construct($out); - - if (is_bool($verbose)) { - $this->verbose = $verbose; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'boolean'); - } - - if (is_bool($colors)) { - $this->colors = $colors; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'boolean'); - } - - if (is_bool($debug)) { - $this->debug = $debug; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'boolean'); - } - } - - /** - * @param PHPUnit_Framework_TestResult $result - */ - public function printResult(PHPUnit_Framework_TestResult $result) - { - $this->printHeader(); - - if ($result->errorCount() > 0) { - $this->printErrors($result); - } - - if ($result->failureCount() > 0) { - if ($result->errorCount() > 0) { - print "\n--\n\n"; - } - - $this->printFailures($result); - } - - if ($this->verbose) { - if ($result->deprecatedFeaturesCount() > 0) { - if ($result->failureCount() > 0) { - print "\n--\n\nDeprecated PHPUnit features are being used"; - } - - foreach ($result->deprecatedFeatures() as $deprecatedFeature) { - $this->write($deprecatedFeature . "\n\n"); - } - } - - if ($result->notImplementedCount() > 0) { - if ($result->failureCount() > 0) { - print "\n--\n\n"; - } - - $this->printIncompletes($result); - } - - if ($result->skippedCount() > 0) { - if ($result->notImplementedCount() > 0) { - print "\n--\n\n"; - } - - $this->printSkipped($result); - } - } - - $this->printFooter($result); - } - - /** - * @param array $defects - * @param integer $count - * @param string $type - */ - protected function printDefects(array $defects, $count, $type) - { - static $called = FALSE; - - if ($count == 0) { - return; - } - - $this->write( - sprintf( - "%sThere %s %d %s%s:\n", - - $called ? "\n" : '', - ($count == 1) ? 'was' : 'were', - $count, - $type, - ($count == 1) ? '' : 's' - ) - ); - - $i = 1; - - foreach ($defects as $defect) { - $this->printDefect($defect, $i++); - } - - $called = TRUE; - } - - /** - * @param PHPUnit_Framework_TestFailure $defect - * @param integer $count - */ - protected function printDefect(PHPUnit_Framework_TestFailure $defect, $count) - { - $this->printDefectHeader($defect, $count); - $this->printDefectTrace($defect); - } - - /** - * @param PHPUnit_Framework_TestFailure $defect - * @param integer $count - */ - protected function printDefectHeader(PHPUnit_Framework_TestFailure $defect, $count) - { - $failedTest = $defect->failedTest(); - - if ($failedTest instanceof PHPUnit_Framework_SelfDescribing) { - $testName = $failedTest->toString(); - } else { - $testName = get_class($failedTest); - } - - $this->write( - sprintf( - "\n%d) %s\n", - - $count, - $testName - ) - ); - } - - /** - * @param PHPUnit_Framework_TestFailure $defect - */ - protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect) - { - $this->write( - $defect->getExceptionAsString() . "\n" . - PHPUnit_Util_Filter::getFilteredStacktrace( - $defect->thrownException() - ) - ); - - $e = $defect->thrownException()->getPrevious(); - - while ($e) { - $this->write( - "\nCaused by\n" . - PHPUnit_Framework_TestFailure::exceptionToString($e). "\n" . - PHPUnit_Util_Filter::getFilteredStacktrace($e) - ); - - $e = $e->getPrevious(); - } - } - - /** - * @param PHPUnit_Framework_TestResult $result - */ - protected function printErrors(PHPUnit_Framework_TestResult $result) - { - $this->printDefects($result->errors(), $result->errorCount(), 'error'); - } - - /** - * @param PHPUnit_Framework_TestResult $result - */ - protected function printFailures(PHPUnit_Framework_TestResult $result) - { - $this->printDefects( - $result->failures(), - $result->failureCount(), - 'failure' - ); - } - - /** - * @param PHPUnit_Framework_TestResult $result - */ - protected function printIncompletes(PHPUnit_Framework_TestResult $result) - { - $this->printDefects( - $result->notImplemented(), - $result->notImplementedCount(), - 'incomplete test' - ); - } - - /** - * @param PHPUnit_Framework_TestResult $result - * @since Method available since Release 3.0.0 - */ - protected function printSkipped(PHPUnit_Framework_TestResult $result) - { - $this->printDefects( - $result->skipped(), - $result->skippedCount(), - 'skipped test' - ); - } - - protected function printHeader() - { - $this->write("\n\n" . PHP_Timer::resourceUsage() . "\n\n"); - } - - /** - * @param PHPUnit_Framework_TestResult $result - */ - protected function printFooter(PHPUnit_Framework_TestResult $result) - { - if (count($result) === 0) { - if ($this->colors) { - $this->write("\x1b[30;43m\x1b[2K"); - } - - $this->write( - "No tests executed!\n" - ); - - if ($this->colors) { - $this->write("\x1b[0m\x1b[2K"); - } - } - - else if ($result->wasSuccessful() && - $result->allCompletlyImplemented() && - $result->noneSkipped()) { - if ($this->colors) { - $this->write("\x1b[30;42m\x1b[2K"); - } - - $this->write( - sprintf( - "OK (%d test%s, %d assertion%s)\n", - - count($result), - (count($result) == 1) ? '' : 's', - $this->numAssertions, - ($this->numAssertions == 1) ? '' : 's' - ) - ); - - if ($this->colors) { - $this->write("\x1b[0m\x1b[2K"); - } - } - - else if ((!$result->allCompletlyImplemented() || - !$result->noneSkipped()) && - $result->wasSuccessful()) { - if ($this->colors) { - $this->write( - "\x1b[30;43m\x1b[2KOK, but incomplete or skipped tests!\n" . - "\x1b[0m\x1b[30;43m\x1b[2K" - ); - } else { - $this->write("OK, but incomplete or skipped tests!\n"); - } - - $this->write( - sprintf( - "Tests: %d, Assertions: %d%s%s.\n", - - count($result), - $this->numAssertions, - $this->getCountString( - $result->notImplementedCount(), 'Incomplete' - ), - $this->getCountString( - $result->skippedCount(), 'Skipped' - ) - ) - ); - - if ($this->colors) { - $this->write("\x1b[0m\x1b[2K"); - } - } - - else { - $this->write("\n"); - - if ($this->colors) { - $this->write( - "\x1b[37;41m\x1b[2KFAILURES!\n\x1b[0m\x1b[37;41m\x1b[2K" - ); - } else { - $this->write("FAILURES!\n"); - } - - $this->write( - sprintf( - "Tests: %d, Assertions: %s%s%s%s%s.\n", - - count($result), - $this->numAssertions, - $this->getCountString($result->failureCount(), 'Failures'), - $this->getCountString($result->errorCount(), 'Errors'), - $this->getCountString( - $result->notImplementedCount(), 'Incomplete' - ), - $this->getCountString($result->skippedCount(), 'Skipped') - ) - ); - - if ($this->colors) { - $this->write("\x1b[0m\x1b[2K"); - } - } - - if (!$this->verbose && - $result->deprecatedFeaturesCount() > 0) { - $message = sprintf( - "Warning: Deprecated PHPUnit features are being used %s times!\n" . - "Use --verbose for more information.\n", - $result->deprecatedFeaturesCount() - ); - - if ($this->colors) { - $message = "\x1b[37;41m\x1b[2K" . $message . - "\x1b[0m"; - } - - $this->write("\n" . $message); - } - } - - /** - * @param integer $count - * @param string $name - * @return string - * @since Method available since Release 3.0.0 - */ - protected function getCountString($count, $name) - { - $string = ''; - - if ($count > 0) { - $string = sprintf( - ', %s: %d', - - $name, - $count - ); - } - - return $string; - } - - /** - */ - public function printWaitPrompt() - { - $this->write("\n to continue\n"); - } - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->colors) { - $this->writeProgress("\x1b[31;1mE\x1b[0m"); - } else { - $this->writeProgress('E'); - } - - $this->lastTestFailed = TRUE; - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - if ($this->colors) { - $this->writeProgress("\x1b[41;37mF\x1b[0m"); - } else { - $this->writeProgress('F'); - } - - $this->lastTestFailed = TRUE; - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->colors) { - $this->writeProgress("\x1b[33;1mI\x1b[0m"); - } else { - $this->writeProgress('I'); - } - - $this->lastTestFailed = TRUE; - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->colors) { - $this->writeProgress("\x1b[36;1mS\x1b[0m"); - } else { - $this->writeProgress('S'); - } - - $this->lastTestFailed = TRUE; - } - - /** - * A testsuite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - if ($this->numTests == -1) { - $this->numTests = count($suite); - $this->numTestsWidth = strlen((string)$this->numTests); - $this->maxColumn = 69 - (2 * $this->numTestsWidth); - } - } - - /** - * A testsuite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - if ($this->debug) { - $this->write( - sprintf( - "\nStarting test '%s'.\n", PHPUnit_Util_Test::describe($test) - ) - ); - } - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if (!$this->lastTestFailed) { - $this->writeProgress('.'); - } - - if ($test instanceof PHPUnit_Framework_TestCase) { - $this->numAssertions += $test->getNumAssertions(); - } - - else if ($test instanceof PHPUnit_Extensions_PhptTestCase) { - $this->numAssertions++; - } - - $this->lastTestFailed = FALSE; - - if ($test instanceof PHPUnit_Framework_TestCase) { - if (!$test->hasPerformedExpectationsOnOutput()) { - $this->write($test->getActualOutput()); - } - } - } - - /** - * @param string $progress - */ - protected function writeProgress($progress) - { - $this->write($progress); - $this->column++; - $this->numTestsRun++; - - if ($this->column == $this->maxColumn) { - $this->write( - sprintf( - ' %' . $this->numTestsWidth . 'd / %' . - $this->numTestsWidth . 'd (%3s%%)', - - $this->numTestsRun, - $this->numTests, - floor(($this->numTestsRun / $this->numTests) * 100) - ) - ); - - $this->writeNewLine(); - } - } - - protected function writeNewLine() - { - $this->column = 0; - $this->write("\n"); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php deleted file mode 100644 index 803392ad..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php +++ /dev/null @@ -1,814 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * A TestRunner for the Command Line Interface (CLI) - * PHP SAPI Module. - * - * @package PHPUnit - * @subpackage TextUI - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner -{ - const SUCCESS_EXIT = 0; - const FAILURE_EXIT = 1; - const EXCEPTION_EXIT = 2; - - /** - * @var PHP_CodeCoverage_Filter - */ - protected $codeCoverageFilter; - - /** - * @var PHPUnit_Runner_TestSuiteLoader - */ - protected $loader = NULL; - - /** - * @var PHPUnit_TextUI_ResultPrinter - */ - protected $printer = NULL; - - /** - * @var boolean - */ - protected static $versionStringPrinted = FALSE; - - /** - * @param PHPUnit_Runner_TestSuiteLoader $loader - * @param PHP_CodeCoverage_Filter $filter - * @since Method available since Release 3.4.0 - */ - public function __construct(PHPUnit_Runner_TestSuiteLoader $loader = NULL, PHP_CodeCoverage_Filter $filter = NULL) - { - if ($filter === NULL) { - $filter = new PHP_CodeCoverage_Filter; - } - - $this->codeCoverageFilter = $filter; - $this->loader = $loader; - } - - /** - * @param mixed $test - * @param array $arguments - * @throws PHPUnit_Framework_Exception - */ - public static function run($test, array $arguments = array()) - { - if ($test instanceof ReflectionClass) { - $test = new PHPUnit_Framework_TestSuite($test); - } - - if ($test instanceof PHPUnit_Framework_Test) { - $aTestRunner = new PHPUnit_TextUI_TestRunner; - - return $aTestRunner->doRun( - $test, - $arguments - ); - } else { - throw new PHPUnit_Framework_Exception( - 'No test case or test suite found.' - ); - } - } - - /** - * @return PHPUnit_Framework_TestResult - */ - protected function createTestResult() - { - return new PHPUnit_Framework_TestResult; - } - - /** - * @param PHPUnit_Framework_Test $suite - * @param array $arguments - * @return PHPUnit_Framework_TestResult - */ - public function doRun(PHPUnit_Framework_Test $suite, array $arguments = array()) - { - $this->handleConfiguration($arguments); - - if (isset($arguments['bootstrap'])) { - $GLOBALS['__PHPUNIT_BOOTSTRAP'] = $arguments['bootstrap']; - } - - if ($arguments['backupGlobals'] === FALSE) { - $suite->setBackupGlobals(FALSE); - } - - if ($arguments['backupStaticAttributes'] === TRUE) { - $suite->setBackupStaticAttributes(TRUE); - } - - if (is_integer($arguments['repeat'])) { - $suite = new PHPUnit_Extensions_RepeatedTest( - $suite, - $arguments['repeat'], - $arguments['filter'], - $arguments['groups'], - $arguments['excludeGroups'], - $arguments['processIsolation'] - ); - } - - $result = $this->createTestResult(); - - if (!$arguments['convertErrorsToExceptions']) { - $result->convertErrorsToExceptions(FALSE); - } - - if (!$arguments['convertNoticesToExceptions']) { - PHPUnit_Framework_Error_Notice::$enabled = FALSE; - } - - if (!$arguments['convertWarningsToExceptions']) { - PHPUnit_Framework_Error_Warning::$enabled = FALSE; - } - - if ($arguments['stopOnError']) { - $result->stopOnError(TRUE); - } - - if ($arguments['stopOnFailure']) { - $result->stopOnFailure(TRUE); - } - - if ($arguments['stopOnIncomplete']) { - $result->stopOnIncomplete(TRUE); - } - - if ($arguments['stopOnSkipped']) { - $result->stopOnSkipped(TRUE); - } - - if ($this->printer === NULL) { - if (isset($arguments['printer']) && - $arguments['printer'] instanceof PHPUnit_Util_Printer) { - $this->printer = $arguments['printer']; - } else { - $this->printer = new PHPUnit_TextUI_ResultPrinter( - NULL, - $arguments['verbose'], - $arguments['colors'], - $arguments['debug'] - ); - } - } - - if (!$this->printer instanceof PHPUnit_Util_Log_TAP && - !self::$versionStringPrinted) { - $this->printer->write( - PHPUnit_Runner_Version::getVersionString() . "\n\n" - ); - - if (isset($arguments['configuration'])) { - $this->printer->write( - sprintf( - "Configuration read from %s\n\n", - $arguments['configuration']->getFilename() - ) - ); - } - } - - foreach ($arguments['listeners'] as $listener) { - $result->addListener($listener); - } - - $result->addListener($this->printer); - - if ($this->printer instanceof PHPUnit_TextUI_ResultPrinter) { - $result->addListener(new PHPUnit_Util_DeprecatedFeature_Logger); - } - - if (isset($arguments['testdoxHTMLFile'])) { - $result->addListener( - new PHPUnit_Util_TestDox_ResultPrinter_HTML( - $arguments['testdoxHTMLFile'] - ) - ); - } - - if (isset($arguments['testdoxTextFile'])) { - $result->addListener( - new PHPUnit_Util_TestDox_ResultPrinter_Text( - $arguments['testdoxTextFile'] - ) - ); - } - - $codeCoverageReports = 0; - - if (extension_loaded('xdebug')) { - if (isset($arguments['coverageClover'])) { - $codeCoverageReports++; - } - - if (isset($arguments['reportDirectory'])) { - $codeCoverageReports++; - } - - if (isset($arguments['coveragePHP'])) { - $codeCoverageReports++; - } - - if (isset($arguments['coverageText'])) { - $codeCoverageReports++; - } - } - - if ($codeCoverageReports > 0) { - $codeCoverage = new PHP_CodeCoverage( - NULL, $this->codeCoverageFilter - ); - - $codeCoverage->setAddUncoveredFilesFromWhitelist( - $arguments['addUncoveredFilesFromWhitelist'] - ); - - $codeCoverage->setProcessUncoveredFilesFromWhitelist( - $arguments['processUncoveredFilesFromWhitelist'] - ); - - if (isset($arguments['forceCoversAnnotation'])) { - $codeCoverage->setForceCoversAnnotation( - $arguments['forceCoversAnnotation'] - ); - } - - if (isset($arguments['mapTestClassNameToCoveredClassName'])) { - $codeCoverage->setMapTestClassNameToCoveredClassName( - $arguments['mapTestClassNameToCoveredClassName'] - ); - } - - $result->setCodeCoverage($codeCoverage); - } - - if ($codeCoverageReports > 1) { - if (isset($arguments['cacheTokens'])) { - $codeCoverage->setCacheTokens($arguments['cacheTokens']); - } - } - - if (isset($arguments['jsonLogfile'])) { - $result->addListener( - new PHPUnit_Util_Log_JSON($arguments['jsonLogfile']) - ); - } - - if (isset($arguments['tapLogfile'])) { - $result->addListener( - new PHPUnit_Util_Log_TAP($arguments['tapLogfile']) - ); - } - - if (isset($arguments['junitLogfile'])) { - $result->addListener( - new PHPUnit_Util_Log_JUnit( - $arguments['junitLogfile'], $arguments['logIncompleteSkipped'] - ) - ); - } - - if ($arguments['strict']) { - $result->strictMode(TRUE); - - $result->setTimeoutForSmallTests( - $arguments['timeoutForSmallTests'] - ); - - $result->setTimeoutForMediumTests( - $arguments['timeoutForMediumTests'] - ); - - $result->setTimeoutForLargeTests( - $arguments['timeoutForLargeTests'] - ); - } - - $suite->run( - $result, - $arguments['filter'], - $arguments['groups'], - $arguments['excludeGroups'], - $arguments['processIsolation'] - ); - - unset($suite); - $result->flushListeners(); - - if ($this->printer instanceof PHPUnit_TextUI_ResultPrinter) { - $this->printer->printResult($result); - } - - if (isset($codeCoverage)) { - if (isset($arguments['coverageClover'])) { - $this->printer->write( - "\nGenerating code coverage report in Clover XML format ..." - ); - - $writer = new PHP_CodeCoverage_Report_Clover; - $writer->process($codeCoverage, $arguments['coverageClover']); - - $this->printer->write(" done\n"); - unset($writer); - } - - if (isset($arguments['reportDirectory'])) { - $this->printer->write( - "\nGenerating code coverage report in HTML format ..." - ); - - $writer = new PHP_CodeCoverage_Report_HTML( - $arguments['reportCharset'], - $arguments['reportHighlight'], - $arguments['reportLowUpperBound'], - $arguments['reportHighLowerBound'], - sprintf( - ' and PHPUnit %s', - PHPUnit_Runner_Version::id() - ) - ); - - $writer->process($codeCoverage, $arguments['reportDirectory']); - - $this->printer->write(" done\n"); - unset($writer); - } - - if (isset($arguments['coveragePHP'])) { - $this->printer->write( - "\nGenerating code coverage report in PHP format ..." - ); - - $writer = new PHP_CodeCoverage_Report_PHP; - $writer->process($codeCoverage, $arguments['coveragePHP']); - - $this->printer->write(" done\n"); - unset($writer); - } - - if (isset($arguments['coverageText'])) { - if ($arguments['coverageText'] == 'php://stdout') { - $outputStream = $this->printer; - $colors = (bool)$arguments['colors']; - } else { - $outputStream = new PHPUnit_Util_Printer($arguments['coverageText']); - $colors = FALSE; - } - - $writer = new PHP_CodeCoverage_Report_Text( - $outputStream, - $arguments['reportLowUpperBound'], - $arguments['reportHighLowerBound'], - $arguments['coverageTextShowUncoveredFiles'] - ); - - $writer->process($codeCoverage, $colors); - } - } - - return $result; - } - - /** - * @param PHPUnit_TextUI_ResultPrinter $resultPrinter - */ - public function setPrinter(PHPUnit_TextUI_ResultPrinter $resultPrinter) - { - $this->printer = $resultPrinter; - } - - /** - * Override to define how to handle a failed loading of - * a test suite. - * - * @param string $message - */ - protected function runFailed($message) - { - self::printVersionString(); - self::write($message . PHP_EOL); - exit(self::FAILURE_EXIT); - } - - /** - * @param string $buffer - * @since Method available since Release 3.1.0 - */ - protected static function write($buffer) - { - if (PHP_SAPI != 'cli') { - $buffer = htmlspecialchars($buffer); - } - - print $buffer; - } - - /** - * Returns the loader to be used. - * - * @return PHPUnit_Runner_TestSuiteLoader - * @since Method available since Release 2.2.0 - */ - public function getLoader() - { - if ($this->loader === NULL) { - $this->loader = new PHPUnit_Runner_StandardTestSuiteLoader; - } - - return $this->loader; - } - - /** - */ - public static function showError($message) - { - self::printVersionString(); - self::write($message . "\n"); - - exit(self::FAILURE_EXIT); - } - - /** - */ - public static function printVersionString() - { - if (!self::$versionStringPrinted) { - self::write(PHPUnit_Runner_Version::getVersionString() . "\n\n"); - self::$versionStringPrinted = TRUE; - } - } - - /** - * @param array $arguments - * @since Method available since Release 3.2.1 - */ - protected function handleConfiguration(array &$arguments) - { - if (isset($arguments['configuration']) && - !$arguments['configuration'] instanceof PHPUnit_Util_Configuration) { - $arguments['configuration'] = PHPUnit_Util_Configuration::getInstance( - $arguments['configuration'] - ); - } - - $arguments['debug'] = isset($arguments['debug']) ? $arguments['debug'] : FALSE; - $arguments['filter'] = isset($arguments['filter']) ? $arguments['filter'] : FALSE; - $arguments['listeners'] = isset($arguments['listeners']) ? $arguments['listeners'] : array(); - - if (isset($arguments['configuration'])) { - $arguments['configuration']->handlePHPConfiguration(); - - $phpunitConfiguration = $arguments['configuration']->getPHPUnitConfiguration(); - - if (isset($phpunitConfiguration['backupGlobals']) && - !isset($arguments['backupGlobals'])) { - $arguments['backupGlobals'] = $phpunitConfiguration['backupGlobals']; - } - - if (isset($phpunitConfiguration['backupStaticAttributes']) && - !isset($arguments['backupStaticAttributes'])) { - $arguments['backupStaticAttributes'] = $phpunitConfiguration['backupStaticAttributes']; - } - - if (isset($phpunitConfiguration['bootstrap']) && - !isset($arguments['bootstrap'])) { - $arguments['bootstrap'] = $phpunitConfiguration['bootstrap']; - } - - if (isset($phpunitConfiguration['cacheTokens']) && - !isset($arguments['cacheTokens'])) { - $arguments['cacheTokens'] = $phpunitConfiguration['cacheTokens']; - } - - if (isset($phpunitConfiguration['colors']) && - !isset($arguments['colors'])) { - $arguments['colors'] = $phpunitConfiguration['colors']; - } - - if (isset($phpunitConfiguration['convertErrorsToExceptions']) && - !isset($arguments['convertErrorsToExceptions'])) { - $arguments['convertErrorsToExceptions'] = $phpunitConfiguration['convertErrorsToExceptions']; - } - - if (isset($phpunitConfiguration['convertNoticesToExceptions']) && - !isset($arguments['convertNoticesToExceptions'])) { - $arguments['convertNoticesToExceptions'] = $phpunitConfiguration['convertNoticesToExceptions']; - } - - if (isset($phpunitConfiguration['convertWarningsToExceptions']) && - !isset($arguments['convertWarningsToExceptions'])) { - $arguments['convertWarningsToExceptions'] = $phpunitConfiguration['convertWarningsToExceptions']; - } - - if (isset($phpunitConfiguration['processIsolation']) && - !isset($arguments['processIsolation'])) { - $arguments['processIsolation'] = $phpunitConfiguration['processIsolation']; - } - - if (isset($phpunitConfiguration['stopOnFailure']) && - !isset($arguments['stopOnFailure'])) { - $arguments['stopOnFailure'] = $phpunitConfiguration['stopOnFailure']; - } - - if (isset($phpunitConfiguration['timeoutForSmallTests']) && - !isset($arguments['timeoutForSmallTests'])) { - $arguments['timeoutForSmallTests'] = $phpunitConfiguration['timeoutForSmallTests']; - } - - if (isset($phpunitConfiguration['timeoutForMediumTests']) && - !isset($arguments['timeoutForMediumTests'])) { - $arguments['timeoutForMediumTests'] = $phpunitConfiguration['timeoutForMediumTests']; - } - - if (isset($phpunitConfiguration['timeoutForLargeTests']) && - !isset($arguments['timeoutForLargeTests'])) { - $arguments['timeoutForLargeTests'] = $phpunitConfiguration['timeoutForLargeTests']; - } - - if (isset($phpunitConfiguration['strict']) && - !isset($arguments['strict'])) { - $arguments['strict'] = $phpunitConfiguration['strict']; - } - - if (isset($phpunitConfiguration['verbose']) && - !isset($arguments['verbose'])) { - $arguments['verbose'] = $phpunitConfiguration['verbose']; - } - - if (isset($phpunitConfiguration['forceCoversAnnotation']) && - !isset($arguments['forceCoversAnnotation'])) { - $arguments['forceCoversAnnotation'] = $phpunitConfiguration['forceCoversAnnotation']; - } - - if (isset($phpunitConfiguration['mapTestClassNameToCoveredClassName']) && - !isset($arguments['mapTestClassNameToCoveredClassName'])) { - $arguments['mapTestClassNameToCoveredClassName'] = $phpunitConfiguration['mapTestClassNameToCoveredClassName']; - } - - $groupCliArgs = array(); - if (!empty($arguments['groups'])) { - $groupCliArgs = $arguments['groups']; - } - - $groupConfiguration = $arguments['configuration']->getGroupConfiguration(); - - if (!empty($groupConfiguration['include']) && - !isset($arguments['groups'])) { - $arguments['groups'] = $groupConfiguration['include']; - } - - if (!empty($groupConfiguration['exclude']) && - !isset($arguments['excludeGroups'])) { - $arguments['excludeGroups'] = array_diff($groupConfiguration['exclude'], $groupCliArgs); - } - - foreach ($arguments['configuration']->getListenerConfiguration() as $listener) { - if (!class_exists($listener['class'], FALSE) && - $listener['file'] !== '') { - require_once $listener['file']; - } - - if (class_exists($listener['class'])) { - if (count($listener['arguments']) == 0) { - $listener = new $listener['class']; - } else { - $listenerClass = new ReflectionClass( - $listener['class'] - ); - $listener = $listenerClass->newInstanceArgs( - $listener['arguments'] - ); - } - - if ($listener instanceof PHPUnit_Framework_TestListener) { - $arguments['listeners'][] = $listener; - } - } - } - - $loggingConfiguration = $arguments['configuration']->getLoggingConfiguration(); - - if (isset($loggingConfiguration['coverage-html']) && - !isset($arguments['reportDirectory'])) { - if (isset($loggingConfiguration['charset']) && - !isset($arguments['reportCharset'])) { - $arguments['reportCharset'] = $loggingConfiguration['charset']; - } - - if (isset($loggingConfiguration['highlight']) && - !isset($arguments['reportHighlight'])) { - $arguments['reportHighlight'] = $loggingConfiguration['highlight']; - } - - if (isset($loggingConfiguration['lowUpperBound']) && - !isset($arguments['reportLowUpperBound'])) { - $arguments['reportLowUpperBound'] = $loggingConfiguration['lowUpperBound']; - } - - if (isset($loggingConfiguration['highLowerBound']) && - !isset($arguments['reportHighLowerBound'])) { - $arguments['reportHighLowerBound'] = $loggingConfiguration['highLowerBound']; - } - - $arguments['reportDirectory'] = $loggingConfiguration['coverage-html']; - } - - if (isset($loggingConfiguration['coverage-clover']) && - !isset($arguments['coverageClover'])) { - $arguments['coverageClover'] = $loggingConfiguration['coverage-clover']; - } - - if (isset($loggingConfiguration['coverage-php']) && - !isset($arguments['coveragePHP'])) { - $arguments['coveragePHP'] = $loggingConfiguration['coverage-php']; - } - - if (isset($loggingConfiguration['coverage-text']) && - !isset($arguments['coverageText'])) { - $arguments['coverageText'] = $loggingConfiguration['coverage-text']; - if (isset($loggingConfiguration['coverageTextShowUncoveredFiles'])) { - $arguments['coverageTextShowUncoveredFiles'] = $loggingConfiguration['coverageTextShowUncoveredFiles']; - } else { - $arguments['coverageTextShowUncoveredFiles'] = FALSE; - } - } - - if (isset($loggingConfiguration['json']) && - !isset($arguments['jsonLogfile'])) { - $arguments['jsonLogfile'] = $loggingConfiguration['json']; - } - - if (isset($loggingConfiguration['plain'])) { - $arguments['listeners'][] = new PHPUnit_TextUI_ResultPrinter( - $loggingConfiguration['plain'], TRUE - ); - } - - if (isset($loggingConfiguration['tap']) && - !isset($arguments['tapLogfile'])) { - $arguments['tapLogfile'] = $loggingConfiguration['tap']; - } - - if (isset($loggingConfiguration['junit']) && - !isset($arguments['junitLogfile'])) { - $arguments['junitLogfile'] = $loggingConfiguration['junit']; - - if (isset($loggingConfiguration['logIncompleteSkipped']) && - !isset($arguments['logIncompleteSkipped'])) { - $arguments['logIncompleteSkipped'] = $loggingConfiguration['logIncompleteSkipped']; - } - } - - if (isset($loggingConfiguration['testdox-html']) && - !isset($arguments['testdoxHTMLFile'])) { - $arguments['testdoxHTMLFile'] = $loggingConfiguration['testdox-html']; - } - - if (isset($loggingConfiguration['testdox-text']) && - !isset($arguments['testdoxTextFile'])) { - $arguments['testdoxTextFile'] = $loggingConfiguration['testdox-text']; - } - - if ((isset($arguments['coverageClover']) || - isset($arguments['reportDirectory']) || - isset($arguments['coveragePHP']) || - isset($arguments['coverageText'])) && - extension_loaded('xdebug')) { - - $filterConfiguration = $arguments['configuration']->getFilterConfiguration(); - $arguments['addUncoveredFilesFromWhitelist'] = $filterConfiguration['whitelist']['addUncoveredFilesFromWhitelist']; - $arguments['processUncoveredFilesFromWhitelist'] = $filterConfiguration['whitelist']['processUncoveredFilesFromWhitelist']; - - foreach ($filterConfiguration['blacklist']['include']['directory'] as $dir) { - $this->codeCoverageFilter->addDirectoryToBlacklist( - $dir['path'], $dir['suffix'], $dir['prefix'], $dir['group'] - ); - } - - foreach ($filterConfiguration['blacklist']['include']['file'] as $file) { - $this->codeCoverageFilter->addFileToBlacklist($file); - } - - foreach ($filterConfiguration['blacklist']['exclude']['directory'] as $dir) { - $this->codeCoverageFilter->removeDirectoryFromBlacklist( - $dir['path'], $dir['suffix'], $dir['prefix'], $dir['group'] - ); - } - - foreach ($filterConfiguration['blacklist']['exclude']['file'] as $file) { - $this->codeCoverageFilter->removeFileFromBlacklist($file); - } - - foreach ($filterConfiguration['whitelist']['include']['directory'] as $dir) { - $this->codeCoverageFilter->addDirectoryToWhitelist( - $dir['path'], $dir['suffix'], $dir['prefix'] - ); - } - - foreach ($filterConfiguration['whitelist']['include']['file'] as $file) { - $this->codeCoverageFilter->addFileToWhitelist($file); - } - - foreach ($filterConfiguration['whitelist']['exclude']['directory'] as $dir) { - $this->codeCoverageFilter->removeDirectoryFromWhitelist( - $dir['path'], $dir['suffix'], $dir['prefix'] - ); - } - - foreach ($filterConfiguration['whitelist']['exclude']['file'] as $file) { - $this->codeCoverageFilter->removeFileFromWhitelist($file); - } - } - } - - $arguments['addUncoveredFilesFromWhitelist'] = isset($arguments['addUncoveredFilesFromWhitelist']) ? $arguments['addUncoveredFilesFromWhitelist'] : TRUE; - $arguments['processUncoveredFilesFromWhitelist'] = isset($arguments['processUncoveredFilesFromWhitelist']) ? $arguments['processUncoveredFilesFromWhitelist'] : FALSE; - $arguments['backupGlobals'] = isset($arguments['backupGlobals']) ? $arguments['backupGlobals'] : NULL; - $arguments['backupStaticAttributes'] = isset($arguments['backupStaticAttributes']) ? $arguments['backupStaticAttributes'] : NULL; - $arguments['cacheTokens'] = isset($arguments['cacheTokens']) ? $arguments['cacheTokens'] : FALSE; - $arguments['colors'] = isset($arguments['colors']) ? $arguments['colors'] : FALSE; - $arguments['convertErrorsToExceptions'] = isset($arguments['convertErrorsToExceptions']) ? $arguments['convertErrorsToExceptions'] : TRUE; - $arguments['convertNoticesToExceptions'] = isset($arguments['convertNoticesToExceptions']) ? $arguments['convertNoticesToExceptions'] : TRUE; - $arguments['convertWarningsToExceptions'] = isset($arguments['convertWarningsToExceptions']) ? $arguments['convertWarningsToExceptions'] : TRUE; - $arguments['excludeGroups'] = isset($arguments['excludeGroups']) ? $arguments['excludeGroups'] : array(); - $arguments['groups'] = isset($arguments['groups']) ? $arguments['groups'] : array(); - $arguments['logIncompleteSkipped'] = isset($arguments['logIncompleteSkipped']) ? $arguments['logIncompleteSkipped'] : FALSE; - $arguments['processIsolation'] = isset($arguments['processIsolation']) ? $arguments['processIsolation'] : FALSE; - $arguments['repeat'] = isset($arguments['repeat']) ? $arguments['repeat'] : FALSE; - $arguments['reportCharset'] = isset($arguments['reportCharset']) ? $arguments['reportCharset'] : 'UTF-8'; - $arguments['reportHighlight'] = isset($arguments['reportHighlight']) ? $arguments['reportHighlight'] : FALSE; - $arguments['reportHighLowerBound'] = isset($arguments['reportHighLowerBound']) ? $arguments['reportHighLowerBound'] : 70; - $arguments['reportLowUpperBound'] = isset($arguments['reportLowUpperBound']) ? $arguments['reportLowUpperBound'] : 35; - $arguments['stopOnError'] = isset($arguments['stopOnError']) ? $arguments['stopOnError'] : FALSE; - $arguments['stopOnFailure'] = isset($arguments['stopOnFailure']) ? $arguments['stopOnFailure'] : FALSE; - $arguments['stopOnIncomplete'] = isset($arguments['stopOnIncomplete']) ? $arguments['stopOnIncomplete'] : FALSE; - $arguments['stopOnSkipped'] = isset($arguments['stopOnSkipped']) ? $arguments['stopOnSkipped'] : FALSE; - $arguments['timeoutForSmallTests'] = isset($arguments['timeoutForSmallTests']) ? $arguments['timeoutForSmallTests'] : 1; - $arguments['timeoutForMediumTests'] = isset($arguments['timeoutForMediumTests']) ? $arguments['timeoutForMediumTests'] : 10; - $arguments['timeoutForLargeTests'] = isset($arguments['timeoutForLargeTests']) ? $arguments['timeoutForLargeTests'] : 60; - $arguments['strict'] = isset($arguments['strict']) ? $arguments['strict'] : FALSE; - $arguments['verbose'] = isset($arguments['verbose']) ? $arguments['verbose'] : FALSE; - - if ($arguments['filter'] !== FALSE && - preg_match('/^[a-zA-Z0-9_]/', $arguments['filter'])) { - // Escape delimiters in regular expression. Do NOT use preg_quote, - // to keep magic characters. - $arguments['filter'] = '/' . str_replace( - '/', '\\/', $arguments['filter'] - ) . '/'; - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Class.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Class.php deleted file mode 100644 index 85ac0322..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Class.php +++ /dev/null @@ -1,363 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * Class helpers. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ -class PHPUnit_Util_Class -{ - protected static $buffer = array(); - - /** - * Starts the collection of loaded classes. - * - */ - public static function collectStart() - { - self::$buffer = get_declared_classes(); - } - - /** - * Stops the collection of loaded classes and - * returns the names of the loaded classes. - * - * @return array - */ - public static function collectEnd() - { - return array_values( - array_diff(get_declared_classes(), self::$buffer) - ); - } - - /** - * Returns the class hierarchy for a given class. - * - * @param string $className - * @param boolean $asReflectionObjects - * @return array - */ - public static function getHierarchy($className, $asReflectionObjects = FALSE) - { - if ($asReflectionObjects) { - $classes = array(new ReflectionClass($className)); - } else { - $classes = array($className); - } - - $done = FALSE; - - while (!$done) { - if ($asReflectionObjects) { - $class = new ReflectionClass( - $classes[count($classes)-1]->getName() - ); - } else { - $class = new ReflectionClass($classes[count($classes)-1]); - } - - $parent = $class->getParentClass(); - - if ($parent !== FALSE) { - if ($asReflectionObjects) { - $classes[] = $parent; - } else { - $classes[] = $parent->getName(); - } - } else { - $done = TRUE; - } - } - - return $classes; - } - - /** - * Returns the parameters of a function or method. - * - * @param ReflectionFunction|ReflectionMethod $method - * @param boolean $forCall - * @return string - * @since Method available since Release 3.2.0 - */ - public static function getMethodParameters($method, $forCall = FALSE) - { - $parameters = array(); - - foreach ($method->getParameters() as $i => $parameter) { - $name = '$' . $parameter->getName(); - - /* Note: PHP extensions may use empty names for reference arguments - * or "..." for methods taking a variable number of arguments. - */ - if ($name === '$' || $name === '$...') { - $name = '$arg' . $i; - } - - $default = ''; - $reference = ''; - $typeHint = ''; - - if (!$forCall) { - if ($parameter->isArray()) { - $typeHint = 'array '; - } - - else if (version_compare(PHP_VERSION, '5.4', '>') && - $parameter->isCallable()) { - $typeHint = 'callable '; - } - - else { - try { - $class = $parameter->getClass(); - } - - catch (ReflectionException $e) { - $class = FALSE; - } - - if ($class) { - $typeHint = $class->getName() . ' '; - } - } - - if ($parameter->isDefaultValueAvailable()) { - $value = $parameter->getDefaultValue(); - $default = ' = ' . var_export($value, TRUE); - } - - else if ($parameter->isOptional()) { - $default = ' = null'; - } - - if ($parameter->isPassedByReference()) { - $reference = '&'; - } - } - - $parameters[] = $typeHint . $reference . $name . $default; - } - - return join(', ', $parameters); - } - - /** - * Returns the package information of a user-defined class. - * - * @param string $className - * @param string $docComment - * @return array - */ - public static function getPackageInformation($className, $docComment) - { - $result = array( - 'namespace' => '', - 'fullPackage' => '', - 'category' => '', - 'package' => '', - 'subpackage' => '' - ); - - if (strpos($className, '\\') !== FALSE) { - $result['namespace'] = self::arrayToName( - explode('\\', $className) - ); - } - - if (preg_match('/@category[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['category'] = $matches[1]; - } - - if (preg_match('/@package[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['package'] = $matches[1]; - $result['fullPackage'] = $matches[1]; - } - - if (preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) { - $result['subpackage'] = $matches[1]; - $result['fullPackage'] .= '.' . $matches[1]; - } - - if (empty($result['fullPackage'])) { - $result['fullPackage'] = self::arrayToName( - explode('_', str_replace('\\', '_', $className)), '.' - ); - } - - return $result; - } - - /** - * Returns the value of a static attribute. - * This also works for attributes that are declared protected or private. - * - * @param string $className - * @param string $attributeName - * @return mixed - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.4.0 - */ - public static function getStaticAttribute($className, $attributeName) - { - if (!is_string($className)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); - } - - if (!class_exists($className)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class name'); - } - - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - $class = new ReflectionClass($className); - - while ($class) { - $attributes = $class->getStaticProperties(); - - if (array_key_exists($attributeName, $attributes)) { - return $attributes[$attributeName]; - } - - $class = $class->getParentClass(); - } - - throw new PHPUnit_Framework_Exception( - sprintf( - 'Attribute "%s" not found in class.', - - $attributeName - ) - ); - } - - /** - * Returns the value of an object's attribute. - * This also works for attributes that are declared protected or private. - * - * @param object $object - * @param string $attributeName - * @return mixed - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.4.0 - */ - public static function getObjectAttribute($object, $attributeName) - { - if (!is_object($object)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'object'); - } - - if (!is_string($attributeName)) { - throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string'); - } - - try { - $attribute = new ReflectionProperty($object, $attributeName); - } - - catch (ReflectionException $e) { - $reflector = new ReflectionObject($object); - - while ($reflector = $reflector->getParentClass()) { - try { - $attribute = $reflector->getProperty($attributeName); - break; - } - - catch(ReflectionException $e) { - } - } - } - - if (isset($attribute)) { - if (!$attribute || $attribute->isPublic()) { - return $object->$attributeName; - } - $attribute->setAccessible(TRUE); - $value = $attribute->getValue($object); - $attribute->setAccessible(FALSE); - - return $value; - } - - throw new PHPUnit_Framework_Exception( - sprintf( - 'Attribute "%s" not found in object.', - $attributeName - ) - ); - } - - /** - * Returns the package information of a user-defined class. - * - * @param array $parts - * @param string $join - * @return string - * @since Method available since Release 3.2.12 - */ - protected static function arrayToName(array $parts, $join = '\\') - { - $result = ''; - - if (count($parts) > 1) { - array_pop($parts); - - $result = join($join, $parts); - } - - return $result; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php deleted file mode 100644 index bd826738..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php +++ /dev/null @@ -1,1026 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.2.0 - */ - -/** - * Wrapper for the PHPUnit XML configuration file. - * - * Example XML configuration file: - * - * - * - * - * - * - * /path/to/files - * /path/to/MyTest.php - * /path/to/files/exclude - * - * - * - * - * - * name - * - * - * name - * - * - * - * - * - * /path/to/files - * /path/to/file - * - * /path/to/files - * /path/to/file - * - * - * - * /path/to/files - * /path/to/file - * - * /path/to/files - * /path/to/file - * - * - * - * - * - * - * - * - * - * Sebastian - * - * - * 22 - * April - * 19.78 - * - * - * MyRelativeFile.php - * MyRelativeDir - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * . - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.2.0 - */ -class PHPUnit_Util_Configuration -{ - private static $instances = array(); - - protected $document; - protected $xpath; - protected $filename; - - /** - * Loads a PHPUnit configuration file. - * - * @param string $filename - */ - protected function __construct($filename) - { - $this->filename = $filename; - $this->document = PHPUnit_Util_XML::loadFile($filename, FALSE, TRUE); - $this->xpath = new DOMXPath($this->document); - } - - /** - * @since Method available since Release 3.4.0 - */ - private final function __clone() - { - } - - /** - * Returns a PHPUnit configuration object. - * - * @param string $filename - * @return PHPUnit_Util_Configuration - * @since Method available since Release 3.4.0 - */ - public static function getInstance($filename) - { - $realpath = realpath($filename); - - if ($realpath === FALSE) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Could not read "%s".', - $filename - ) - ); - } - - if (!isset(self::$instances[$realpath])) { - self::$instances[$realpath] = new PHPUnit_Util_Configuration($realpath); - } - - return self::$instances[$realpath]; - } - - /** - * Returns the realpath to the configuration file. - * - * @return string - * @since Method available since Release 3.6.0 - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Returns the configuration for SUT filtering. - * - * @return array - * @since Method available since Release 3.2.1 - */ - public function getFilterConfiguration() - { - $addUncoveredFilesFromWhitelist = TRUE; - $processUncoveredFilesFromWhitelist = FALSE; - - $tmp = $this->xpath->query('filter/whitelist'); - - if ($tmp->length == 1) { - if ($tmp->item(0)->hasAttribute('addUncoveredFilesFromWhitelist')) { - $addUncoveredFilesFromWhitelist = $this->getBoolean( - (string)$tmp->item(0)->getAttribute( - 'addUncoveredFilesFromWhitelist' - ), - TRUE - ); - } - - if ($tmp->item(0)->hasAttribute('processUncoveredFilesFromWhitelist')) { - $processUncoveredFilesFromWhitelist = $this->getBoolean( - (string)$tmp->item(0)->getAttribute( - 'processUncoveredFilesFromWhitelist' - ), - FALSE - ); - } - } - - return array( - 'blacklist' => array( - 'include' => array( - 'directory' => $this->readFilterDirectories( - 'filter/blacklist/directory' - ), - 'file' => $this->readFilterFiles( - 'filter/blacklist/file' - ) - ), - 'exclude' => array( - 'directory' => $this->readFilterDirectories( - 'filter/blacklist/exclude/directory' - ), - 'file' => $this->readFilterFiles( - 'filter/blacklist/exclude/file' - ) - ) - ), - 'whitelist' => array( - 'addUncoveredFilesFromWhitelist' => $addUncoveredFilesFromWhitelist, - 'processUncoveredFilesFromWhitelist' => $processUncoveredFilesFromWhitelist, - 'include' => array( - 'directory' => $this->readFilterDirectories( - 'filter/whitelist/directory' - ), - 'file' => $this->readFilterFiles( - 'filter/whitelist/file' - ) - ), - 'exclude' => array( - 'directory' => $this->readFilterDirectories( - 'filter/whitelist/exclude/directory' - ), - 'file' => $this->readFilterFiles( - 'filter/whitelist/exclude/file' - ) - ) - ) - ); - } - - /** - * Returns the configuration for groups. - * - * @return array - * @since Method available since Release 3.2.1 - */ - public function getGroupConfiguration() - { - $groups = array( - 'include' => array(), - 'exclude' => array() - ); - - foreach ($this->xpath->query('groups/include/group') as $group) { - $groups['include'][] = (string)$group->nodeValue; - } - - foreach ($this->xpath->query('groups/exclude/group') as $group) { - $groups['exclude'][] = (string)$group->nodeValue; - } - - return $groups; - } - - /** - * Returns the configuration for listeners. - * - * @return array - * @since Method available since Release 3.4.0 - */ - public function getListenerConfiguration() - { - $result = array(); - - foreach ($this->xpath->query('listeners/listener') as $listener) { - $class = (string)$listener->getAttribute('class'); - $file = ''; - $arguments = array(); - - if ($listener->hasAttribute('file')) { - $file = $this->toAbsolutePath( - (string)$listener->getAttribute('file'), TRUE - ); - } - - foreach ($listener->childNodes as $node) { - if ($node instanceof DOMElement && $node->tagName == 'arguments') { - foreach ($node->childNodes as $argument) { - if ($argument instanceof DOMElement) { - if ($argument->tagName == 'file' || - $argument->tagName == 'directory') { - $arguments[] = $this->toAbsolutePath((string)$argument->nodeValue); - } else { - $arguments[] = PHPUnit_Util_XML::xmlToVariable($argument); - } - } - } - } - } - - $result[] = array( - 'class' => $class, - 'file' => $file, - 'arguments' => $arguments - ); - } - - return $result; - } - - /** - * Returns the logging configuration. - * - * @return array - */ - public function getLoggingConfiguration() - { - $result = array(); - - foreach ($this->xpath->query('logging/log') as $log) { - $type = (string)$log->getAttribute('type'); - - $target = $this->toAbsolutePath( - (string)$log->getAttribute('target') - ); - - if ($type == 'coverage-html') { - if ($log->hasAttribute('title')) { - $result['title'] = (string)$log->getAttribute('title'); - } - - if ($log->hasAttribute('charset')) { - $result['charset'] = (string)$log->getAttribute('charset'); - } - - if ($log->hasAttribute('lowUpperBound')) { - $result['lowUpperBound'] = (string)$log->getAttribute('lowUpperBound'); - } - - if ($log->hasAttribute('highLowerBound')) { - $result['highLowerBound'] = (string)$log->getAttribute('highLowerBound'); - } - - if ($log->hasAttribute('highlight')) { - $result['highlight'] = $this->getBoolean( - (string)$log->getAttribute('highlight'), - FALSE - ); - } - } - - else if ($type == 'junit') { - if ($log->hasAttribute('logIncompleteSkipped')) { - $result['logIncompleteSkipped'] = $this->getBoolean( - (string)$log->getAttribute('logIncompleteSkipped'), - FALSE - ); - } - } - - else if ($type == 'coverage-text') { - if ($log->hasAttribute('showUncoveredFiles')) { - $result['coverageTextShowUncoveredFiles'] = $this->getBoolean( - (string)$log->getAttribute('showUncoveredFiles'), - FALSE - ); - } - } - - $result[$type] = $target; - } - - return $result; - } - - /** - * Returns the PHP configuration. - * - * @return array - * @since Method available since Release 3.2.1 - */ - public function getPHPConfiguration() - { - $result = array( - 'include_path' => array(), - 'ini' => array(), - 'const' => array(), - 'var' => array(), - 'env' => array(), - 'post' => array(), - 'get' => array(), - 'cookie' => array(), - 'server' => array(), - 'files' => array(), - 'request' => array() - ); - - foreach ($this->xpath->query('php/includePath') as $includePath) { - $path = (string)$includePath->nodeValue; - - $result['include_path'][] = $this->toAbsolutePath($path); - } - - foreach ($this->xpath->query('php/ini') as $ini) { - $name = (string)$ini->getAttribute('name'); - $value = (string)$ini->getAttribute('value'); - - $result['ini'][$name] = $value; - } - - foreach ($this->xpath->query('php/const') as $const) { - $name = (string)$const->getAttribute('name'); - $value = (string)$const->getAttribute('value'); - - $result['const'][$name] = $this->getBoolean($value, $value); - } - - foreach (array('var', 'env', 'post', 'get', 'cookie', 'server', 'files', 'request') as $array) { - foreach ($this->xpath->query('php/' . $array) as $var) { - $name = (string)$var->getAttribute('name'); - $value = (string)$var->getAttribute('value'); - - $result[$array][$name] = $this->getBoolean($value, $value); - } - } - - return $result; - } - - /** - * Handles the PHP configuration. - * - * @since Method available since Release 3.2.20 - */ - public function handlePHPConfiguration() - { - $configuration = $this->getPHPConfiguration(); - - if (! empty($configuration['include_path'])) { - ini_set( - 'include_path', - implode(PATH_SEPARATOR, $configuration['include_path']) . - PATH_SEPARATOR . - ini_get('include_path') - ); - } - - foreach ($configuration['ini'] as $name => $value) { - if (defined($value)) { - $value = constant($value); - } - - ini_set($name, $value); - } - - foreach ($configuration['const'] as $name => $value) { - if (!defined($name)) { - define($name, $value); - } - } - - foreach (array('var', 'env', 'post', 'get', 'cookie', 'server', 'files', 'request') as $array) { - if ($array == 'var') { - $target = &$GLOBALS; - } else { - $target = &$GLOBALS['_' . strtoupper($array)]; - } - - foreach ($configuration[$array] as $name => $value) { - $target[$name] = $value; - } - } - - foreach ($configuration['env'] as $name => $value) { - putenv("$name=$value"); - } - } - - /** - * Returns the PHPUnit configuration. - * - * @return array - * @since Method available since Release 3.2.14 - */ - public function getPHPUnitConfiguration() - { - $result = array(); - $root = $this->document->documentElement; - - if ($root->hasAttribute('cacheTokens')) { - $result['cacheTokens'] = $this->getBoolean( - (string)$root->getAttribute('cacheTokens'), FALSE - ); - } - - if ($root->hasAttribute('colors')) { - $result['colors'] = $this->getBoolean( - (string)$root->getAttribute('colors'), FALSE - ); - } - - if ($root->hasAttribute('backupGlobals')) { - $result['backupGlobals'] = $this->getBoolean( - (string)$root->getAttribute('backupGlobals'), TRUE - ); - } - - if ($root->hasAttribute('backupStaticAttributes')) { - $result['backupStaticAttributes'] = $this->getBoolean( - (string)$root->getAttribute('backupStaticAttributes'), FALSE - ); - } - - if ($root->hasAttribute('bootstrap')) { - $result['bootstrap'] = $this->toAbsolutePath( - (string)$root->getAttribute('bootstrap') - ); - } - - if ($root->hasAttribute('convertErrorsToExceptions')) { - $result['convertErrorsToExceptions'] = $this->getBoolean( - (string)$root->getAttribute('convertErrorsToExceptions'), TRUE - ); - } - - if ($root->hasAttribute('convertNoticesToExceptions')) { - $result['convertNoticesToExceptions'] = $this->getBoolean( - (string)$root->getAttribute('convertNoticesToExceptions'), TRUE - ); - } - - if ($root->hasAttribute('convertWarningsToExceptions')) { - $result['convertWarningsToExceptions'] = $this->getBoolean( - (string)$root->getAttribute('convertWarningsToExceptions'), TRUE - ); - } - - if ($root->hasAttribute('forceCoversAnnotation')) { - $result['forceCoversAnnotation'] = $this->getBoolean( - (string)$root->getAttribute('forceCoversAnnotation'), FALSE - ); - } - - if ($root->hasAttribute('mapTestClassNameToCoveredClassName')) { - $result['mapTestClassNameToCoveredClassName'] = $this->getBoolean( - (string)$root->getAttribute('mapTestClassNameToCoveredClassName'), - FALSE - ); - } - - if ($root->hasAttribute('processIsolation')) { - $result['processIsolation'] = $this->getBoolean( - (string)$root->getAttribute('processIsolation'), FALSE - ); - } - - if ($root->hasAttribute('stopOnError')) { - $result['stopOnError'] = $this->getBoolean( - (string)$root->getAttribute('stopOnError'), FALSE - ); - } - - if ($root->hasAttribute('stopOnFailure')) { - $result['stopOnFailure'] = $this->getBoolean( - (string)$root->getAttribute('stopOnFailure'), FALSE - ); - } - - if ($root->hasAttribute('stopOnIncomplete')) { - $result['stopOnIncomplete'] = $this->getBoolean( - (string)$root->getAttribute('stopOnIncomplete'), FALSE - ); - } - - if ($root->hasAttribute('stopOnSkipped')) { - $result['stopOnSkipped'] = $this->getBoolean( - (string)$root->getAttribute('stopOnSkipped'), FALSE - ); - } - - if ($root->hasAttribute('testSuiteLoaderClass')) { - $result['testSuiteLoaderClass'] = (string)$root->getAttribute( - 'testSuiteLoaderClass' - ); - } - - if ($root->hasAttribute('testSuiteLoaderFile')) { - $result['testSuiteLoaderFile'] = (string)$root->getAttribute( - 'testSuiteLoaderFile' - ); - } - - if ($root->hasAttribute('printerClass')) { - $result['printerClass'] = (string)$root->getAttribute( - 'printerClass' - ); - } - - if ($root->hasAttribute('printerFile')) { - $result['printerFile'] = (string)$root->getAttribute( - 'printerFile' - ); - } - - if ($root->hasAttribute('timeoutForSmallTests')) { - $result['timeoutForSmallTests'] = $this->getInteger( - (string)$root->getAttribute('timeoutForSmallTests'), 1 - ); - } - - if ($root->hasAttribute('timeoutForMediumTests')) { - $result['timeoutForMediumTests'] = $this->getInteger( - (string)$root->getAttribute('timeoutForMediumTests'), 10 - ); - } - - if ($root->hasAttribute('timeoutForLargeTests')) { - $result['timeoutForLargeTests'] = $this->getInteger( - (string)$root->getAttribute('timeoutForLargeTests'), 60 - ); - } - - if ($root->hasAttribute('strict')) { - $result['strict'] = $this->getBoolean( - (string)$root->getAttribute('strict'), FALSE - ); - } - - if ($root->hasAttribute('verbose')) { - $result['verbose'] = $this->getBoolean( - (string)$root->getAttribute('verbose'), FALSE - ); - } - - return $result; - } - - /** - * Returns the SeleniumTestCase browser configuration. - * - * @return array - * @since Method available since Release 3.2.9 - */ - public function getSeleniumBrowserConfiguration() - { - $result = array(); - - foreach ($this->xpath->query('selenium/browser') as $config) { - $name = (string)$config->getAttribute('name'); - $browser = (string)$config->getAttribute('browser'); - - if ($config->hasAttribute('host')) { - $host = (string)$config->getAttribute('host'); - } else { - $host = 'localhost'; - } - - if ($config->hasAttribute('port')) { - $port = $this->getInteger( - (string)$config->getAttribute('port'), 4444 - ); - } else { - $port = 4444; - } - - if ($config->hasAttribute('timeout')) { - $timeout = $this->getInteger( - (string)$config->getAttribute('timeout'), 30000 - ); - } else { - $timeout = 30000; - } - - $result[] = array( - 'name' => $name, - 'browser' => $browser, - 'host' => $host, - 'port' => $port, - 'timeout' => $timeout - ); - } - - return $result; - } - - /** - * Returns the test suite configuration. - * - * @return PHPUnit_Framework_TestSuite - * @since Method available since Release 3.2.1 - */ - public function getTestSuiteConfiguration($testSuiteFilter=null) - { - $testSuiteNodes = $this->xpath->query('testsuites/testsuite'); - - if ($testSuiteNodes->length == 0) { - $testSuiteNodes = $this->xpath->query('testsuite'); - } - - if ($testSuiteNodes->length == 1) { - return $this->getTestSuite($testSuiteNodes->item(0), $testSuiteFilter); - } - - if ($testSuiteNodes->length > 1) { - $suite = new PHPUnit_Framework_TestSuite; - - foreach ($testSuiteNodes as $testSuiteNode) { - $suite->addTestSuite( - $this->getTestSuite($testSuiteNode, $testSuiteFilter) - ); - } - - return $suite; - } - } - - /** - * @param DOMElement $testSuiteNode - * @return PHPUnit_Framework_TestSuite - * @since Method available since Release 3.4.0 - */ - protected function getTestSuite(DOMElement $testSuiteNode, $testSuiteFilter=null) - { - if ($testSuiteNode->hasAttribute('name')) { - $suite = new PHPUnit_Framework_TestSuite( - (string)$testSuiteNode->getAttribute('name') - ); - } else { - $suite = new PHPUnit_Framework_TestSuite; - } - - $exclude = array(); - - foreach ($testSuiteNode->getElementsByTagName('exclude') as $excludeNode) { - $exclude[] = (string)$excludeNode->nodeValue; - } - - $fileIteratorFacade = new File_Iterator_Facade; - - foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) { - if ($testSuiteFilter && $directoryNode->parentNode->getAttribute('name') != $testSuiteFilter) { - continue; - } - - $directory = (string)$directoryNode->nodeValue; - - if (empty($directory)) { - continue; - } - - if ($directoryNode->hasAttribute('phpVersion')) { - $phpVersion = (string)$directoryNode->getAttribute('phpVersion'); - } else { - $phpVersion = PHP_VERSION; - } - - if ($directoryNode->hasAttribute('phpVersionOperator')) { - $phpVersionOperator = (string)$directoryNode->getAttribute('phpVersionOperator'); - } else { - $phpVersionOperator = '>='; - } - - if (!version_compare(PHP_VERSION, $phpVersion, $phpVersionOperator)) { - continue; - } - - if ($directoryNode->hasAttribute('prefix')) { - $prefix = (string)$directoryNode->getAttribute('prefix'); - } else { - $prefix = ''; - } - - if ($directoryNode->hasAttribute('suffix')) { - $suffix = (string)$directoryNode->getAttribute('suffix'); - } else { - $suffix = 'Test.php'; - } - - $files = $fileIteratorFacade->getFilesAsArray( - $this->toAbsolutePath($directory), - $suffix, - $prefix, - $exclude - ); - $suite->addTestFiles($files); - } - - foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) { - if ($testSuiteFilter && $fileNode->parentNode->getAttribute('name') != $testSuiteFilter) { - continue; - } - - $file = (string)$fileNode->nodeValue; - - if (empty($file)) { - continue; - } - - // Get the absolute path to the file - $file = $fileIteratorFacade->getFilesAsArray($file); - - if (!isset($file[0])) { - continue; - } - - $file = $file[0]; - - if ($fileNode->hasAttribute('phpVersion')) { - $phpVersion = (string)$fileNode->getAttribute('phpVersion'); - } else { - $phpVersion = PHP_VERSION; - } - - if ($fileNode->hasAttribute('phpVersionOperator')) { - $phpVersionOperator = (string)$fileNode->getAttribute('phpVersionOperator'); - } else { - $phpVersionOperator = '>='; - } - - if (!version_compare(PHP_VERSION, $phpVersion, $phpVersionOperator)) { - continue; - } - - $suite->addTestFile($file); - } - - return $suite; - } - - /** - * @param string $value - * @param boolean $default - * @return boolean - * @since Method available since Release 3.2.3 - */ - protected function getBoolean($value, $default) - { - if (strtolower($value) == 'false') { - return FALSE; - } - - else if (strtolower($value) == 'true') { - return TRUE; - } - - return $default; - } - - /** - * @param string $value - * @param boolean $default - * @return boolean - * @since Method available since Release 3.6.0 - */ - protected function getInteger($value, $default) - { - if (is_numeric($value)) { - return (int)$value; - } - - return $default; - } - - /** - * @param string $query - * @return array - * @since Method available since Release 3.2.3 - */ - protected function readFilterDirectories($query) - { - $directories = array(); - - foreach ($this->xpath->query($query) as $directory) { - if ($directory->hasAttribute('prefix')) { - $prefix = (string)$directory->getAttribute('prefix'); - } else { - $prefix = ''; - } - - if ($directory->hasAttribute('suffix')) { - $suffix = (string)$directory->getAttribute('suffix'); - } else { - $suffix = '.php'; - } - - if ($directory->hasAttribute('group')) { - $group = (string)$directory->getAttribute('group'); - } else { - $group = 'DEFAULT'; - } - - $directories[] = array( - 'path' => $this->toAbsolutePath((string)$directory->nodeValue), - 'prefix' => $prefix, - 'suffix' => $suffix, - 'group' => $group - ); - } - - return $directories; - } - - /** - * @param string $query - * @return array - * @since Method available since Release 3.2.3 - */ - protected function readFilterFiles($query) - { - $files = array(); - - foreach ($this->xpath->query($query) as $file) { - $files[] = $this->toAbsolutePath((string)$file->nodeValue); - } - - return $files; - } - - /** - * @param string $path - * @param boolean $useIncludePath - * @return string - * @since Method available since Release 3.5.0 - */ - protected function toAbsolutePath($path, $useIncludePath = FALSE) - { - // Check whether the path is already absolute. - if ($path[0] === '/' || $path[0] === '\\' || - (strlen($path) > 3 && ctype_alpha($path[0]) && - $path[1] === ':' && ($path[2] === '\\' || $path[2] === '/'))) { - return $path; - } - - // Check whether a stream is used. - if (strpos($path, '://') !== FALSE) { - return $path; - } - - $file = dirname($this->filename) . DIRECTORY_SEPARATOR . $path; - - if ($useIncludePath && !file_exists($file)) { - $includePathFile = stream_resolve_include_path($path); - - if ($includePathFile) { - $file = $includePathFile; - } - } - - return $file; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php deleted file mode 100644 index ee3f0329..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php +++ /dev/null @@ -1,102 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Ralph Schindler - * @author Sebastian Bergmann - * @copyright 2002-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.7 - */ - -/** - * Class to hold the information about a deprecated feature that was used - * - * @package PHPUnit - * @subpackage Framework - * @author Ralph Schindler - * @author Sebastian Bergmann - * @copyright 2002-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Interface available since Release 3.5.7 - */ -class PHPUnit_Util_DeprecatedFeature -{ - /** - * @var array - */ - protected $traceInfo = array(); - - /** - * @var string - */ - protected $message = NULL; - - /** - * @param string $message - * @param array $traceInfo - */ - public function __construct($message, array $traceInfo = array()) - { - $this->message = $message; - $this->traceInfo = $traceInfo; - } - - /** - * Build a string representation of the deprecated feature that was raised - * - * @return string - */ - public function __toString() - { - $string = ''; - - if (isset($this->traceInfo['file'])) { - $string .= $this->traceInfo['file']; - - if (isset($this->traceInfo['line'])) { - $string .= ':' . $this->traceInfo['line'] . ' - '; - } - } - - $string .= $this->message; - - return $string; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php deleted file mode 100644 index 721bdffe..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php +++ /dev/null @@ -1,201 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Framework - * @author Ralph Schindler - * @author Sebastian Bergmann - * @copyright 2002-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.7 - */ - -/** - * Test Listener that tracks the usage of deprecated features. - * - * @package PHPUnit - * @subpackage Framework - * @author Ralph Schindler - * @author Sebastian Bergmann - * @copyright 2002-2010 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.7 - */ -class PHPUnit_Util_DeprecatedFeature_Logger implements PHPUnit_Framework_TestListener -{ - /** - * @var PHPUnit_Framework_TestCase - */ - protected static $currentTest = NULL; - - /** - * This is the publically accessible API for notifying the system that a - * deprecated feature has been used. - * - * If it is run via a TestRunner and the test extends - * PHPUnit_Framework_TestCase, then this will inject the result into the - * test runner for display, if not, it will throw the notice to STDERR. - * - * @param string $message - * @param int|bool $backtraceDepth - */ - public static function log($message, $backtraceDepth = 2) - { - if ($backtraceDepth !== FALSE) { - $trace = debug_backtrace(FALSE); - - if (is_int($backtraceDepth)) { - $traceItem = $trace[$backtraceDepth]; - } - - if (!isset($traceItem['file'])) { - $reflectionClass = new ReflectionClass($traceItem['class']); - $traceItem['file'] = $reflectionClass->getFileName(); - } - - if (!isset($traceItem['line']) && - isset($traceItem['class']) && - isset($traceItem['function'])) { - if (!isset($reflectionClass)) { - $reflectionClass = new ReflectionClass($traceItem['class']); - } - - $method = $reflectionClass->getMethod($traceItem['function']); - $traceItem['line'] = '(between ' . $method->getStartLine() . - ' and ' . $method->getEndLine() . ')'; - } - } - - $deprecatedFeature = new PHPUnit_Util_DeprecatedFeature( - $message, $traceItem - ); - - if (self::$currentTest instanceof PHPUnit_Framework_TestCase) { - $result = self::$currentTest->getTestResultObject(); - $result->addDeprecatedFeature($deprecatedFeature); - } else { - file_put_contents('php://stderr', $deprecatedFeature); - } - } - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - } - - /** - * A test suite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test suite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - self::$currentTest = $test; - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - self::$currentTest = NULL; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Diff.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Diff.php deleted file mode 100644 index b8b2f379..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Diff.php +++ /dev/null @@ -1,292 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @author Kore Nordmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Diff implementation. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @author Kore Nordmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Util_Diff -{ - /** - * Returns the diff between two arrays or strings as string. - * - * @param array|string $from - * @param array|string $to - * @return string - */ - public static function diff($from, $to) - { - $buffer= "--- Expected\n+++ Actual\n"; - $diff = self::diffToArray($from,$to); - - $inOld = FALSE; - $i = 0; - $old = array(); - - foreach ($diff as $line) { - if ($line[1] === 0 /* OLD */) { - if ($inOld === FALSE) { - $inOld = $i; - } - } - - else if ($inOld !== FALSE) { - if (($i - $inOld) > 5) { - $old[$inOld] = $i - 1; - } - - $inOld = FALSE; - } - - ++$i; - } - - $start = isset($old[0]) ? $old[0] : 0; - $end = count($diff); - $i = 0; - - if ($tmp = array_search($end, $old)) { - $end = $tmp; - } - - $newChunk = TRUE; - - for ($i = $start; $i < $end; $i++) { - if (isset($old[$i])) { - $buffer .= "\n"; - $newChunk = TRUE; - $i = $old[$i]; - } - - if ($newChunk) { - $buffer .= "@@ @@\n"; - $newChunk = FALSE; - } - - if ($diff[$i][1] === 1 /* ADDED */) { - $buffer .= '+' . $diff[$i][0] . "\n"; - } - - else if ($diff[$i][1] === 2 /* REMOVED */) { - $buffer .= '-' . $diff[$i][0] . "\n"; - } - - else { - $buffer .= ' ' . $diff[$i][0] . "\n"; - } - } - - return $buffer; - } - - /** - * Returns the diff between two arrays or strings as array. - * - * every array-entry containts two elements: - * - [0] => string $token - * - [1] => 2|1|0 - * - * - 2: REMOVED: $token was removed from $from - * - 1: ADDED: $token was added to $from - * - 0: OLD: $token is not changed in $to - * - * @param array|string $from - * @param array|string $to - * @return array - */ - public static function diffToArray($from, $to) - { - preg_match_all('(\r\n|\r|\n)', $from, $fromMatches); - preg_match_all('(\r\n|\r|\n)', $to, $toMatches); - - if (is_string($from)) { - $from = preg_split('(\r\n|\r|\n)', $from); - } - - if (is_string($to)) { - $to = preg_split('(\r\n|\r|\n)', $to); - } - - $start = array(); - $end = array(); - $fromLength = count($from); - $toLength = count($to); - $length = min($fromLength, $toLength); - - for ($i = 0; $i < $length; ++$i) { - if ($from[$i] === $to[$i]) { - $start[] = $from[$i]; - unset($from[$i], $to[$i]); - } else { - break; - } - } - - $length -= $i; - - for ($i = 1; $i < $length; ++$i) { - if ($from[$fromLength - $i] === $to[$toLength - $i]) { - array_unshift($end, $from[$fromLength - $i]); - unset($from[$fromLength - $i], $to[$toLength - $i]); - } else { - break; - } - } - - $common = self::longestCommonSubsequence( - array_values($from), array_values($to) - ); - - $diff = array(); - $line = 0; - - if (isset($fromMatches[0]) && $toMatches[0] && - count($fromMatches[0]) === count($toMatches[0]) && - $fromMatches[0] !== $toMatches[0]) { - $diff[] = array( - '#Warning: Strings contain different line endings!', 0 - ); - } - - foreach ($start as $token) { - $diff[] = array($token, 0 /* OLD */); - } - - reset($from); - reset($to); - - foreach ($common as $token) { - while ((($fromToken = reset($from)) !== $token)) { - $diff[] = array(array_shift($from), 2 /* REMOVED */); - } - - while ((($toToken = reset($to)) !== $token)) { - $diff[] = array(array_shift($to), 1 /* ADDED */); - } - - $diff[] = array($token, 0 /* OLD */); - - array_shift($from); - array_shift($to); - } - - while (($token = array_shift($from)) !== NULL) { - $diff[] = array($token, 2 /* REMOVED */); - } - - while (($token = array_shift($to)) !== NULL) { - $diff[] = array($token, 1 /* ADDED */); - } - - foreach ($end as $token) { - $diff[] = array($token, 0 /* OLD */); - } - - return $diff; - } - - /** - * Calculates the longest common subsequence of two arrays. - * - * @param array $from - * @param array $to - * @return array - */ - protected static function longestCommonSubsequence(array $from, array $to) - { - $common = array(); - $matrix = array(); - $fromLength = count($from); - $toLength = count($to); - - for ($i = 0; $i <= $fromLength; ++$i) { - $matrix[$i][0] = 0; - } - - for ($j = 0; $j <= $toLength; ++$j) { - $matrix[0][$j] = 0; - } - - for ($i = 1; $i <= $fromLength; ++$i) { - for ($j = 1; $j <= $toLength; ++$j) { - $matrix[$i][$j] = max( - $matrix[$i-1][$j], - $matrix[$i][$j-1], - $from[$i-1] === $to[$j-1] ? $matrix[$i-1][$j-1] + 1 : 0 - ); - } - } - - $i = $fromLength; - $j = $toLength; - - while ($i > 0 && $j > 0) { - if ($from[$i-1] === $to[$j-1]) { - array_unshift($common, $from[$i-1]); - --$i; - --$j; - } - - else if ($matrix[$i][$j-1] > $matrix[$i-1][$j]) { - --$j; - } - - else { - --$i; - } - } - - return $common; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/ErrorHandler.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/ErrorHandler.php deleted file mode 100644 index 1299b36a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/ErrorHandler.php +++ /dev/null @@ -1,132 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -// Workaround for http://bugs.php.net/bug.php?id=47987, -// see https://github.com/sebastianbergmann/phpunit/issues#issue/125 for details -require_once 'PHPUnit/Framework/Error.php'; -require_once 'PHPUnit/Framework/Error/Notice.php'; -require_once 'PHPUnit/Framework/Error/Warning.php'; -require_once 'PHPUnit/Framework/Error/Deprecated.php'; - -/** - * Error handler that converts PHP errors and warnings to exceptions. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class PHPUnit_Util_ErrorHandler -{ - protected static $errorStack = array(); - - /** - * Returns the error stack. - * - * @return array - */ - public static function getErrorStack() - { - return self::$errorStack; - } - - /** - * @param integer $errno - * @param string $errstr - * @param string $errfile - * @param integer $errline - * @throws PHPUnit_Framework_Error - */ - public static function handleError($errno, $errstr, $errfile, $errline) - { - if (!($errno & error_reporting())) { - return FALSE; - } - - self::$errorStack[] = array($errno, $errstr, $errfile, $errline); - - $trace = debug_backtrace(FALSE); - array_shift($trace); - - foreach ($trace as $frame) { - if ($frame['function'] == '__toString') { - return FALSE; - } - } - - if ($errno == E_NOTICE || $errno == E_USER_NOTICE || $errno == E_STRICT) { - if (PHPUnit_Framework_Error_Notice::$enabled !== TRUE) { - return FALSE; - } - - $exception = 'PHPUnit_Framework_Error_Notice'; - } - - else if ($errno == E_WARNING || $errno == E_USER_WARNING) { - if (PHPUnit_Framework_Error_Warning::$enabled !== TRUE) { - return FALSE; - } - - $exception = 'PHPUnit_Framework_Error_Warning'; - } - - else if ($errno == E_DEPRECATED || $errno == E_USER_DEPRECATED) { - if (PHPUnit_Framework_Error_Deprecated::$enabled !== TRUE) { - return FALSE; - } - - $exception = 'PHPUnit_Framework_Error_Deprecated'; - } - - else { - $exception = 'PHPUnit_Framework_Error'; - } - - throw new $exception($errstr, $errno, $errfile, $errline); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Fileloader.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Fileloader.php deleted file mode 100644 index 7eeb7df8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Fileloader.php +++ /dev/null @@ -1,107 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * Utility methods to load PHP sourcefiles. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.3.0 - */ -class PHPUnit_Util_Fileloader -{ - /** - * Checks if a PHP sourcefile is readable. - * The sourcefile is loaded through the load() method. - * - * @param string $filename - * @throws PHPUnit_Framework_Exception - */ - public static function checkAndLoad($filename) - { - $includePathFilename = stream_resolve_include_path($filename); - - if (!$includePathFilename || !is_readable($includePathFilename)) { - throw new PHPUnit_Framework_Exception( - sprintf('Cannot open file "%s".' . "\n", $filename) - ); - } - - self::load($includePathFilename); - - return $includePathFilename; - } - - /** - * Loads a PHP sourcefile. - * - * @param string $filename - * @return mixed - * @since Method available since Release 3.0.0 - */ - public static function load($filename) - { - $oldVariableNames = array_keys(get_defined_vars()); - - include_once $filename; - - $newVariables = get_defined_vars(); - $newVariableNames = array_diff( - array_keys($newVariables), $oldVariableNames - ); - - foreach ($newVariableNames as $variableName) { - if ($variableName != 'oldVariableNames') { - $GLOBALS[$variableName] = $newVariables[$variableName]; - } - } - - return $filename; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filesystem.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filesystem.php deleted file mode 100644 index 80cb1198..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filesystem.php +++ /dev/null @@ -1,81 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Filesystem helpers. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Filesystem -{ - /** - * @var array - */ - protected static $buffer = array(); - - /** - * Maps class names to source file names: - * - PEAR CS: Foo_Bar_Baz -> Foo/Bar/Baz.php - * - Namespace: Foo\Bar\Baz -> Foo/Bar/Baz.php - * - * @param string $className - * @return string - * @since Method available since Release 3.4.0 - */ - public static function classNameToFilename($className) - { - return str_replace( - array('_', '\\'), - DIRECTORY_SEPARATOR, - $className - ) . '.php'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filter.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filter.php deleted file mode 100644 index 3d8e4f5f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Filter.php +++ /dev/null @@ -1,146 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Utility class for code filtering. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Util_Filter -{ - /** - * Filters stack frames from PHPUnit classes. - * - * @param Exception $e - * @param boolean $asString - * @return string - */ - public static function getFilteredStacktrace(Exception $e, $asString = TRUE) - { - $prefix = FALSE; - $script = realpath($GLOBALS['_SERVER']['SCRIPT_NAME']); - - if (substr($script, -5) == '.phar') { - $prefix = 'phar://' . $script . '/'; - } - - if (!defined('PHPUNIT_TESTSUITE')) { - $blacklist = PHPUnit_Util_GlobalState::phpunitFiles(); - } else { - $blacklist = array(); - } - - if ($asString === TRUE) { - $filteredStacktrace = ''; - } else { - $filteredStacktrace = array(); - } - - if ($e instanceof PHPUnit_Framework_SyntheticError) { - $eTrace = $e->getSyntheticTrace(); - $eFile = $e->getSyntheticFile(); - $eLine = $e->getSyntheticLine(); - } else { - if ($e->getPrevious()) { - $eTrace = $e->getPrevious()->getTrace(); - } else { - $eTrace = $e->getTrace(); - } - $eFile = $e->getFile(); - $eLine = $e->getLine(); - } - - if (!self::frameExists($eTrace, $eFile, $eLine)) { - array_unshift( - $eTrace, array('file' => $eFile, 'line' => $eLine) - ); - } - - foreach ($eTrace as $frame) { - if (isset($frame['file']) && is_file($frame['file']) && - !isset($blacklist[$frame['file']]) && - strpos($frame['file'], $prefix) !== 0 && - $frame['file'] !== $script) { - if ($asString === TRUE) { - $filteredStacktrace .= sprintf( - "%s:%s\n", - - $frame['file'], - isset($frame['line']) ? $frame['line'] : '?' - ); - } else { - $filteredStacktrace[] = $frame; - } - } - } - - return $filteredStacktrace; - } - - /** - * @param array $trace - * @param string $file - * @param int $line - * @return boolean - * @since Method available since Release 3.3.2 - */ - public static function frameExists(array $trace, $file, $line) - { - foreach ($trace as $frame) { - if (isset($frame['file']) && $frame['file'] == $file && - isset($frame['line']) && $frame['line'] == $line) { - return TRUE; - } - } - - return FALSE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Getopt.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Getopt.php deleted file mode 100644 index 263558a1..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Getopt.php +++ /dev/null @@ -1,207 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Command-line options parsing class. - * - * @package PHPUnit - * @subpackage Util - * @author Andrei Zmievski - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Getopt -{ - public static function getopt(array $args, $short_options, $long_options = NULL) - { - if (empty($args)) { - return array(array(), array()); - } - - $opts = array(); - $non_opts = array(); - - if ($long_options) { - sort($long_options); - } - - if (isset($args[0][0]) && $args[0][0] != '-') { - array_shift($args); - } - - reset($args); - array_map('trim', $args); - - while (list($i, $arg) = each($args)) { - if ($arg == '') { - continue; - } - - if ($arg == '--') { - $non_opts = array_merge($non_opts, array_slice($args, $i + 1)); - break; - } - - if ($arg[0] != '-' || - (strlen($arg) > 1 && $arg[1] == '-' && !$long_options)) { - $non_opts = array_merge($non_opts, array_slice($args, $i)); - break; - } - - elseif (strlen($arg) > 1 && $arg[1] == '-') { - self::parseLongOption( - substr($arg, 2), $long_options, $opts, $args - ); - } - - else { - self::parseShortOption( - substr($arg, 1), $short_options, $opts, $args - ); - } - } - - return array($opts, $non_opts); - } - - protected static function parseShortOption($arg, $short_options, &$opts, &$args) - { - $argLen = strlen($arg); - - for ($i = 0; $i < $argLen; $i++) { - $opt = $arg[$i]; - $opt_arg = NULL; - - if (($spec = strstr($short_options, $opt)) === FALSE || - $arg[$i] == ':') { - throw new PHPUnit_Framework_Exception( - "unrecognized option -- $opt" - ); - } - - if (strlen($spec) > 1 && $spec[1] == ':') { - if (strlen($spec) > 2 && $spec[2] == ':') { - if ($i + 1 < $argLen) { - $opts[] = array($opt, substr($arg, $i + 1)); - break; - } - } else { - if ($i + 1 < $argLen) { - $opts[] = array($opt, substr($arg, $i + 1)); - break; - } - - else if (list(, $opt_arg) = each($args)) { - } - - else { - throw new PHPUnit_Framework_Exception( - "option requires an argument -- $opt" - ); - } - } - } - - $opts[] = array($opt, $opt_arg); - } - } - - protected static function parseLongOption($arg, $long_options, &$opts, &$args) - { - $count = count($long_options); - $list = explode('=', $arg); - $opt = $list[0]; - $opt_arg = NULL; - - if (count($list) > 1) { - $opt_arg = $list[1]; - } - - $opt_len = strlen($opt); - - for ($i = 0; $i < $count; $i++) { - $long_opt = $long_options[$i]; - $opt_start = substr($long_opt, 0, $opt_len); - - if ($opt_start != $opt) { - continue; - } - - $opt_rest = substr($long_opt, $opt_len); - - if ($opt_rest != '' && $opt[0] != '=' && $i + 1 < $count && - $opt == substr($long_options[$i+1], 0, $opt_len)) { - throw new PHPUnit_Framework_Exception( - "option --$opt is ambiguous" - ); - } - - if (substr($long_opt, -1) == '=') { - if (substr($long_opt, -2) != '==') { - if (!strlen($opt_arg) && - !(list(, $opt_arg) = each($args))) { - throw new PHPUnit_Framework_Exception( - "option --$opt requires an argument" - ); - } - } - } - - else if ($opt_arg) { - throw new PHPUnit_Framework_Exception( - "option --$opt doesn't allow an argument" - ); - } - - $opts[] = array('--' . $opt, $opt_arg); - return; - } - - throw new PHPUnit_Framework_Exception("unrecognized option --$opt"); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php deleted file mode 100644 index 425f0d46..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php +++ /dev/null @@ -1,427 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Util_GlobalState -{ - /** - * @var array - */ - protected static $globals = array(); - - /** - * @var array - */ - protected static $staticAttributes = array(); - - /** - * @var array - */ - protected static $superGlobalArrays = array( - '_ENV', - '_POST', - '_GET', - '_COOKIE', - '_SERVER', - '_FILES', - '_REQUEST' - ); - - /** - * @var array - */ - protected static $superGlobalArraysLong = array( - 'HTTP_ENV_VARS', - 'HTTP_POST_VARS', - 'HTTP_GET_VARS', - 'HTTP_COOKIE_VARS', - 'HTTP_SERVER_VARS', - 'HTTP_POST_FILES' - ); - - /** - * @var array - */ - protected static $phpunitFiles; - - public static function backupGlobals(array $blacklist) - { - self::$globals = array(); - $superGlobalArrays = self::getSuperGlobalArrays(); - - foreach ($superGlobalArrays as $superGlobalArray) { - if (!in_array($superGlobalArray, $blacklist)) { - self::backupSuperGlobalArray($superGlobalArray); - } - } - - foreach (array_keys($GLOBALS) as $key) { - if ($key != 'GLOBALS' && - !in_array($key, $superGlobalArrays) && - !in_array($key, $blacklist) && - !$GLOBALS[$key] instanceof Closure) { - self::$globals['GLOBALS'][$key] = serialize($GLOBALS[$key]); - } - } - } - - public static function restoreGlobals(array $blacklist) - { - if (ini_get('register_long_arrays') == '1') { - $superGlobalArrays = array_merge( - self::$superGlobalArrays, self::$superGlobalArraysLong - ); - } else { - $superGlobalArrays = self::$superGlobalArrays; - } - - foreach ($superGlobalArrays as $superGlobalArray) { - if (!in_array($superGlobalArray, $blacklist)) { - self::restoreSuperGlobalArray($superGlobalArray); - } - } - - foreach (array_keys($GLOBALS) as $key) { - if ($key != 'GLOBALS' && - !in_array($key, $superGlobalArrays) && - !in_array($key, $blacklist)) { - if (isset(self::$globals['GLOBALS'][$key])) { - $GLOBALS[$key] = unserialize( - self::$globals['GLOBALS'][$key] - ); - } else { - unset($GLOBALS[$key]); - } - } - } - - self::$globals = array(); - } - - protected static function backupSuperGlobalArray($superGlobalArray) - { - self::$globals[$superGlobalArray] = array(); - - if (isset($GLOBALS[$superGlobalArray]) && - is_array($GLOBALS[$superGlobalArray])) { - foreach ($GLOBALS[$superGlobalArray] as $key => $value) { - self::$globals[$superGlobalArray][$key] = serialize($value); - } - } - } - - protected static function restoreSuperGlobalArray($superGlobalArray) - { - if (isset($GLOBALS[$superGlobalArray]) && - is_array($GLOBALS[$superGlobalArray]) && - isset(self::$globals[$superGlobalArray])) { - $keys = array_keys( - array_merge( - $GLOBALS[$superGlobalArray], self::$globals[$superGlobalArray] - ) - ); - - foreach ($keys as $key) { - if (isset(self::$globals[$superGlobalArray][$key])) { - $GLOBALS[$superGlobalArray][$key] = unserialize( - self::$globals[$superGlobalArray][$key] - ); - } else { - unset($GLOBALS[$superGlobalArray][$key]); - } - } - } - - self::$globals[$superGlobalArray] = array(); - } - - public static function getIncludedFilesAsString() - { - $blacklist = self::phpunitFiles(); - $files = get_included_files(); - $prefix = FALSE; - $result = ''; - $script = realpath($GLOBALS['_SERVER']['SCRIPT_NAME']); - - if (substr($script, -5) == '.phar') { - $prefix = 'phar://' . $script . '/'; - } - - for ($i = count($files) - 1; $i > 0; $i--) { - $file = $files[$i]; - - if ($prefix !== FALSE) { - $file = str_replace($prefix, '', $file); - } - - if (!isset($blacklist[$file]) && is_file($file)) { - $result = 'require_once \'' . $file . "';\n" . $result; - } - } - - return $result; - } - - public static function getConstantsAsString() - { - $constants = get_defined_constants(TRUE); - $result = ''; - - if (isset($constants['user'])) { - foreach ($constants['user'] as $name => $value) { - $result .= sprintf( - 'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n", - $name, - $name, - self::exportVariable($value) - ); - } - } - - return $result; - } - - public static function getGlobalsAsString() - { - $result = ''; - $superGlobalArrays = self::getSuperGlobalArrays(); - - foreach ($superGlobalArrays as $superGlobalArray) { - if (isset($GLOBALS[$superGlobalArray]) && - is_array($GLOBALS[$superGlobalArray])) { - foreach (array_keys($GLOBALS[$superGlobalArray]) as $key) { - if ($GLOBALS[$superGlobalArray][$key] instanceof Closure) { - continue; - } - - $result .= sprintf( - '$GLOBALS[\'%s\'][\'%s\'] = %s;' . "\n", - $superGlobalArray, - $key, - self::exportVariable($GLOBALS[$superGlobalArray][$key]) - ); - } - } - } - - $blacklist = $superGlobalArrays; - $blacklist[] = 'GLOBALS'; - $blacklist[] = '_PEAR_Config_instance'; - - foreach (array_keys($GLOBALS) as $key) { - if (!in_array($key, $blacklist) && !$GLOBALS[$key] instanceof Closure) { - $result .= sprintf( - '$GLOBALS[\'%s\'] = %s;' . "\n", - $key, - self::exportVariable($GLOBALS[$key]) - ); - } - } - - return $result; - } - - protected static function getSuperGlobalArrays() - { - if (ini_get('register_long_arrays') == '1') { - return array_merge( - self::$superGlobalArrays, self::$superGlobalArraysLong - ); - } else { - return self::$superGlobalArrays; - } - } - - public static function backupStaticAttributes(array $blacklist) - { - self::$staticAttributes = array(); - $declaredClasses = get_declared_classes(); - $declaredClassesNum = count($declaredClasses); - - for ($i = $declaredClassesNum - 1; $i >= 0; $i--) { - if (strpos($declaredClasses[$i], 'PHPUnit') !== 0 && - strpos($declaredClasses[$i], 'File_Iterator') !== 0 && - strpos($declaredClasses[$i], 'PHP_CodeCoverage') !== 0 && - strpos($declaredClasses[$i], 'PHP_Invoker') !== 0 && - strpos($declaredClasses[$i], 'PHP_Timer') !== 0 && - strpos($declaredClasses[$i], 'PHP_TokenStream') !== 0 && - strpos($declaredClasses[$i], 'Symfony') !== 0 && - strpos($declaredClasses[$i], 'Text_Template') !== 0 && - !$declaredClasses[$i] instanceof PHPUnit_Framework_Test) { - $class = new ReflectionClass($declaredClasses[$i]); - - if (!$class->isUserDefined()) { - break; - } - - $backup = array(); - - foreach ($class->getProperties() as $attribute) { - if ($attribute->isStatic()) { - $name = $attribute->getName(); - - if (!isset($blacklist[$declaredClasses[$i]]) || - !in_array($name, $blacklist[$declaredClasses[$i]])) { - $attribute->setAccessible(TRUE); - $value = $attribute->getValue(); - - if (!$value instanceof Closure) { - $backup[$name] = serialize($value); - } - } - } - } - - if (!empty($backup)) { - self::$staticAttributes[$declaredClasses[$i]] = $backup; - } - } - } - } - - public static function restoreStaticAttributes() - { - foreach (self::$staticAttributes as $className => $staticAttributes) { - foreach ($staticAttributes as $name => $value) { - $reflector = new ReflectionProperty($className, $name); - $reflector->setAccessible(TRUE); - $reflector->setValue(unserialize($value)); - } - } - - self::$staticAttributes = array(); - } - - protected static function exportVariable($variable) - { - if (is_scalar($variable) || is_null($variable) || - (is_array($variable) && self::arrayOnlyContainsScalars($variable))) { - return var_export($variable, TRUE); - } - - return 'unserialize(\'' . - str_replace("'", "\'", serialize($variable)) . - '\')'; - } - - protected static function arrayOnlyContainsScalars(array $array) - { - $result = TRUE; - - foreach ($array as $element) { - if (is_array($element)) { - $result = self::arrayOnlyContainsScalars($element); - } - - else if (!is_scalar($element) && !is_null($element)) { - $result = FALSE; - } - - if ($result === FALSE) { - break; - } - } - - return $result; - } - - /** - * @return array - * @since Method available since Release 3.6.0 - */ - public static function phpunitFiles() - { - if (self::$phpunitFiles === NULL) { - self::addDirectoryContainingClassToPHPUnitFilesList('File_Iterator'); - self::addDirectoryContainingClassToPHPUnitFilesList('PHP_CodeCoverage'); - self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Invoker'); - self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Timer'); - self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Token'); - self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Framework_TestCase', 2); - self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Database_TestCase', 2); - self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Framework_MockObject_Generator', 2); - self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_SeleniumTestCase', 2); - self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Story_TestCase', 2); - self::addDirectoryContainingClassToPHPUnitFilesList('Text_Template'); - } - - return self::$phpunitFiles; - } - - /** - * @param string $className - * @param integer $parent - * @since Method available since Release 3.7.2 - */ - protected static function addDirectoryContainingClassToPHPUnitFilesList($className, $parent = 1) - { - if (!class_exists($className)) { - return; - } - - $reflector = new ReflectionClass($className); - $directory = $reflector->getFileName(); - - for ($i = 0; $i < $parent; $i++) { - $directory = dirname($directory); - } - - $facade = new File_Iterator_Facade; - - foreach ($facade->getFilesAsArray($directory, '.php') as $file) { - self::$phpunitFiles[$file] = TRUE; - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/InvalidArgumentHelper.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/InvalidArgumentHelper.php deleted file mode 100644 index b5212e84..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/InvalidArgumentHelper.php +++ /dev/null @@ -1,80 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Factory for PHPUnit_Framework_Exception objects that are used to describe - * invalid arguments passed to a function or method. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -class PHPUnit_Util_InvalidArgumentHelper -{ - /** - * @param integer $argument - * @param string $type - * @param mixed $value - */ - public static function factory($argument, $type, $value = NULL) - { - $stack = debug_backtrace(FALSE); - - return new PHPUnit_Framework_Exception( - sprintf( - 'Argument #%d%sof %s::%s() must be a %s', - $argument, - $value !== NULL ? ' (' . $value . ')' : ' ', - $stack[1]['class'], - $stack[1]['function'], - $type - ) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php deleted file mode 100644 index aa56e563..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php +++ /dev/null @@ -1,254 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * A TestListener that generates JSON messages. - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Log_JSON extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener -{ - /** - * @var string - */ - protected $currentTestSuiteName = ''; - - /** - * @var string - */ - protected $currentTestName = ''; - - /** - * @var boolean - * @access private - */ - protected $currentTestPass = TRUE; - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->writeCase( - 'error', - $time, - PHPUnit_Util_Filter::getFilteredStacktrace($e, FALSE), - $e->getMessage(), - $test - ); - - $this->currentTestPass = FALSE; - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - $this->writeCase( - 'fail', - $time, - PHPUnit_Util_Filter::getFilteredStacktrace($e, FALSE), - $e->getMessage(), - $test - ); - - $this->currentTestPass = FALSE; - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->writeCase( - 'error', - $time, - PHPUnit_Util_Filter::getFilteredStacktrace($e, FALSE), - 'Incomplete Test: ' . $e->getMessage(), - $test - ); - - $this->currentTestPass = FALSE; - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->writeCase( - 'error', - $time, - PHPUnit_Util_Filter::getFilteredStacktrace($e, FALSE), - 'Skipped Test: ' . $e->getMessage(), - $test - ); - - $this->currentTestPass = FALSE; - } - - /** - * A testsuite started. - * - * @param PHPUnit_Framework_TestSuite $suite - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $this->currentTestSuiteName = $suite->getName(); - $this->currentTestName = ''; - - $this->write( - array( - 'event' => 'suiteStart', - 'suite' => $this->currentTestSuiteName, - 'tests' => count($suite) - ) - ); - } - - /** - * A testsuite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $this->currentTestSuiteName = ''; - $this->currentTestName = ''; - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - $this->currentTestName = PHPUnit_Util_Test::describe($test); - $this->currentTestPass = TRUE; - - $this->write( - array( - 'event' => 'testStart', - 'suite' => $this->currentTestSuiteName, - 'test' => $this->currentTestName - ) - ); - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if ($this->currentTestPass) { - $this->writeCase('pass', $time, array(), '', $test); - } - } - - /** - * @param string $status - * @param float $time - * @param array $trace - * @param string $message - */ - protected function writeCase($status, $time, array $trace = array(), $message = '', $test = NULL) - { - $output = ''; - if ($test !== NULL && $test->hasOutput()) { - $output = $test->getActualOutput(); - } - $this->write( - array( - 'event' => 'test', - 'suite' => $this->currentTestSuiteName, - 'test' => $this->currentTestName, - 'status' => $status, - 'time' => $time, - 'trace' => $trace, - 'message' => PHPUnit_Util_String::convertToUtf8($message), - 'output' => $output, - ) - ); - } - - /** - * @param string $buffer - */ - public function write($buffer) - { - if (defined('JSON_PRETTY_PRINT')) { - parent::write(json_encode($buffer, JSON_PRETTY_PRINT)); - } else { - parent::write(json_encode($buffer)); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php deleted file mode 100644 index 12341018..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php +++ /dev/null @@ -1,482 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * A TestListener that generates a logfile of the test execution in XML markup. - * - * The XML markup used is the same as the one that is used by the JUnit Ant task. - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener -{ - /** - * @var DOMDocument - */ - protected $document; - - /** - * @var DOMElement - */ - protected $root; - - /** - * @var boolean - */ - protected $logIncompleteSkipped = FALSE; - - /** - * @var boolean - */ - protected $writeDocument = TRUE; - - /** - * @var DOMElement[] - */ - protected $testSuites = array(); - - /** - * @var integer[] - */ - protected $testSuiteTests = array(0); - - /** - * @var integer[] - */ - protected $testSuiteAssertions = array(0); - - /** - * @var integer[] - */ - protected $testSuiteErrors = array(0); - - /** - * @var integer[] - */ - protected $testSuiteFailures = array(0); - - /** - * @var integer[] - */ - protected $testSuiteTimes = array(0); - - /** - * @var integer - */ - protected $testSuiteLevel = 0; - - /** - * @var DOMElement - */ - protected $currentTestCase = NULL; - - /** - * @var boolean - */ - protected $attachCurrentTestCase = TRUE; - - /** - * Constructor. - * - * @param mixed $out - * @param boolean $logIncompleteSkipped - */ - public function __construct($out = NULL, $logIncompleteSkipped = FALSE) - { - $this->document = new DOMDocument('1.0', 'UTF-8'); - $this->document->formatOutput = TRUE; - - $this->root = $this->document->createElement('testsuites'); - $this->document->appendChild($this->root); - - parent::__construct($out); - - $this->logIncompleteSkipped = $logIncompleteSkipped; - } - - /** - * Flush buffer and close output. - * - */ - public function flush() - { - if ($this->writeDocument === TRUE) { - $this->write($this->getXML()); - } - - parent::flush(); - } - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->currentTestCase !== NULL) { - if ($test instanceof PHPUnit_Framework_SelfDescribing) { - $buffer = $test->toString() . "\n"; - } else { - $buffer = ''; - } - - $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) . - "\n" . - PHPUnit_Util_Filter::getFilteredStacktrace($e); - - $error = $this->document->createElement( - 'error', PHPUnit_Util_XML::prepareString($buffer) - ); - - $error->setAttribute('type', get_class($e)); - - $this->currentTestCase->appendChild($error); - - $this->testSuiteErrors[$this->testSuiteLevel]++; - } - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - if ($this->currentTestCase !== NULL) { - if (!$test instanceof PHPUnit_Framework_Warning) { - if ($test instanceof PHPUnit_Framework_SelfDescribing) { - $buffer = $test->toString() . "\n"; - } else { - $buffer = ''; - } - - $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) . - "\n" . - PHPUnit_Util_Filter::getFilteredStacktrace($e); - - $failure = $this->document->createElement( - 'failure', PHPUnit_Util_XML::prepareString($buffer) - ); - - $failure->setAttribute('type', get_class($e)); - - $this->currentTestCase->appendChild($failure); - - $this->testSuiteFailures[$this->testSuiteLevel]++; - } - } - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->logIncompleteSkipped && $this->currentTestCase !== NULL) { - $error = $this->document->createElement( - 'error', - PHPUnit_Util_XML::prepareString( - "Incomplete Test\n" . - PHPUnit_Util_Filter::getFilteredStacktrace($e) - ) - ); - - $error->setAttribute('type', get_class($e)); - - $this->currentTestCase->appendChild($error); - - $this->testSuiteErrors[$this->testSuiteLevel]++; - } else { - $this->attachCurrentTestCase = FALSE; - } - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($this->logIncompleteSkipped && $this->currentTestCase !== NULL) { - $error = $this->document->createElement( - 'error', - PHPUnit_Util_XML::prepareString( - "Skipped Test\n" . - PHPUnit_Util_Filter::getFilteredStacktrace($e) - ) - ); - - $error->setAttribute('type', get_class($e)); - - $this->currentTestCase->appendChild($error); - - $this->testSuiteErrors[$this->testSuiteLevel]++; - } else { - $this->attachCurrentTestCase = FALSE; - } - } - - /** - * A testsuite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $testSuite = $this->document->createElement('testsuite'); - $testSuite->setAttribute('name', $suite->getName()); - - if (class_exists($suite->getName(), FALSE)) { - try { - $class = new ReflectionClass($suite->getName()); - - $testSuite->setAttribute('file', $class->getFileName()); - - $packageInformation = PHPUnit_Util_Class::getPackageInformation( - $suite->getName(), $class->getDocComment() - ); - - if (!empty($packageInformation['namespace'])) { - $testSuite->setAttribute( - 'namespace', $packageInformation['namespace'] - ); - } - - if (!empty($packageInformation['fullPackage'])) { - $testSuite->setAttribute( - 'fullPackage', $packageInformation['fullPackage'] - ); - } - - if (!empty($packageInformation['category'])) { - $testSuite->setAttribute( - 'category', $packageInformation['category'] - ); - } - - if (!empty($packageInformation['package'])) { - $testSuite->setAttribute( - 'package', $packageInformation['package'] - ); - } - - if (!empty($packageInformation['subpackage'])) { - $testSuite->setAttribute( - 'subpackage', $packageInformation['subpackage'] - ); - } - } - - catch (ReflectionException $e) { - } - } - - if ($this->testSuiteLevel > 0) { - $this->testSuites[$this->testSuiteLevel]->appendChild($testSuite); - } else { - $this->root->appendChild($testSuite); - } - - $this->testSuiteLevel++; - $this->testSuites[$this->testSuiteLevel] = $testSuite; - $this->testSuiteTests[$this->testSuiteLevel] = 0; - $this->testSuiteAssertions[$this->testSuiteLevel] = 0; - $this->testSuiteErrors[$this->testSuiteLevel] = 0; - $this->testSuiteFailures[$this->testSuiteLevel] = 0; - $this->testSuiteTimes[$this->testSuiteLevel] = 0; - } - - /** - * A testsuite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $this->testSuites[$this->testSuiteLevel]->setAttribute( - 'tests', $this->testSuiteTests[$this->testSuiteLevel] - ); - - $this->testSuites[$this->testSuiteLevel]->setAttribute( - 'assertions', $this->testSuiteAssertions[$this->testSuiteLevel] - ); - - $this->testSuites[$this->testSuiteLevel]->setAttribute( - 'failures', $this->testSuiteFailures[$this->testSuiteLevel] - ); - - $this->testSuites[$this->testSuiteLevel]->setAttribute( - 'errors', $this->testSuiteErrors[$this->testSuiteLevel] - ); - - $this->testSuites[$this->testSuiteLevel]->setAttribute( - 'time', sprintf('%F', $this->testSuiteTimes[$this->testSuiteLevel]) - ); - - if ($this->testSuiteLevel > 1) { - $this->testSuiteTests[$this->testSuiteLevel - 1] += $this->testSuiteTests[$this->testSuiteLevel]; - $this->testSuiteAssertions[$this->testSuiteLevel - 1] += $this->testSuiteAssertions[$this->testSuiteLevel]; - $this->testSuiteErrors[$this->testSuiteLevel - 1] += $this->testSuiteErrors[$this->testSuiteLevel]; - $this->testSuiteFailures[$this->testSuiteLevel - 1] += $this->testSuiteFailures[$this->testSuiteLevel]; - $this->testSuiteTimes[$this->testSuiteLevel - 1] += $this->testSuiteTimes[$this->testSuiteLevel]; - } - - $this->testSuiteLevel--; - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - if (!$test instanceof PHPUnit_Framework_Warning) { - $testCase = $this->document->createElement('testcase'); - $testCase->setAttribute('name', $test->getName()); - - if ($test instanceof PHPUnit_Framework_TestCase) { - $class = new ReflectionClass($test); - $methodName = $test->getName(); - - if ($class->hasMethod($methodName)) { - $method = $class->getMethod($test->getName()); - - $testCase->setAttribute('class', $class->getName()); - $testCase->setAttribute('file', $class->getFileName()); - $testCase->setAttribute('line', $method->getStartLine()); - } - } - - $this->currentTestCase = $testCase; - } - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if (!$test instanceof PHPUnit_Framework_Warning) { - if ($this->attachCurrentTestCase) { - if ($test instanceof PHPUnit_Framework_TestCase) { - $numAssertions = $test->getNumAssertions(); - $this->testSuiteAssertions[$this->testSuiteLevel] += $numAssertions; - - $this->currentTestCase->setAttribute( - 'assertions', $numAssertions - ); - } - - $this->currentTestCase->setAttribute( - 'time', sprintf('%F', $time) - ); - - $this->testSuites[$this->testSuiteLevel]->appendChild( - $this->currentTestCase - ); - - $this->testSuiteTests[$this->testSuiteLevel]++; - $this->testSuiteTimes[$this->testSuiteLevel] += $time; - } - } - - $this->attachCurrentTestCase = TRUE; - $this->currentTestCase = NULL; - } - - /** - * Returns the XML as a string. - * - * @return string - * @since Method available since Release 2.2.0 - */ - public function getXML() - { - return $this->document->saveXML(); - } - - /** - * Enables or disables the writing of the document - * in flush(). - * - * This is a "hack" needed for the integration of - * PHPUnit with Phing. - * - * @return string - * @since Method available since Release 2.2.0 - */ - public function setWriteDocument($flag) - { - if (is_bool($flag)) { - $this->writeDocument = $flag; - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php deleted file mode 100644 index bec52694..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php +++ /dev/null @@ -1,255 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -if (!class_exists('Symfony\\Component\\Yaml\\Dumper') && - stream_resolve_include_path('Symfony/Component/Yaml/Dumper.php')) { - require_once 'Symfony/Component/Yaml/Dumper.php'; -} - -/** - * A TestListener that generates a logfile of the - * test execution using the Test Anything Protocol (TAP). - * - * @package PHPUnit - * @subpackage Util_Log - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Log_TAP extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener -{ - /** - * @var integer - */ - protected $testNumber = 0; - - /** - * @var integer - */ - protected $testSuiteLevel = 0; - - /** - * @var boolean - */ - protected $testSuccessful = TRUE; - - /** - * Constructor. - * - * @param mixed $out - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.3.4 - */ - public function __construct($out = NULL) - { - parent::__construct($out); - $this->write("TAP version 13\n"); - } - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->writeNotOk($test, 'Error'); - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - $this->writeNotOk($test, 'Failure'); - - $message = explode( - "\n", PHPUnit_Framework_TestFailure::exceptionToString($e) - ); - - $diagnostic = array( - 'message' => $message[0], - 'severity' => 'fail' - ); - - if ($e instanceof PHPUnit_Framework_ExpectationFailedException) { - $cf = $e->getComparisonFailure(); - - if ($cf !== NULL) { - $diagnostic['data'] = array( - 'got' => $cf->getActual(), - 'expected' => $cf->getExpected() - ); - } - } - - $yaml = new Symfony\Component\Yaml\Dumper; - - $this->write( - sprintf( - " ---\n%s ...\n", - $yaml->dump($diagnostic, 2, 2) - ) - ); - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->writeNotOk($test, '', 'TODO Incomplete Test'); - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->write( - sprintf( - "ok %d - # SKIP%s\n", - - $this->testNumber, - $e->getMessage() != '' ? ' ' . $e->getMessage() : '' - ) - ); - - $this->testSuccessful = FALSE; - } - - /** - * A testsuite started. - * - * @param PHPUnit_Framework_TestSuite $suite - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $this->testSuiteLevel++; - } - - /** - * A testsuite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - $this->testSuiteLevel--; - - if ($this->testSuiteLevel == 0) { - $this->write(sprintf("1..%d\n", $this->testNumber)); - } - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - $this->testNumber++; - $this->testSuccessful = TRUE; - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if ($this->testSuccessful === TRUE) { - $this->write( - sprintf( - "ok %d - %s\n", - - $this->testNumber, - PHPUnit_Util_Test::describe($test) - ) - ); - } - } - - /** - * @param PHPUnit_Framework_Test $test - * @param string $prefix - * @param string $directive - */ - protected function writeNotOk(PHPUnit_Framework_Test $test, $prefix = '', $directive = '') - { - $this->write( - sprintf( - "not ok %d - %s%s%s\n", - - $this->testNumber, - $prefix != '' ? $prefix . ': ' : '', - PHPUnit_Util_Test::describe($test), - $directive != '' ? ' # ' . $directive : '' - ) - ); - - $this->testSuccessful = FALSE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP.php deleted file mode 100644 index 7c75cf15..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP.php +++ /dev/null @@ -1,332 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.4.0 - */ - -/** - * Utility methods for PHP sub-processes. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.4.0 - */ -abstract class PHPUnit_Util_PHP -{ - /** - * @var string $phpBinary - */ - protected $phpBinary; - - /** - * Returns the path to a PHP interpreter. - * - * PHPUnit_Util_PHP::$phpBinary contains the path to the PHP - * interpreter. - * - * When not set, the following assumptions will be made: - * - * 1. When PHPUnit is run using the CLI SAPI and the $_SERVER['_'] - * variable does not contain the string "PHPUnit", $_SERVER['_'] - * is assumed to contain the path to the current PHP interpreter - * and that will be used. - * - * 2. When PHPUnit is run using the CLI SAPI and the $_SERVER['_'] - * variable contains the string "PHPUnit", the file that $_SERVER['_'] - * points to is assumed to be the PHPUnit TextUI CLI wrapper script - * "phpunit" and the binary set up using #! on that file's first - * line of code is assumed to contain the path to the current PHP - * interpreter and that will be used. - * - * 3. When the PHP CLI/CGI binary configured with the PEAR Installer - * (php_bin configuration value) is readable, it will be used. - * - * 4. The current PHP interpreter is assumed to be in the $PATH and - * to be invokable through "php". - * - * @return string - */ - protected function getPhpBinary() - { - if ($this->phpBinary === NULL) { - if (defined("PHP_BINARY")) { - $this->phpBinary = PHP_BINARY; - } else if (PHP_SAPI == 'cli' && isset($_SERVER['_'])) { - if (strpos($_SERVER['_'], 'phpunit') !== FALSE) { - $file = file($_SERVER['_']); - - if (strpos($file[0], ' ') !== FALSE) { - $tmp = explode(' ', $file[0]); - $this->phpBinary = trim($tmp[1]); - } else { - $this->phpBinary = ltrim(trim($file[0]), '#!'); - } - } else if (strpos(basename($_SERVER['_']), 'php') !== FALSE) { - $this->phpBinary = $_SERVER['_']; - } - } - - if ($this->phpBinary === NULL) { - $possibleBinaryLocations = array( - PHP_BINDIR . '/php', - PHP_BINDIR . '/php-cli.exe', - PHP_BINDIR . '/php.exe', - '@php_bin@', - ); - foreach ($possibleBinaryLocations as $binary) { - if (is_readable($binary)) { - $this->phpBinary = $binary; - break; - } - } - } - - if (!is_readable($this->phpBinary)) { - $this->phpBinary = 'php'; - } else { - $this->phpBinary = escapeshellcmd($this->phpBinary); - } - } - - return $this->phpBinary; - } - - /** - * @return PHPUnit_Util_PHP - * @since Method available since Release 3.5.12 - */ - public static function factory() - { - if (DIRECTORY_SEPARATOR == '\\') { - return new PHPUnit_Util_PHP_Windows; - } - - return new PHPUnit_Util_PHP_Default; - } - - /** - * Runs a single job (PHP code) using a separate PHP process. - * - * @param string $job - * @param PHPUnit_Framework_TestCase $test - * @param PHPUnit_Framework_TestResult $result - * @return array|null - * @throws PHPUnit_Framework_Exception - */ - public function runJob($job, PHPUnit_Framework_Test $test = NULL, PHPUnit_Framework_TestResult $result = NULL) - { - $process = proc_open( - $this->getPhpBinary(), - array( - 0 => array('pipe', 'r'), - 1 => array('pipe', 'w'), - 2 => array('pipe', 'w') - ), - $pipes - ); - - if (!is_resource($process)) { - throw new PHPUnit_Framework_Exception( - 'Unable to create process for process isolation.' - ); - } - - if ($result !== NULL) { - $result->startTest($test); - } - - $this->process($pipes[0], $job); - fclose($pipes[0]); - - $stdout = stream_get_contents($pipes[1]); - fclose($pipes[1]); - - $stderr = stream_get_contents($pipes[2]); - fclose($pipes[2]); - - proc_close($process); - $this->cleanup(); - - if ($result !== NULL) { - $this->processChildResult($test, $result, $stdout, $stderr); - } else { - return array('stdout' => $stdout, 'stderr' => $stderr); - } - } - - /** - * @param resource $pipe - * @param string $job - * @since Method available since Release 3.5.12 - */ - abstract protected function process($pipe, $job); - - /** - * @since Method available since Release 3.5.12 - */ - protected function cleanup() - { - } - - /** - * Processes the TestResult object from an isolated process. - * - * @param PHPUnit_Framework_TestCase $test - * @param PHPUnit_Framework_TestResult $result - * @param string $stdout - * @param string $stderr - * @since Method available since Release 3.5.0 - */ - protected function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr) - { - if (!empty($stderr)) { - $time = 0; - $result->addError( - $test, - new PHPUnit_Framework_Exception(trim($stderr)), $time - ); - } else { - set_error_handler(function($errno, $errstr, $errfile, $errline) { - throw new ErrorException($errstr, $errno, $errno, $errfile, $errline); - }); - try { - $childResult = unserialize($stdout); - restore_error_handler(); - } catch (ErrorException $e) { - restore_error_handler(); - $childResult = FALSE; - - $time = 0; - $result->addError( - $test, new PHPUnit_Framework_Exception(trim($stdout), 0, $e), $time - ); - } - - if ($childResult !== FALSE) { - if (!empty($childResult['output'])) { - print $childResult['output']; - } - - $test->setResult($childResult['testResult']); - $test->addToAssertionCount($childResult['numAssertions']); - - $childResult = $childResult['result']; - - if ($result->getCollectCodeCoverageInformation()) { - $result->getCodeCoverage()->merge( - $childResult->getCodeCoverage() - ); - } - - $time = $childResult->time(); - $notImplemented = $childResult->notImplemented(); - $skipped = $childResult->skipped(); - $errors = $childResult->errors(); - $failures = $childResult->failures(); - - if (!empty($notImplemented)) { - $result->addError( - $test, $this->getException($notImplemented[0]), $time - ); - } - - else if (!empty($skipped)) { - $result->addError( - $test, $this->getException($skipped[0]), $time - ); - } - - else if (!empty($errors)) { - $result->addError( - $test, $this->getException($errors[0]), $time - ); - } - - else if (!empty($failures)) { - $result->addFailure( - $test, $this->getException($failures[0]), $time - ); - } - } - } - - $result->endTest($test, $time); - } - - /** - * Gets the thrown exception from a PHPUnit_Framework_TestFailure. - * - * @param PHPUnit_Framework_TestFailure $error - * @since Method available since Release 3.6.0 - * @see https://github.com/sebastianbergmann/phpunit/issues/74 - */ - protected function getException(PHPUnit_Framework_TestFailure $error) - { - $exception = $error->thrownException(); - - if ($exception instanceof __PHP_Incomplete_Class) { - $exceptionArray = array(); - foreach ((array)$exception as $key => $value) { - $key = substr($key, strrpos($key, "\0") + 1); - $exceptionArray[$key] = $value; - } - - $exception = new PHPUnit_Framework_SyntheticError( - sprintf( - '%s: %s', - $exceptionArray['_PHP_Incomplete_Class_Name'], - $exceptionArray['message'] - ), - $exceptionArray['code'], - $exceptionArray['file'], - $exceptionArray['line'], - $exceptionArray['trace'] - ); - } - - return $exception; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Default.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Default.php deleted file mode 100644 index f6b08aa6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Default.php +++ /dev/null @@ -1,67 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.12 - */ - -/** - * Default utility for PHP sub-processes. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.12 - */ -class PHPUnit_Util_PHP_Default extends PHPUnit_Util_PHP -{ - /** - * @param resource $pipe - * @since Method available since Release 3.5.12 - */ - protected function process($pipe, $job) - { - fwrite($pipe, $job); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php deleted file mode 100644 index d682b890..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/PHP/Windows.php +++ /dev/null @@ -1,90 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.12 - */ - -/** - * Windows utility for PHP sub-processes. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.12 - */ -class PHPUnit_Util_PHP_Windows extends PHPUnit_Util_PHP -{ - /** - * @var string - */ - protected $tempFile; - - /** - * @param resource $pipe - * @since Method available since Release 3.5.12 - */ - protected function process($pipe, $job) - { - if (!($this->tempFile = tempnam(sys_get_temp_dir(), 'PHPUnit')) || - file_put_contents($this->tempFile, $job) === FALSE) { - throw new PHPUnit_Framework_Exception( - 'Unable to write temporary files for process isolation.' - ); - } - - fwrite( - $pipe, - "tempFile, TRUE) . "; ?>" - ); - } - - /** - * @since Method available since Release 3.5.12 - */ - protected function cleanup() - { - unlink($this->tempFile); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Printer.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Printer.php deleted file mode 100644 index e59c2ce9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Printer.php +++ /dev/null @@ -1,208 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -/** - * Utility class that can print to STDOUT or write to a file. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class PHPUnit_Util_Printer -{ - /** - * If TRUE, flush output after every write. - * - * @var boolean - */ - protected $autoFlush = FALSE; - - /** - * @var resource - */ - protected $out; - - /** - * @var string - */ - protected $outTarget; - - /** - * @var boolean - */ - protected $printsHTML = FALSE; - - /** - * Constructor. - * - * @param mixed $out - * @throws PHPUnit_Framework_Exception - */ - public function __construct($out = NULL) - { - if ($out !== NULL) { - if (is_string($out)) { - if (strpos($out, 'socket://') === 0) { - $out = explode(':', str_replace('socket://', '', $out)); - - if (sizeof($out) != 2) { - throw new PHPUnit_Framework_Exception; - } - - $this->out = fsockopen($out[0], $out[1]); - } else { - if (strpos($out, 'php://') === FALSE && - !is_dir(dirname($out))) { - mkdir(dirname($out), 0777, TRUE); - } - - $this->out = fopen($out, 'wt'); - } - - $this->outTarget = $out; - } else { - $this->out = $out; - } - } - } - - /** - * Flush buffer, optionally tidy up HTML, and close output if it's not to a php stream - */ - public function flush() - { - if ($this->out && strncmp($this->outTarget, 'php://', 6) !== 0) { - fclose($this->out); - } - - if ($this->printsHTML === TRUE && - $this->outTarget !== NULL && - strpos($this->outTarget, 'php://') !== 0 && - strpos($this->outTarget, 'socket://') !== 0 && - extension_loaded('tidy')) { - file_put_contents( - $this->outTarget, - tidy_repair_file( - $this->outTarget, array('indent' => TRUE, 'wrap' => 0), 'utf8' - ) - ); - } - } - - /** - * Performs a safe, incremental flush. - * - * Do not confuse this function with the flush() function of this class, - * since the flush() function may close the file being written to, rendering - * the current object no longer usable. - * - * @since Method available since Release 3.3.0 - */ - public function incrementalFlush() - { - if ($this->out) { - fflush($this->out); - } else { - flush(); - } - } - - /** - * @param string $buffer - */ - public function write($buffer) - { - if ($this->out) { - fwrite($this->out, $buffer); - - if ($this->autoFlush) { - $this->incrementalFlush(); - } - } else { - if (PHP_SAPI != 'cli') { - $buffer = htmlspecialchars($buffer); - } - - print $buffer; - - if ($this->autoFlush) { - $this->incrementalFlush(); - } - } - } - - /** - * Check auto-flush mode. - * - * @return boolean - * @since Method available since Release 3.3.0 - */ - public function getAutoFlush() - { - return $this->autoFlush; - } - - /** - * Set auto-flushing mode. - * - * If set, *incremental* flushes will be done after each write. This should - * not be confused with the different effects of this class' flush() method. - * - * @param boolean $autoFlush - * @since Method available since Release 3.3.0 - */ - public function setAutoFlush($autoFlush) - { - if (is_bool($autoFlush)) { - $this->autoFlush = $autoFlush; - } else { - throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean'); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/String.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/String.php deleted file mode 100644 index c442fdd2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/String.php +++ /dev/null @@ -1,118 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * String helpers. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class PHPUnit_Util_String -{ - /** - * Converts a string to UTF-8 encoding. - * - * @param string $string - * @return string - */ - public static function convertToUtf8($string) - { - if (!self::isUtf8($string)) { - if (function_exists('mb_convert_encoding')) { - $string = mb_convert_encoding($string, 'UTF-8'); - } else { - $string = utf8_encode($string); - } - } - - return $string; - } - - /** - * Checks a string for UTF-8 encoding. - * - * @param string $string - * @return boolean - */ - protected static function isUtf8($string) - { - $length = strlen($string); - - for ($i = 0; $i < $length; $i++) { - if (ord($string[$i]) < 0x80) { - $n = 0; - } - - else if ((ord($string[$i]) & 0xE0) == 0xC0) { - $n = 1; - } - - else if ((ord($string[$i]) & 0xF0) == 0xE0) { - $n = 2; - } - - else if ((ord($string[$i]) & 0xF0) == 0xF0) { - $n = 3; - } - - else { - return FALSE; - } - - for ($j = 0; $j < $n; $j++) { - if ((++$i == $length) || ((ord($string[$i]) & 0xC0) != 0x80)) { - return FALSE; - } - } - } - - return TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Test.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Test.php deleted file mode 100644 index ea11d2d0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Test.php +++ /dev/null @@ -1,601 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Test helpers. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Test -{ - const REGEX_DATA_PROVIDER = '/@dataProvider\s+([a-zA-Z0-9._:-\\\\x7f-\xff]+)/'; - const REGEX_EXPECTED_EXCEPTION = '(@expectedException\s+([:.\w\\\\x7f-\xff]+)(?:[\t ]+(\S*))?(?:[\t ]+(\S*))?\s*$)m'; - const REGEX_REQUIRES_VERSION = '/@requires\s+(?PPHP(?:Unit)?)\s+(?P[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'; - const REGEX_REQUIRES = '/@requires\s+(?Pfunction|extension)\s(?P([^ ]+))\r?$/m'; - - const SMALL = 0; - const MEDIUM = 1; - const LARGE = 2; - - private static $annotationCache = array(); - - protected static $templateMethods = array( - 'setUp', 'assertPreConditions', 'assertPostConditions', 'tearDown' - ); - - /** - * @param PHPUnit_Framework_Test $test - * @param boolean $asString - * @return mixed - */ - public static function describe(PHPUnit_Framework_Test $test, $asString = TRUE) - { - if ($asString) { - if ($test instanceof PHPUnit_Framework_SelfDescribing) { - return $test->toString(); - } else { - return get_class($test); - } - } else { - if ($test instanceof PHPUnit_Framework_TestCase) { - return array( - get_class($test), $test->getName() - ); - } - - else if ($test instanceof PHPUnit_Framework_SelfDescribing) { - return array('', $test->toString()); - } - - else { - return array('', get_class($test)); - } - } - } - - /** - * Returns the requirements for a test. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.6.0 - */ - public static function getRequirements($className, $methodName) - { - $reflector = new ReflectionClass($className); - $docComment = $reflector->getDocComment(); - $reflector = new ReflectionMethod($className, $methodName); - $docComment .= "\n" . $reflector->getDocComment(); - $requires = array(); - - if ($count = preg_match_all(self::REGEX_REQUIRES_VERSION, $docComment, $matches)) { - for ($i = 0; $i < $count; $i++) { - $requires[$matches['name'][$i]] = $matches['value'][$i]; - } - } - if ($count = preg_match_all(self::REGEX_REQUIRES, $docComment, $matches)) { - for ($i = 0; $i < $count; $i++) { - $name = $matches['name'][$i] . 's'; - if (!isset($requires[$name])) { - $requires[$name] = array(); - } - $requires[$name][] = $matches['value'][$i]; - } - } - - return $requires; - } - - /** - * Returns the expected exception for a test. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.3.6 - */ - public static function getExpectedException($className, $methodName) - { - $reflector = new ReflectionMethod($className, $methodName); - $docComment = $reflector->getDocComment(); - - if (preg_match(self::REGEX_EXPECTED_EXCEPTION, $docComment, $matches)) { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - $class = $matches[1]; - $code = NULL; - $message = ''; - - if (isset($matches[2])) { - $message = trim($matches[2]); - } - - else if (isset($annotations['method']['expectedExceptionMessage'])) { - $message = self::_parseAnnotationContent( - $annotations['method']['expectedExceptionMessage'][0] - ); - } - - if (isset($matches[3])) { - $code = $matches[3]; - } - - else if (isset($annotations['method']['expectedExceptionCode'])) { - $code = self::_parseAnnotationContent( - $annotations['method']['expectedExceptionCode'][0] - ); - } - - if (is_numeric($code)) { - $code = (int)$code; - } - - else if (is_string($code) && defined($code)) { - $code = (int)constant($code); - } - - return array( - 'class' => $class, 'code' => $code, 'message' => $message - ); - } - - return FALSE; - } - - /** - * Parse annotation content to use constant/class constant values - * - * Constants are specified using a starting '@'. For example: @ClassName::CONST_NAME - * - * If the constant is not found the string is used as is to ensure maximum BC. - * - * @param string $message - * @return string - */ - protected static function _parseAnnotationContent($message) - { - if (strpos($message, '::') !== FALSE && count(explode('::', $message) == 2)) { - if (defined($message)) { - $message = constant($message); - } - } - return $message; - } - - /** - * Returns the provided data for a method. - * - * @param string $className - * @param string $methodName - * @param string $docComment - * @return mixed array|Iterator when a data provider is specified and exists - * false when a data provider is specified and does not exist - * null when no data provider is specified - * @since Method available since Release 3.2.0 - */ - public static function getProvidedData($className, $methodName) - { - $reflector = new ReflectionMethod($className, $methodName); - $docComment = $reflector->getDocComment(); - $data = NULL; - - if (preg_match(self::REGEX_DATA_PROVIDER, $docComment, $matches)) { - $dataProviderMethodNameNamespace = explode('\\', $matches[1]); - $leaf = explode('::', array_pop($dataProviderMethodNameNamespace)); - $dataProviderMethodName = array_pop($leaf); - - if (!empty($dataProviderMethodNameNamespace)) { - $dataProviderMethodNameNamespace = join('\\', $dataProviderMethodNameNamespace) . '\\'; - } else { - $dataProviderMethodNameNamespace = ''; - } - - if (!empty($leaf)) { - $dataProviderClassName = $dataProviderMethodNameNamespace . array_pop($leaf); - } else { - $dataProviderClassName = $className; - } - - $dataProviderClass = new ReflectionClass($dataProviderClassName); - $dataProviderMethod = $dataProviderClass->getMethod( - $dataProviderMethodName - ); - - if ($dataProviderMethod->isStatic()) { - $object = NULL; - } else { - $object = $dataProviderClass->newInstance(); - } - - if ($dataProviderMethod->getNumberOfParameters() == 0) { - $data = $dataProviderMethod->invoke($object); - } else { - $data = $dataProviderMethod->invoke($object, $methodName); - } - } - - if ($data !== NULL) { - foreach ($data as $key => $value) { - if (!is_array($value)) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Data set %s is invalid.', - is_int($key) ? '#' . $key : '"' . $key . '"' - ) - ); - } - } - } - - return $data; - } - - /** - * @param string $className - * @param string $methodName - * @return array - * @throws ReflectionException - * @since Method available since Release 3.4.0 - */ - public static function parseTestMethodAnnotations($className, $methodName = '') - { - if (!isset(self::$annotationCache[$className])) { - $class = new ReflectionClass($className); - self::$annotationCache[$className] = self::parseAnnotations($class->getDocComment()); - } - - if (!empty($methodName) && !isset(self::$annotationCache[$className . '::' . $methodName])) { - try { - $method = new ReflectionMethod($className, $methodName); - $annotations = self::parseAnnotations($method->getDocComment()); - } catch (ReflectionException $e) { - $annotations = array(); - } - self::$annotationCache[$className . '::' . $methodName] = $annotations; - } - - return array( - 'class' => self::$annotationCache[$className], - 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : array() - ); - } - - /** - * @param string $docblock - * @return array - * @since Method available since Release 3.4.0 - */ - private static function parseAnnotations($docblock) - { - $annotations = array(); - // Strip away the docblock header and footer to ease parsing of one line annotations - $docblock = substr($docblock, 3, -2); - - if (preg_match_all('/@(?P[A-Za-z_-]+)(?:[ \t]+(?P.*?))?[ \t]*\r?$/m', $docblock, $matches)) { - $numMatches = count($matches[0]); - - for ($i = 0; $i < $numMatches; ++$i) { - $annotations[$matches['name'][$i]][] = $matches['value'][$i]; - } - } - - return $annotations; - } - - /** - * Returns the backup settings for a test. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.4.0 - */ - public static function getBackupSettings($className, $methodName) - { - return array( - 'backupGlobals' => self::getBooleanAnnotationSetting( - $className, $methodName, 'backupGlobals' - ), - 'backupStaticAttributes' => self::getBooleanAnnotationSetting( - $className, $methodName, 'backupStaticAttributes' - ) - ); - } - - /** - * Returns the dependencies for a test class or method. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.4.0 - */ - public static function getDependencies($className, $methodName) - { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - $dependencies = array(); - - if (isset($annotations['class']['depends'])) { - $dependencies = $annotations['class']['depends']; - } - - if (isset($annotations['method']['depends'])) { - $dependencies = array_merge( - $dependencies, $annotations['method']['depends'] - ); - } - - return array_unique($dependencies); - } - - /** - * Returns the error handler settings for a test. - * - * @param string $className - * @param string $methodName - * @return boolean - * @since Method available since Release 3.4.0 - */ - public static function getErrorHandlerSettings($className, $methodName) - { - return self::getBooleanAnnotationSetting( - $className, $methodName, 'errorHandler' - ); - } - - /** - * Returns the groups for a test class or method. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.2.0 - */ - public static function getGroups($className, $methodName = '') - { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - $groups = array(); - - if (isset($annotations['method']['author'])) { - $groups = $annotations['method']['author']; - } - - else if (isset($annotations['class']['author'])) { - $groups = $annotations['class']['author']; - } - - if (isset($annotations['class']['group'])) { - $groups = array_merge($groups, $annotations['class']['group']); - } - - if (isset($annotations['method']['group'])) { - $groups = array_merge($groups, $annotations['method']['group']); - } - - if (isset($annotations['class']['ticket'])) { - $groups = array_merge($groups, $annotations['class']['ticket']); - } - - if (isset($annotations['method']['ticket'])) { - $groups = array_merge($groups, $annotations['method']['ticket']); - } - - foreach (array('small', 'medium', 'large') as $size) { - if (isset($annotations['method'][$size])) { - $groups[] = $size; - } - - else if (isset($annotations['class'][$size])) { - $groups[] = $size; - } - } - - return array_unique($groups); - } - - /** - * Returns the size of the test. - * - * @param string $className - * @param string $methodName - * @return integer - * @since Method available since Release 3.6.0 - */ - public static function getSize($className, $methodName) - { - $groups = array_flip(self::getGroups($className, $methodName)); - $size = self::SMALL; - $class = new ReflectionClass($className); - - if ((class_exists('PHPUnit_Extensions_Database_TestCase', FALSE) && - $class->isSubclassOf('PHPUnit_Extensions_Database_TestCase')) || - (class_exists('PHPUnit_Extensions_SeleniumTestCase', FALSE) && - $class->isSubclassOf('PHPUnit_Extensions_SeleniumTestCase'))) { - $size = self::LARGE; - } - - else if (isset($groups['medium'])) { - $size = self::MEDIUM; - } - - else if (isset($groups['large'])) { - $size = self::LARGE; - } - - return $size; - } - - /** - * Returns the tickets for a test class or method. - * - * @param string $className - * @param string $methodName - * @return array - * @since Method available since Release 3.4.0 - */ - public static function getTickets($className, $methodName) - { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - $tickets = array(); - - if (isset($annotations['class']['ticket'])) { - $tickets = $annotations['class']['ticket']; - } - - if (isset($annotations['method']['ticket'])) { - $tickets = array_merge($tickets, $annotations['method']['ticket']); - } - - return array_unique($tickets); - } - - /** - * Returns the output buffering settings for a test. - * - * @param string $className - * @param string $methodName - * @return boolean - * @since Method available since Release 3.4.0 - */ - public static function getOutputBufferingSettings($className, $methodName) - { - return self::getBooleanAnnotationSetting( - $className, $methodName, 'outputBuffering' - ); - } - - /** - * Returns the process isolation settings for a test. - * - * @param string $className - * @param string $methodName - * @return boolean - * @since Method available since Release 3.4.1 - */ - public static function getProcessIsolationSettings($className, $methodName) - { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - if (isset($annotations['class']['runTestsInSeparateProcesses']) || - isset($annotations['method']['runInSeparateProcess'])) { - return TRUE; - } else { - return FALSE; - } - } - - /** - * Returns the preserve global state settings for a test. - * - * @param string $className - * @param string $methodName - * @return boolean - * @since Method available since Release 3.4.0 - */ - public static function getPreserveGlobalStateSettings($className, $methodName) - { - return self::getBooleanAnnotationSetting( - $className, $methodName, 'preserveGlobalState' - ); - } - - /** - * @param string $className - * @param string $methodName - * @param string $settingName - * @return boolean - * @since Method available since Release 3.4.0 - */ - private static function getBooleanAnnotationSetting($className, $methodName, $settingName) - { - $annotations = self::parseTestMethodAnnotations( - $className, $methodName - ); - - $result = NULL; - - if (isset($annotations['class'][$settingName])) { - if ($annotations['class'][$settingName][0] == 'enabled') { - $result = TRUE; - } - - else if ($annotations['class'][$settingName][0] == 'disabled') { - $result = FALSE; - } - } - - if (isset($annotations['method'][$settingName])) { - if ($annotations['method'][$settingName][0] == 'enabled') { - $result = TRUE; - } - - else if ($annotations['method'][$settingName][0] == 'disabled') { - $result = FALSE; - } - } - - return $result; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/NamePrettifier.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/NamePrettifier.php deleted file mode 100644 index 37ae2b42..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/NamePrettifier.php +++ /dev/null @@ -1,177 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * Prettifies class and method names for use in TestDox documentation. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -class PHPUnit_Util_TestDox_NamePrettifier -{ - /** - * @var string - */ - protected $prefix = 'Test'; - - /** - * @var string - */ - protected $suffix = 'Test'; - - /** - * @var array - */ - protected $strings = array(); - - /** - * Prettifies the name of a test class. - * - * @param string $name - * @return string - */ - public function prettifyTestClass($name) - { - $title = $name; - - if ($this->suffix !== NULL && - $this->suffix == substr($name, -1 * strlen($this->suffix))) { - $title = substr($title, 0, strripos($title, $this->suffix)); - } - - if ($this->prefix !== NULL && - $this->prefix == substr($name, 0, strlen($this->prefix))) { - $title = substr($title, strlen($this->prefix)); - } - - return $title; - } - - /** - * Prettifies the name of a test method. - * - * @param string $name - * @return string - */ - public function prettifyTestMethod($name) - { - $buffer = ''; - - if (!is_string($name) || strlen($name) == 0) { - return $buffer; - } - - $string = preg_replace('#\d+$#', '', $name, -1, $count); - - if (in_array($string, $this->strings)) { - $name = $string; - } else if ($count == 0) { - $this->strings[] = $string; - } - - if (strpos($name, '_') !== FALSE) { - return str_replace('_', ' ', $name); - } - - $max = strlen($name); - - if (substr($name, 0, 4) == 'test') { - $offset = 4; - } else { - $offset = 0; - $name[0] = strtoupper($name[0]); - } - - $wasNumeric = FALSE; - - for ($i = $offset; $i < $max; $i++) { - if ($i > $offset && - ord($name[$i]) >= 65 && - ord($name[$i]) <= 90) { - $buffer .= ' ' . strtolower($name[$i]); - } else { - $isNumeric = is_numeric($name[$i]); - - if (!$wasNumeric && $isNumeric) { - $buffer .= ' '; - $wasNumeric = TRUE; - } - - if ($wasNumeric && !$isNumeric) { - $wasNumeric = FALSE; - } - - $buffer .= $name[$i]; - } - } - - return $buffer; - } - - /** - * Sets the prefix of test names. - * - * @param string $prefix - */ - public function setPrefix($prefix) - { - $this->prefix = $prefix; - } - - /** - * Sets the suffix of test names. - * - * @param string $prefix - */ - public function setSuffix($suffix) - { - $this->suffix = $suffix; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php deleted file mode 100644 index 6a47c224..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter.php +++ /dev/null @@ -1,347 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * Base class for printers of TestDox documentation. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -abstract class PHPUnit_Util_TestDox_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener -{ - /** - * @var PHPUnit_Util_TestDox_NamePrettifier - */ - protected $prettifier; - - /** - * @var string - */ - protected $testClass = ''; - - /** - * @var integer - */ - protected $testStatus = FALSE; - - /** - * @var array - */ - protected $tests = array(); - - /** - * @var integer - */ - protected $successful = 0; - - /** - * @var integer - */ - protected $failed = 0; - - /** - * @var integer - */ - protected $skipped = 0; - - /** - * @var integer - */ - protected $incomplete = 0; - - /** - * @var string - */ - protected $testTypeOfInterest = 'PHPUnit_Framework_TestCase'; - - /** - * @var string - */ - protected $currentTestClassPrettified; - - /** - * @var string - */ - protected $currentTestMethodPrettified; - - /** - * Constructor. - * - * @param resource $out - */ - public function __construct($out = NULL) - { - parent::__construct($out); - - $this->prettifier = new PHPUnit_Util_TestDox_NamePrettifier; - $this->startRun(); - } - - /** - * Flush buffer and close output. - * - */ - public function flush() - { - $this->doEndClass(); - $this->endRun(); - - parent::flush(); - } - - /** - * An error occurred. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($test instanceof $this->testTypeOfInterest) { - $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_ERROR; - $this->failed++; - } - } - - /** - * A failure occurred. - * - * @param PHPUnit_Framework_Test $test - * @param PHPUnit_Framework_AssertionFailedError $e - * @param float $time - */ - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - if ($test instanceof $this->testTypeOfInterest) { - $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE; - $this->failed++; - } - } - - /** - * Incomplete test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - */ - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($test instanceof $this->testTypeOfInterest) { - $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE; - $this->incomplete++; - } - } - - /** - * Skipped test. - * - * @param PHPUnit_Framework_Test $test - * @param Exception $e - * @param float $time - * @since Method available since Release 3.0.0 - */ - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - if ($test instanceof $this->testTypeOfInterest) { - $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED; - $this->skipped++; - } - } - - /** - * A testsuite started. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A testsuite ended. - * - * @param PHPUnit_Framework_TestSuite $suite - * @since Method available since Release 2.2.0 - */ - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - /** - * A test started. - * - * @param PHPUnit_Framework_Test $test - */ - public function startTest(PHPUnit_Framework_Test $test) - { - if ($test instanceof $this->testTypeOfInterest) { - $class = get_class($test); - - if ($this->testClass != $class) { - if ($this->testClass != '') { - $this->doEndClass(); - } - - $this->currentTestClassPrettified = $this->prettifier->prettifyTestClass($class); - $this->startClass($class); - - $this->testClass = $class; - $this->tests = array(); - } - - $prettified = FALSE; - - if ($test instanceof PHPUnit_Framework_TestCase && - !$test instanceof PHPUnit_Framework_Warning) { - $annotations = $test->getAnnotations(); - - if (isset($annotations['method']['testdox'][0])) { - $this->currentTestMethodPrettified = $annotations['method']['testdox'][0]; - $prettified = TRUE; - } - } - - if (!$prettified) { - $this->currentTestMethodPrettified = $this->prettifier->prettifyTestMethod($test->getName(FALSE)); - } - - $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED; - } - } - - /** - * A test ended. - * - * @param PHPUnit_Framework_Test $test - * @param float $time - */ - public function endTest(PHPUnit_Framework_Test $test, $time) - { - if ($test instanceof $this->testTypeOfInterest) { - if (!isset($this->tests[$this->currentTestMethodPrettified])) { - if ($this->testStatus == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) { - $this->tests[$this->currentTestMethodPrettified]['success'] = 1; - $this->tests[$this->currentTestMethodPrettified]['failure'] = 0; - } else { - $this->tests[$this->currentTestMethodPrettified]['success'] = 0; - $this->tests[$this->currentTestMethodPrettified]['failure'] = 1; - } - } else { - if ($this->testStatus == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) { - $this->tests[$this->currentTestMethodPrettified]['success']++; - } else { - $this->tests[$this->currentTestMethodPrettified]['failure']++; - } - } - - $this->currentTestClassPrettified = NULL; - $this->currentTestMethodPrettified = NULL; - } - } - - /** - * @since Method available since Release 2.3.0 - */ - protected function doEndClass() - { - foreach ($this->tests as $name => $data) { - $this->onTest($name, $data['failure'] == 0); - } - - $this->endClass($this->testClass); - } - - /** - * Handler for 'start run' event. - * - */ - protected function startRun() - { - } - - /** - * Handler for 'start class' event. - * - * @param string $name - */ - protected function startClass($name) - { - } - - /** - * Handler for 'on test' event. - * - * @param string $name - * @param boolean $success - */ - protected function onTest($name, $success = TRUE) - { - } - - /** - * Handler for 'end class' event. - * - * @param string $name - */ - protected function endClass($name) - { - } - - /** - * Handler for 'end run' event. - * - */ - protected function endRun() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/HTML.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/HTML.php deleted file mode 100644 index 5c9d6d0f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/HTML.php +++ /dev/null @@ -1,123 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * Prints TestDox documentation in HTML format. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -class PHPUnit_Util_TestDox_ResultPrinter_HTML extends PHPUnit_Util_TestDox_ResultPrinter -{ - /** - * @var boolean - */ - protected $printsHTML = TRUE; - - /** - * Handler for 'start run' event. - * - */ - protected function startRun() - { - $this->write(''); - } - - /** - * Handler for 'start class' event. - * - * @param string $name - */ - protected function startClass($name) - { - $this->write( - '

    ' . $this->currentTestClassPrettified . - '

      ' - ); - } - - /** - * Handler for 'on test' event. - * - * @param string $name - * @param boolean $success - */ - protected function onTest($name, $success = TRUE) - { - if (!$success) { - $strikeOpen = ''; - $strikeClose = ''; - } else { - $strikeOpen = ''; - $strikeClose = ''; - } - - $this->write('
    • ' . $strikeOpen . $name . $strikeClose . '
    • '); - } - - /** - * Handler for 'end class' event. - * - * @param string $name - */ - protected function endClass($name) - { - $this->write('
    '); - } - - /** - * Handler for 'end run' event. - * - */ - protected function endRun() - { - $this->write(''); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php deleted file mode 100644 index 88868ddb..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php +++ /dev/null @@ -1,95 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * Prints TestDox documentation in text format. - * - * @package PHPUnit - * @subpackage Util_TestDox - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -class PHPUnit_Util_TestDox_ResultPrinter_Text extends PHPUnit_Util_TestDox_ResultPrinter -{ - /** - * Handler for 'start class' event. - * - * @param string $name - */ - protected function startClass($name) - { - $this->write($this->currentTestClassPrettified . "\n"); - } - - /** - * Handler for 'on test' event. - * - * @param string $name - * @param boolean $success - */ - protected function onTest($name, $success = TRUE) - { - if ($success) { - $this->write(' [x] '); - } else { - $this->write(' [ ] '); - } - - $this->write($name . "\n"); - } - - /** - * Handler for 'end class' event. - * - * @param string $name - */ - protected function endClass($name) - { - $this->write("\n"); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestSuiteIterator.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestSuiteIterator.php deleted file mode 100644 index 1407f7fc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/TestSuiteIterator.php +++ /dev/null @@ -1,148 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.1.0 - */ - -/** - * Iterator for test suites. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.1.0 - */ -class PHPUnit_Util_TestSuiteIterator implements RecursiveIterator -{ - /** - * @var integer - */ - protected $position; - - /** - * @var PHPUnit_Framework_Test[] - */ - protected $tests; - - /** - * Constructor. - * - * @param PHPUnit_Framework_TestSuite $suite - */ - public function __construct(PHPUnit_Framework_TestSuite $testSuite) - { - $this->tests = $testSuite->tests(); - } - - /** - * Rewinds the Iterator to the first element. - * - */ - public function rewind() - { - $this->position = 0; - } - - /** - * Checks if there is a current element after calls to rewind() or next(). - * - * @return boolean - */ - public function valid() - { - return $this->position < count($this->tests); - } - - /** - * Returns the key of the current element. - * - * @return integer - */ - public function key() - { - return $this->position; - } - - /** - * Returns the current element. - * - * @return PHPUnit_Framework_Test - */ - public function current() - { - return $this->valid() ? $this->tests[$this->position] : NULL; - } - - /** - * Moves forward to next element. - * - */ - public function next() - { - $this->position++; - } - - /** - * Returns the sub iterator for the current element. - * - * @return PHPUnit_Util_TestSuiteIterator - */ - public function getChildren() - { - return new PHPUnit_Util_TestSuiteIterator( - $this->tests[$this->position] - ); - } - - /** - * Checks whether the current element has children. - * - * @return boolean - */ - public function hasChildren() - { - return $this->tests[$this->position] instanceof PHPUnit_Framework_TestSuite; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Type.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Type.php deleted file mode 100644 index 9da081f0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/Type.php +++ /dev/null @@ -1,303 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -/** - * Utility class for textual type (and value) representation. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class PHPUnit_Util_Type -{ - public static function isType($type) - { - return in_array( - $type, - array( - 'numeric', - 'integer', - 'int', - 'float', - 'string', - 'boolean', - 'bool', - 'null', - 'array', - 'object', - 'resource', - 'scalar' - ) - ); - } - - /** - * Exports a value into a string - * - * The output of this method is similar to the output of print_r(), but - * improved in various aspects: - * - * - NULL is rendered as "null" (instead of "") - * - TRUE is rendered as "true" (instead of "1") - * - FALSE is rendered as "false" (instead of "") - * - Strings are always quoted with single quotes - * - Carriage returns and newlines are normalized to \n - * - Recursion and repeated rendering is treated properly - * - * @param mixed $value The value to export - * @param integer $indentation The indentation level of the 2nd+ line - * @return string - * @since Method available since Release 3.6.0 - */ - public static function export($value, $indentation = 0) - { - return self::recursiveExport($value, $indentation); - } - - /** - * Recursive implementation of export - * - * @param mixed $value The value to export - * @param integer $indentation The indentation level of the 2nd+ line - * @param array $processedObjects Contains all objects that were already - * rendered - * @return string - * @since Method available since Release 3.6.0 - * @see PHPUnit_Util_Type::export - */ - protected static function recursiveExport($value, $indentation, &$processedObjects = array()) - { - if ($value === NULL) { - return 'null'; - } - - if ($value === TRUE) { - return 'true'; - } - - if ($value === FALSE) { - return 'false'; - } - - if (is_string($value)) { - // Match for most non printable chars somewhat taking multibyte chars into account - if (preg_match('/[^\x09-\x0d\x20-\xff]/', $value)) { - return 'Binary String: 0x' . bin2hex($value); - } - - return "'" . - str_replace(array("\r\n", "\n\r", "\r"), array("\n", "\n", "\n"), $value) . - "'"; - } - - $origValue = $value; - - if (is_object($value)) { - if (in_array($value, $processedObjects, TRUE)) { - return sprintf( - '%s Object (*RECURSION*)', - - get_class($value) - ); - } - - $processedObjects[] = $value; - - // Convert object to array - $value = self::toArray($value); - } - - if (is_array($value)) { - $whitespace = str_repeat(' ', $indentation); - - // There seems to be no other way to check arrays for recursion - // http://www.php.net/manual/en/language.types.array.php#73936 - preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches); - $recursiveKeys = array_unique($matches[1]); - - // Convert to valid array keys - // Numeric integer strings are automatically converted to integers - // by PHP - foreach ($recursiveKeys as $key => $recursiveKey) { - if ((string)(integer)$recursiveKey === $recursiveKey) { - $recursiveKeys[$key] = (integer)$recursiveKey; - } - } - - $content = ''; - - foreach ($value as $key => $val) { - if (in_array($key, $recursiveKeys, TRUE)) { - $val = 'Array (*RECURSION*)'; - } - - else { - $val = self::recursiveExport($val, $indentation+1, $processedObjects); - } - - $content .= $whitespace . ' ' . self::export($key) . ' => ' . $val . "\n"; - } - - if (strlen($content) > 0) { - $content = "\n" . $content . $whitespace; - } - - return sprintf( - "%s (%s)", - - is_object($origValue) ? get_class($origValue) . ' Object' : 'Array', - $content - ); - } - - if (is_double($value) && (double)(integer)$value === $value) { - return $value . '.0'; - } - - return (string)$value; - } - - /** - * Exports a value into a single-line string - * - * The output of this method is similar to the output of - * PHPUnit_Util_Type::export. This method guarantees thought that the - * result contains now newlines. - * - * Newlines are replaced by the visible string '\n'. Contents of arrays - * and objects (if any) are replaced by '...'. - * - * @param mixed $value The value to export - * @param integer $indentation The indentation level of the 2nd+ line - * @return string - * @see PHPUnit_Util_Type::export - */ - public static function shortenedExport($value) - { - if (is_string($value)) { - return self::shortenedString($value); - } - - $origValue = $value; - - if (is_object($value)) { - $value = self::toArray($value); - } - - if (is_array($value)) { - return sprintf( - "%s (%s)", - - is_object($origValue) ? get_class($origValue) . ' Object' : 'Array', - count($value) > 0 ? '...' : '' - ); - } - - return self::export($value); - } - - /** - * Shortens a string and converts all new lines to '\n' - * - * @param string $string The string to shorten - * @param integer $max The maximum length for the string - * @return string - */ - public static function shortenedString($string, $maxLength = 40) - { - $string = self::export($string); - - if (strlen($string) > $maxLength) { - $string = substr($string, 0, $maxLength - 10) . '...' . substr($string, -7); - } - - return str_replace("\n", '\n', $string); - } - - /** - * Converts an object to an array containing all of its private, protected - * and public properties. - * - * @param object $object - * @return array - * @since Method available since Release 3.6.0 - */ - public static function toArray($object) - { - $array = array(); - - foreach ((array)$object as $key => $value) { - // properties are transformed to keys in the following way: - - // private $property => "\0Classname\0property" - // protected $property => "\0*\0property" - // public $property => "property" - - if (preg_match('/^\0.+\0(.+)$/', $key, $matches)) { - $key = $matches[1]; - } - - $array[$key] = $value; - } - - // Some internal classes like SplObjectStorage don't work with the - // above (fast) mechanism nor with reflection - // Format the output similarly to print_r() in this case - if ($object instanceof SplObjectStorage) { - foreach ($object as $key => $value) { - $array[spl_object_hash($value)] = array( - 'obj' => $value, - 'inf' => $object->getInfo(), - ); - } - } - - return $array; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/XML.php b/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/XML.php deleted file mode 100644 index 933c4935..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/PHPUnit/Util/XML.php +++ /dev/null @@ -1,916 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.2.0 - */ - -/** - * XML helpers. - * - * @package PHPUnit - * @subpackage Util - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.2.0 - */ -class PHPUnit_Util_XML -{ - /** - * @param string $string - * @return string - * @author Kore Nordmann - * @since Method available since Release 3.4.6 - */ - public static function prepareString($string) - { - return preg_replace( - '([\\x00-\\x04\\x0b\\x0c\\x0e-\\x1f\\x7f])e', - 'sprintf( "&#x%02x;", ord( "\\1" ) )', - htmlspecialchars( - PHPUnit_Util_String::convertToUtf8($string), ENT_COMPAT, 'UTF-8' - ) - ); - } - - /** - * Loads an XML (or HTML) file into a DOMDocument object. - * - * @param string $filename - * @param boolean $isHtml - * @param boolean $xinclude - * @return DOMDocument - * @since Method available since Release 3.3.0 - */ - public static function loadFile($filename, $isHtml = FALSE, $xinclude = FALSE) - { - $reporting = error_reporting(0); - $contents = file_get_contents($filename); - error_reporting($reporting); - - if ($contents === FALSE) { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Could not read "%s".', - $filename - ) - ); - } - - return self::load($contents, $isHtml, $filename, $xinclude); - } - - /** - * Load an $actual document into a DOMDocument. This is called - * from the selector assertions. - * - * If $actual is already a DOMDocument, it is returned with - * no changes. Otherwise, $actual is loaded into a new DOMDocument - * as either HTML or XML, depending on the value of $isHtml. If $isHtml is - * false and $xinclude is true, xinclude is performed on the loaded - * DOMDocument. - * - * Note: prior to PHPUnit 3.3.0, this method loaded a file and - * not a string as it currently does. To load a file into a - * DOMDocument, use loadFile() instead. - * - * @param string|DOMDocument $actual - * @param boolean $isHtml - * @param string $filename - * @param boolean $xinclude - * @return DOMDocument - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - * @author Tobias Schlitt - */ - public static function load($actual, $isHtml = FALSE, $filename = '', $xinclude = FALSE) - { - if ($actual instanceof DOMDocument) { - return $actual; - } - - $document = new DOMDocument; - - $internal = libxml_use_internal_errors(TRUE); - $message = ''; - $reporting = error_reporting(0); - - if ($isHtml) { - $loaded = $document->loadHTML($actual); - } else { - $loaded = $document->loadXML($actual); - } - - if ('' !== $filename) { - // Necessary for xinclude - $document->documentURI = $filename; - } - - if (!$isHtml && $xinclude) { - $document->xinclude(); - } - - foreach (libxml_get_errors() as $error) { - $message .= $error->message; - } - - libxml_use_internal_errors($internal); - error_reporting($reporting); - - if ($loaded === FALSE) { - if ($filename != '') { - throw new PHPUnit_Framework_Exception( - sprintf( - 'Could not load "%s".%s', - - $filename, - $message != '' ? "\n" . $message : '' - ) - ); - } else { - throw new PHPUnit_Framework_Exception($message); - } - } - - return $document; - } - - /** - * - * - * @param DOMNode $node - * @return string - * @since Method available since Release 3.4.0 - */ - public static function nodeToText(DOMNode $node) - { - if ($node->childNodes->length == 1) { - return $node->nodeValue; - } - - $result = ''; - - foreach ($node->childNodes as $childNode) { - $result .= $node->ownerDocument->saveXML($childNode); - } - - return $result; - } - - /** - * - * - * @param DOMNode $node - * @since Method available since Release 3.3.0 - * @author Mattis Stordalen Flister - */ - public static function removeCharacterDataNodes(DOMNode $node) - { - if ($node->hasChildNodes()) { - for ($i = $node->childNodes->length - 1; $i >= 0; $i--) { - if (($child = $node->childNodes->item($i)) instanceof DOMCharacterData) { - $node->removeChild($child); - } - } - } - } - - /** - * "Convert" a DOMElement object into a PHP variable. - * - * @param DOMElement $element - * @return mixed - * @since Method available since Release 3.4.0 - */ - public static function xmlToVariable(DOMElement $element) - { - $variable = NULL; - - switch ($element->tagName) { - case 'array': { - $variable = array(); - - foreach ($element->getElementsByTagName('element') as $element) { - $value = self::xmlToVariable($element->childNodes->item(1)); - - if ($element->hasAttribute('key')) { - $variable[(string)$element->getAttribute('key')] = $value; - } else { - $variable[] = $value; - } - } - } - break; - - case 'object': { - $className = $element->getAttribute('class'); - - if ($element->hasChildNodes()) { - $arguments = $element->childNodes->item(1)->childNodes; - $constructorArgs = array(); - - foreach ($arguments as $argument) { - if ($argument instanceof DOMElement) { - $constructorArgs[] = self::xmlToVariable($argument); - } - } - - $class = new ReflectionClass($className); - $variable = $class->newInstanceArgs($constructorArgs); - } else { - $variable = new $className; - } - } - break; - - case 'boolean': { - $variable = $element->nodeValue == 'true' ? TRUE : FALSE; - } - break; - - case 'integer': - case 'double': - case 'string': { - $variable = $element->nodeValue; - - settype($variable, $element->tagName); - } - break; - } - - return $variable; - } - - /** - * Validate list of keys in the associative array. - * - * @param array $hash - * @param array $validKeys - * @return array - * @throws PHPUnit_Framework_Exception - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function assertValidKeys(array $hash, array $validKeys) - { - $valids = array(); - - // Normalize validation keys so that we can use both indexed and - // associative arrays. - foreach ($validKeys as $key => $val) { - is_int($key) ? $valids[$val] = NULL : $valids[$key] = $val; - } - - $validKeys = array_keys($valids); - - // Check for invalid keys. - foreach ($hash as $key => $value) { - if (!in_array($key, $validKeys)) { - $unknown[] = $key; - } - } - - if (!empty($unknown)) { - throw new PHPUnit_Framework_Exception( - 'Unknown key(s): ' . implode(', ', $unknown) - ); - } - - // Add default values for any valid keys that are empty. - foreach ($valids as $key => $value) { - if (!isset($hash[$key])) { - $hash[$key] = $value; - } - } - - return $hash; - } - - /** - * Parse a CSS selector into an associative array suitable for - * use with findNodes(). - * - * @param string $selector - * @param mixed $content - * @return array - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - public static function convertSelectToTag($selector, $content = TRUE) - { - $selector = trim(preg_replace("/\s+/", " ", $selector)); - - // substitute spaces within attribute value - while (preg_match('/\[[^\]]+"[^"]+\s[^"]+"\]/', $selector)) { - $selector = preg_replace( - '/(\[[^\]]+"[^"]+)\s([^"]+"\])/', "$1__SPACE__$2", $selector - ); - } - - if (strstr($selector, ' ')) { - $elements = explode(' ', $selector); - } else { - $elements = array($selector); - } - - $previousTag = array(); - - foreach (array_reverse($elements) as $element) { - $element = str_replace('__SPACE__', ' ', $element); - - // child selector - if ($element == '>') { - $previousTag = array('child' => $previousTag['descendant']); - continue; - } - - $tag = array(); - - // match element tag - preg_match("/^([^\.#\[]*)/", $element, $eltMatches); - - if (!empty($eltMatches[1])) { - $tag['tag'] = $eltMatches[1]; - } - - // match attributes (\[[^\]]*\]*), ids (#[^\.#\[]*), - // and classes (\.[^\.#\[]*)) - preg_match_all( - "/(\[[^\]]*\]*|#[^\.#\[]*|\.[^\.#\[]*)/", $element, $matches - ); - - if (!empty($matches[1])) { - $classes = array(); - $attrs = array(); - - foreach ($matches[1] as $match) { - // id matched - if (substr($match, 0, 1) == '#') { - $tag['id'] = substr($match, 1); - } - - // class matched - else if (substr($match, 0, 1) == '.') { - $classes[] = substr($match, 1); - } - - // attribute matched - else if (substr($match, 0, 1) == '[' && - substr($match, -1, 1) == ']') { - $attribute = substr($match, 1, strlen($match) - 2); - $attribute = str_replace('"', '', $attribute); - - // match single word - if (strstr($attribute, '~=')) { - list($key, $value) = explode('~=', $attribute); - $value = "regexp:/.*\b$value\b.*/"; - } - - // match substring - else if (strstr($attribute, '*=')) { - list($key, $value) = explode('*=', $attribute); - $value = "regexp:/.*$value.*/"; - } - - // exact match - else { - list($key, $value) = explode('=', $attribute); - } - - $attrs[$key] = $value; - } - } - - if ($classes) { - $tag['class'] = join(' ', $classes); - } - - if ($attrs) { - $tag['attributes'] = $attrs; - } - } - - // tag content - if (is_string($content)) { - $tag['content'] = $content; - } - - // determine previous child/descendants - if (!empty($previousTag['descendant'])) { - $tag['descendant'] = $previousTag['descendant']; - } - - else if (!empty($previousTag['child'])) { - $tag['child'] = $previousTag['child']; - } - - $previousTag = array('descendant' => $tag); - } - - return $tag; - } - - /** - * Parse an $actual document and return an array of DOMNodes - * matching the CSS $selector. If an error occurs, it will - * return FALSE. - * - * To only return nodes containing a certain content, give - * the $content to match as a string. Otherwise, setting - * $content to TRUE will return all nodes matching $selector. - * - * The $actual document may be a DOMDocument or a string - * containing XML or HTML, identified by $isHtml. - * - * @param array $selector - * @param string $content - * @param mixed $actual - * @param boolean $isHtml - * @return false|array - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - * @author Tobias Schlitt - */ - public static function cssSelect($selector, $content, $actual, $isHtml = TRUE) - { - $matcher = self::convertSelectToTag($selector, $content); - $dom = self::load($actual, $isHtml); - $tags = self::findNodes($dom, $matcher, $isHtml); - - return $tags; - } - - /** - * Parse out the options from the tag using DOM object tree. - * - * @param DOMDocument $dom - * @param array $options - * @param boolean $isHtml - * @return array - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - * @author Tobias Schlitt - */ - public static function findNodes(DOMDocument $dom, array $options, $isHtml = TRUE) - { - $valid = array( - 'id', 'class', 'tag', 'content', 'attributes', 'parent', - 'child', 'ancestor', 'descendant', 'children' - ); - - $filtered = array(); - $options = self::assertValidKeys($options, $valid); - - // find the element by id - if ($options['id']) { - $options['attributes']['id'] = $options['id']; - } - - if ($options['class']) { - $options['attributes']['class'] = $options['class']; - } - - // find the element by a tag type - if ($options['tag']) { - if ($isHtml) { - $elements = self::getElementsByCaseInsensitiveTagName( - $dom, $options['tag'] - ); - } else { - $elements = $dom->getElementsByTagName($options['tag']); - } - - foreach ($elements as $element) { - $nodes[] = $element; - } - - if (empty($nodes)) { - return FALSE; - } - } - - // no tag selected, get them all - else { - $tags = array( - 'a', 'abbr', 'acronym', 'address', 'area', 'b', 'base', 'bdo', - 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'cite', - 'code', 'col', 'colgroup', 'dd', 'del', 'div', 'dfn', 'dl', - 'dt', 'em', 'fieldset', 'form', 'frame', 'frameset', 'h1', 'h2', - 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'i', 'iframe', - 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', - 'map', 'meta', 'noframes', 'noscript', 'object', 'ol', 'optgroup', - 'option', 'p', 'param', 'pre', 'q', 'samp', 'script', 'select', - 'small', 'span', 'strong', 'style', 'sub', 'sup', 'table', - 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', - 'tr', 'tt', 'ul', 'var' - ); - - foreach ($tags as $tag) { - if ($isHtml) { - $elements = self::getElementsByCaseInsensitiveTagName( - $dom, $tag - ); - } else { - $elements = $dom->getElementsByTagName($tag); - } - - foreach ($elements as $element) { - $nodes[] = $element; - } - } - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by attributes - if ($options['attributes']) { - foreach ($nodes as $node) { - $invalid = FALSE; - - foreach ($options['attributes'] as $name => $value) { - // match by regexp if like "regexp:/foo/i" - if (preg_match('/^regexp\s*:\s*(.*)/i', $value, $matches)) { - if (!preg_match($matches[1], $node->getAttribute($name))) { - $invalid = TRUE; - } - } - - // class can match only a part - else if ($name == 'class') { - // split to individual classes - $findClasses = explode( - ' ', preg_replace("/\s+/", " ", $value) - ); - - $allClasses = explode( - ' ', - preg_replace("/\s+/", " ", $node->getAttribute($name)) - ); - - // make sure each class given is in the actual node - foreach ($findClasses as $findClass) { - if (!in_array($findClass, $allClasses)) { - $invalid = TRUE; - } - } - } - - // match by exact string - else { - if ($node->getAttribute($name) != $value) { - $invalid = TRUE; - } - } - } - - // if every attribute given matched - if (!$invalid) { - $filtered[] = $node; - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by content - if ($options['content'] !== NULL) { - foreach ($nodes as $node) { - $invalid = FALSE; - - // match by regexp if like "regexp:/foo/i" - if (preg_match('/^regexp\s*:\s*(.*)/i', $options['content'], $matches)) { - if (!preg_match($matches[1], self::getNodeText($node))) { - $invalid = TRUE; - } - } - - // match empty string - else if ($options['content'] === '') { - if (self::getNodeText($node) !== '') { - $invalid = TRUE; - } - } - - // match by exact string - else if (strstr(self::getNodeText($node), $options['content']) === FALSE) { - $invalid = TRUE; - } - - if (!$invalid) { - $filtered[] = $node; - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by parent node - if ($options['parent']) { - $parentNodes = self::findNodes($dom, $options['parent'], $isHtml); - $parentNode = isset($parentNodes[0]) ? $parentNodes[0] : NULL; - - foreach ($nodes as $node) { - if ($parentNode !== $node->parentNode) { - continue; - } - - $filtered[] = $node; - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by child node - if ($options['child']) { - $childNodes = self::findNodes($dom, $options['child'], $isHtml); - $childNodes = !empty($childNodes) ? $childNodes : array(); - - foreach ($nodes as $node) { - foreach ($node->childNodes as $child) { - foreach ($childNodes as $childNode) { - if ($childNode === $child) { - $filtered[] = $node; - } - } - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by ancestor - if ($options['ancestor']) { - $ancestorNodes = self::findNodes($dom, $options['ancestor'], $isHtml); - $ancestorNode = isset($ancestorNodes[0]) ? $ancestorNodes[0] : NULL; - - foreach ($nodes as $node) { - $parent = $node->parentNode; - - while ($parent && $parent->nodeType != XML_HTML_DOCUMENT_NODE) { - if ($parent === $ancestorNode) { - $filtered[] = $node; - } - - $parent = $parent->parentNode; - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by descendant - if ($options['descendant']) { - $descendantNodes = self::findNodes($dom, $options['descendant'], $isHtml); - $descendantNodes = !empty($descendantNodes) ? $descendantNodes : array(); - - foreach ($nodes as $node) { - foreach (self::getDescendants($node) as $descendant) { - foreach ($descendantNodes as $descendantNode) { - if ($descendantNode === $descendant) { - $filtered[] = $node; - } - } - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return FALSE; - } - } - - // filter by children - if ($options['children']) { - $validChild = array('count', 'greater_than', 'less_than', 'only'); - $childOptions = self::assertValidKeys( - $options['children'], $validChild - ); - - foreach ($nodes as $node) { - $childNodes = $node->childNodes; - - foreach ($childNodes as $childNode) { - if ($childNode->nodeType !== XML_CDATA_SECTION_NODE && - $childNode->nodeType !== XML_TEXT_NODE) { - $children[] = $childNode; - } - } - - // we must have children to pass this filter - if (!empty($children)) { - // exact count of children - if ($childOptions['count'] !== NULL) { - if (count($children) !== $childOptions['count']) { - break; - } - } - - // range count of children - else if ($childOptions['less_than'] !== NULL && - $childOptions['greater_than'] !== NULL) { - if (count($children) >= $childOptions['less_than'] || - count($children) <= $childOptions['greater_than']) { - break; - } - } - - // less than a given count - else if ($childOptions['less_than'] !== NULL) { - if (count($children) >= $childOptions['less_than']) { - break; - } - } - - // more than a given count - else if ($childOptions['greater_than'] !== NULL) { - if (count($children) <= $childOptions['greater_than']) { - break; - } - } - - // match each child against a specific tag - if ($childOptions['only']) { - $onlyNodes = self::findNodes( - $dom, $childOptions['only'], $isHtml - ); - - // try to match each child to one of the 'only' nodes - foreach ($children as $child) { - $matched = FALSE; - - foreach ($onlyNodes as $onlyNode) { - if ($onlyNode === $child) { - $matched = TRUE; - } - } - - if (!$matched) { - break(2); - } - } - } - - $filtered[] = $node; - } - } - - $nodes = $filtered; - $filtered = array(); - - if (empty($nodes)) { - return; - } - } - - // return the first node that matches all criteria - return !empty($nodes) ? $nodes : array(); - } - - /** - * Recursively get flat array of all descendants of this node. - * - * @param DOMNode $node - * @return array - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - protected static function getDescendants(DOMNode $node) - { - $allChildren = array(); - $childNodes = $node->childNodes ? $node->childNodes : array(); - - foreach ($childNodes as $child) { - if ($child->nodeType === XML_CDATA_SECTION_NODE || - $child->nodeType === XML_TEXT_NODE) { - continue; - } - - $children = self::getDescendants($child); - $allChildren = array_merge($allChildren, $children, array($child)); - } - - return isset($allChildren) ? $allChildren : array(); - } - - /** - * Gets elements by case insensitive tagname. - * - * @param DOMDocument $dom - * @param string $tag - * @return DOMNodeList - * @since Method available since Release 3.4.0 - */ - protected static function getElementsByCaseInsensitiveTagName(DOMDocument $dom, $tag) - { - $elements = $dom->getElementsByTagName(strtolower($tag)); - - if ($elements->length == 0) { - $elements = $dom->getElementsByTagName(strtoupper($tag)); - } - - return $elements; - } - - /** - * Get the text value of this node's child text node. - * - * @param DOMNode $node - * @return string - * @since Method available since Release 3.3.0 - * @author Mike Naberezny - * @author Derek DeVries - */ - protected static function getNodeText(DOMNode $node) - { - if (!$node->childNodes instanceof DOMNodeList) { - return ''; - } - - $result = ''; - - foreach ($node->childNodes as $childNode) { - if ($childNode->nodeType === XML_TEXT_NODE) { - $result .= trim($childNode->data) . ' '; - } else { - $result .= self::getNodeText($childNode); - } - } - - return str_replace(' ', ' ', $result); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/README.md b/includes/kohana/vendor/phpunit/phpunit/README.md deleted file mode 100644 index 397be60c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/README.md +++ /dev/null @@ -1,71 +0,0 @@ -# PHPUnit - -PHPUnit is the de-facto standard for unit testing in PHP projects. It provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results. - -## Requirements - -* PHPUnit 3.7 requires PHP 5.3.3 (or later) but PHP 5.4.6 (or later) is highly recommended. -* [PHP_CodeCoverage](http://github.com/sebastianbergmann/php-code-coverage), the library that is used by PHPUnit to collect and process code coverage information, depends on [Xdebug](http://xdebug.org/) 2.0.5 (or later) but Xdebug 2.2.1 (or later) is highly recommended. - -## Installation - -There a three supported ways of installing PHPUnit. - -You can use the [PEAR Installer](http://pear.php.net/manual/en/guide.users.commandline.cli.php) or [Composer](http://getcomposer.org/) to download and install PHPUnit as well as its dependencies. You can also download a [PHP Archive (PHAR)](http://php.net/phar) of PHPUnit that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file. - -### PEAR Installer - -The following two commands (which you may have to run as `root`) are all that is required to install PHPUnit using the PEAR Installer: - - pear config-set auto_discover 1 - pear install pear.phpunit.de/PHPUnit - -### Composer - -To add PHPUnit as a local, per-project dependency to your project, simply add a dependency on `phpunit/phpunit` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a development-time dependency on PHPUnit 3.7: - - { - "require-dev": { - "phpunit/phpunit": "3.7.*" - } - } - -### PHP Archive (PHAR) - - wget http://pear.phpunit.de/get/phpunit.phar - chmod +x phpunit.phar - -## Documentation - -The documentation for PHPUnit is available in different formats: - -* [English, multiple HTML files](http://www.phpunit.de/manual/3.7/en/index.html) -* [English, single HTML file](http://www.phpunit.de/manual/3.7/en/phpunit-book.html) -* [English, PDF](http://www.phpunit.de/manual/3.7/en/phpunit-book.pdf) -* [English, ePub](http://www.phpunit.de/manual/3.7/en/phpunit-book.epub) -* [French, multiple HTML files](http://www.phpunit.de/manual/3.7/fr/index.html) -* [French, single HTML file](http://www.phpunit.de/manual/3.7/fr/phpunit-book.html) -* [French, PDF](http://www.phpunit.de/manual/3.7/fr/phpunit-book.pdf) -* [French, ePub](http://www.phpunit.de/manual/3.7/fr/phpunit-book.epub) -* [Japanese, multiple HTML files](http://www.phpunit.de/manual/3.7/ja/index.html) -* [Japanese, single HTML file](http://www.phpunit.de/manual/3.7/ja/phpunit-book.html) -* [Japanese, PDF](http://www.phpunit.de/manual/3.7/ja/phpunit-book.pdf) -* [Japanese, ePub](http://www.phpunit.de/manual/3.7/ja/phpunit-book.epub) - -## IRC - -The [#phpunit channel on the Freenode IRC network](irc://irc.freenode.net/phpunit) is a place to chat about PHPUnit. - -## List of Contributors - -Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components: - -* [PHPUnit](https://github.com/sebastianbergmann/phpunit/graphs/contributors) -* [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage/graphs/contributors) -* [PHPUnit_MockObject](https://github.com/sebastianbergmann/phpunit-mock-objects/graphs/contributors) - -A very special thanks to everyone who has contributed to the documentation and helps maintaining the translations: - -* [PHPUnit Documentation](https://github.com/sebastianbergmann/phpunit-documentation/graphs/contributors) - -Please refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Extensions/RepeatedTestTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Extensions/RepeatedTestTest.php deleted file mode 100644 index 7e8935ff..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Extensions/RepeatedTestTest.php +++ /dev/null @@ -1,108 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Success.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Extensions_RepeatedTestTest extends PHPUnit_Framework_TestCase -{ - protected $suite; - - public function __construct() - { - $this->suite = new PHPUnit_Framework_TestSuite; - - $this->suite->addTest(new Success); - $this->suite->addTest(new Success); - } - - public function testRepeatedOnce() - { - $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 1); - $this->assertEquals(2, count($test)); - - $result = $test->run(); - $this->assertEquals(2, count($result)); - } - - public function testRepeatedMoreThanOnce() - { - $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 3); - $this->assertEquals(6, count($test)); - - $result = $test->run(); - $this->assertEquals(6, count($result)); - } - - public function testRepeatedZero() - { - $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 0); - $this->assertEquals(0, count($test)); - - $result = $test->run(); - $this->assertEquals(0, count($result)); - } - - public function testRepeatedNegative() - { - try { - $test = new PHPUnit_Extensions_RepeatedTest($this->suite, -1); - } - - catch (Exception $e) { - return; - } - - $this->fail('Should throw an Exception'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php deleted file mode 100644 index 547c45ef..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php +++ /dev/null @@ -1,4158 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'SampleClass.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Struct.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'TestIterator.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Author.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Book.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithToString.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Framework_AssertTest extends PHPUnit_Framework_TestCase -{ - protected $filesDirectory; - - protected function setUp() - { - $this->filesDirectory = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR; - - $this->html = file_get_contents( - $this->filesDirectory . 'SelectorAssertionsFixture.html' - ); - } - - /** - * @covers PHPUnit_Framework_Assert::fail - */ - public function testFail() - { - try { - $this->fail(); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - throw new PHPUnit_Framework_AssertionFailedError('Fail did not throw fail exception'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertSplObjectStorageContainsObject() - { - $a = new stdClass; - $b = new stdClass; - $c = new SplObjectStorage; - $c->attach($a); - - $this->assertContains($a, $c); - - try { - $this->assertContains($b, $c); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertArrayContainsObject() - { - $a = new stdClass; - $b = new stdClass; - - $this->assertContains($a, array($a)); - - try { - $this->assertContains($a, array($b)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertArrayContainsString() - { - $this->assertContains('foo', array('foo')); - - try { - $this->assertContains('foo', array('bar')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - /** - * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf - */ - public function testAssertContainsOnlyInstancesOf() - { - $test = array( - new Book(), - new Book - ); - $this->assertContainsOnlyInstancesOf('Book', $test); - $this->assertContainsOnlyInstancesOf('stdClass', array(new stdClass())); - - $test2 = array( - new Author('Test') - ); - try { - $this->assertContainsOnlyInstancesOf('Book', $test2); - } catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayHasKey - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertArrayHasKeyThrowsException() - { - $this->assertArrayHasKey(NULL, array()); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayHasKey - */ - public function testAssertArrayHasIntegerKey() - { - $this->assertArrayHasKey(0, array('foo')); - - try { - $this->assertArrayHasKey(1, array('foo')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertArrayNotHasKeyThrowsException() - { - $this->assertArrayNotHasKey(NULL, array()); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey - */ - public function testAssertArrayNotHasIntegerKey() - { - $this->assertArrayNotHasKey(1, array('foo')); - - try { - $this->assertArrayNotHasKey(0, array('foo')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayHasKey - */ - public function testAssertArrayHasStringKey() - { - $this->assertArrayHasKey('foo', array('foo' => 'bar')); - - try { - $this->assertArrayHasKey('bar', array('foo' => 'bar')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey - */ - public function testAssertArrayNotHasStringKey() - { - $this->assertArrayNotHasKey('bar', array('foo' => 'bar')); - - try { - $this->assertArrayNotHasKey('foo', array('foo' => 'bar')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayHasKey - */ - public function testAssertArrayHasKeyAcceptsArrayAccessValue() - { - $array = new ArrayObject(); - $array['foo'] = 'bar'; - $this->assertArrayHasKey('foo', $array); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayHasKey - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertArrayHasKeyProperlyFailsWithArrayAccessValue() - { - $array = new ArrayObject(); - $array['bar'] = 'bar'; - $this->assertArrayHasKey('foo', $array); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey - */ - public function testAssertArrayNotHasKeyAcceptsArrayAccessValue() - { - $array = new ArrayObject(); - $array['foo'] = 'bar'; - $this->assertArrayNotHasKey('bar', $array); - } - - /** - * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertArrayNotHasKeyPropertlyFailsWithArrayAccessValue() - { - $array = new ArrayObject(); - $array['bar'] = 'bar'; - $this->assertArrayNotHasKey('bar', $array); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertContainsThrowsException() - { - $this->assertContains(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertIteratorContainsObject() - { - $foo = new stdClass; - - $this->assertContains($foo, new TestIterator(array($foo))); - - try { - $this->assertContains($foo, new TestIterator(array(new stdClass))); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertIteratorContainsString() - { - $this->assertContains('foo', new TestIterator(array('foo'))); - - try { - $this->assertContains('foo', new TestIterator(array('bar'))); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContains - */ - public function testAssertStringContainsString() - { - $this->assertContains('foo', 'foobar'); - - try { - $this->assertContains('foo', 'bar'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContains - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertNotContainsThrowsException() - { - $this->assertNotContains(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContains - */ - public function testAssertSplObjectStorageNotContainsObject() - { - $a = new stdClass; - $b = new stdClass; - $c = new SplObjectStorage; - $c->attach($a); - - $this->assertNotContains($b, $c); - - try { - $this->assertNotContains($a, $c); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContains - */ - public function testAssertArrayNotContainsObject() - { - $a = new stdClass; - $b = new stdClass; - - $this->assertNotContains($a, array($b)); - - try { - $this->assertNotContains($a, array($a)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContains - */ - public function testAssertArrayNotContainsString() - { - $this->assertNotContains('foo', array('bar')); - - try { - $this->assertNotContains('foo', array('foo')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContains - */ - public function testAssertStringNotContainsString() - { - $this->assertNotContains('foo', 'bar'); - - try { - $this->assertNotContains('foo', 'foo'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContainsOnly - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertContainsOnlyThrowsException() - { - $this->assertContainsOnly(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertContainsOnlyInstancesOfThrowsException() - { - $this->assertContainsOnlyInstancesOf(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContainsOnly - */ - public function testAssertArrayContainsOnlyIntegers() - { - $this->assertContainsOnly('integer', array(1, 2, 3)); - - try { - $this->assertContainsOnly('integer', array("1", 2, 3)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContainsOnly - */ - public function testAssertArrayNotContainsOnlyIntegers() - { - $this->assertNotContainsOnly('integer', array("1", 2, 3)); - - try { - $this->assertNotContainsOnly('integer', array(1, 2, 3)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertContainsOnly - */ - public function testAssertArrayContainsOnlyStdClass() - { - $this->assertContainsOnly('StdClass', array(new StdClass)); - - try { - $this->assertContainsOnly('StdClass', array('StdClass')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotContainsOnly - */ - public function testAssertArrayNotContainsOnlyStdClass() - { - $this->assertNotContainsOnly('StdClass', array('StdClass')); - - try { - $this->assertNotContainsOnly('StdClass', array(new StdClass)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - protected function createDOMDocument($content) - { - $document = new DOMDocument; - $document->preserveWhiteSpace = FALSE; - $document->loadXML($content); - - return $document; - } - - protected function sameValues() - { - $object = new SampleClass(4, 8, 15); - // cannot use $filesDirectory, because neither setUp() nor - // setUpBeforeClass() are executed before the data providers - $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml'; - $resource = fopen($file, 'r'); - - return array( - // NULL - array(NULL, NULL), - // strings - array('a', 'a'), - // integers - array(0, 0), - // floats - array(2.3, 2.3), - array(1/3, 1 - 2/3), - array(log(0), log(0)), - // arrays - array(array(), array()), - array(array(0 => 1), array(0 => 1)), - array(array(0 => NULL), array(0 => NULL)), - array(array('a', 'b' => array(1, 2)), array('a', 'b' => array(1, 2))), - // objects - array($object, $object), - // resources - array($resource, $resource), - ); - } - - protected function notEqualValues() - { - // cyclic dependencies - $book1 = new Book; - $book1->author = new Author('Terry Pratchett'); - $book1->author->books[] = $book1; - $book2 = new Book; - $book2->author = new Author('Terry Pratch'); - $book2->author->books[] = $book2; - - $book3 = new Book; - $book3->author = 'Terry Pratchett'; - $book4 = new stdClass; - $book4->author = 'Terry Pratchett'; - - $object1 = new SampleClass( 4, 8, 15); - $object2 = new SampleClass(16, 23, 42); - $object3 = new SampleClass( 4, 8, 15); - $storage1 = new SplObjectStorage; - $storage1->attach($object1); - $storage2 = new SplObjectStorage; - $storage2->attach($object3); // same content, different object - - // cannot use $filesDirectory, because neither setUp() nor - // setUpBeforeClass() are executed before the data providers - $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml'; - - return array( - // strings - array('a', 'b'), - array('a', 'A'), - // integers - array(1, 2), - array(2, 1), - // floats - array(2.3, 4.2), - array(2.3, 4.2, 0.5), - array(array(2.3), array(4.2), 0.5), - array(array(array(2.3)), array(array(4.2)), 0.5), - array(new Struct(2.3), new Struct(4.2), 0.5), - array(array(new Struct(2.3)), array(new Struct(4.2)), 0.5), - // arrays - array(array(), array(0 => 1)), - array(array(0 => 1), array()), - array(array(0 => NULL), array()), - array(array(0 => 1, 1 => 2), array(0 => 1, 1 => 3)), - array(array('a', 'b' => array(1, 2)), array('a', 'b' => array(2, 1))), - // objects - array(new SampleClass(4, 8, 15), new SampleClass(16, 23, 42)), - array($object1, $object2), - array($book1, $book2), - array($book3, $book4), // same content, different class - // resources - array(fopen($file, 'r'), fopen($file, 'r')), - // SplObjectStorage - array($storage1, $storage2), - // DOMDocument - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(' bar '), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(' bar '), - $this->createDOMDocument(' bir '), - ), - // Exception - //array(new Exception('Exception 1'), new Exception('Exception 2')), - // different types - array(new SampleClass(4, 8, 15), FALSE), - array(FALSE, new SampleClass(4, 8, 15)), - array(array(0 => 1, 1 => 2), FALSE), - array(FALSE, array(0 => 1, 1 => 2)), - array(array(), new stdClass), - array(new stdClass, array()), - // PHP: 0 == 'Foobar' => TRUE! - // We want these values to differ - array(0, 'Foobar'), - array('Foobar', 0), - array(3, acos(8)), - array(acos(8), 3) - ); - } - - protected function equalValues() - { - // cyclic dependencies - $book1 = new Book; - $book1->author = new Author('Terry Pratchett'); - $book1->author->books[] = $book1; - $book2 = new Book; - $book2->author = new Author('Terry Pratchett'); - $book2->author->books[] = $book2; - - $object1 = new SampleClass(4, 8, 15); - $object2 = new SampleClass(4, 8, 15); - $storage1 = new SplObjectStorage; - $storage1->attach($object1); - $storage2 = new SplObjectStorage; - $storage2->attach($object1); - - return array( - // strings - array('a', 'A', 0, FALSE, TRUE), // ignore case - // arrays - array(array('a' => 1, 'b' => 2), array('b' => 2, 'a' => 1)), - array(array(1), array('1')), - array(array(3, 2, 1), array(2, 3, 1), 0, TRUE), // canonicalized comparison - // floats - array(2.3, 2.5, 0.5), - array(array(2.3), array(2.5), 0.5), - array(array(array(2.3)), array(array(2.5)), 0.5), - array(new Struct(2.3), new Struct(2.5), 0.5), - array(array(new Struct(2.3)), array(new Struct(2.5)), 0.5), - // numeric with delta - array(1, 2, 1), - // objects - array($object1, $object2), - array($book1, $book2), - // SplObjectStorage - array($storage1, $storage2), - // DOMDocument - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument(''), - $this->createDOMDocument(''), - ), - array( - $this->createDOMDocument("\n \n"), - $this->createDOMDocument(''), - ), - // Exception - //array(new Exception('Exception 1'), new Exception('Exception 1')), - // mixed types - array(0, '0'), - array('0', 0), - array(2.3, '2.3'), - array('2.3', 2.3), - array((string)(1/3), 1 - 2/3), - array(1/3, (string)(1 - 2/3)), - array('string representation', new ClassWithToString), - array(new ClassWithToString, 'string representation'), - ); - } - - public function equalProvider() - { - // same |= equal - return array_merge($this->equalValues(), $this->sameValues()); - } - - public function notEqualProvider() - { - return $this->notEqualValues(); - } - - public function sameProvider() - { - return $this->sameValues(); - } - - public function notSameProvider() - { - // not equal |= not same - // equal, ¬same |= not same - return array_merge($this->notEqualValues(), $this->equalValues()); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEquals - * @dataProvider equalProvider - */ - public function testAssertEqualsSucceeds($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - $this->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEquals - * @dataProvider notEqualProvider - */ - public function testAssertEqualsFails($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - try { - $this->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotEquals - * @dataProvider notEqualProvider - */ - public function testAssertNotEqualsSucceeds($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - $this->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotEquals - * @dataProvider equalProvider - */ - public function testAssertNotEqualsFails($a, $b, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE) - { - try { - $this->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSame - * @dataProvider sameProvider - */ - public function testAssertSameSucceeds($a, $b) - { - $this->assertSame($a, $b); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSame - * @dataProvider notSameProvider - */ - public function testAssertSameFails($a, $b) - { - try { - $this->assertSame($a, $b); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotSame - * @dataProvider notSameProvider - */ - public function testAssertNotSameSucceeds($a, $b) - { - $this->assertNotSame($a, $b); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotSame - * @dataProvider sameProvider - */ - public function testAssertNotSameFails($a, $b) - { - try { - $this->assertNotSame($a, $b); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile - */ - public function testAssertXmlFileEqualsXmlFile() - { - $this->assertXmlFileEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'foo.xml' - ); - - try { - $this->assertXmlFileEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'bar.xml' - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile - */ - public function testAssertXmlFileNotEqualsXmlFile() - { - $this->assertXmlFileNotEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'bar.xml' - ); - - try { - $this->assertXmlFileNotEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'foo.xml' - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile - */ - public function testAssertXmlStringEqualsXmlFile() - { - $this->assertXmlStringEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'foo.xml') - ); - - try { - $this->assertXmlStringEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'bar.xml') - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile - */ - public function testXmlStringNotEqualsXmlFile() - { - $this->assertXmlStringNotEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'bar.xml') - ); - - try { - $this->assertXmlStringNotEqualsXmlFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'foo.xml') - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString - */ - public function testAssertXmlStringEqualsXmlString() - { - $this->assertXmlStringEqualsXmlString('', ''); - - try { - $this->assertXmlStringEqualsXmlString('', ''); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString - */ - public function testAssertXmlStringNotEqualsXmlString() - { - $this->assertXmlStringNotEqualsXmlString('', ''); - - try { - $this->assertXmlStringNotEqualsXmlString('', ''); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - */ - public function testXMLStructureIsSame() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureExpected.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - * @expectedException PHPUnit_Framework_ExpectationFailedException - */ - public function testXMLStructureWrongNumberOfAttributes() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureWrongNumberOfAttributes.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - * @expectedException PHPUnit_Framework_ExpectationFailedException - */ - public function testXMLStructureWrongNumberOfNodes() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureWrongNumberOfNodes.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - */ - public function testXMLStructureIsSameButDataIsNot() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureIsSameButDataIsNot.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - */ - public function testXMLStructureAttributesAreSameButValuesAreNot() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureAttributesAreSameButValuesAreNot.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure - */ - public function testXMLStructureIgnoreTextNodes() - { - $expected = new DOMDocument; - $expected->load($this->filesDirectory . 'structureExpected.xml'); - - $actual = new DOMDocument; - $actual->load($this->filesDirectory . 'structureIgnoreTextNodes.xml'); - - $this->assertEqualXMLStructure( - $expected->firstChild, $actual->firstChild, TRUE - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEquals - */ - public function testAssertStringEqualsNumeric() - { - $this->assertEquals('0', 0); - - try { - $this->assertEquals('0', 1); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotEquals - */ - public function testAssertStringEqualsNumeric2() - { - $this->assertNotEquals('A', 0); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileExists - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertFileExistsThrowsException() - { - $this->assertFileExists(NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileExists - */ - public function testAssertFileExists() - { - $this->assertFileExists(__FILE__); - - try { - $this->assertFileExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileNotExists - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertFileNotExistsThrowsException() - { - $this->assertFileNotExists(NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileNotExists - */ - public function testAssertFileNotExists() - { - $this->assertFileNotExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting'); - - try { - $this->assertFileNotExists(__FILE__); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - */ - public function testAssertObjectHasAttribute() - { - $o = new Author('Terry Pratchett'); - - $this->assertObjectHasAttribute('name', $o); - - try { - $this->assertObjectHasAttribute('foo', $o); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - */ - public function testAssertObjectNotHasAttribute() - { - $o = new Author('Terry Pratchett'); - - $this->assertObjectNotHasAttribute('foo', $o); - - try { - $this->assertObjectNotHasAttribute('name', $o); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNull - */ - public function testAssertNull() - { - $this->assertNull(NULL); - - try { - $this->assertNull(new stdClass); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotNull - */ - public function testAssertNotNull() - { - $this->assertNotNull(new stdClass); - - try { - $this->assertNotNull(NULL); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTrue - */ - public function testAssertTrue() - { - $this->assertTrue(TRUE); - - try { - $this->assertTrue(FALSE); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFalse - */ - public function testAssertFalse() - { - $this->assertFalse(FALSE); - - try { - $this->assertFalse(TRUE); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertRegExp - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertRegExpThrowsException() - { - $this->assertRegExp(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertRegExp - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertRegExpThrowsException2() - { - $this->assertRegExp('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotRegExp - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertNotRegExpThrowsException() - { - $this->assertNotRegExp(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotRegExp - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertNotRegExpThrowsException2() - { - $this->assertNotRegExp('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertRegExp - */ - public function testAssertRegExp() - { - $this->assertRegExp('/foo/', 'foobar'); - - try { - $this->assertRegExp('/foo/', 'bar'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotRegExp - */ - public function testAssertNotRegExp() - { - $this->assertNotRegExp('/foo/', 'bar'); - - try { - $this->assertNotRegExp('/foo/', 'foobar'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSame - */ - public function testAssertSame() - { - $o = new stdClass; - - $this->assertSame($o, $o); - - try { - $this->assertSame( - new stdClass, - new stdClass - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSame - */ - public function testAssertSame2() - { - $this->assertSame(TRUE, TRUE); - $this->assertSame(FALSE, FALSE); - - try { - $this->assertSame(TRUE, FALSE); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotSame - */ - public function testAssertNotSame() - { - $this->assertNotSame( - new stdClass, - NULL - ); - - $this->assertNotSame( - NULL, - new stdClass - ); - - $this->assertNotSame( - new stdClass, - new stdClass - ); - - $o = new stdClass; - - try { - $this->assertNotSame($o, $o); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotSame - */ - public function testAssertNotSame2() - { - $this->assertNotSame(TRUE, FALSE); - $this->assertNotSame(FALSE, TRUE); - - try { - $this->assertNotSame(TRUE, TRUE); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotSame - */ - public function testAssertNotSameFailsNull() - { - try { - $this->assertNotSame(NULL, NULL); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertGreaterThan - */ - public function testGreaterThan() - { - $this->assertGreaterThan(1, 2); - - try { - $this->assertGreaterThan(2, 1); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThan - */ - public function testAttributeGreaterThan() - { - $this->assertAttributeGreaterThan( - 1, 'bar', new ClassWithNonPublicAttributes - ); - - try { - $this->assertAttributeGreaterThan( - 1, 'foo', new ClassWithNonPublicAttributes - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertGreaterThanOrEqual - */ - public function testGreaterThanOrEqual() - { - $this->assertGreaterThanOrEqual(1, 2); - - try { - $this->assertGreaterThanOrEqual(2, 1); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual - */ - public function testAttributeGreaterThanOrEqual() - { - $this->assertAttributeGreaterThanOrEqual( - 1, 'bar', new ClassWithNonPublicAttributes - ); - - try { - $this->assertAttributeGreaterThanOrEqual( - 2, 'foo', new ClassWithNonPublicAttributes - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertLessThan - */ - public function testLessThan() - { - $this->assertLessThan(2, 1); - - try { - $this->assertLessThan(1, 2); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeLessThan - */ - public function testAttributeLessThan() - { - $this->assertAttributeLessThan( - 2, 'foo', new ClassWithNonPublicAttributes - ); - - try { - $this->assertAttributeLessThan( - 1, 'bar', new ClassWithNonPublicAttributes - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertLessThanOrEqual - */ - public function testLessThanOrEqual() - { - $this->assertLessThanOrEqual(2, 1); - - try { - $this->assertLessThanOrEqual(1, 2); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual - */ - public function testAttributeLessThanOrEqual() - { - $this->assertAttributeLessThanOrEqual( - 2, 'foo', new ClassWithNonPublicAttributes - ); - - try { - $this->assertAttributeLessThanOrEqual( - 1, 'bar', new ClassWithNonPublicAttributes - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::readAttribute - */ - public function testReadAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertEquals('foo', $this->readAttribute($obj, 'publicAttribute')); - $this->assertEquals('bar', $this->readAttribute($obj, 'protectedAttribute')); - $this->assertEquals('baz', $this->readAttribute($obj, 'privateAttribute')); - $this->assertEquals('bar', $this->readAttribute($obj, 'protectedParentAttribute')); - //$this->assertEquals('bar', $this->readAttribute($obj, 'privateParentAttribute')); - } - - /** - * @covers PHPUnit_Framework_Assert::readAttribute - */ - public function testReadAttribute2() - { - $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'publicStaticAttribute')); - $this->assertEquals('bar', $this->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticAttribute')); - $this->assertEquals('baz', $this->readAttribute('ClassWithNonPublicAttributes', 'privateStaticAttribute')); - $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticParentAttribute')); - $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'privateStaticParentAttribute')); - } - - /** - * @covers PHPUnit_Framework_Assert::readAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testReadAttribute3() - { - $this->readAttribute('StdClass', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::readAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testReadAttribute4() - { - $this->readAttribute('NotExistingClass', 'foo'); - } - - /** - * @covers PHPUnit_Framework_Assert::readAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testReadAttribute5() - { - $this->readAttribute(NULL, 'foo'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeContains - */ - public function testAssertPublicAttributeContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeContains('foo', 'publicArray', $obj); - - try { - $this->assertAttributeContains('bar', 'publicArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeContainsOnly - */ - public function testAssertPublicAttributeContainsOnly() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeContainsOnly('string', 'publicArray', $obj); - - try { - $this->assertAttributeContainsOnly('integer', 'publicArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotContains - */ - public function testAssertPublicAttributeNotContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotContains('bar', 'publicArray', $obj); - - try { - $this->assertAttributeNotContains('foo', 'publicArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly - */ - public function testAssertPublicAttributeNotContainsOnly() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotContainsOnly('integer', 'publicArray', $obj); - - try { - $this->assertAttributeNotContainsOnly('string', 'publicArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeContains - */ - public function testAssertProtectedAttributeContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeContains('bar', 'protectedArray', $obj); - - try { - $this->assertAttributeContains('foo', 'protectedArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotContains - */ - public function testAssertProtectedAttributeNotContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotContains('foo', 'protectedArray', $obj); - - try { - $this->assertAttributeNotContains('bar', 'protectedArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeContains - */ - public function testAssertPrivateAttributeContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeContains('baz', 'privateArray', $obj); - - try { - $this->assertAttributeContains('foo', 'privateArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotContains - */ - public function testAssertPrivateAttributeNotContains() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotContains('foo', 'privateArray', $obj); - - try { - $this->assertAttributeNotContains('baz', 'privateArray', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertPublicAttributeEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeEquals('foo', 'publicAttribute', $obj); - - try { - $this->assertAttributeEquals('bar', 'publicAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertPublicAttributeNotEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotEquals('bar', 'publicAttribute', $obj); - - try { - $this->assertAttributeNotEquals('foo', 'publicAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeSame - */ - public function testAssertPublicAttributeSame() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeSame('foo', 'publicAttribute', $obj); - - try { - $this->assertAttributeSame('bar', 'publicAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotSame - */ - public function testAssertPublicAttributeNotSame() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotSame('bar', 'publicAttribute', $obj); - - try { - $this->assertAttributeNotSame('foo', 'publicAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertProtectedAttributeEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeEquals('bar', 'protectedAttribute', $obj); - - try { - $this->assertAttributeEquals('foo', 'protectedAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertProtectedAttributeNotEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotEquals('foo', 'protectedAttribute', $obj); - - try { - $this->assertAttributeNotEquals('bar', 'protectedAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertPrivateAttributeEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeEquals('baz', 'privateAttribute', $obj); - - try { - $this->assertAttributeEquals('foo', 'privateAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertPrivateAttributeNotEquals() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertAttributeNotEquals('foo', 'privateAttribute', $obj); - - try { - $this->assertAttributeNotEquals('baz', 'privateAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertPublicStaticAttributeEquals() - { - $this->assertAttributeEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertPublicStaticAttributeNotEquals() - { - $this->assertAttributeNotEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeNotEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertProtectedStaticAttributeEquals() - { - $this->assertAttributeEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertProtectedStaticAttributeNotEquals() - { - $this->assertAttributeNotEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeNotEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEquals - */ - public function testAssertPrivateStaticAttributeEquals() - { - $this->assertAttributeEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals - */ - public function testAssertPrivateStaticAttributeNotEquals() - { - $this->assertAttributeNotEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertAttributeNotEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassHasAttributeThrowsException() - { - $this->assertClassHasAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassHasAttributeThrowsException2() - { - $this->assertClassHasAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassNotHasAttributeThrowsException() - { - $this->assertClassNotHasAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassNotHasAttributeThrowsException2() - { - $this->assertClassNotHasAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassHasStaticAttributeThrowsException() - { - $this->assertClassHasStaticAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassHasStaticAttributeThrowsException2() - { - $this->assertClassHasStaticAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassNotHasStaticAttributeThrowsException() - { - $this->assertClassNotHasStaticAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertClassNotHasStaticAttributeThrowsException2() - { - $this->assertClassNotHasStaticAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertObjectHasAttributeThrowsException() - { - $this->assertObjectHasAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertObjectHasAttributeThrowsException2() - { - $this->assertObjectHasAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertObjectNotHasAttributeThrowsException() - { - $this->assertObjectNotHasAttribute(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertObjectNotHasAttributeThrowsException2() - { - $this->assertObjectNotHasAttribute('foo', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasAttribute - */ - public function testClassHasPublicAttribute() - { - $this->assertClassHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertClassHasAttribute('attribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute - */ - public function testClassNotHasPublicAttribute() - { - $this->assertClassNotHasAttribute('attribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertClassNotHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute - */ - public function testClassHasPublicStaticAttribute() - { - $this->assertClassHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertClassHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute - */ - public function testClassNotHasPublicStaticAttribute() - { - $this->assertClassNotHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes'); - - try { - $this->assertClassNotHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - */ - public function testObjectHasPublicAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectHasAttribute('publicAttribute', $obj); - - try { - $this->assertObjectHasAttribute('attribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - */ - public function testObjectNotHasPublicAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectNotHasAttribute('attribute', $obj); - - try { - $this->assertObjectNotHasAttribute('publicAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - */ - public function testObjectHasOnTheFlyAttribute() - { - $obj = new StdClass; - $obj->foo = 'bar'; - - $this->assertObjectHasAttribute('foo', $obj); - - try { - $this->assertObjectHasAttribute('bar', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - */ - public function testObjectNotHasOnTheFlyAttribute() - { - $obj = new StdClass; - $obj->foo = 'bar'; - - $this->assertObjectNotHasAttribute('bar', $obj); - - try { - $this->assertObjectNotHasAttribute('foo', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - */ - public function testObjectHasProtectedAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectHasAttribute('protectedAttribute', $obj); - - try { - $this->assertObjectHasAttribute('attribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - */ - public function testObjectNotHasProtectedAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectNotHasAttribute('attribute', $obj); - - try { - $this->assertObjectNotHasAttribute('protectedAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute - */ - public function testObjectHasPrivateAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectHasAttribute('privateAttribute', $obj); - - try { - $this->assertObjectHasAttribute('attribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute - */ - public function testObjectNotHasPrivateAttribute() - { - $obj = new ClassWithNonPublicAttributes; - - $this->assertObjectNotHasAttribute('attribute', $obj); - - try { - $this->assertObjectNotHasAttribute('privateAttribute', $obj); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::attribute - * @covers PHPUnit_Framework_Assert::equalTo - */ - public function testAssertThatAttributeEquals() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->attribute( - $this->equalTo('foo'), - 'publicAttribute' - ) - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::attribute - * @covers PHPUnit_Framework_Assert::equalTo - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertThatAttributeEquals2() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->attribute( - $this->equalTo('bar'), - 'publicAttribute' - ) - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::attribute - * @covers PHPUnit_Framework_Assert::equalTo - */ - public function testAssertThatAttributeEqualTo() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->attributeEqualTo('publicAttribute', 'foo') - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::anything - */ - public function testAssertThatAnything() - { - $this->assertThat('anything', $this->anything()); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::anything - * @covers PHPUnit_Framework_Assert::logicalAnd - */ - public function testAssertThatAnythingAndAnything() - { - $this->assertThat( - 'anything', - $this->logicalAnd( - $this->anything(), $this->anything() - ) - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::anything - * @covers PHPUnit_Framework_Assert::logicalOr - */ - public function testAssertThatAnythingOrAnything() - { - $this->assertThat( - 'anything', - $this->logicalOr( - $this->anything(), $this->anything() - ) - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::anything - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Assert::logicalXor - */ - public function testAssertThatAnythingXorNotAnything() - { - $this->assertThat( - 'anything', - $this->logicalXor( - $this->anything(), - $this->logicalNot($this->anything()) - ) - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::contains - */ - public function testAssertThatContains() - { - $this->assertThat(array('foo'), $this->contains('foo')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::stringContains - */ - public function testAssertThatStringContains() - { - $this->assertThat('barfoobar', $this->stringContains('foo')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::containsOnly - */ - public function testAssertThatContainsOnly() - { - $this->assertThat(array('foo'), $this->containsOnly('string')); - } - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf - */ - public function testAssertThatContainsOnlyInstancesOf() - { - $this->assertThat(array(new Book), $this->containsOnlyInstancesOf('Book')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::arrayHasKey - */ - public function testAssertThatArrayHasKey() - { - $this->assertThat(array('foo' => 'bar'), $this->arrayHasKey('foo')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::classHasAttribute - */ - public function testAssertThatClassHasAttribute() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->classHasAttribute('publicAttribute') - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::classHasStaticAttribute - */ - public function testAssertThatClassHasStaticAttribute() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->classHasStaticAttribute('publicStaticAttribute') - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::objectHasAttribute - */ - public function testAssertThatObjectHasAttribute() - { - $this->assertThat( - new ClassWithNonPublicAttributes, - $this->objectHasAttribute('publicAttribute') - ); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::equalTo - */ - public function testAssertThatEqualTo() - { - $this->assertThat('foo', $this->equalTo('foo')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::identicalTo - */ - public function testAssertThatIdenticalTo() - { - $value = new StdClass; - $constraint = $this->identicalTo($value); - - $this->assertThat($value, $constraint); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::isInstanceOf - */ - public function testAssertThatIsInstanceOf() - { - $this->assertThat(new StdClass, $this->isInstanceOf('StdClass')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::isType - */ - public function testAssertThatIsType() - { - $this->assertThat('string', $this->isType('string')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::fileExists - */ - public function testAssertThatFileExists() - { - $this->assertThat(__FILE__, $this->fileExists()); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::greaterThan - */ - public function testAssertThatGreaterThan() - { - $this->assertThat(2, $this->greaterThan(1)); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::greaterThanOrEqual - */ - public function testAssertThatGreaterThanOrEqual() - { - $this->assertThat(2, $this->greaterThanOrEqual(1)); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::lessThan - */ - public function testAssertThatLessThan() - { - $this->assertThat(1, $this->lessThan(2)); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::lessThanOrEqual - */ - public function testAssertThatLessThanOrEqual() - { - $this->assertThat(1, $this->lessThanOrEqual(2)); - } - - /** - * @covers PHPUnit_Framework_Assert::assertThat - * @covers PHPUnit_Framework_Assert::matchesRegularExpression - */ - public function testAssertThatMatchesRegularExpression() - { - $this->assertThat('foobar', $this->matchesRegularExpression('/foo/')); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagTypeTrue() - { - $matcher = array('tag' => 'html'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagTypeFalse() - { - $matcher = array('tag' => 'code'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagIdTrue() - { - $matcher = array('id' => 'test_text'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagIdFalse() - { - $matcher = array('id' => 'test_text_doesnt_exist'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagStringContentTrue() - { - $matcher = array('id' => 'test_text', - 'content' => 'My test tag content'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagStringContentFalse() - { - $matcher = array('id' => 'test_text', - 'content' => 'My non existent tag content'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagRegexpContentTrue() - { - $matcher = array('id' => 'test_text', - 'content' => 'regexp:/test tag/'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagRegexpModifierContentTrue() - { - $matcher = array('id' => 'test_text', - 'content' => 'regexp:/TEST TAG/i'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagRegexpContentFalse() - { - $matcher = array('id' => 'test_text', - 'content' => 'regexp:/asdf/'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesTrueA() - { - $matcher = array('tag' => 'span', - 'attributes' => array('class' => 'test_class')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesTrueB() - { - $matcher = array('tag' => 'div', - 'attributes' => array('id' => 'test_child_id')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagAttributesFalse() - { - $matcher = array('tag' => 'span', - 'attributes' => array('class' => 'test_missing_class')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesRegexpTrueA() - { - $matcher = array('tag' => 'span', - 'attributes' => array('class' => 'regexp:/.+_class/')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesRegexpTrueB() - { - $matcher = array('tag' => 'div', - 'attributes' => array('id' => 'regexp:/.+_child_.+/')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesRegexpModifierTrue() - { - $matcher = array('tag' => 'div', - 'attributes' => array('id' => 'regexp:/.+_CHILD_.+/i')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagAttributesRegexpModifierFalse() - { - $matcher = array('tag' => 'div', - 'attributes' => array('id' => 'regexp:/.+_CHILD_.+/')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagAttributesRegexpFalse() - { - $matcher = array('tag' => 'span', - 'attributes' => array('class' => 'regexp:/.+_missing_.+/')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesMultiPartClassTrueA() - { - $matcher = array('tag' => 'div', - 'id' => 'test_multi_class', - 'attributes' => array('class' => 'multi class')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAttributesMultiPartClassTrueB() - { - $matcher = array('tag' => 'div', - 'id' => 'test_multi_class', - 'attributes' => array('class' => 'multi')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagAttributesMultiPartClassFalse() - { - $matcher = array('tag' => 'div', - 'id' => 'test_multi_class', - 'attributes' => array('class' => 'mul')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagParentTrue() - { - $matcher = array('tag' => 'head', - 'parent' => array('tag' => 'html')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagParentFalse() - { - $matcher = array('tag' => 'head', - 'parent' => array('tag' => 'div')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagMultiplePossibleChildren() - { - $matcher = array( - 'tag' => 'li', - 'parent' => array( - 'tag' => 'ul', - 'id' => 'another_ul' - ) - ); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagChildTrue() - { - $matcher = array('tag' => 'html', - 'child' => array('tag' => 'head')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagChildFalse() - { - $matcher = array('tag' => 'html', - 'child' => array('tag' => 'div')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagAncestorTrue() - { - $matcher = array('tag' => 'div', - 'ancestor' => array('tag' => 'html')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagAncestorFalse() - { - $matcher = array('tag' => 'html', - 'ancestor' => array('tag' => 'div')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagDescendantTrue() - { - $matcher = array('tag' => 'html', - 'descendant' => array('tag' => 'div')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagDescendantFalse() - { - $matcher = array('tag' => 'div', - 'descendant' => array('tag' => 'html')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagChildrenCountTrue() - { - $matcher = array('tag' => 'ul', - 'children' => array('count' => 3)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagChildrenCountFalse() - { - $matcher = array('tag' => 'ul', - 'children' => array('count' => 5)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagChildrenLessThanTrue() - { - $matcher = array('tag' => 'ul', - 'children' => array('less_than' => 10)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagChildrenLessThanFalse() - { - $matcher = array('tag' => 'ul', - 'children' => array('less_than' => 2)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagChildrenGreaterThanTrue() - { - $matcher = array('tag' => 'ul', - 'children' => array('greater_than' => 2)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagChildrenGreaterThanFalse() - { - $matcher = array('tag' => 'ul', - 'children' => array('greater_than' => 10)); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagChildrenOnlyTrue() - { - $matcher = array('tag' => 'ul', - 'children' => array('only' => array('tag' =>'li'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagChildrenOnlyFalse() - { - $matcher = array('tag' => 'ul', - 'children' => array('only' => array('tag' =>'div'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagTypeIdTrueA() - { - $matcher = array('tag' => 'ul', 'id' => 'my_ul'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagTypeIdTrueB() - { - $matcher = array('id' => 'my_ul', 'tag' => 'ul'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagTypeIdTrueC() - { - $matcher = array('tag' => 'input', 'id' => 'input_test_id'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertTagTypeIdFalse() - { - $matcher = array('tag' => 'div', 'id' => 'my_ul'); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertTagContentAttributes() - { - $matcher = array('tag' => 'div', - 'content' => 'Test Id Text', - 'attributes' => array('id' => 'test_id', - 'class' => 'my_test_class')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertParentContentAttributes() - { - $matcher = array('tag' => 'div', - 'content' => 'Test Id Text', - 'attributes' => array('id' => 'test_id', - 'class' => 'my_test_class'), - 'parent' => array('tag' => 'body')); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertChildContentAttributes() - { - $matcher = array('tag' => 'div', - 'content' => 'Test Id Text', - 'attributes' => array('id' => 'test_id', - 'class' => 'my_test_class'), - 'child' => array('tag' => 'div', - 'attributes' => array('id' => 'test_child_id'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertChildSubChildren() - { - $matcher = array('id' => 'test_id', - 'child' => array('id' => 'test_child_id', - 'child' => array('id' => 'test_subchild_id'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertAncestorContentAttributes() - { - $matcher = array('id' => 'test_subchild_id', - 'content' => 'My Subchild', - 'attributes' => array('id' => 'test_subchild_id'), - 'ancestor' => array('tag' => 'div', - 'attributes' => array('id' => 'test_id'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertDescendantContentAttributes() - { - $matcher = array('id' => 'test_id', - 'content' => 'Test Id Text', - 'attributes' => array('id' => 'test_id'), - 'descendant' => array('tag' => 'span', - 'attributes' => array('id' => 'test_subchild_id'))); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertTag - */ - public function testAssertChildrenContentAttributes() - { - $matcher = array('id' => 'test_children', - 'content' => 'My Children', - 'attributes' => array('class' => 'children'), - - 'children' => array('less_than' => '25', - 'greater_than' => '2', - 'only' => array('tag' => 'div', - 'attributes' => array('class' => 'my_child')) - )); - $this->assertTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotTag - */ - public function testAssertNotTagTypeIdFalse() - { - $matcher = array('tag' => 'div', 'id' => 'my_ul'); - $this->assertNotTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotTag - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertNotTagContentAttributes() - { - $matcher = array('tag' => 'div', - 'content' => 'Test Id Text', - 'attributes' => array('id' => 'test_id', - 'class' => 'my_test_class')); - $this->assertNotTag($matcher, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountPresentTrue() - { - $selector = 'div#test_id'; - $count = TRUE; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountPresentFalse() - { - $selector = 'div#non_existent'; - $count = TRUE; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountNotPresentTrue() - { - $selector = 'div#non_existent'; - $count = FALSE; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectNotPresentFalse() - { - $selector = 'div#test_id'; - $count = FALSE; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountChildTrue() - { - $selector = '#my_ul > li'; - $count = 3; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountChildFalse() - { - $selector = '#my_ul > li'; - $count = 4; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountDescendantTrue() - { - $selector = '#my_ul li'; - $count = 3; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountDescendantFalse() - { - $selector = '#my_ul li'; - $count = 4; - - $this->assertSelectCount($selector, $count, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountGreaterThanTrue() - { - $selector = '#my_ul > li'; - $range = array('>' => 2); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountGreaterThanFalse() - { - $selector = '#my_ul > li'; - $range = array('>' => 3); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountGreaterThanEqualToTrue() - { - $selector = '#my_ul > li'; - $range = array('>=' => 3); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountGreaterThanEqualToFalse() - { - $selector = '#my_ul > li'; - $range = array('>=' => 4); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountLessThanTrue() - { - $selector = '#my_ul > li'; - $range = array('<' => 4); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountLessThanFalse() - { - $selector = '#my_ul > li'; - $range = array('<' => 3); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountLessThanEqualToTrue() - { - $selector = '#my_ul > li'; - $range = array('<=' => 3); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountLessThanEqualToFalse() - { - $selector = '#my_ul > li'; - $range = array('<=' => 2); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - */ - public function testAssertSelectCountRangeTrue() - { - $selector = '#my_ul > li'; - $range = array('>' => 2, '<' => 4); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectCount - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectCountRangeFalse() - { - $selector = '#my_ul > li'; - $range = array('>' => 1, '<' => 3); - - $this->assertSelectCount($selector, $range, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectEquals - */ - public function testAssertSelectEqualsContentPresentTrue() - { - $selector = 'span.test_class'; - $content = 'Test Class Text'; - - $this->assertSelectEquals($selector, $content, TRUE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectEquals - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectEqualsContentPresentFalse() - { - $selector = 'span.test_class'; - $content = 'Test Nonexistent'; - - $this->assertSelectEquals($selector, $content, TRUE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectEquals - */ - public function testAssertSelectEqualsContentNotPresentTrue() - { - $selector = 'span.test_class'; - $content = 'Test Nonexistent'; - - $this->assertSelectEquals($selector, $content, FALSE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectEquals - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertSelectEqualsContentNotPresentFalse() - { - $selector = 'span.test_class'; - $content = 'Test Class Text'; - - $this->assertSelectEquals($selector, $content, FALSE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectRegExp - */ - public function testAssertSelectRegExpContentPresentTrue() - { - $selector = 'span.test_class'; - $regexp = '/Test.*Text/'; - - $this->assertSelectRegExp($selector, $regexp, TRUE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertSelectRegExp - */ - public function testAssertSelectRegExpContentPresentFalse() - { - $selector = 'span.test_class'; - $regexp = '/Nonexistant/'; - - $this->assertSelectRegExp($selector, $regexp, FALSE, $this->html); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileEquals - */ - public function testAssertFileEquals() - { - $this->assertFileEquals( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'foo.xml' - ); - - try { - $this->assertFileEquals( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'bar.xml' - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertFileNotEquals - */ - public function testAssertFileNotEquals() - { - $this->assertFileNotEquals( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'bar.xml' - ); - - try { - $this->assertFileNotEquals( - $this->filesDirectory . 'foo.xml', - $this->filesDirectory . 'foo.xml' - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEqualsFile - */ - public function testAssertStringEqualsFile() - { - $this->assertStringEqualsFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'foo.xml') - ); - - try { - $this->assertStringEqualsFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'bar.xml') - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile - */ - public function testAssertStringNotEqualsFile() - { - $this->assertStringNotEqualsFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'bar.xml') - ); - - try { - $this->assertStringNotEqualsFile( - $this->filesDirectory . 'foo.xml', - file_get_contents($this->filesDirectory . 'foo.xml') - ); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringStartsWithThrowsException() - { - $this->assertStringStartsWith(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringStartsWithThrowsException2() - { - $this->assertStringStartsWith('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringStartsNotWithThrowsException() - { - $this->assertStringStartsNotWith(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringStartsNotWithThrowsException2() - { - $this->assertStringStartsNotWith('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringEndsWithThrowsException() - { - $this->assertStringEndsWith(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringEndsWithThrowsException2() - { - $this->assertStringEndsWith('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringEndsNotWithThrowsException() - { - $this->assertStringEndsNotWith(NULL, NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith - * @expectedException PHPUnit_Framework_Exception - */ - public function testAssertStringEndsNotWithThrowsException2() - { - $this->assertStringEndsNotWith('', NULL); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsWith - */ - public function testAssertStringStartsWith() - { - $this->assertStringStartsWith('prefix', 'prefixfoo'); - - try { - $this->assertStringStartsWith('prefix', 'foo'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith - */ - public function testAssertStringStartsNotWith() - { - $this->assertStringStartsNotWith('prefix', 'foo'); - - try { - $this->assertStringStartsNotWith('prefix', 'prefixfoo'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsWith - */ - public function testAssertStringEndsWith() - { - $this->assertStringEndsWith('suffix', 'foosuffix'); - - try { - $this->assertStringEndsWith('suffix', 'foo'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith - */ - public function testAssertStringEndsNotWith() - { - $this->assertStringEndsNotWith('suffix', 'foo'); - - try { - $this->assertStringEndsNotWith('suffix', 'foosuffix'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat - */ - public function testAssertStringMatchesFormat() - { - $this->assertStringMatchesFormat('*%s*', '***'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat - * @expectedException PHPUnit_Framework_AssertionFailedError - */ - public function testAssertStringMatchesFormatFailure() - { - $this->assertStringMatchesFormat('*%s*', '**'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat - */ - public function testAssertStringNotMatchesFormat() - { - $this->assertStringNotMatchesFormat('*%s*', '**'); - - try { - $this->assertStringMatchesFormat('*%s*', '**'); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertEmpty - */ - public function testAssertEmpty() - { - $this->assertEmpty(array()); - - try { - $this->assertEmpty(array('foo')); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertNotEmpty - */ - public function testAssertNotEmpty() - { - $this->assertNotEmpty(array('foo')); - - try { - $this->assertNotEmpty(array()); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeEmpty - */ - public function testAssertAttributeEmpty() - { - $o = new StdClass; - $o->a = array(); - - $this->assertAttributeEmpty('a', $o); - - try { - $o->a = array('b'); - $this->assertAttributeEmpty('a', $o); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertAttributeNotEmpty - */ - public function testAssertAttributeNotEmpty() - { - $o = new StdClass; - $o->a = array('b'); - - $this->assertAttributeNotEmpty('a', $o); - - try { - $o->a = array(); - $this->assertAttributeNotEmpty('a', $o); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::markTestIncomplete - */ - public function testMarkTestIncomplete() - { - try { - $this->markTestIncomplete('incomplete'); - } - - catch (PHPUnit_Framework_IncompleteTestError $e) { - $this->assertEquals('incomplete', $e->getMessage()); - - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::markTestSkipped - */ - public function testMarkTestSkipped() - { - try { - $this->markTestSkipped('skipped'); - } - - catch (PHPUnit_Framework_SkippedTestError $e) { - $this->assertEquals('skipped', $e->getMessage()); - - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertCount - */ - public function testAssertCount() - { - $this->assertCount(2, array(1,2)); - - try { - $this->assertCount(2, array(1,2,3)); - } - - catch (PHPUnit_Framework_AssertionFailedError $e) { - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertCount - */ - public function testAssertCountThrowsExceptionIfExpectedCountIsNoInteger() - { - - try { - $this->assertCount('a', array()); - } - - catch (PHPUnit_Framework_Exception $e) { - $this->assertEquals('Argument #1 of PHPUnit_Framework_Assert::assertCount() must be a integer', $e->getMessage()); - - return; - } - - $this->fail(); - } - - - /** - * @covers PHPUnit_Framework_Assert::assertCount - */ - public function testAssertCountThrowsExceptionIfElementIsNotCountable() - { - - try { - $this->assertCount(2, ''); - } - - catch (PHPUnit_Framework_Exception $e) { - $this->assertEquals('Argument #2 of PHPUnit_Framework_Assert::assertCount() must be a countable', $e->getMessage()); - - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString - */ - public function testAssertJsonStringEqualsJsonString() - { - $expected = '{"Mascott" : "Tux"}'; - $actual = '{"Mascott" : "Tux"}'; - $message = 'Given Json strings do not match'; - - $this->assertJsonStringEqualsJsonString($expected, $actual, $message); - } - - /** - * @dataProvider validInvalidJsonDataprovider - * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString - */ - public function testAssertJsonStringEqualsJsonStringErrorRaised($expected, $actual) - { - try { - $this->assertJsonStringEqualsJsonString($expected, $actual); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - return; - } - $this->fail('Expected exception not found'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString - */ - public function testAssertJsonStringNotEqualsJsonString() - { - $expected = '{"Mascott" : "Beastie"}'; - $actual = '{"Mascott" : "Tux"}'; - $message = 'Given Json strings do match'; - - $this->assertJsonStringNotEqualsJsonString($expected, $actual, $message); - } - - /** - * @dataProvider validInvalidJsonDataprovider - * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString - */ - public function testAssertJsonStringNotEqualsJsonStringErrorRaised($expected, $actual) - { - $this->assertJsonStringNotEqualsJsonString($expected, $actual); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile - */ - public function testAssertJsonStringEqualsJsonFile() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - $actual = json_encode(array("Mascott" => "Tux")); - $message = ''; - $this->assertJsonStringEqualsJsonFile($file, $actual, $message); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile - */ - public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - $actual = json_encode(array("Mascott" => "Beastie")); - $message = ''; - try { - $this->assertJsonStringEqualsJsonFile($file, $actual, $message); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - 'Failed asserting that \'{"Mascott":"Beastie"}\' matches JSON string "{"Mascott":"Tux"}".', - $e->getMessage() - ); - return; - } - - $this->fail('Expected Exception not thrown.'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile - */ - public function testAssertJsonStringEqualsJsonFileExpectingException() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - try { - $this->assertJsonStringEqualsJsonFile($file, NULL); - } catch (PHPUnit_Framework_Exception $e) { - return; - } - $this->fail('Expected Exception not thrown.'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile - */ - public function testAssertJsonStringNotEqualsJsonFile() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - $actual = json_encode(array("Mascott" => "Beastie")); - $message = ''; - $this->assertJsonStringNotEqualsJsonFile($file, $actual, $message); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile - */ - public function testAssertJsonStringNotEqualsJsonFileExpectingException() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - try { - $this->assertJsonStringNotEqualsJsonFile($file, NULL); - } catch (PHPUnit_Framework_Exception $e) { - return; - } - $this->fail('Expected exception not found.'); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile - */ - public function testAssertJsonFileNotEqualsJsonFile() - { - $fileExpected = __DIR__ . '/../_files/JsonData/simpleObject.js'; - $fileActual = __DIR__ . '/../_files/JsonData/arrayObject.js'; - $message = ''; - $this->assertJsonFileNotEqualsJsonFile($fileExpected, $fileActual, $message); - } - - /** - * @covers PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile - */ - public function testAssertJsonFileEqualsJsonFile() - { - $file = __DIR__ . '/../_files/JsonData/simpleObject.js'; - $message = ''; - $this->assertJsonFileEqualsJsonFile($file, $file, $message); - } - - public static function validInvalidJsonDataprovider() - { - return array( - 'error syntax in expected JSON' => array('{"Mascott"::}', '{"Mascott" : "Tux"}'), - 'error UTF-8 in actual JSON' => array('{"Mascott" : "Tux"}', '{"Mascott" : :}'), - ); - } - -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ComparatorTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ComparatorTest.php deleted file mode 100644 index 13da0959..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ComparatorTest.php +++ /dev/null @@ -1,159 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithToString.php'; - -class TestClass {} -class TestClassComparator extends PHPUnit_Framework_Comparator_Object {} - -/** - * - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class Framework_ComparatorTest extends PHPUnit_Framework_TestCase -{ - // Don't use other test methods than ->fail() here, because the testers tested - // here are the foundation for the other test methods - - public function instanceProvider() - { - $tmpfile = tmpfile(); - - return array( - array(NULL, NULL, 'PHPUnit_Framework_Comparator_Scalar'), - array(NULL, TRUE, 'PHPUnit_Framework_Comparator_Scalar'), - array(TRUE, NULL, 'PHPUnit_Framework_Comparator_Scalar'), - array(TRUE, TRUE, 'PHPUnit_Framework_Comparator_Scalar'), - array(FALSE, FALSE, 'PHPUnit_Framework_Comparator_Scalar'), - array(TRUE, FALSE, 'PHPUnit_Framework_Comparator_Scalar'), - array(FALSE, TRUE, 'PHPUnit_Framework_Comparator_Scalar'), - array('', '', 'PHPUnit_Framework_Comparator_Scalar'), - array('0', '0', 'PHPUnit_Framework_Comparator_Numeric'), - array('0', 0, 'PHPUnit_Framework_Comparator_Numeric'), - array(0, '0', 'PHPUnit_Framework_Comparator_Numeric'), - array(0, 0, 'PHPUnit_Framework_Comparator_Numeric'), - array(1.0, 0, 'PHPUnit_Framework_Comparator_Double'), - array(0, 1.0, 'PHPUnit_Framework_Comparator_Double'), - array(1.0, 1.0, 'PHPUnit_Framework_Comparator_Double'), - array(array(1), array(1), 'PHPUnit_Framework_Comparator_Array'), - array($tmpfile, $tmpfile, 'PHPUnit_Framework_Comparator_Resource'), - array(new stdClass, new stdClass, 'PHPUnit_Framework_Comparator_Object'), - array(new SplObjectStorage, new SplObjectStorage, 'PHPUnit_Framework_Comparator_SplObjectStorage'), - array(new Exception, new Exception, 'PHPUnit_Framework_Comparator_Exception'), - array(new DOMDocument, new DOMDocument, 'PHPUnit_Framework_Comparator_DOMDocument'), - // mixed types - array($tmpfile, array(1), 'PHPUnit_Framework_Comparator_Type'), - array(array(1), $tmpfile, 'PHPUnit_Framework_Comparator_Type'), - array($tmpfile, '1', 'PHPUnit_Framework_Comparator_Type'), - array('1', $tmpfile, 'PHPUnit_Framework_Comparator_Type'), - array($tmpfile, new stdClass, 'PHPUnit_Framework_Comparator_Type'), - array(new stdClass, $tmpfile, 'PHPUnit_Framework_Comparator_Type'), - array(new stdClass, array(1), 'PHPUnit_Framework_Comparator_Type'), - array(array(1), new stdClass, 'PHPUnit_Framework_Comparator_Type'), - array(new stdClass, '1', 'PHPUnit_Framework_Comparator_Type'), - array('1', new stdClass, 'PHPUnit_Framework_Comparator_Type'), - array(new ClassWithToString, '1', 'PHPUnit_Framework_Comparator_Scalar'), - array('1', new ClassWithToString, 'PHPUnit_Framework_Comparator_Scalar'), - array(1.0, new stdClass, 'PHPUnit_Framework_Comparator_Type'), - array(new stdClass, 1.0, 'PHPUnit_Framework_Comparator_Type'), - array(1.0, array(1), 'PHPUnit_Framework_Comparator_Type'), - array(array(1), 1.0, 'PHPUnit_Framework_Comparator_Type'), - ); - } - - /** - * @dataProvider instanceProvider - */ - public function testGetInstance($a, $b, $expected) - { - $factory = new PHPUnit_Framework_ComparatorFactory; - - if (get_class($factory->getComparatorFor($a, $b)) != $expected) { - $this->fail(); - } - } - - public function testRegister() - { - $comparator = new TestClassComparator; - - $factory = new PHPUnit_Framework_ComparatorFactory; - $factory->register($comparator); - - $a = new TestClass; - $b = new TestClass; - $expected = 'TestClassComparator'; - - if (get_class($factory->getComparatorFor($a, $b)) != $expected) { - $factory->unregister($comparator); - $this->fail(); - } - - $factory->unregister($comparator); - } - - public function testUnregister() - { - $comparator = new TestClassComparator; - - $factory = new PHPUnit_Framework_ComparatorFactory; - $factory->register($comparator); - $factory->unregister($comparator); - - $a = new TestClass; - $b = new TestClass; - $expected = 'PHPUnit_Framework_Comparator_Object'; - - if (get_class($factory->getComparatorFor($a, $b)) != $expected) { - var_dump(get_class($factory->getComparatorFor($a, $b))); - $this->fail(); - } - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php deleted file mode 100644 index 79d1bf2e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php +++ /dev/null @@ -1,122 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bastian Feder - * @copyright 2002-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ - -/** - * @package PHPUnit - * @author Bastian Feder - * @copyright 2011-2012 Bastian Feder - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ -class Framework_Constraint_JsonMatches_ErrorMessageProviderTest extends PHPUnit_Framework_TestCase -{ - /** - * @dataProvider translateTypeToPrefixDataprovider - * @covers PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix - */ - public function testTranslatTypeToPrefix($expected, $type) - { - $this->assertEquals( - $expected, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix($type) - ); - } - - /** - * @dataProvider determineJsonErrorDataprovider - * @covers PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError - */ - public function testDetermineJsonError($expected, $error, $prefix) - { - $this->assertEquals( - $expected, - PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError( - $error, - $prefix - ) - ); - } - - public static function determineJsonErrorDataprovider() - { - return array( - 'JSON_ERROR_NONE' => array( - NULL, 'json_error_none', '' - ), - 'JSON_ERROR_DEPTH' => array( - 'Maximum stack depth exceeded', 'json_error_depth', '' - ), - 'prefixed JSON_ERROR_DEPTH' => array( - 'TUX: Maximum stack depth exceeded', 'json_error_depth', 'TUX: ' - ), - 'JSON_ERROR_STATE_MISMatch' => array( - 'Underflow or the modes mismatch', 'json_error_state_mismatch', '' - ), - 'JSON_ERROR_CTRL_CHAR' => array( - 'Unexpected control character found', 'json_error_ctrl_char', '' - ), - 'JSON_ERROR_SYNTAX' => array( - 'Syntax error, malformed JSON', 'json_error_syntax', '' - ), - 'JSON_ERROR_UTF8`' => array( - 'Malformed UTF-8 characters, possibly incorrectly encoded', - 'json_error_utf8', - '' - ), - 'Invalid error indicator' => array( - 'Unknown error', 'invalid_error_indicator', '' - ), - ); - } - - public static function translateTypeToPrefixDataprovider() - { - return array( - 'expected' => array('Expected value JSON decode error - ', 'expected'), - 'actual' => array('Actual value JSON decode error - ', 'actual'), - 'default' => array('', ''), - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatchesTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatchesTest.php deleted file mode 100644 index de656aad..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatchesTest.php +++ /dev/null @@ -1,90 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bastian Feder - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ - -/** - * @package PHPUnit - * @author Bastian Feder - * @copyright 2011 Bastian Feder - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause - * @link http://www.phpunit.de/ - * @since File available since Release 3.7.0 - */ -class Framework_Constraint_JsonMatchesTest extends PHPUnit_Framework_TestCase -{ - - /** - * @dataProvider evaluateDataprovider - * @covers PHPUnit_Framework_Constraint_JsonMatches::evaluate - * @covers PHPUnit_Framework_Constraint_JsonMatches::matches - * @covers PHPUnit_Framework_Constraint_JsonMatches::__construct - * @covers PHPUnit_Framework_Constraint_JsonMatches::getJsonError - */ - public function testEvaluate($expected, $jsonOther, $jsonValue) - { - $constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue); - $this->assertEquals($expected, $constraint->evaluate($jsonOther, '', TRUE)); - } - - /** - * @covers PHPUnit_Framework_Constraint_JsonMatches::toString - */ - public function testToString() - { - $jsonValue = json_encode(array('Mascott' => 'Tux')); - $constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue); - - $this->assertEquals('matches JSON string "' . $jsonValue . '"', $constraint->toString()); - } - - - public static function evaluateDataprovider() - { - return array( - 'valid JSON' => array(TRUE, json_encode(array('Mascott' => 'Tux')), json_encode(array('Mascott' => 'Tux'))), - 'error syntax' => array(FALSE, '{"Mascott"::}', json_encode(array('Mascott' => 'Tux'))), - 'error UTF-8' => array(FALSE, json_encode('\xB1\x31'), json_encode(array('Mascott' => 'Tux'))), - 'invalid JSON in class instantiation' => array(FALSE, json_encode(array('Mascott' => 'Tux')), '{"Mascott"::}'), - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php deleted file mode 100644 index 5d8b9281..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php +++ /dev/null @@ -1,3554 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'TestIterator.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.0.0 - */ -class Framework_ConstraintTest extends PHPUnit_Framework_TestCase -{ - /** - * Removes spaces in front of newlines - * - * @param string $string - * @return string - */ - public static function trimnl($string) - { - return preg_replace('/[ ]*\n/', "\n", $string); - } - - /** - * @covers PHPUnit_Framework_Constraint_ArrayHasKey - * @covers PHPUnit_Framework_Assert::arrayHasKey - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayHasKey() - { - $constraint = PHPUnit_Framework_Assert::arrayHasKey(0); - - $this->assertFalse($constraint->evaluate(array(), '', TRUE)); - $this->assertEquals('has the key 0', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(array()); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ArrayHasKey - * @covers PHPUnit_Framework_Assert::arrayHasKey - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayHasKey2() - { - $constraint = PHPUnit_Framework_Assert::arrayHasKey(0); - - try { - $constraint->evaluate(array(), 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ArrayHasKey - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::arrayHasKey - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayNotHasKey() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::arrayHasKey(0) - ); - - $this->assertFalse($constraint->evaluate(array(0 => 1), '', TRUE)); - $this->assertEquals('does not have the key 0', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(array(0 => 1)); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ArrayHasKey - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::arrayHasKey - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayNotHasKey2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::arrayHasKey(0) - ); - - try { - $constraint->evaluate(array(0), 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_FileExists - * @covers PHPUnit_Framework_Assert::fileExists - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintFileExists() - { - $constraint = PHPUnit_Framework_Assert::fileExists(); - - $this->assertFalse($constraint->evaluate('foo', '', TRUE)); - $this->assertEquals('file exists', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('foo'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_FileExists - * @covers PHPUnit_Framework_Assert::fileExists - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintFileExists2() - { - $constraint = PHPUnit_Framework_Assert::fileExists(); - - try { - $constraint->evaluate('foo', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_FileExists - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Assert::fileExists - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintFileNotExists() - { - $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; - - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::fileExists() - ); - - $this->assertFalse($constraint->evaluate($file, '', TRUE)); - $this->assertEquals('file does not exist', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate($file); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_FileExists - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Assert::fileExists - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintFileNotExists2() - { - $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; - - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::fileExists() - ); - - try { - $constraint->evaluate($file, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Assert::greaterThan - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintGreaterThan() - { - $constraint = PHPUnit_Framework_Assert::greaterThan(1); - - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertTrue($constraint->evaluate(2, '', TRUE)); - $this->assertEquals('is greater than 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(0); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Assert::greaterThan - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintGreaterThan2() - { - $constraint = PHPUnit_Framework_Assert::greaterThan(1); - - try { - $constraint->evaluate(0, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::greaterThan - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotGreaterThan() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::greaterThan(1) - ); - - $this->assertTrue($constraint->evaluate(1, '', TRUE)); - $this->assertEquals('is not greater than 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(2); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::greaterThan - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotGreaterThan2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::greaterThan(1) - ); - - try { - $constraint->evaluate(2, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Assert::greaterThanOrEqual - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintGreaterThanOrEqual() - { - $constraint = PHPUnit_Framework_Assert::greaterThanOrEqual(1); - - $this->assertTrue($constraint->evaluate(1, '', TRUE)); - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertEquals('is equal to 1 or is greater than 1', $constraint->toString()); - $this->assertEquals(2, count($constraint)); - - try { - $constraint->evaluate(0); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Assert::greaterThanOrEqual - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintGreaterThanOrEqual2() - { - $constraint = PHPUnit_Framework_Assert::greaterThanOrEqual(1); - - try { - $constraint->evaluate(0, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::greaterThanOrEqual - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotGreaterThanOrEqual() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::greaterThanOrEqual(1) - ); - - $this->assertFalse($constraint->evaluate(1, '', TRUE)); - $this->assertEquals('not( is equal to 1 or is greater than 1 )', $constraint->toString()); - $this->assertEquals(2, count($constraint)); - - try { - $constraint->evaluate(1); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_GreaterThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::greaterThanOrEqual - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotGreaterThanOrEqual2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::greaterThanOrEqual(1) - ); - - try { - $constraint->evaluate(1, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsAnything - * @covers PHPUnit_Framework_Assert::anything - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsAnything() - { - $constraint = PHPUnit_Framework_Assert::anything(); - - $this->assertTrue($constraint->evaluate(NULL, '', TRUE)); - $this->assertNull($constraint->evaluate(NULL)); - $this->assertEquals('is anything', $constraint->toString()); - $this->assertEquals(0, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsAnything - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::anything - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotIsAnything() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::anything() - ); - - $this->assertFalse($constraint->evaluate(NULL, '', TRUE)); - $this->assertEquals('is not anything', $constraint->toString()); - $this->assertEquals(0, count($constraint)); - - try { - $constraint->evaluate(NULL); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Assert::equalTo - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsEqual() - { - $constraint = PHPUnit_Framework_Assert::equalTo(1); - - $this->assertTrue($constraint->evaluate(1, '', TRUE)); - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertEquals('is equal to 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(0); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - public function isEqualProvider() - { - $a = new stdClass; - $a->foo = 'bar'; - $b = new stdClass; - $ahash = spl_object_hash($a); - $bhash = spl_object_hash($b); - - $c = new stdClass; - $c->foo = 'bar'; - $c->int = 1; - $c->array = array(0, array(1), array(2), 3); - $c->related = new stdClass; - $c->related->foo = "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk"; - $c->self = $c; - $c->c = $c; - $d = new stdClass; - $d->foo = 'bar'; - $d->int = 2; - $d->array = array(0, array(4), array(2), 3); - $d->related = new stdClass; - $d->related->foo = "a\np\nc\nd\ne\nf\ng\nh\ni\nw\nk"; - $d->self = $d; - $d->c = $c; - - $storage1 = new SplObjectStorage; - $storage1->attach($a); - $storage1->attach($b); - $storage2 = new SplObjectStorage; - $storage2->attach($b); - - $dom1 = new DOMDocument; - $dom1->preserveWhiteSpace = FALSE; - $dom1->loadXML(''); - $dom2 = new DOMDocument; - $dom2->preserveWhiteSpace = FALSE; - $dom2->loadXML(''); - - return array( - array(1, 0, << 0 -+ 0 => 1 - ) - -EOF - ), - array(array(TRUE), array('true'), << true -+ 0 => 'true' - ) - -EOF - ), - array(array(0, array(1), array(2), 3), array(0, array(4), array(2), 3), << 0 - 1 => Array ( -- 0 => 1 -+ 0 => 4 - ) - 2 => Array (...) - 3 => 3 - ) - -EOF - ), - array($a, array(0), << 'bar' - ) - -EOF - ), - array($c, $d, << 'bar' -- 'int' => 1 -+ 'int' => 2 - 'array' => Array ( - 0 => 0 - 1 => Array ( -- 0 => 1 -+ 0 => 4 - -@@ @@ - 'foo' => 'a -- b -+ p - -@@ @@ - i -- j -+ w - k' - ) - 'self' => stdClass Object (...) - 'c' => stdClass Object (...) - ) - -EOF - ), - array($storage1, $storage2, << Array ( -- 'obj' => stdClass Object ( -- 'foo' => 'bar' -- ) -- 'inf' => null -- ) - '$bhash' => Array ( - 'obj' => stdClass Object () - 'inf' => null - ) - ) - -EOF - ), - array($dom1, $dom2, << -- -+ -+ -+ - -EOF - ), - ); - } - - /** - * @dataProvider isEqualProvider - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Assert::equalTo - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsEqual2($expected, $actual, $message) - { - $constraint = PHPUnit_Framework_Assert::equalTo($expected); - - try { - $constraint->evaluate($actual, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - "custom message\n$message", - self::trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) - ); - - return; - } - - $this->fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::equalTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotEqual() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::equalTo(1) - ); - - $this->assertTrue($constraint->evaluate(0, '', TRUE)); - $this->assertFalse($constraint->evaluate(1, '', TRUE)); - $this->assertEquals('is not equal to 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(1); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::equalTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotEqual2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::equalTo(1) - ); - - try { - $constraint->evaluate(1, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsIdentical() - { - $a = new stdClass; - $b = new stdClass; - - $constraint = PHPUnit_Framework_Assert::identicalTo($a); - - $this->assertFalse($constraint->evaluate($b, '', TRUE)); - $this->assertTrue($constraint->evaluate($a, '', TRUE)); - $this->assertEquals('is identical to an object of class "stdClass"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate($b); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsIdentical2() - { - $a = new stdClass; - $b = new stdClass; - - $constraint = PHPUnit_Framework_Assert::identicalTo($a); - - try { - $constraint->evaluate($b, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsIdentical3() - { - $constraint = PHPUnit_Framework_Assert::identicalTo('a'); - - try { - $constraint->evaluate('b', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotIdentical() - { - $a = new stdClass; - $b = new stdClass; - - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::identicalTo($a) - ); - - $this->assertTrue($constraint->evaluate($b, '', TRUE)); - $this->assertFalse($constraint->evaluate($a, '', TRUE)); - $this->assertEquals('is not identical to an object of class "stdClass"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate($a); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotIdentical2() - { - $a = new stdClass; - - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::identicalTo($a) - ); - - try { - $constraint->evaluate($a, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsIdentical - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::identicalTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotIdentical3() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::identicalTo('a') - ); - - try { - $constraint->evaluate('a', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsInstanceOf - * @covers PHPUnit_Framework_Assert::isInstanceOf - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsInstanceOf() - { - $constraint = PHPUnit_Framework_Assert::isInstanceOf('Exception'); - - $this->assertFalse($constraint->evaluate(new stdClass, '', TRUE)); - $this->assertTrue($constraint->evaluate(new Exception, '', TRUE)); - $this->assertEquals('is instance of class "Exception"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(new stdClass); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsInstanceOf - * @covers PHPUnit_Framework_Assert::isInstanceOf - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsInstanceOf2() - { - $constraint = PHPUnit_Framework_Assert::isInstanceOf('Exception'); - - try { - $constraint->evaluate(new stdClass, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsInstanceOf - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isInstanceOf - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotInstanceOf() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isInstanceOf('stdClass') - ); - - $this->assertFalse($constraint->evaluate(new stdClass, '', TRUE)); - $this->assertTrue($constraint->evaluate(new Exception, '', TRUE)); - $this->assertEquals('is not instance of class "stdClass"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(new stdClass); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsInstanceOf - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isInstanceOf - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotInstanceOf2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isInstanceOf('stdClass') - ); - - try { - $constraint->evaluate(new stdClass, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsType - * @covers PHPUnit_Framework_Assert::isType - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsType() - { - $constraint = PHPUnit_Framework_Assert::isType('string'); - - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertTrue($constraint->evaluate('', '', TRUE)); - $this->assertEquals('is of type "string"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(new stdClass); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsType - * @covers PHPUnit_Framework_Assert::isType - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsType2() - { - $constraint = PHPUnit_Framework_Assert::isType('string'); - - try { - $constraint->evaluate(new stdClass, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsType - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isType - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotType() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isType('string') - ); - - $this->assertTrue($constraint->evaluate(0, '', TRUE)); - $this->assertFalse($constraint->evaluate('', '', TRUE)); - $this->assertEquals('is not of type "string"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(''); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsType - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isType - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotType2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isType('string') - ); - - try { - $constraint->evaluate('', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsNull - * @covers PHPUnit_Framework_Assert::isNull - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNull() - { - $constraint = PHPUnit_Framework_Assert::isNull(); - - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertTrue($constraint->evaluate(NULL, '', TRUE)); - $this->assertEquals('is null', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(0); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsNull - * @covers PHPUnit_Framework_Assert::isNull - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNull2() - { - $constraint = PHPUnit_Framework_Assert::isNull(); - - try { - $constraint->evaluate(0, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsNull - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isNull - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotNull() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isNull() - ); - - $this->assertFalse($constraint->evaluate(NULL, '', TRUE)); - $this->assertTrue($constraint->evaluate(0, '', TRUE)); - $this->assertEquals('is not null', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(NULL); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsNull - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::isNull - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsNotNull2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::isNull() - ); - - try { - $constraint->evaluate(NULL, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Assert::lessThan - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintLessThan() - { - $constraint = PHPUnit_Framework_Assert::lessThan(1); - - $this->assertTrue($constraint->evaluate(0, '', TRUE)); - $this->assertFalse($constraint->evaluate(1, '', TRUE)); - $this->assertEquals('is less than 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(1); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Assert::lessThan - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintLessThan2() - { - $constraint = PHPUnit_Framework_Assert::lessThan(1); - - try { - $constraint->evaluate(1, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::lessThan - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotLessThan() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::lessThan(1) - ); - - $this->assertTrue($constraint->evaluate(1, '', TRUE)); - $this->assertFalse($constraint->evaluate(0, '', TRUE)); - $this->assertEquals('is not less than 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(0); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::lessThan - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotLessThan2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::lessThan(1) - ); - - try { - $constraint->evaluate(0, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Assert::lessThanOrEqual - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintLessThanOrEqual() - { - $constraint = PHPUnit_Framework_Assert::lessThanOrEqual(1); - - $this->assertTrue($constraint->evaluate(1, '', TRUE)); - $this->assertFalse($constraint->evaluate(2, '', TRUE)); - $this->assertEquals('is equal to 1 or is less than 1', $constraint->toString()); - $this->assertEquals(2, count($constraint)); - - try { - $constraint->evaluate(2); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - */ - public function testConstraintCallback() - { - $closureReflect = function($parameter) { - return $parameter; - }; - - $closureWithoutParameter = function() { - return TRUE; - }; - - $constraint = PHPUnit_Framework_Assert::callback($closureWithoutParameter); - $this->assertTrue($constraint->evaluate('', '', TRUE)); - - $constraint = PHPUnit_Framework_Assert::callback($closureReflect); - $this->assertTrue($constraint->evaluate(TRUE, '', TRUE)); - $this->assertFalse($constraint->evaluate(FALSE, '', TRUE)); - - $callback = array($this, 'callbackReturningTrue'); - $constraint = PHPUnit_Framework_Assert::callback($callback); - $this->assertTrue($constraint->evaluate(FALSE, '', TRUE)); - - $callback = array('Framework_ConstraintTest', 'staticCallbackReturningTrue'); - $constraint = PHPUnit_Framework_Assert::callback($callback); - $this->assertTrue($constraint->evaluate(NULL, '', TRUE)); - - $this->assertEquals('is accepted by specified callback', $constraint->toString()); - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException PHPUnit_Framework_ExpectationFailedException - * @expectedExceptionMessage Failed asserting that 'This fails' is accepted by specified callback. - */ - public function testConstraintCallbackFailure() - { - $constraint = PHPUnit_Framework_Assert::callback(function() { - return FALSE; - }); - $constraint->evaluate('This fails'); - } - - public function callbackReturningTrue() - { - return TRUE; - } - - public static function staticCallbackReturningTrue() - { - return TRUE; - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Specified callback is not callable. - */ - public function testConstraintCallbackInvalidFunctionArgument() - { - PHPUnit_Framework_Assert::callback('invalid callback'); - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Specified callback is not callable. - */ - public function testConstraintCallbackInvalidArrayArgumentWithEmptyArray() - { - PHPUnit_Framework_Assert::callback(array()); - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Specified callback is not callable. - */ - public function testConstraintCallbackInvalidArrayArgumentWithBadArray() - { - PHPUnit_Framework_Assert::callback(array(3 => 'foo')); - } - - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Specified callback is not callable. - */ - public function testConstraintCallbackInvalidArrayArgumentWithObject() - { - PHPUnit_Framework_Assert::callback(array($this, 'invalid callback')); - } - - /** - * @covers PHPUnit_Framework_Constraint_Callback - * @expectedException InvalidArgumentException - * @expectedExceptionMessage Specified callback is not callable. - */ - public function testConstraintCallbackInvalidArrayArgumentWithClassname() - { - PHPUnit_Framework_Assert::callback(array('Framework_ConstraintTest', 'invalid callback')); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Assert::lessThanOrEqual - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintLessThanOrEqual2() - { - $constraint = PHPUnit_Framework_Assert::lessThanOrEqual(1); - - try { - $constraint->evaluate(2, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::lessThanOrEqual - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotLessThanOrEqual() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::lessThanOrEqual(1) - ); - - $this->assertTrue($constraint->evaluate(2, '', TRUE)); - $this->assertFalse($constraint->evaluate(1, '', TRUE)); - $this->assertEquals('not( is equal to 1 or is less than 1 )', $constraint->toString()); - $this->assertEquals(2, count($constraint)); - - try { - $constraint->evaluate(1); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEqual - * @covers PHPUnit_Framework_Constraint_LessThan - * @covers PHPUnit_Framework_Constraint_Or - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::lessThanOrEqual - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotLessThanOrEqual2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::lessThanOrEqual(1) - ); - - try { - $constraint->evaluate(1, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasAttribute - * @covers PHPUnit_Framework_Assert::classHasAttribute - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassHasAttribute() - { - $constraint = PHPUnit_Framework_Assert::classHasAttribute('privateAttribute'); - - $this->assertTrue($constraint->evaluate('ClassWithNonPublicAttributes', '', TRUE)); - $this->assertFalse($constraint->evaluate('stdClass', '', TRUE)); - $this->assertEquals('has attribute "privateAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('stdClass'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasAttribute - * @covers PHPUnit_Framework_Assert::classHasAttribute - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassHasAttribute2() - { - $constraint = PHPUnit_Framework_Assert::classHasAttribute('privateAttribute'); - - try { - $constraint->evaluate('stdClass', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::classHasAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassNotHasAttribute() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') - ); - - $this->assertTrue($constraint->evaluate('stdClass', '', TRUE)); - $this->assertFalse($constraint->evaluate('ClassWithNonPublicAttributes', '', TRUE)); - $this->assertEquals('does not have attribute "privateAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::classHasAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassNotHasAttribute2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') - ); - - try { - $constraint->evaluate('ClassWithNonPublicAttributes', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @covers PHPUnit_Framework_Assert::classHasStaticAttribute - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassHasStaticAttribute() - { - $constraint = PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute'); - - $this->assertTrue($constraint->evaluate('ClassWithNonPublicAttributes', '', TRUE)); - $this->assertFalse($constraint->evaluate('stdClass', '', TRUE)); - $this->assertEquals('has static attribute "privateStaticAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('stdClass'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @covers PHPUnit_Framework_Assert::classHasStaticAttribute - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassHasStaticAttribute2() - { - $constraint = PHPUnit_Framework_Assert::classHasStaticAttribute('foo'); - - try { - $constraint->evaluate('stdClass', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::classHasStaticAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassNotHasStaticAttribute() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') - ); - - $this->assertTrue($constraint->evaluate('stdClass', '', TRUE)); - $this->assertFalse($constraint->evaluate('ClassWithNonPublicAttributes', '', TRUE)); - $this->assertEquals('does not have static attribute "privateStaticAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('ClassWithNonPublicAttributes'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::classHasStaticAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintClassNotHasStaticAttribute2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') - ); - - try { - $constraint->evaluate('ClassWithNonPublicAttributes', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute - * @covers PHPUnit_Framework_Assert::objectHasAttribute - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintObjectHasAttribute() - { - $constraint = PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute'); - - $this->assertTrue($constraint->evaluate(new ClassWithNonPublicAttributes, '', TRUE)); - $this->assertFalse($constraint->evaluate(new stdClass, '', TRUE)); - $this->assertEquals('has attribute "privateAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(new stdClass); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute - * @covers PHPUnit_Framework_Assert::objectHasAttribute - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintObjectHasAttribute2() - { - $constraint = PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute'); - - try { - $constraint->evaluate(new stdClass, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::objectHasAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintObjectNotHasAttribute() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') - ); - - $this->assertTrue($constraint->evaluate(new stdClass, '', TRUE)); - $this->assertFalse($constraint->evaluate(new ClassWithNonPublicAttributes, '', TRUE)); - $this->assertEquals('does not have attribute "privateAttribute"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(new ClassWithNonPublicAttributes); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::objectHasAttribute - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintObjectNotHasAttribute2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') - ); - - try { - $constraint->evaluate(new ClassWithNonPublicAttributes, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_PCREMatch - * @covers PHPUnit_Framework_Assert::matchesRegularExpression - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintPCREMatch() - { - $constraint = PHPUnit_Framework_Assert::matchesRegularExpression('/foo/'); - - $this->assertFalse($constraint->evaluate('barbazbar', '', TRUE)); - $this->assertTrue($constraint->evaluate('barfoobar', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/foo/"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('barbazbar'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_PCREMatch - * @covers PHPUnit_Framework_Assert::matchesRegularExpression - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintPCREMatch2() - { - $constraint = PHPUnit_Framework_Assert::matchesRegularExpression('/foo/'); - - try { - $constraint->evaluate('barbazbar', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_PCREMatch - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::matchesRegularExpression - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintPCRENotMatch() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') - ); - - $this->assertTrue($constraint->evaluate('barbazbar', '', TRUE)); - $this->assertFalse($constraint->evaluate('barfoobar', '', TRUE)); - $this->assertEquals('does not match PCRE pattern "/foo/"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('barfoobar'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_PCREMatch - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::matchesRegularExpression - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintPCRENotMatch2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') - ); - - try { - $constraint->evaluate('barfoobar', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals(<<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches() - { - $constraint = PHPUnit_Framework_Assert::matches('*%c*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('***', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*.\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches2() - { - $constraint = PHPUnit_Framework_Assert::matches('*%s*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('***', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*[^\r\n]+\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches3() - { - $constraint = PHPUnit_Framework_Assert::matches('*%i*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('*0*', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*[+-]?\d+\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches4() - { - $constraint = PHPUnit_Framework_Assert::matches('*%d*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('*0*', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*\d+\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches5() - { - $constraint = PHPUnit_Framework_Assert::matches('*%x*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('*0f0f0f*', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*[0-9a-fA-F]+\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringMatches - * @covers PHPUnit_Framework_Assert::matches - * @covers PHPUnit_Framework_Constraint::count - */ - public function testConstraintStringMatches6() - { - $constraint = PHPUnit_Framework_Assert::matches('*%f*'); - $this->assertFalse($constraint->evaluate('**', '', TRUE)); - $this->assertTrue($constraint->evaluate('*1.0*', '', TRUE)); - $this->assertEquals('matches PCRE pattern "/^\*[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?\*$/s"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringStartsWith - * @covers PHPUnit_Framework_Assert::stringStartsWith - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringStartsWith() - { - $constraint = PHPUnit_Framework_Assert::stringStartsWith('prefix'); - - $this->assertFalse($constraint->evaluate('foo', '', TRUE)); - $this->assertTrue($constraint->evaluate('prefixfoo', '', TRUE)); - $this->assertEquals('starts with "prefix"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('foo'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringStartsWith - * @covers PHPUnit_Framework_Assert::stringStartsWith - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringStartsWith2() - { - $constraint = PHPUnit_Framework_Assert::stringStartsWith('prefix'); - - try { - $constraint->evaluate('foo', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringStartsWith - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::stringStartsWith - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringStartsNotWith() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringStartsWith('prefix') - ); - - $this->assertTrue($constraint->evaluate('foo', '', TRUE)); - $this->assertFalse($constraint->evaluate('prefixfoo', '', TRUE)); - $this->assertEquals('starts not with "prefix"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('prefixfoo'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringStartsWith - * @covers PHPUnit_Framework_Assert::stringStartsWith - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringStartsNotWith2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringStartsWith('prefix') - ); - - try { - $constraint->evaluate('prefixfoo', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringContains - * @covers PHPUnit_Framework_Assert::stringContains - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringContains() - { - $constraint = PHPUnit_Framework_Assert::stringContains('foo'); - - $this->assertFalse($constraint->evaluate('barbazbar', '', TRUE)); - $this->assertTrue($constraint->evaluate('barfoobar', '', TRUE)); - $this->assertEquals('contains "foo"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('barbazbar'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringContains - * @covers PHPUnit_Framework_Assert::stringContains - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringContains2() - { - $constraint = PHPUnit_Framework_Assert::stringContains('foo'); - - try { - $constraint->evaluate('barbazbar', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringContains - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::stringContains - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringNotContains() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringContains('foo') - ); - - $this->assertTrue($constraint->evaluate('barbazbar', '', TRUE)); - $this->assertFalse($constraint->evaluate('barfoobar', '', TRUE)); - $this->assertEquals('does not contain "foo"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('barfoobar'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringContains - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::stringContains - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringNotContains2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringContains('foo') - ); - - try { - $constraint->evaluate('barfoobar', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringEndsWith - * @covers PHPUnit_Framework_Assert::stringEndsWith - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringEndsWith() - { - $constraint = PHPUnit_Framework_Assert::stringEndsWith('suffix'); - - $this->assertFalse($constraint->evaluate('foo', '', TRUE)); - $this->assertTrue($constraint->evaluate('foosuffix', '', TRUE)); - $this->assertEquals('ends with "suffix"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('foo'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringEndsWith - * @covers PHPUnit_Framework_Assert::stringEndsWith - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringEndsWith2() - { - $constraint = PHPUnit_Framework_Assert::stringEndsWith('suffix'); - - try { - $constraint->evaluate('foo', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringEndsWith - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::stringEndsWith - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringEndsNotWith() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringEndsWith('suffix') - ); - - $this->assertTrue($constraint->evaluate('foo', '', TRUE)); - $this->assertFalse($constraint->evaluate('foosuffix', '', TRUE)); - $this->assertEquals('ends not with "suffix"', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate('foosuffix'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_StringEndsWith - * @covers PHPUnit_Framework_Assert::stringEndsWith - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintStringEndsNotWith2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::stringEndsWith('suffix') - ); - - try { - $constraint->evaluate('foosuffix', 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayContains() - { - $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo'); - - $this->assertFalse($constraint->evaluate(array('bar'), '', TRUE)); - $this->assertTrue($constraint->evaluate(array('foo'), '', TRUE)); - $this->assertEquals("contains 'foo'", $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(array('bar')); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayContains2() - { - $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo'); - - try { - $constraint->evaluate(array('bar'), 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayNotContains() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - new PHPUnit_Framework_Constraint_TraversableContains('foo') - ); - - $this->assertTrue($constraint->evaluate(array('bar'), '', TRUE)); - $this->assertFalse($constraint->evaluate(array('foo'), '', TRUE)); - $this->assertEquals("does not contain 'foo'", $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(array('foo')); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintArrayNotContains2() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - new PHPUnit_Framework_Constraint_TraversableContains('foo') - ); - - try { - $constraint->evaluate(array('foo'), 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintSplObjectStorageContains() - { - $object = new StdClass; - $constraint = new PHPUnit_Framework_Constraint_TraversableContains($object); - $this->assertEquals("contains stdClass Object ()", $constraint->toString()); - - $storage = new SplObjectStorage; - $this->assertFalse($constraint->evaluate($storage, '', TRUE)); - - $storage->attach($object); - $this->assertTrue($constraint->evaluate($storage, '', TRUE)); - - try { - $constraint->evaluate(new SplObjectStorage); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_TraversableContains - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintSplObjectStorageContains2() - { - $object = new StdClass; - $constraint = new PHPUnit_Framework_Constraint_TraversableContains($object); - - try { - $constraint->evaluate(new SplObjectStorage, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::attributeEqualTo - * @covers PHPUnit_Framework_Constraint_Attribute - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testAttributeEqualTo() - { - $object = new ClassWithNonPublicAttributes; - $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 1); - - $this->assertTrue($constraint->evaluate($object, '', TRUE)); - $this->assertEquals('attribute "foo" is equal to 1', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 2); - - $this->assertFalse($constraint->evaluate($object, '', TRUE)); - - try { - $constraint->evaluate($object); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::attributeEqualTo - * @covers PHPUnit_Framework_Constraint_Attribute - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testAttributeEqualTo2() - { - $object = new ClassWithNonPublicAttributes; - $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 2); - - try { - $constraint->evaluate($object, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::attributeEqualTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Constraint_Attribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testAttributeNotEqualTo() - { - $object = new ClassWithNonPublicAttributes; - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::attributeEqualTo('foo', 2) - ); - - $this->assertTrue($constraint->evaluate($object, '', TRUE)); - $this->assertEquals('attribute "foo" is not equal to 2', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) - ); - - $this->assertFalse($constraint->evaluate($object, '', TRUE)); - - try { - $constraint->evaluate($object); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Assert::attributeEqualTo - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_Constraint_Attribute - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testAttributeNotEqualTo2() - { - $object = new ClassWithNonPublicAttributes; - $constraint = PHPUnit_Framework_Assert::logicalNot( - PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) - ); - - try { - $constraint->evaluate($object, 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEmpty - * @covers PHPUnit_Framework_Constraint::count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsEmpty() - { - $constraint = new PHPUnit_Framework_Constraint_IsEmpty; - - $this->assertFalse($constraint->evaluate(array('foo'), '', TRUE)); - $this->assertTrue($constraint->evaluate(array(), '', TRUE)); - $this->assertEquals('is empty', $constraint->toString()); - $this->assertEquals(1, count($constraint)); - - try { - $constraint->evaluate(array('foo')); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_IsEmpty - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintIsEmpty2() - { - $constraint = new PHPUnit_Framework_Constraint_IsEmpty; - - try { - $constraint->evaluate(array('foo'), 'custom message'); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_Count - */ - public function testConstraintCountWithAnArray() - { - $constraint = new PHPUnit_Framework_Constraint_Count(5); - - $this->assertTrue($constraint->evaluate(array(1,2,3,4,5), '', TRUE)); - $this->assertFalse($constraint->evaluate(array(1,2,3,4), '', TRUE)); - } - - /** - * @covers PHPUnit_Framework_Constraint_Count - */ - public function testConstraintCountWithAnIteratorWhichDoesNotImplementCountable() - { - $constraint = new PHPUnit_Framework_Constraint_Count(5); - - $this->assertTrue($constraint->evaluate(new TestIterator(array(1,2,3,4,5)), '', TRUE)); - $this->assertFalse($constraint->evaluate(new TestIterator(array(1,2,3,4)), '', TRUE)); - } - - /** - * @covers PHPUnit_Framework_Constraint_Count - */ - public function testConstraintCountWithAnObjectImplementingCountable() - { - $constraint = new PHPUnit_Framework_Constraint_Count(5); - - $this->assertTrue($constraint->evaluate(new ArrayObject(array(1,2,3,4,5)), '', TRUE)); - $this->assertFalse($constraint->evaluate(new ArrayObject(array(1,2,3,4)), '', TRUE)); - } - - /** - * @covers PHPUnit_Framework_Constraint_Count - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintCountFailing() - { - $constraint = new PHPUnit_Framework_Constraint_Count(5); - - try { - $constraint->evaluate(array(1,2)); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } - - /** - * @covers PHPUnit_Framework_Constraint_Count - * @covers PHPUnit_Framework_Constraint_Not - * @covers PHPUnit_Framework_Assert::logicalNot - * @covers PHPUnit_Framework_TestFailure::exceptionToString - */ - public function testConstraintNotCountFailing() - { - $constraint = PHPUnit_Framework_Assert::logicalNot( - new PHPUnit_Framework_Constraint_Count(2) - ); - - try { - $constraint->evaluate(array(1,2)); - } - - catch (PHPUnit_Framework_ExpectationFailedException $e) { - $this->assertEquals( - <<fail(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/SuiteTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/SuiteTest.php deleted file mode 100644 index 35f7bbff..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/SuiteTest.php +++ /dev/null @@ -1,185 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'InheritedTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoTestCaseClass.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoTestCases.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NotPublicTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NotVoidTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'OneTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'OverrideTestCase.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Framework_SuiteTest extends PHPUnit_Framework_TestCase { - protected $result; - - protected function setUp() - { - $this->result = new PHPUnit_Framework_TestResult; - } - - public static function suite() - { - $suite = new PHPUnit_Framework_TestSuite; - - $suite->addTest(new Framework_SuiteTest('testAddTestSuite')); - $suite->addTest(new Framework_SuiteTest('testInheritedTests')); - $suite->addTest(new Framework_SuiteTest('testNoTestCases')); - $suite->addTest(new Framework_SuiteTest('testNoTestCaseClass')); - $suite->addTest(new Framework_SuiteTest('testNotExistingTestCase')); - $suite->addTest(new Framework_SuiteTest('testNotPublicTestCase')); - $suite->addTest(new Framework_SuiteTest('testNotVoidTestCase')); - $suite->addTest(new Framework_SuiteTest('testOneTestCase')); - $suite->addTest(new Framework_SuiteTest('testShadowedTests')); - - return $suite; - } - - public function testAddTestSuite() - { - $suite = new PHPUnit_Framework_TestSuite( - 'OneTestCase' - ); - - $suite->run($this->result); - - $this->assertEquals(1, count($this->result)); - } - - public function testInheritedTests() - { - $suite = new PHPUnit_Framework_TestSuite( - 'InheritedTestCase' - ); - - $suite->run($this->result); - - $this->assertTrue($this->result->wasSuccessful()); - $this->assertEquals(2, count($this->result)); - } - - public function testNoTestCases() - { - $suite = new PHPUnit_Framework_TestSuite( - 'NoTestCases' - ); - - $suite->run($this->result); - - $this->assertTrue(!$this->result->wasSuccessful()); - $this->assertEquals(1, $this->result->failureCount()); - $this->assertEquals(1, count($this->result)); - } - - /** - * @expectedException PHPUnit_Framework_Exception - */ - public function testNoTestCaseClass() - { - $suite = new PHPUnit_Framework_TestSuite('NoTestCaseClass'); - } - - public function testNotExistingTestCase() - { - $suite = new Framework_SuiteTest('notExistingMethod'); - - $suite->run($this->result); - - $this->assertEquals(0, $this->result->errorCount()); - $this->assertEquals(1, $this->result->failureCount()); - $this->assertEquals(1, count($this->result)); - } - - public function testNotPublicTestCase() - { - $suite = new PHPUnit_Framework_TestSuite( - 'NotPublicTestCase' - ); - - $this->assertEquals(2, count($suite)); - } - - public function testNotVoidTestCase() - { - $suite = new PHPUnit_Framework_TestSuite( - 'NotVoidTestCase' - ); - - $this->assertEquals(1, count($suite)); - } - - public function testOneTestCase() - { - $suite = new PHPUnit_Framework_TestSuite( - 'OneTestCase' - ); - - $suite->run($this->result); - - $this->assertEquals(0, $this->result->errorCount()); - $this->assertEquals(0, $this->result->failureCount()); - $this->assertEquals(1, count($this->result)); - $this->assertTrue($this->result->wasSuccessful()); - } - - public function testShadowedTests() - { - $suite = new PHPUnit_Framework_TestSuite( - 'OverrideTestCase' - ); - - $suite->run($this->result); - - $this->assertEquals(1, count($this->result)); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php deleted file mode 100644 index 6c655498..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php +++ /dev/null @@ -1,439 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Error.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionInAssertPostConditionsTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionInAssertPreConditionsTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionInSetUpTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionInTearDownTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionInTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Failure.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoArgTestCaseTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'OutputTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'RequirementsTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Singleton.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Success.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ThrowExceptionTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ThrowNoExceptionTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'WasRun.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ChangeCurrentWorkingDirectoryTest.php'; - -$GLOBALS['a'] = 'a'; -$_ENV['b'] = 'b'; -$_POST['c'] = 'c'; -$_GET['d'] = 'd'; -$_COOKIE['e'] = 'e'; -$_SERVER['f'] = 'f'; -$_FILES['g'] = 'g'; -$_REQUEST['h'] = 'h'; -$GLOBALS['i'] = 'i'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Framework_TestCaseTest extends PHPUnit_Framework_TestCase -{ - protected $backupGlobalsBlacklist = array('i', 'singleton'); - - public function testCaseToString() - { - $this->assertEquals( - 'Framework_TestCaseTest::testCaseToString', - $this->toString() - ); - } - - public function testSuccess() - { - $test = new Success; - $result = $test->run(); - - $this->assertEquals(0, $result->errorCount()); - $this->assertEquals(0, $result->failureCount()); - $this->assertEquals(1, count($result)); - } - - public function testFailure() - { - $test = new Failure; - $result = $test->run(); - - $this->assertEquals(0, $result->errorCount()); - $this->assertEquals(1, $result->failureCount()); - $this->assertEquals(1, count($result)); - } - - public function testError() - { - $test = new Error; - $result = $test->run(); - - $this->assertEquals(1, $result->errorCount()); - $this->assertEquals(0, $result->failureCount()); - $this->assertEquals(1, count($result)); - } - - public function testExceptionInSetUp() - { - $test = new ExceptionInSetUpTest('testSomething'); - $result = $test->run(); - - $this->assertTrue($test->setUp); - $this->assertFalse($test->assertPreConditions); - $this->assertFalse($test->testSomething); - $this->assertFalse($test->assertPostConditions); - $this->assertTrue($test->tearDown); - } - - public function testExceptionInAssertPreConditions() - { - $test = new ExceptionInAssertPreConditionsTest('testSomething'); - $result = $test->run(); - - $this->assertTrue($test->setUp); - $this->assertTrue($test->assertPreConditions); - $this->assertFalse($test->testSomething); - $this->assertFalse($test->assertPostConditions); - $this->assertTrue($test->tearDown); - } - - public function testExceptionInTest() - { - $test = new ExceptionInTest('testSomething'); - $result = $test->run(); - - $this->assertTrue($test->setUp); - $this->assertTrue($test->assertPreConditions); - $this->assertTrue($test->testSomething); - $this->assertFalse($test->assertPostConditions); - $this->assertTrue($test->tearDown); - } - - public function testExceptionInAssertPostConditions() - { - $test = new ExceptionInAssertPostConditionsTest('testSomething'); - $result = $test->run(); - - $this->assertTrue($test->setUp); - $this->assertTrue($test->assertPreConditions); - $this->assertTrue($test->testSomething); - $this->assertTrue($test->assertPostConditions); - $this->assertTrue($test->tearDown); - } - - public function testExceptionInTearDown() - { - $test = new ExceptionInTearDownTest('testSomething'); - $result = $test->run(); - - $this->assertTrue($test->setUp); - $this->assertTrue($test->assertPreConditions); - $this->assertTrue($test->testSomething); - $this->assertTrue($test->assertPostConditions); - $this->assertTrue($test->tearDown); - } - - public function testNoArgTestCasePasses() - { - $result = new PHPUnit_Framework_TestResult; - $t = new PHPUnit_Framework_TestSuite('NoArgTestCaseTest'); - - $t->run($result); - - $this->assertEquals(1, count($result)); - $this->assertEquals(0, $result->failureCount()); - $this->assertEquals(0, $result->errorCount()); - } - - public function testWasRun() - { - $test = new WasRun; - $test->run(); - - $this->assertTrue($test->wasRun); - } - - public function testException() - { - $test = new ThrowExceptionTestCase('test'); - $test->setExpectedException('RuntimeException'); - - $result = $test->run(); - - $this->assertEquals(1, count($result)); - $this->assertTrue($result->wasSuccessful()); - } - - public function testNoException() - { - $test = new ThrowNoExceptionTestCase('test'); - $test->setExpectedException('RuntimeException'); - - $result = $test->run(); - - $this->assertEquals(1, $result->failureCount()); - $this->assertEquals(1, count($result)); - } - - public function testWrongException() - { - $test = new ThrowExceptionTestCase('test'); - $test->setExpectedException('InvalidArgumentException'); - - $result = $test->run(); - - $this->assertEquals(1, $result->failureCount()); - $this->assertEquals(1, count($result)); - } - - /** - * @backupGlobals enabled - */ - public function testGlobalsBackupPre() - { - global $a; - global $i; - - $this->assertEquals('a', $a); - $this->assertEquals('a', $GLOBALS['a']); - $this->assertEquals('b', $_ENV['b']); - $this->assertEquals('c', $_POST['c']); - $this->assertEquals('d', $_GET['d']); - $this->assertEquals('e', $_COOKIE['e']); - $this->assertEquals('f', $_SERVER['f']); - $this->assertEquals('g', $_FILES['g']); - $this->assertEquals('h', $_REQUEST['h']); - $this->assertEquals('i', $i); - $this->assertEquals('i', $GLOBALS['i']); - - $GLOBALS['a'] = 'aa'; - $GLOBALS['foo'] = 'bar'; - $_ENV['b'] = 'bb'; - $_POST['c'] = 'cc'; - $_GET['d'] = 'dd'; - $_COOKIE['e'] = 'ee'; - $_SERVER['f'] = 'ff'; - $_FILES['g'] = 'gg'; - $_REQUEST['h'] = 'hh'; - $GLOBALS['i'] = 'ii'; - - $this->assertEquals('aa', $a); - $this->assertEquals('aa', $GLOBALS['a']); - $this->assertEquals('bar', $GLOBALS['foo']); - $this->assertEquals('bb', $_ENV['b']); - $this->assertEquals('cc', $_POST['c']); - $this->assertEquals('dd', $_GET['d']); - $this->assertEquals('ee', $_COOKIE['e']); - $this->assertEquals('ff', $_SERVER['f']); - $this->assertEquals('gg', $_FILES['g']); - $this->assertEquals('hh', $_REQUEST['h']); - $this->assertEquals('ii', $i); - $this->assertEquals('ii', $GLOBALS['i']); - } - - public function testGlobalsBackupPost() - { - global $a; - global $i; - - $this->assertEquals('a', $a); - $this->assertEquals('a', $GLOBALS['a']); - $this->assertEquals('b', $_ENV['b']); - $this->assertEquals('c', $_POST['c']); - $this->assertEquals('d', $_GET['d']); - $this->assertEquals('e', $_COOKIE['e']); - $this->assertEquals('f', $_SERVER['f']); - $this->assertEquals('g', $_FILES['g']); - $this->assertEquals('h', $_REQUEST['h']); - $this->assertEquals('ii', $i); - $this->assertEquals('ii', $GLOBALS['i']); - - $this->assertArrayNotHasKey('foo', $GLOBALS); - } - - /** - * @backupGlobals enabled - * @backupStaticAttributes enabled - */ - public function testStaticAttributesBackupPre() - { - $GLOBALS['singleton'] = Singleton::getInstance(); - } - - public function testStaticAttributesBackupPost() - { - $this->assertNotSame($GLOBALS['singleton'], Singleton::getInstance()); - } - - public function testExpectOutputStringFooActualFoo() - { - $test = new OutputTestCase('testExpectOutputStringFooActualFoo'); - $result = $test->run(); - - $this->assertEquals(1, count($result)); - $this->assertTrue($result->wasSuccessful()); - } - - public function testExpectOutputStringFooActualBar() - { - $test = new OutputTestCase('testExpectOutputStringFooActualBar'); - $result = $test->run(); - - $this->assertEquals(1, count($result)); - $this->assertFalse($result->wasSuccessful()); - } - - public function testExpectOutputRegexFooActualFoo() - { - $test = new OutputTestCase('testExpectOutputRegexFooActualFoo'); - $result = $test->run(); - - $this->assertEquals(1, count($result)); - $this->assertTrue($result->wasSuccessful()); - } - - public function testExpectOutputRegexFooActualBar() - { - $test = new OutputTestCase('testExpectOutputRegexFooActualBar'); - $result = $test->run(); - - $this->assertEquals(1, count($result)); - $this->assertFalse($result->wasSuccessful()); - } - - public function testSkipsIfRequiresHigherVersionOfPHPUnit() - { - $test = new RequirementsTest('testAlwaysSkip'); - $result = $test->run(); - - $this->assertEquals(1, $result->skippedCount()); - $this->assertEquals( - 'PHPUnit 1111111 (or later) is required.', - $test->getStatusMessage() - ); - } - - public function testSkipsIfRequiresHigherVersionOfPHP() - { - $test = new RequirementsTest('testAlwaysSkip2'); - $result = $test->run(); - - $this->assertEquals(1, $result->skippedCount()); - $this->assertEquals( - 'PHP 9999999 (or later) is required.', - $test->getStatusMessage() - ); - } - - public function testSkipsIfRequiresNonExistingFunction() - { - $test = new RequirementsTest('testNine'); - $result = $test->run(); - - $this->assertEquals(1, $result->skippedCount()); - $this->assertEquals( - 'Function testFunc is required.', - $test->getStatusMessage() - ); - } - - public function testSkipsIfRequiresNonExistingExtension() - { - $test = new RequirementsTest('testTen'); - $result = $test->run(); - - $this->assertEquals( - 'Extension testExt is required.', - $test->getStatusMessage() - ); - } - - public function testSkipsProvidesMessagesForAllSkippingReasons() - { - $test = new RequirementsTest('testAllPossibleRequirements'); - $result = $test->run(); - - $this->assertEquals( - 'PHP 99-dev (or later) is required.' . PHP_EOL . - 'PHPUnit 9-dev (or later) is required.' . PHP_EOL . - 'Function testFuncOne is required.' . PHP_EOL . - 'Function testFuncTwo is required.' . PHP_EOL . - 'Extension testExtOne is required.' . PHP_EOL . - 'Extension testExtTwo is required.', - $test->getStatusMessage() - ); - } - - public function testRequiringAnExistingFunctionDoesNotSkip() - { - $test = new RequirementsTest('testExistingFunction'); - $result = $test->run(); - $this->assertEquals(0, $result->skippedCount()); - } - - public function testRequiringAnExistingExtensionDoesNotSkip() - { - $test = new RequirementsTest('testExistingExtension'); - $result = $test->run(); - $this->assertEquals(0, $result->skippedCount()); - } - - public function testCurrentWorkingDirectoryIsRestored() - { - $expectedCwd = getcwd(); - - $test = new ChangeCurrentWorkingDirectoryTest('testSomethingThatChangesTheCwd'); - $test->run(); - - $this->assertSame($expectedCwd, getcwd()); - } - -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestImplementorTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestImplementorTest.php deleted file mode 100644 index 13025eab..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestImplementorTest.php +++ /dev/null @@ -1,79 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'DoubleTestCase.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Success.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Framework_TestImplementorTest extends PHPUnit_Framework_TestCase -{ - protected $test; - - public function __construct() - { - $this->test = new DoubleTestCase( - new Success - ); - } - - public function testSuccessfulRun() - { - $result = new PHPUnit_Framework_TestResult; - - $this->test->run($result); - - $this->assertEquals(count($this->test), count($result)); - $this->assertEquals(0, $result->errorCount()); - $this->assertEquals(0, $result->failureCount()); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestListenerTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestListenerTest.php deleted file mode 100644 index 260f7388..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Framework/TestListenerTest.php +++ /dev/null @@ -1,145 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Error.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Failure.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Success.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Framework_TestListenerTest extends PHPUnit_Framework_TestCase implements PHPUnit_Framework_TestListener -{ - protected $endCount; - protected $errorCount; - protected $failureCount; - protected $notImplementedCount; - protected $skippedCount; - protected $result; - protected $startCount; - - public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->errorCount++; - } - - public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) - { - $this->failureCount++; - } - - public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->notImplementedCount++; - } - - public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) - { - $this->skippedCount++; - } - - public function startTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - public function endTestSuite(PHPUnit_Framework_TestSuite $suite) - { - } - - public function startTest(PHPUnit_Framework_Test $test) - { - $this->startCount++; - } - - public function endTest(PHPUnit_Framework_Test $test, $time) - { - $this->endCount++; - } - - protected function setUp() - { - $this->result = new PHPUnit_Framework_TestResult; - $this->result->addListener($this); - - $this->endCount = 0; - $this->failureCount = 0; - $this->notImplementedCount = 0; - $this->skippedCount = 0; - $this->startCount = 0; - } - - public function testError() - { - $test = new Error; - $test->run($this->result); - - $this->assertEquals(1, $this->errorCount); - $this->assertEquals(1, $this->endCount); - } - - public function testFailure() - { - $test = new Failure; - $test->run($this->result); - - $this->assertEquals(1, $this->failureCount); - $this->assertEquals(1, $this->endCount); - } - - public function testStartStop() - { - $test = new Success; - $test->run($this->result); - - $this->assertEquals(1, $this->startCount); - $this->assertEquals(1, $this->endCount); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021.phpt deleted file mode 100644 index b3b9bc7f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -#1021: Depending on a test that uses a data provider does not work ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021/Issue1021Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021/Issue1021Test.php deleted file mode 100644 index 422d580c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/1021/Issue1021Test.php +++ /dev/null @@ -1,23 +0,0 @@ -assertTrue($data); - } - - /** - * @depends testSomething - */ - public function testSomethingElse() - { - } - - public function provider() - { - return array(array(TRUE)); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523.phpt deleted file mode 100644 index 181c9454..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -#523: assertAttributeEquals does not work with classes extending ArrayIterator ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523/Issue523Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523/Issue523Test.php deleted file mode 100644 index 80124f1d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/523/Issue523Test.php +++ /dev/null @@ -1,13 +0,0 @@ -assertAttributeEquals('foo', 'field', new Issue523()); - } -}; - -class Issue523 extends ArrayIterator -{ - protected $field = 'foo'; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578.phpt deleted file mode 100644 index b5df4030..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -#578: Double printing of trace line for exceptions from notices and warnings ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -EEE - -Time: %i %s, Memory: %sMb - -There were 3 errors: - -1) Issue578Test::testNoticesDoublePrintStackTrace -Invalid error type specified - -%s/Issue578Test.php:%i - -2) Issue578Test::testWarningsDoublePrintStackTrace -Invalid error type specified - -%s/Issue578Test.php:%i - -3) Issue578Test::testUnexpectedExceptionsPrintsCorrectly -Exception: Double printed exception - -%s/Issue578Test.php:%i - -FAILURES! -Tests: 3, Assertions: 0, Errors: 3. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php deleted file mode 100644 index 262d97f6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php +++ /dev/null @@ -1,20 +0,0 @@ -iniSet('error_reporting', E_ALL | E_NOTICE); - trigger_error('Stack Trace Test Notice', E_NOTICE); - } - - public function testWarningsDoublePrintStackTrace() - { - $this->iniSet('error_reporting', E_ALL | E_NOTICE); - trigger_error('Stack Trace Test Notice', E_WARNING); - } - - public function testUnexpectedExceptionsPrintsCorrectly() - { - throw new Exception('Double printed exception'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684.phpt deleted file mode 100644 index de26fcd8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -#684: Unable to find test class when no test methods exists ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Warning -No tests found in class "Foo_Bar_Issue684Test". - - -FAILURES! -Tests: 1, Assertions: 0, Failures: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684/Issue684Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684/Issue684Test.php deleted file mode 100644 index e8e5d87e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/684/Issue684Test.php +++ /dev/null @@ -1,4 +0,0 @@ - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 0 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/ChildSuite.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/ChildSuite.php deleted file mode 100644 index 8bac5144..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/ChildSuite.php +++ /dev/null @@ -1,15 +0,0 @@ -addTestSuite('OneTest'); - $suite->addTestSuite('TwoTest'); - - return $suite; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/OneTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/OneTest.php deleted file mode 100644 index 3daa91b6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/OneTest.php +++ /dev/null @@ -1,10 +0,0 @@ -addTest(ChildSuite::suite()); - - return $suite; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/TwoTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/TwoTest.php deleted file mode 100644 index 8fa9958c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/783/TwoTest.php +++ /dev/null @@ -1,10 +0,0 @@ - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.FFF - -Time: %i %s, Memory: %sMb - -There were 3 failures: - -1) Issue244Test::testFails -Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'. - -%s:%i - -2) Issue244Test::testFailsTooIfExpectationIsANumber -Failed asserting that '123StringCode' is equal to expected exception code 123. - -%s:%i - -3) Issue244Test::testFailsTooIfExceptionCodeIsANumber -Failed asserting that 123 is equal to expected exception code '123String'. - -%s:%i - -FAILURES! -Tests: 4, Assertions: 8, Failures: 3. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/244/Issue244Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/244/Issue244Test.php deleted file mode 100644 index 621c4cf5..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/244/Issue244Test.php +++ /dev/null @@ -1,55 +0,0 @@ -code = '123StringCode'; - } -} - -class Issue244ExceptionIntCode extends Exception -{ - public function __construct() - { - $this->code = 123; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322.phpt deleted file mode 100644 index ef826acc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -GH-322: group commandline option should override group/exclude setting in phpunit.xml ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -Configuration read from %s - - -Starting test 'Issue322Test::testOne'. -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 0 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/Issue322Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/Issue322Test.php deleted file mode 100644 index 618bcaa1..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/Issue322Test.php +++ /dev/null @@ -1,17 +0,0 @@ - - - Test.php - - - - - one - - - \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433.phpt deleted file mode 100644 index 8b9df96c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -GH-433: expectOutputString not completely working as expected ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -..F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Issue433Test::testNotMatchingOutput -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'foo' -+'bar' - - -FAILURES! -Tests: 3, Assertions: 3, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433/Issue433Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433/Issue433Test.php deleted file mode 100644 index e0a91b35..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/433/Issue433Test.php +++ /dev/null @@ -1,21 +0,0 @@ -expectOutputString('test'); - print 'test'; - } - - public function testOutputWithExpectationAfter() - { - print 'test'; - $this->expectOutputString('test'); - } - - public function testNotMatchingOutput() - { - print 'bar'; - $this->expectOutputString('foo'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445.phpt deleted file mode 100644 index bffe7542..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -GH-455: expectOutputString not working in strict mode ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -..F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Issue445Test::testNotMatchingOutput -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'foo' -+'bar' - - -FAILURES! -Tests: 3, Assertions: 3, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445/Issue445Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445/Issue445Test.php deleted file mode 100644 index c3090259..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/445/Issue445Test.php +++ /dev/null @@ -1,21 +0,0 @@ -expectOutputString('test'); - print 'test'; - } - - public function testOutputWithExpectationAfter() - { - print 'test'; - $this->expectOutputString('test'); - } - - public function testNotMatchingOutput() - { - print 'bar'; - $this->expectOutputString('foo'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503.phpt deleted file mode 100644 index 3ccff278..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -GH-503: assertEquals() Line Ending Differences Are Obscure ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Issue503Test::testCompareDifferentLineEndings -Failed asserting that two strings are identical. ---- Expected -+++ Actual -@@ @@ - #Warning: Strings contain different line endings! - foo - -%s:%i - -FAILURES! -Tests: 1, Assertions: 1, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php deleted file mode 100644 index 75ca8d45..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php +++ /dev/null @@ -1,11 +0,0 @@ -assertSame( - "foo\n", - "foo\r\n" - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581.phpt deleted file mode 100644 index 9e6f3042..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -GH-581: PHPUnit_Util_Type::export adds extra newlines in Windows ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Issue581Test::testExportingObjectsDoesNotBreakWindowsLineFeeds -Failed asserting that two objects are equal. ---- Expected -+++ Actual -@@ @@ - stdClass Object ( - 0 => 1 - 1 => 2 - 2 => 'Test\n' - 3 => 4 -- 4 => 5 -+ 4 => 1 - 5 => 6 - 6 => 7 - 7 => 8 - ) - -%s:%i - -FAILURES! -Tests: 1, Assertions: 1, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581/Issue581Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581/Issue581Test.php deleted file mode 100644 index 201780cd..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/581/Issue581Test.php +++ /dev/null @@ -1,10 +0,0 @@ -assertEquals( - (object)array(1,2,"Test\r\n",4,5,6,7,8), - (object)array(1,2,"Test\r\n",4,1,6,7,8) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74.phpt deleted file mode 100644 index 851dfb28..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74.phpt +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -GH-74: catchable fatal error in 3.5 ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -E - -Time: %i %s, Memory: %sMb - -There was 1 error: - -1) Issue74Test::testCreateAndThrowNewExceptionInProcessIsolation -NewException: Testing GH-74 - -%s/Tests/Regression/GitHub/74/Issue74Test.php:7 -%s - -FAILURES! -Tests: 1, Assertions: 0, Errors: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php deleted file mode 100644 index 4d68c551..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php +++ /dev/null @@ -1,9 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.0.0 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MockRunner.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NonStatic.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.0.0 - */ -class Runner_BaseTestRunnerTest extends PHPUnit_Framework_TestCase -{ - public function testInvokeNonStaticSuite() - { - $runner = new MockRunner; - $runner->getTest('NonStatic'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/abstract-test-class.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/abstract-test-class.phpt deleted file mode 100644 index f911e7d4..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/abstract-test-class.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -phpunit AbstractTest ../_files/AbstractTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Warning -Cannot instantiate class "AbstractTest". - - -FAILURES! -Tests: 1, Assertions: 0, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/concrete-test-class.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/concrete-test-class.phpt deleted file mode 100644 index a46e9c4c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/concrete-test-class.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit ConcreteTest ../_files/ConcreteTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 0 assertions) - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml-isolation.phpt deleted file mode 100644 index 1d34333a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml-isolation.phpt +++ /dev/null @@ -1,49 +0,0 @@ ---TEST-- -phpunit --process-isolation --log-junit php://stdout DataProviderTest ../_files/DataProviderTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -..F. - - - - - - - DataProviderTest::testAdd with data set #2 (1, 1, 3) -Failed asserting that 2 matches expected 3. - -%s:%i - - - - - - - - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) DataProviderTest::testAdd with data set #2 (1, 1, 3) -Failed asserting that 2 matches expected 3. -%s:%i - -FAILURES! -Tests: 4, Assertions: 4, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml.phpt deleted file mode 100644 index ce917532..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-log-xml.phpt +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -phpunit --log-junit php://stdout DataProviderTest ../_files/DataProviderTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -..F. - - - - - - - DataProviderTest::testAdd with data set #2 (1, 1, 3) -Failed asserting that 2 matches expected 3. - -%s:%i -%s:%i - - - - - - - - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) DataProviderTest::testAdd with data set #2 (1, 1, 3) -Failed asserting that 2 matches expected 3. -%s:%i -%s:%i - -FAILURES! -Tests: 4, Assertions: 4, Failures: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-testdox.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-testdox.phpt deleted file mode 100644 index a9f60842..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-testdox.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -phpunit --testdox DataProviderTest ../_files/DataProviderTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -DataProvider - [ ] Add diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/debug.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/debug.phpt deleted file mode 100644 index 842c59df..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/debug.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -phpunit --debug BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - - -Starting test 'BankAccountTest::testBalanceIsInitiallyZero'. -. -Starting test 'BankAccountTest::testBalanceCannotBecomeNegative'. -. -Starting test 'BankAccountTest::testBalanceCannotBecomeNegative2'. -. - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default-isolation.phpt deleted file mode 100644 index a18cbe5a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default-isolation.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit --process-isolation BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default.phpt deleted file mode 100644 index 9e010ede..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/default.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -phpunit BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies-isolation.phpt deleted file mode 100644 index f03170ad..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies-isolation.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -phpunit --process-isolation --verbose DependencyTestSuite ../_files/DependencyTestSuite.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -...FSS - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) DependencyFailureTest::testOne - -%s:%i - -There were 2 skipped tests: - -1) DependencyFailureTest::testTwo -This test depends on "DependencyFailureTest::testOne" to pass. - -%s:%i - -2) DependencyFailureTest::testThree -This test depends on "DependencyFailureTest::testTwo" to pass. - -%s:%i - -FAILURES! -Tests: 4, Assertions: 0, Failures: 1, Skipped: 2. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies.phpt deleted file mode 100644 index 39dd9be0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -phpunit --verbose DependencyTestSuite ../_files/DependencyTestSuite.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -...FSS - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) DependencyFailureTest::testOne - -%s:%i -%s:%i - -There were 2 skipped tests: - -1) DependencyFailureTest::testTwo -This test depends on "DependencyFailureTest::testOne" to pass. - -%s:%i - -2) DependencyFailureTest::testThree -This test depends on "DependencyFailureTest::testTwo" to pass. - -%s:%i - -FAILURES! -Tests: 4, Assertions: 0, Failures: 1, Skipped: 2. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2-isolation.phpt deleted file mode 100644 index 5f946573..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2-isolation.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --process-isolation StackTest ../_files/StackTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 5 assertions) - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2.phpt deleted file mode 100644 index 92c109e8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies2.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit StackTest ../_files/StackTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 5 assertions) - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3-isolation.phpt deleted file mode 100644 index 5191dc9f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3-isolation.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --process-isolation MultiDependencyTest ../_files/MultiDependencyTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 2 assertions) - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3.phpt deleted file mode 100644 index 562b8e4c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/dependencies3.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -phpunit MultiDependencyTest ../_files/MultiDependencyTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 2 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/empty-testcase.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/empty-testcase.phpt deleted file mode 100644 index d8e4a644..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/empty-testcase.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -phpunit EmptyTestCaseTest ../_files/EmptyTestCaseTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -F - -Time: %i %s, Memory: %sMb - -There was 1 failure: - -1) Warning -No tests found in class "EmptyTestCaseTest". - -%s:%i - -FAILURES! -Tests: 1, Assertions: 0, Failures: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exception-stack.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exception-stack.phpt deleted file mode 100644 index 9f3704d9..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exception-stack.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -phpunit ExceptionStackTest ../_files/ExceptionStack.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -EE - -Time: %i %s, Memory: %sMb - -There were 2 errors: - -1) ExceptionStackTest::testPrintingChildException -ExceptionStackTestException: Child exception -message -Failed asserting that two arrays are equal. ---- Expected -+++ Actual -@@ @@ - Array ( -- 0 => 1 -+ 0 => 2 - ) - -%s:%i - -Caused by -%s:%i - -2) ExceptionStackTest::testNestedExceptions -Exception: One - -%s:%i - -Caused by -InvalidArgumentException: Two - -%s:%i - -Caused by -Exception: Three - -%s:%i - -FAILURES! -Tests: 2, Assertions: 1, Errors: 2. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group-isolation.phpt deleted file mode 100644 index c8ebbce2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group-isolation.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --process-isolation --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 2 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group.phpt deleted file mode 100644 index fa88b5e6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/exclude-group.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -.. - -Time: %i %s, Memory: %sMb - -OK (2 tests, 2 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure-isolation.phpt deleted file mode 100644 index 1f78cd7e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure-isolation.phpt +++ /dev/null @@ -1,144 +0,0 @@ ---TEST-- -phpunit --process-isolation FailureTest ../_files/FailureTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -FFFFFFFFFFFFF - -Time: %i %s, Memory: %sMb - -There were 13 failures: - -1) FailureTest::testAssertArrayEqualsArray -message -Failed asserting that two arrays are equal. ---- Expected -+++ Actual -@@ @@ - Array ( -- 0 => 1 -+ 0 => 2 - ) - -%s:%i - -2) FailureTest::testAssertIntegerEqualsInteger -message -Failed asserting that 2 matches expected 1. - -%s:%i - -3) FailureTest::testAssertObjectEqualsObject -message -Failed asserting that two objects are equal. ---- Expected -+++ Actual -@@ @@ - stdClass Object ( -- 'foo' => 'bar' -+ 'bar' => 'foo' - ) - -%s:%i - -4) FailureTest::testAssertNullEqualsString -message -Failed asserting that 'bar' matches expected null. - -%s:%i - -5) FailureTest::testAssertStringEqualsString -message -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'foo' -+'bar' - -%s:%i - -6) FailureTest::testAssertTextEqualsText -message -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ - 'foo --bar -+baz - ' - -%s:%i - -7) FailureTest::testAssertStringMatchesFormat -message -Failed asserting that format description matches text. ---- Expected -+++ Actual -@@ @@ --*%s* -+** - -%s:%i - -8) FailureTest::testAssertNumericEqualsNumeric -message -Failed asserting that 2 matches expected 1. - -%s:%i - -9) FailureTest::testAssertTextSameText -message -Failed asserting that two strings are identical. ---- Expected -+++ Actual -@@ @@ --foo -+bar - -%s:%i - -10) FailureTest::testAssertObjectSameObject -message -Failed asserting that two variables reference the same object. - -%s:%i - -11) FailureTest::testAssertObjectSameNull -message -Failed asserting that null is identical to an object of class "stdClass". - -%s:%i - -12) FailureTest::testAssertFloatSameFloat -message -Failed asserting that 1.5 is identical to 1.0. - -%s:%i - -13) FailureTest::testAssertStringMatchesFormatFile -Failed asserting that format description matches text. ---- Expected -+++ Actual -@@ @@ --FOO -- -+...BAR... - -%s:%i - -FAILURES! -Tests: 13, Assertions: 14, Failures: 13. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure.phpt deleted file mode 100644 index a3418651..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/failure.phpt +++ /dev/null @@ -1,144 +0,0 @@ ---TEST-- -phpunit FailureTest ../_files/FailureTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -FFFFFFFFFFFFF - -Time: %i %s, Memory: %sMb - -There were 13 failures: - -1) FailureTest::testAssertArrayEqualsArray -message -Failed asserting that two arrays are equal. ---- Expected -+++ Actual -@@ @@ - Array ( -- 0 => 1 -+ 0 => 2 - ) - -%s:%i - -2) FailureTest::testAssertIntegerEqualsInteger -message -Failed asserting that 2 matches expected 1. - -%s:%i - -3) FailureTest::testAssertObjectEqualsObject -message -Failed asserting that two objects are equal. ---- Expected -+++ Actual -@@ @@ - stdClass Object ( -- 'foo' => 'bar' -+ 'bar' => 'foo' - ) - -%s:%i - -4) FailureTest::testAssertNullEqualsString -message -Failed asserting that 'bar' matches expected null. - -%s:%i - -5) FailureTest::testAssertStringEqualsString -message -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'foo' -+'bar' - -%s:%i - -6) FailureTest::testAssertTextEqualsText -message -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ - 'foo --bar -+baz - ' - -%s:%i - -7) FailureTest::testAssertStringMatchesFormat -message -Failed asserting that format description matches text. ---- Expected -+++ Actual -@@ @@ --*%s* -+** - -%s:%i - -8) FailureTest::testAssertNumericEqualsNumeric -message -Failed asserting that 2 matches expected 1. - -%s:%i - -9) FailureTest::testAssertTextSameText -message -Failed asserting that two strings are identical. ---- Expected -+++ Actual -@@ @@ --foo -+bar - -%s:%i - -10) FailureTest::testAssertObjectSameObject -message -Failed asserting that two variables reference the same object. - -%s:%i - -11) FailureTest::testAssertObjectSameNull -message -Failed asserting that null is identical to an object of class "stdClass". - -%s:%i - -12) FailureTest::testAssertFloatSameFloat -message -Failed asserting that 1.5 is identical to 1.0. - -%s:%i - -13) FailureTest::testAssertStringMatchesFormatFile -Failed asserting that format description matches text. ---- Expected -+++ Actual -@@ @@ --FOO -- -+...BAR... - -%s:%i - -FAILURES! -Tests: 13, Assertions: 14, Failures: 13. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal-isolation.phpt deleted file mode 100644 index bc8cf1d3..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal-isolation.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -phpunit FatalTest ../_files/FatalTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -E - -Time: %i %s, Memory: %sMb - -There was 1 error: - -1) FatalTest::testFatalError -PHPUnit_Framework_Exception: Fatal error: Call to undefined function non_existing_function() in %s - -%s:%i - -Caused by -ErrorException: unserialize(): Error at offset %i of %i bytes - -%s:%i - -FAILURES! -Tests: 1, Assertions: 0, Errors: 1. - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal.phpt deleted file mode 100644 index da195570..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/fatal.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -phpunit FatalTest ../_files/FatalTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - - -Fatal error: Call to undefined function non_existing_function() in %s diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class-isolation.phpt deleted file mode 100644 index 85fff4e0..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class-isolation.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --process-isolation --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class.phpt deleted file mode 100644 index 459cf28f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-class.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method-isolation.phpt deleted file mode 100644 index aede5553..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method-isolation.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --process-isolation --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method.phpt deleted file mode 100644 index e553a030..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-method.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-no-results.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-no-results.phpt deleted file mode 100644 index 03f69957..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/filter-no-results.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - - - -Time: %i %s, Memory: %sMb - -No tests executed! diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group-isolation.phpt deleted file mode 100644 index 5abbadac..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group-isolation.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --process-isolation --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group.phpt deleted file mode 100644 index 77003f2e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/group.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -. - -Time: %i %s, Memory: %sMb - -OK (1 test, 1 assertion) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help.phpt deleted file mode 100644 index 7a5ce435..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help.phpt +++ /dev/null @@ -1,67 +0,0 @@ ---TEST-- -phpunit ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -Usage: phpunit [switches] UnitTest [UnitTest.php] - phpunit [switches] - - --log-junit Log test execution in JUnit XML format to file. - --log-tap Log test execution in TAP format to file. - --log-json Log test execution in JSON format. - - --coverage-clover Generate code coverage report in Clover XML format. - --coverage-html Generate code coverage report in HTML format. - --coverage-php Serialize PHP_CodeCoverage object to file. - --coverage-text= Generate code coverage report in text format. - Default to writing to the standard output. - - --testdox-html Write agile documentation in HTML format to file. - --testdox-text Write agile documentation in Text format to file. - - --filter Filter which tests to run. - --testsuite Filter which testsuite to run. - --group ... Only runs tests from the specified group(s). - --exclude-group ... Exclude tests from the specified group(s). - --list-groups List available test groups. - --test-suffix ... Only search for test in files with specified - suffix(es). Default: Test.php,.phpt - - --loader TestSuiteLoader implementation to use. - --printer TestSuiteListener implementation to use. - --repeat Runs the test(s) repeatedly. - - --tap Report test execution progress in TAP format. - --testdox Report test execution progress in TestDox format. - - --colors Use colors in output. - --stderr Write to STDERR instead of STDOUT. - --stop-on-error Stop execution upon first error. - --stop-on-failure Stop execution upon first error or failure. - --stop-on-skipped Stop execution upon first skipped test. - --stop-on-incomplete Stop execution upon first incomplete test. - --strict Run tests in strict mode. - -v|--verbose Output more verbose information. - --debug Display debugging information during test execution. - - --process-isolation Run each test in a separate PHP process. - --no-globals-backup Do not backup and restore $GLOBALS for each test. - --static-backup Backup and restore static attributes for each test. - - --bootstrap A "bootstrap" PHP file that is run before the tests. - -c|--configuration Read configuration from XML file. - --no-configuration Ignore default configuration file (phpunit.xml). - --include-path Prepend PHP's include_path with given path(s). - -d key[=value] Sets a php.ini value. - - -h|--help Prints this usage information. - --version Prints the version and exits. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help2.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help2.phpt deleted file mode 100644 index 9f3d3091..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/help2.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -phpunit --help ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -Usage: phpunit [switches] UnitTest [UnitTest.php] - phpunit [switches] - - --log-junit Log test execution in JUnit XML format to file. - --log-tap Log test execution in TAP format to file. - --log-json Log test execution in JSON format. - - --coverage-clover Generate code coverage report in Clover XML format. - --coverage-html Generate code coverage report in HTML format. - --coverage-php Serialize PHP_CodeCoverage object to file. - --coverage-text= Generate code coverage report in text format. - Default to writing to the standard output. - - --testdox-html Write agile documentation in HTML format to file. - --testdox-text Write agile documentation in Text format to file. - - --filter Filter which tests to run. - --testsuite Filter which testsuite to run. - --group ... Only runs tests from the specified group(s). - --exclude-group ... Exclude tests from the specified group(s). - --list-groups List available test groups. - --test-suffix ... Only search for test in files with specified - suffix(es). Default: Test.php,.phpt - - --loader TestSuiteLoader implementation to use. - --printer TestSuiteListener implementation to use. - --repeat Runs the test(s) repeatedly. - - --tap Report test execution progress in TAP format. - --testdox Report test execution progress in TestDox format. - - --colors Use colors in output. - --stderr Write to STDERR instead of STDOUT. - --stop-on-error Stop execution upon first error. - --stop-on-failure Stop execution upon first error or failure. - --stop-on-skipped Stop execution upon first skipped test. - --stop-on-incomplete Stop execution upon first incomplete test. - --strict Run tests in strict mode. - -v|--verbose Output more verbose information. - --debug Display debugging information during test execution. - - --process-isolation Run each test in a separate PHP process. - --no-globals-backup Do not backup and restore $GLOBALS for each test. - --static-backup Backup and restore static attributes for each test. - - --bootstrap A "bootstrap" PHP file that is run before the tests. - -c|--configuration Read configuration from XML file. - --no-configuration Ignore default configuration file (phpunit.xml). - --include-path Prepend PHP's include_path with given path(s). - -d key[=value] Sets a php.ini value. - - -h|--help Prints this usage information. - --version Prints the version and exits. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/list-groups.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/list-groups.phpt deleted file mode 100644 index 5b07ed0e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/list-groups.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit --list-groups BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -Available test group(s): - - Sebastian Bergmann - - balanceCannotBecomeNegative - - balanceIsInitiallyZero - - specification diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-json.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-json.phpt deleted file mode 100644 index dcc348e7..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-json.phpt +++ /dev/null @@ -1,77 +0,0 @@ ---TEST-- -phpunit --log-json php://stdout BankAccountTest ../_files/BankAccountTest.php ---SKIPIF-- -= 5.4"; -} ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -{ - "event": "suiteStart", - "suite": "BankAccountTest", - "tests": 3 -}{ - "event": "testStart", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceIsInitiallyZero" -}.{ - "event": "test", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceIsInitiallyZero", - "status": "pass", - "time": %f, - "trace": [ - - ], - "message": "", - "output": "" -}{ - "event": "testStart", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceCannotBecomeNegative" -}.{ - "event": "test", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceCannotBecomeNegative", - "status": "pass", - "time": %f, - "trace": [ - - ], - "message": "", - "output": "" -}{ - "event": "testStart", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceCannotBecomeNegative2" -}.{ - "event": "test", - "suite": "BankAccountTest", - "test": "BankAccountTest::testBalanceCannotBecomeNegative2", - "status": "pass", - "time": %f, - "trace": [ - - ], - "message": "", - "output": "" -} - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-tap.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-tap.phpt deleted file mode 100644 index 1d965a25..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-tap.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -phpunit --log-tap php://stdout BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -TAP version 13 -.ok 1 - BankAccountTest::testBalanceIsInitiallyZero -.ok 2 - BankAccountTest::testBalanceCannotBecomeNegative -.ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2 -1..3 - - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-xml.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-xml.phpt deleted file mode 100644 index 2c95fa66..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/log-xml.phpt +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -phpunit --log-junit php://stdout BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - - - - - - - - - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-incomplete.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-incomplete.phpt deleted file mode 100644 index 5c414976..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-incomplete.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --strict IncompleteTest ../_files/IncompleteTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -I - -Time: %i %s, Memory: %sMb - -OK, but incomplete or skipped tests! -Tests: 1, Assertions: 0, Incomplete: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-isolation.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-isolation.phpt deleted file mode 100644 index ef0ae374..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict-isolation.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -phpunit --strict --process-isolation IncompleteTest ../_files/IncompleteTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -I - -Time: %i %s, Memory: %sMb - -OK, but incomplete or skipped tests! -Tests: 1, Assertions: 0, Incomplete: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict.phpt deleted file mode 100644 index f566ef6f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/strict.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --strict NothingTest ../_files/NothingTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -I - -Time: %i %s, Memory: %sMb - -OK, but incomplete or skipped tests! -Tests: 1, Assertions: 0, Incomplete: 1. diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/tap.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/tap.phpt deleted file mode 100644 index f5370805..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/tap.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -phpunit --tap BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -TAP version 13 -ok 1 - BankAccountTest::testBalanceIsInitiallyZero -ok 2 - BankAccountTest::testBalanceCannotBecomeNegative -ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2 -1..3 diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-multiple.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-multiple.phpt deleted file mode 100644 index 145ebeb4..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-multiple.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit --test-suffix .test.php,.my.php ../_files/ ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -..... - -Time: %i %s, Memory: %sMb - -OK (5 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-single.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-single.phpt deleted file mode 100644 index 4d63efac..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-single.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -phpunit --test-suffix .test.php ../_files/ ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -... - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-html.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-html.phpt deleted file mode 100644 index 61de71d7..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-html.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -phpunit --testdox-html php://stdout BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -

    BankAccount

      ...
    • Balance is initially zero
    • Balance cannot become negative
    - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-text.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-text.phpt deleted file mode 100644 index 8a57c817..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox-text.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -phpunit --testdox-text php://stdout BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -BankAccount -... [x] Balance is initially zero - [x] Balance cannot become negative - - - -Time: %i %s, Memory: %sMb - -OK (3 tests, 3 assertions) diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox.phpt b/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox.phpt deleted file mode 100644 index 0d24c0e2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/TextUI/testdox.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -phpunit --testdox php://stdout BankAccountTest ../_files/BankAccountTest.php ---FILE-- - ---EXPECTF-- -PHPUnit %s by Sebastian Bergmann. - -BankAccount - [x] Balance is initially zero - [x] Balance cannot become negative - diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ClassTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ClassTest.php deleted file mode 100644 index 1086717b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ClassTest.php +++ /dev/null @@ -1,84 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Ben Selby - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.5.6 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; - -require_once 'PHPUnit/Util/Class.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @author Ben Selby - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.5.6 - */ -class Util_ClassTest extends PHPUnit_Framework_TestCase -{ - /** - * Test that if a dynamic variable is defined on a class then - * the $attribute variable will be NULL, but the variable defined - * will be a public one so we are safe to return it - * - * Currently $attribute is NULL but we try and call isPublic() on it. - * This breaks for php 5.2.10 - * - * @covers PHPUnit_Util_Class::getObjectAttribute - * - * @return void - */ - public function testGetObjectAttributeCanHandleDynamicVariables() - { - $attributeName = '_variable'; - $object = new stdClass(); - $object->$attributeName = 'Test'; - - $actual = PHPUnit_Util_Class::getObjectAttribute($object, $attributeName); - $this->assertEquals('Test', $actual); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ConfigurationTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ConfigurationTest.php deleted file mode 100644 index cea57ebe..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/ConfigurationTest.php +++ /dev/null @@ -1,390 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class Util_ConfigurationTest extends PHPUnit_Framework_TestCase -{ - protected $configuration; - - protected function setUp() - { - $this->configuration = PHPUnit_Util_Configuration::getInstance( - dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.xml' - ); - } - - /** - * @expectedException PHPUnit_Framework_Exception - */ - public function testExceptionIsThrownForNotExistingConfigurationFile() - { - PHPUnit_Util_Configuration::getInstance('not_existing_file.xml'); - } - - public function testFilterConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 'blacklist' => - array( - 'include' => - array( - 'directory' => - array( - 0 => - array( - 'path' => '/path/to/files', - 'prefix' => '', - 'suffix' => '.php', - 'group' => 'DEFAULT' - ), - ), - 'file' => - array( - 0 => '/path/to/file', - ), - ), - 'exclude' => - array( - 'directory' => - array( - 0 => - array( - 'path' => '/path/to/files', - 'prefix' => '', - 'suffix' => '.php', - 'group' => 'DEFAULT' - ), - ), - 'file' => - array( - 0 => '/path/to/file', - ), - ), - ), - 'whitelist' => - array( - 'addUncoveredFilesFromWhitelist' => TRUE, - 'processUncoveredFilesFromWhitelist' => FALSE, - 'include' => - array( - 'directory' => - array( - 0 => - array( - 'path' => '/path/to/files', - 'prefix' => '', - 'suffix' => '.php', - 'group' => 'DEFAULT' - ), - ), - 'file' => - array( - 0 => '/path/to/file', - ), - ), - 'exclude' => - array( - 'directory' => - array( - 0 => - array( - 'path' => '/path/to/files', - 'prefix' => '', - 'suffix' => '.php', - 'group' => 'DEFAULT' - ), - ), - 'file' => - array( - 0 => '/path/to/file', - ), - ), - ), - ), - $this->configuration->getFilterConfiguration() - ); - } - - public function testGroupConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 'include' => - array( - 0 => 'name', - ), - 'exclude' => - array( - 0 => 'name', - ), - ), - $this->configuration->getGroupConfiguration() - ); - } - - public function testListenerConfigurationIsReadCorrectly() - { - $dir = __DIR__; - $includePath = ini_get('include_path'); - - ini_set('include_path', $dir . PATH_SEPARATOR . $includePath); - - $this->assertEquals( - array( - 0 => - array( - 'class' => 'MyListener', - 'file' => '/optional/path/to/MyListener.php', - 'arguments' => - array( - 0 => - array( - 0 => 'Sebastian', - ), - 1 => 22, - 2 => 'April', - 3 => 19.78, - 4 => NULL, - 5 => new stdClass, - 6 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyTestFile.php', - 7 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyRelativePath', - ), - ), - array( - 'class' => 'IncludePathListener', - 'file' => __FILE__, - 'arguments' => array() - ), - array( - 'class' => 'CompactArgumentsListener', - 'file' => '/CompactArgumentsListener.php', - 'arguments' => - array( - 0 => 42 - ), - ), - ), - $this->configuration->getListenerConfiguration() - ); - - ini_set('include_path', $includePath); - } - - public function testLoggingConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 'charset' => 'UTF-8', - 'lowUpperBound' => '35', - 'highLowerBound' => '70', - 'highlight' => FALSE, - 'coverage-html' => '/tmp/report', - 'coverage-clover' => '/tmp/clover.xml', - 'json' => '/tmp/logfile.json', - 'plain' => '/tmp/logfile.txt', - 'tap' => '/tmp/logfile.tap', - 'logIncompleteSkipped' => FALSE, - 'junit' => '/tmp/logfile.xml', - 'testdox-html' => '/tmp/testdox.html', - 'testdox-text' => '/tmp/testdox.txt', - ), - $this->configuration->getLoggingConfiguration() - ); - } - - public function testPHPConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 'include_path' => - array( - dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.', - '/path/to/lib' - ), - 'ini'=> array('foo' => 'bar'), - 'const'=> array('FOO' => FALSE, 'BAR' => TRUE), - 'var'=> array('foo' => FALSE), - 'env'=> array('foo' => TRUE), - 'post'=> array('foo' => 'bar'), - 'get'=> array('foo' => 'bar'), - 'cookie'=> array('foo' => 'bar'), - 'server'=> array('foo' => 'bar'), - 'files'=> array('foo' => 'bar'), - 'request'=> array('foo' => 'bar'), - ), - $this->configuration->getPHPConfiguration() - ); - } - - /** - * @backupGlobals enabled - */ - public function testPHPConfigurationIsHandledCorrectly() - { - $this->configuration->handlePHPConfiguration(); - - $path = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.' . PATH_SEPARATOR . '/path/to/lib'; - $this->assertStringStartsWith($path, ini_get('include_path')); - $this->assertEquals(FALSE, FOO); - $this->assertEquals(TRUE, BAR); - $this->assertEquals(FALSE, $GLOBALS['foo']); - $this->assertEquals(TRUE, $_ENV['foo']); - $this->assertEquals(TRUE, getenv('foo')); - $this->assertEquals('bar', $_POST['foo']); - $this->assertEquals('bar', $_GET['foo']); - $this->assertEquals('bar', $_COOKIE['foo']); - $this->assertEquals('bar', $_SERVER['foo']); - $this->assertEquals('bar', $_FILES['foo']); - $this->assertEquals('bar', $_REQUEST['foo']); - } - - public function testPHPUnitConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 'backupGlobals' => TRUE, - 'backupStaticAttributes' => FALSE, - 'bootstrap' => '/path/to/bootstrap.php', - 'cacheTokens' => FALSE, - 'colors' => FALSE, - 'convertErrorsToExceptions' => TRUE, - 'convertNoticesToExceptions' => TRUE, - 'convertWarningsToExceptions' => TRUE, - 'forceCoversAnnotation' => FALSE, - 'mapTestClassNameToCoveredClassName' => FALSE, - 'printerClass' => 'PHPUnit_TextUI_ResultPrinter', - 'stopOnFailure' => FALSE, - 'strict' => FALSE, - 'testSuiteLoaderClass' => 'PHPUnit_Runner_StandardTestSuiteLoader', - 'verbose' => FALSE, - 'timeoutForSmallTests' => 1, - 'timeoutForMediumTests' => 10, - 'timeoutForLargeTests' => 60 - ), - $this->configuration->getPHPUnitConfiguration() - ); - } - - public function testSeleniumBrowserConfigurationIsReadCorrectly() - { - $this->assertEquals( - array( - 0 => - array( - 'name' => 'Firefox on Linux', - 'browser' => '*firefox /usr/lib/firefox/firefox-bin', - 'host' => 'my.linux.box', - 'port' => 4444, - 'timeout' => 30000, - ), - ), - $this->configuration->getSeleniumBrowserConfiguration() - ); - } - - public function testXincludeInConfiguration() - { - $configurationWithXinclude = PHPUnit_Util_Configuration::getInstance( - dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration_xinclude.xml' - ); - - $this->assertConfigurationEquals( - $this->configuration, - $configurationWithXinclude - ); - } - - /** - * Asserts that the values in $actualConfiguration equal $expectedConfiguration. - * - * @param PHPUnit_Util_Configuration $expectedConfiguration - * @param PHPUnit_Util_Configuration $actualConfiguration - * @return void - */ - protected function assertConfigurationEquals( PHPUnit_Util_Configuration $expectedConfiguration, PHPUnit_Util_Configuration $actualConfiguration ) - { - $this->assertEquals( - $expectedConfiguration->getFilterConfiguration(), - $actualConfiguration->getFilterConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getGroupConfiguration(), - $actualConfiguration->getGroupConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getListenerConfiguration(), - $actualConfiguration->getListenerConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getLoggingConfiguration(), - $actualConfiguration->getLoggingConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getPHPConfiguration(), - $actualConfiguration->getPHPConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getPHPUnitConfiguration(), - $actualConfiguration->getPHPUnitConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getSeleniumBrowserConfiguration(), - $actualConfiguration->getSeleniumBrowserConfiguration() - ); - $this->assertEquals( - $expectedConfiguration->getTestSuiteConfiguration(), - $actualConfiguration->getTestSuiteConfiguration() - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/DiffTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/DiffTest.php deleted file mode 100644 index 3f67e6da..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/DiffTest.php +++ /dev/null @@ -1,268 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class Util_DiffTest extends PHPUnit_Framework_TestCase -{ - const REMOVED = 2; - const ADDED = 1; - const OLD = 0; - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorMessage() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-a\n+b\n", - PHPUnit_Util_Diff::diff('a', 'b') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorMessage_toArray() - { - $diff = array(); - $diff[] = array('a', self::REMOVED); - $diff[] = array('b', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('a', 'b') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorStartSame() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-ba\n+bc\n", - PHPUnit_Util_Diff::diff('ba', 'bc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorStartSame_toArray() - { - $diff = array(); - $diff[] = array('ba', self::REMOVED); - $diff[] = array('bc', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('ba', 'bc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorEndSame() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-ab\n+cb\n", - PHPUnit_Util_Diff::diff('ab', 'cb') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorEndSame_toArray() - { - $diff = array(); - $diff[] = array('ab', self::REMOVED); - $diff[] = array('cb', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('ab', 'cb') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorStartAndEndSame() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-abc\n+adc\n", - PHPUnit_Util_Diff::diff('abc', 'adc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorStartAndEndSame_toArray() - { - $diff = array(); - $diff[] = array('abc', self::REMOVED); - $diff[] = array('adc', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('abc', 'adc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorStartSameComplete() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-ab\n+abc\n", - PHPUnit_Util_Diff::diff('ab', 'abc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorStartSameComplete_toArray() - { - $diff = array(); - $diff[] = array('ab', self::REMOVED); - $diff[] = array('abc', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('ab', 'abc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorEndSameComplete() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-bc\n+abc\n", - PHPUnit_Util_Diff::diff('bc', 'abc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorEndSameComplete_toArray() - { - $diff = array(); - $diff[] = array('bc', self::REMOVED); - $diff[] = array('abc', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('bc', 'abc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorOverlapingMatches() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-abc\n+abbc\n", - PHPUnit_Util_Diff::diff('abc', 'abbc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorOverlapingMatches_toArray() - { - $diff = array(); - $diff[] = array('abc', self::REMOVED); - $diff[] = array('abbc', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('abc', 'abbc') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diff - */ - public function testComparisonErrorOverlapingMatches2() - { - $this->assertEquals( - "--- Expected\n+++ Actual\n@@ @@\n-abcdde\n+abcde\n", - PHPUnit_Util_Diff::diff('abcdde', 'abcde') - ); - } - - /** - * @covers PHPUnit_Util_Diff::diffToArray - */ - public function testComparisonErrorOverlapingMatches2_toArray() - { - $diff = array(); - $diff[] = array('abcdde', self::REMOVED); - $diff[] = array('abcde', self::ADDED); - - $this->assertEquals( - $diff, - PHPUnit_Util_Diff::diffToArray('abcdde', 'abcde') - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestDox/NamePrettifierTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestDox/NamePrettifierTest.php deleted file mode 100644 index 1adeb799..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestDox/NamePrettifierTest.php +++ /dev/null @@ -1,108 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.1.0 - */ -class Util_TestDox_NamePrettifierTest extends PHPUnit_Framework_TestCase -{ - protected $namePrettifier; - - protected function setUp() - { - $this->namePrettifier = new PHPUnit_Util_TestDox_NamePrettifier; - } - - public function testTitleHasSensibleDefaults() - { - $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('FooTest')); - $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('TestFoo')); - $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('TestFooTest')); - } - - public function testCaterForUserDefinedSuffix() - { - $this->namePrettifier->setSuffix('TestCase'); - $this->namePrettifier->setPrefix(NULL); - - $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('FooTestCase')); - $this->assertEquals('TestFoo', $this->namePrettifier->prettifyTestClass('TestFoo')); - $this->assertEquals('FooTest', $this->namePrettifier->prettifyTestClass('FooTest')); - } - - public function testCaterForUserDefinedPrefix() - { - $this->namePrettifier->setSuffix(NULL); - $this->namePrettifier->setPrefix('XXX'); - - $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('XXXFoo')); - $this->assertEquals('TestXXX', $this->namePrettifier->prettifyTestClass('TestXXX')); - $this->assertEquals('XXX', $this->namePrettifier->prettifyTestClass('XXXXXX')); - } - - public function testTestNameIsConvertedToASentence() - { - $this->assertEquals('This is a test', $this->namePrettifier->prettifyTestMethod('testThisIsATest')); - $this->assertEquals('This is a test', $this->namePrettifier->prettifyTestMethod('testThisIsATest2')); - $this->assertEquals('this is a test', $this->namePrettifier->prettifyTestMethod('this_is_a_test')); - $this->assertEquals('Foo for bar is 0', $this->namePrettifier->prettifyTestMethod('testFooForBarIs0')); - $this->assertEquals('Foo for baz is 1', $this->namePrettifier->prettifyTestMethod('testFooForBazIs1')); - } - - /** - * @ticket 224 - */ - public function testTestNameIsNotGroupedWhenNotInSequence() - { - $this->assertEquals('Sets redirect header on 301', $this->namePrettifier->prettifyTestMethod('testSetsRedirectHeaderOn301')); - $this->assertEquals('Sets redirect header on 302', $this->namePrettifier->prettifyTestMethod('testSetsRedirectHeaderOn302')); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestTest.php deleted file mode 100644 index aa0553ec..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TestTest.php +++ /dev/null @@ -1,236 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.6 - */ - -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ExceptionNamespaceTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'RequirementsTest.php'; -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'RequirementsClassDocBlockTest.php'; - -/** - * - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.6 - */ -class Util_TestTest extends PHPUnit_Framework_TestCase -{ - public function testGetExpectedException() - { - $this->assertSame( - array('class' => 'FooBarBaz', 'code' => NULL, 'message' => ''), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testOne') - ); - - $this->assertSame( - array('class' => 'Foo_Bar_Baz', 'code' => NULL, 'message' => ''), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testTwo') - ); - - $this->assertSame( - array('class' => 'Foo\Bar\Baz', 'code' => NULL, 'message' => ''), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testThree') - ); - - $this->assertSame( - array('class' => 'ã»ã’', 'code' => NULL, 'message' => ''), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFour') - ); - - $this->assertSame( - array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFive') - ); - - $this->assertSame( - array('class' => 'Class', 'code' => 1234, 'message' => 'Message'), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSix') - ); - - $this->assertSame( - array('class' => 'Class', 'code' => 'ExceptionCode', 'message' => 'Message'), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSeven') - ); - - $this->assertSame( - array('class' => 'Class', 'code' => 0, 'message' => 'Message'), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testEight') - ); - $this->assertSame( - array('class' => 'Class', 'code' => ExceptionTest::ERROR_CODE, 'message' => ExceptionTest::ERROR_MESSAGE), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testNine') - ); - $this->assertSame( - array('class' => 'Class', 'code' => My\Space\ExceptionNamespaceTest::ERROR_CODE, 'message' => My\Space\ExceptionNamespaceTest::ERROR_MESSAGE), - PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testConstants') - ); - // Ensure the Class::CONST expression is only evaluated when the constant really exists - $this->assertSame( - array('class' => 'Class', 'code' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT', 'message' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT'), - PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testUnknownConstants') - ); - $this->assertSame( - array('class' => 'Class', 'code' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT', 'message' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT'), - PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testUnknownConstants') - ); - } - - public function provideRequirements() - { - return array( - array('testOne', array()), - array('testTwo', array('PHPUnit' => '1.0')), - array('testThree', array('PHP' => '2.0')), - array('testFour', array('PHPUnit'=>'2.0', 'PHP' => '1.0')), - array('testFive', array('PHP' => '5.4.0RC6')), - array('testSix', array('PHP' => '5.4.0-alpha1')), - array('testSeven', array('PHP' => '5.4.0beta2')), - array('testEight', array('PHP' => '5.4-dev')), - array('testNine', array('functions' => array('testFunc'))), - array('testTen', array('extensions' => array('testExt'))), - array( - 'testAllPossibleRequirements', - array( - 'PHP' => '99-dev', - 'PHPUnit' => '9-dev', - 'functions' => array( - 'testFuncOne', - 'testFuncTwo', - ), - 'extensions' => array( - 'testExtOne', - 'testExtTwo', - ) - ) - ) - ); - } - - /** - * @dataProvider provideRequirements - */ - public function testGetRequirements($test, $result) - { - $this->assertEquals( - $result, - PHPUnit_Util_Test::getRequirements('RequirementsTest', $test) - ); - } - - public function testGetRequirementsMergesClassAndMethodDocBlocks() - { - $expectedAnnotations = array( - 'PHP' => '5.4', - 'PHPUnit' => '3.7', - 'functions' => array( - 'testFuncClass', - 'testFuncMethod', - ), - 'extensions' => array( - 'testExtClass', - 'testExtMethod', - ) - ); - - $this->assertEquals( - $expectedAnnotations, - PHPUnit_Util_Test::getRequirements('RequirementsClassDocBlockTest', 'testMethod') - ); - } - - public function testGetProvidedDataRegEx() - { - $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider method', $matches); - $this->assertEquals(1, $result); - $this->assertEquals('method', $matches[1]); - - $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider class::method', $matches); - $this->assertEquals(1, $result); - $this->assertEquals('class::method', $matches[1]); - - $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider namespace\class::method', $matches); - $this->assertEquals(1, $result); - $this->assertEquals('namespace\class::method', $matches[1]); - - $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider namespace\namespace\class::method', $matches); - $this->assertEquals(1, $result); - $this->assertEquals('namespace\namespace\class::method', $matches[1]); - - $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider メソッド', $matches); - $this->assertEquals(1, $result); - $this->assertEquals('メソッド', $matches[1]); - } - - public function testParseAnnotation() - { - $this->assertEquals( - array('Foo', 'ã»ã’'), - PHPUnit_Util_Test::getDependencies(get_class($this), 'methodForTestParseAnnotation') - ); - } - - /** - * @depends Foo - * @depends ã»ã’ - */ - public function methodForTestParseAnnotation() - { - } - - public function testParseAnnotationThatIsOnlyOneLine() - { - $this->assertEquals( - array('Bar'), - PHPUnit_Util_Test::getDependencies(get_class($this), 'methodForTestParseAnnotationThatIsOnlyOneLine') - ); - } - - /** @depends Bar */ - public function methodForTestParseAnnotationThatIsOnlyOneLine() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TypeTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TypeTest.php deleted file mode 100644 index 808a713f..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/TypeTest.php +++ /dev/null @@ -1,269 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; - -require_once 'PHPUnit/Util/Type.php'; - -/** - * - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class Util_TypeTest extends PHPUnit_Framework_TestCase -{ - /** - * Removes spaces in front newlines - * - * @param string $string - * @return string - */ - public static function trimnl($string) - { - return preg_replace('/[ ]*\n/', "\n", $string); - } - - public function exportProvider() - { - $obj2 = new stdClass; - $obj2->foo = 'bar'; - - $obj = new stdClass; - //@codingStandardsIgnoreStart - $obj->null = NULL; - //@codingStandardsIgnoreEnd - $obj->boolean = TRUE; - $obj->integer = 1; - $obj->double = 1.2; - $obj->string = '1'; - $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"; - $obj->object = $obj2; - $obj->objectagain = $obj2; - $obj->array = array('foo' => 'bar'); - $obj->self = $obj; - - $array = array( - 0 => 0, - 'null' => NULL, - 'boolean' => TRUE, - 'integer' => 1, - 'double' => 1.2, - 'string' => '1', - 'text' => "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext", - 'object' => $obj2, - 'objectagain' => $obj2, - 'array' => array('foo' => 'bar'), - ); - - $array['self'] = &$array; - - return array( - array(NULL, 'null'), - array(TRUE, 'true'), - array(1, '1'), - array(1.0, '1.0'), - array(1.2, '1.2'), - array('1', "'1'"), - // \n\r and \r is converted to \n - array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext", -<< null - 'boolean' => true - 'integer' => 1 - 'double' => 1.2 - 'string' => '1' - 'text' => 'this -is -a -very -very -very -very -very -very -long -text' - 'object' => stdClass Object ( - 'foo' => 'bar' - ) - 'objectagain' => stdClass Object (*RECURSION*) - 'array' => Array ( - 'foo' => 'bar' - ) - 'self' => stdClass Object (*RECURSION*) -) -EOF - ), - array(array(), 'Array ()'), - array($array, -<< 0 - 'null' => null - 'boolean' => true - 'integer' => 1 - 'double' => 1.2 - 'string' => '1' - 'text' => 'this -is -a -very -very -very -very -very -very -long -text' - 'object' => stdClass Object ( - 'foo' => 'bar' - ) - 'objectagain' => stdClass Object (*RECURSION*) - 'array' => Array ( - 'foo' => 'bar' - ) - 'self' => Array (*RECURSION*) -) -EOF - ), - array( - chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), - 'Binary String: 0x000102030405' - ), - array( - implode('', array_map('chr', range(0x0e, 0x1f))), - 'Binary String: 0x0e0f101112131415161718191a1b1c1d1e1f' - ), - array( - chr(0x00) . chr(0x09), - 'Binary String: 0x0009' - ), - array( - '', - "''" - ), - ); - } - - /** - * @dataProvider exportProvider - */ - public function testExport($value, $expected) - { - $this->assertSame($expected, self::trimnl(PHPUnit_Util_Type::export($value))); - } - - public function shortenedExportProvider() - { - $obj = new stdClass; - $obj->foo = 'bar'; - - $array = array( - 'foo' => 'bar', - ); - - return array( - array(NULL, 'null'), - array(TRUE, 'true'), - array(1, '1'), - array(1.0, '1.0'), - array(1.2, '1.2'), - array('1', "'1'"), - // \n\r and \r is converted to \n - array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext", "'this\\nis\\na\\nvery\\nvery\\nvery\\nvery...g\\ntext'"), - array(new stdClass, 'stdClass Object ()'), - array($obj, 'stdClass Object (...)'), - array(array(), 'Array ()'), - array($array, 'Array (...)'), - ); - } - - /** - * @dataProvider shortenedExportProvider - */ - public function testShortenedExport($value, $expected) - { - $this->assertSame($expected, self::trimnl(PHPUnit_Util_Type::shortenedExport($value))); - } - - public function provideNonBinaryMultibyteStrings() - { - return array( - array(implode('', array_map('chr', range(0x09, 0x0d))), 5), - array(implode('', array_map('chr', range(0x20, 0x7f))), 96), - array(implode('', array_map('chr', range(0x80, 0xff))), 128), - ); - } - - - /** - * @dataProvider provideNonBinaryMultibyteStrings - */ - public function testNonBinaryStringExport($value, $expectedLength) - { - $this->assertRegExp("~'.{{$expectedLength}}'\$~s", PHPUnit_Util_Type::export($value)); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/XMLTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/Util/XMLTest.php deleted file mode 100644 index 4a5b7946..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/Util/XMLTest.php +++ /dev/null @@ -1,323 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Mike Naberezny - * @author Derek DeVries - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.3.0 - */ - -/** - * - * - * @package PHPUnit - * @author Mike Naberezny - * @author Derek DeVries - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.3.0 - */ -class Util_XMLTest extends PHPUnit_Framework_TestCase -{ - public function testAssertValidKeysValidKeys() - { - $options = array('testA' => 1, 'testB' => 2, 'testC' => 3); - $valid = array('testA', 'testB', 'testC'); - $expected = array('testA' => 1, 'testB' => 2, 'testC' => 3); - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - - $this->assertEquals($expected, $validated); - } - - public function testAssertValidKeysValidKeysEmpty() - { - $options = array('testA' => 1, 'testB' => 2); - $valid = array('testA', 'testB', 'testC'); - $expected = array('testA' => 1, 'testB' => 2, 'testC' => NULL); - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - - $this->assertEquals($expected, $validated); - } - - public function testAssertValidKeysDefaultValuesA() - { - $options = array('testA' => 1, 'testB' => 2); - $valid = array('testA' => 23, 'testB' => 24, 'testC' => 25); - $expected = array('testA' => 1, 'testB' => 2, 'testC' => 25); - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - - $this->assertEquals($expected, $validated); - } - - public function testAssertValidKeysDefaultValuesB() - { - $options = array(); - $valid = array('testA' => 23, 'testB' => 24, 'testC' => 25); - $expected = array('testA' => 23, 'testB' => 24, 'testC' => 25); - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - - $this->assertEquals($expected, $validated); - } - - public function testAssertValidKeysInvalidKey() - { - $options = array('testA' => 1, 'testB' => 2, 'testD' => 3); - $valid = array('testA', 'testB', 'testC'); - - try { - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - $this->fail(); - } - - catch (PHPUnit_Framework_Exception $e) { - $this->assertEquals('Unknown key(s): testD', $e->getMessage()); - } - } - - public function testAssertValidKeysInvalidKeys() - { - $options = array('testA' => 1, 'testD' => 2, 'testE' => 3); - $valid = array('testA', 'testB', 'testC'); - - try { - $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid); - $this->fail(); - } - - catch (PHPUnit_Framework_Exception $e) { - $this->assertEquals('Unknown key(s): testD, testE', $e->getMessage()); - } - } - - public function testConvertAssertSelect() - { - $selector = 'div#folder.open a[href="http://www.xerox.com"][title="xerox"].selected.big > span'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', - 'id' => 'folder', - 'class' => 'open', - 'descendant' => array('tag' => 'a', - 'class' => 'selected big', - 'attributes' => array('href' => 'http://www.xerox.com', - 'title' => 'xerox'), - 'child' => array('tag' => 'span'))); - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectElt() - { - $selector = 'div'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertClass() - { - $selector = '.foo'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('class' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertId() - { - $selector = '#foo'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('id' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertAttribute() - { - $selector = '[foo="bar"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('attributes' => array('foo' => 'bar')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertAttributeSpaces() - { - $selector = '[foo="bar baz"] div[value="foo bar"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('attributes' => array('foo' => 'bar baz'), - 'descendant' => array('tag' => 'div', - 'attributes' => array('value' => 'foo bar'))); - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertAttributeMultipleSpaces() - { - $selector = '[foo="bar baz"] div[value="foo bar baz"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('attributes' => array('foo' => 'bar baz'), - 'descendant' => array('tag' => 'div', - 'attributes' => array('value' => 'foo bar baz'))); - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltClass() - { - $selector = 'div.foo'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'class' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltId() - { - $selector = 'div#foo'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'id' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltAttrEqual() - { - $selector = 'div[foo="bar"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'attributes' => array('foo' => 'bar')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltMultiAttrEqual() - { - $selector = 'div[foo="bar"][baz="fob"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'attributes' => array('foo' => 'bar', 'baz' => 'fob')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltAttrHasOne() - { - $selector = 'div[foo~="bar"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'attributes' => array('foo' => 'regexp:/.*\bbar\b.*/')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltAttrContains() - { - $selector = 'div[foo*="bar"]'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'attributes' => array('foo' => 'regexp:/.*bar.*/')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltChild() - { - $selector = 'div > a'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'child' => array('tag' => 'a')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectEltDescendant() - { - $selector = 'div a'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector); - $tag = array('tag' => 'div', 'descendant' => array('tag' => 'a')); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectContent() - { - $selector = '#foo'; - $content = 'div contents'; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content); - $tag = array('id' => 'foo', 'content' => 'div contents'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectTrue() - { - $selector = '#foo'; - $content = TRUE; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content); - $tag = array('id' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertSelectFalse() - { - $selector = '#foo'; - $content = FALSE; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content); - $tag = array('id' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertNumber() - { - $selector = '.foo'; - $content = 3; - $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content); - $tag = array('class' => 'foo'); - - $this->assertEquals($tag, $converted); - } - - public function testConvertAssertRange() - { - $selector = '#foo'; - $content = array('greater_than' => 5, 'less_than' => 10); - $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content); - $tag = array('id' => 'foo'); - - $this->assertEquals($tag, $converted); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/AbstractTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/AbstractTest.php deleted file mode 100644 index 556e7dbc..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/AbstractTest.php +++ /dev/null @@ -1,7 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * An author. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class Author -{ - // the order of properties is important for testing the cycle! - public $books = array(); - - private $name = ''; - - public function __construct($name) - { - $this->name = $name; - } -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccount.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccount.php deleted file mode 100644 index 518fa85b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccount.php +++ /dev/null @@ -1,116 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -class BankAccountException extends RuntimeException {} - -/** - * A bank account. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.3.0 - */ -class BankAccount -{ - /** - * The bank account's balance. - * - * @var float - */ - protected $balance = 0; - - /** - * Returns the bank account's balance. - * - * @return float - */ - public function getBalance() - { - return $this->balance; - } - - /** - * Sets the bank account's balance. - * - * @param float $balance - * @throws BankAccountException - */ - protected function setBalance($balance) - { - if ($balance >= 0) { - $this->balance = $balance; - } else { - throw new BankAccountException; - } - } - - /** - * Deposits an amount of money to the bank account. - * - * @param float $balance - * @throws BankAccountException - */ - public function depositMoney($balance) - { - $this->setBalance($this->getBalance() + $balance); - - return $this->getBalance(); - } - - /** - * Withdraws an amount of money from the bank account. - * - * @param float $balance - * @throws BankAccountException - */ - public function withdrawMoney($balance) - { - $this->setBalance($this->getBalance() - $balance); - - return $this->getBalance(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php deleted file mode 100644 index fe821c7c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php +++ /dev/null @@ -1,133 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; -require_once 'BankAccount.php'; - -/** - * Tests for the BankAccount class. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.3.0 - */ -class BankAccountTest extends PHPUnit_Framework_TestCase -{ - protected $ba; - - protected function setUp() - { - $this->ba = new BankAccount; - } - - /** - * @covers BankAccount::getBalance - * @group balanceIsInitiallyZero - * @group specification - */ - public function testBalanceIsInitiallyZero() - { - $this->assertEquals(0, $this->ba->getBalance()); - } - - /** - * @covers BankAccount::withdrawMoney - * @group balanceCannotBecomeNegative - * @group specification - */ - public function testBalanceCannotBecomeNegative() - { - try { - $this->ba->withdrawMoney(1); - } - - catch (BankAccountException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::depositMoney - * @group balanceCannotBecomeNegative - * @group specification - */ - public function testBalanceCannotBecomeNegative2() - { - try { - $this->ba->depositMoney(-1); - } - - catch (BankAccountException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::getBalance - * @covers BankAccount::depositMoney - * @covers BankAccount::withdrawMoney - * @group balanceCannotBecomeNegative - */ - /* - public function testDepositingAndWithdrawingMoneyWorks() - { - $this->assertEquals(0, $this->ba->getBalance()); - $this->ba->depositMoney(1); - $this->assertEquals(1, $this->ba->getBalance()); - $this->ba->withdrawMoney(1); - $this->assertEquals(0, $this->ba->getBalance()); - } - */ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.test.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.test.php deleted file mode 100644 index bb8cc251..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.test.php +++ /dev/null @@ -1,133 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 2.3.0 - */ - -require_once 'PHPUnit/Framework/TestCase.php'; -require_once 'BankAccount.php'; - -/** - * Tests for the BankAccount class. - * - * @package PHPUnit - * @author Sebastian Bergmann - * @copyright 2002-2011 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 2.3.0 - */ -class BankAccountWithCustomExtensionTest extends PHPUnit_Framework_TestCase -{ - protected $ba; - - protected function setUp() - { - $this->ba = new BankAccount; - } - - /** - * @covers BankAccount::getBalance - * @group balanceIsInitiallyZero - * @group specification - */ - public function testBalanceIsInitiallyZero() - { - $this->assertEquals(0, $this->ba->getBalance()); - } - - /** - * @covers BankAccount::withdrawMoney - * @group balanceCannotBecomeNegative - * @group specification - */ - public function testBalanceCannotBecomeNegative() - { - try { - $this->ba->withdrawMoney(1); - } - - catch (BankAccountException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::depositMoney - * @group balanceCannotBecomeNegative - * @group specification - */ - public function testBalanceCannotBecomeNegative2() - { - try { - $this->ba->depositMoney(-1); - } - - catch (BankAccountException $e) { - $this->assertEquals(0, $this->ba->getBalance()); - - return; - } - - $this->fail(); - } - - /** - * @covers BankAccount::getBalance - * @covers BankAccount::depositMoney - * @covers BankAccount::withdrawMoney - * @group balanceCannotBecomeNegative - */ - /* - public function testDepositingAndWithdrawingMoneyWorks() - { - $this->assertEquals(0, $this->ba->getBalance()); - $this->ba->depositMoney(1); - $this->assertEquals(1, $this->ba->getBalance()); - $this->ba->withdrawMoney(1); - $this->assertEquals(0, $this->ba->getBalance()); - } - */ -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Book.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Book.php deleted file mode 100644 index 77925780..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Book.php +++ /dev/null @@ -1,59 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * A book. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class Book -{ - // the order of properties is important for testing the cycle! - public $author = NULL; -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Calculator.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Calculator.php deleted file mode 100644 index e269bd6c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/Calculator.php +++ /dev/null @@ -1,14 +0,0 @@ -assertTrue(TRUE); - } - -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ClassWithNonPublicAttributes.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ClassWithNonPublicAttributes.php deleted file mode 100644 index bb979e75..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ClassWithNonPublicAttributes.php +++ /dev/null @@ -1,29 +0,0 @@ -. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Sebastian Bergmann nor the names of his - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since File available since Release 3.6.0 - */ - -/** - * A class with a __toString() method. - * - * @package PHPUnit - * @author Bernhard Schussek - * @copyright 2001-2012 Sebastian Bergmann - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://www.phpunit.de/ - * @since Class available since Release 3.6.0 - */ -class ClassWithToString -{ - public function __toString() - { - return 'string representation'; - } -} \ No newline at end of file diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ConcreteTest.my.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ConcreteTest.my.php deleted file mode 100644 index ea9f8f13..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ConcreteTest.my.php +++ /dev/null @@ -1,9 +0,0 @@ -assertEquals($c, $a + $b); - } - - public static function providerMethod() - { - return array( - array(0, 0, 0), - array(0, 1, 1), - array(1, 1, 3), - array(1, 0, 1) - ); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php deleted file mode 100644 index d83aecd8..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php +++ /dev/null @@ -1,22 +0,0 @@ -fail(); - } - - /** - * @depends testOne - */ - public function testTwo() - { - } - - /** - * @depends testTwo - */ - public function testThree() - { - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencySuccessTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencySuccessTest.php deleted file mode 100644 index 0e4b5dde..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DependencySuccessTest.php +++ /dev/null @@ -1,21 +0,0 @@ -addTestSuite('DependencySuccessTest'); - $suite->addTestSuite('DependencyFailureTest'); - - return $suite; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php deleted file mode 100644 index ba601a4a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php +++ /dev/null @@ -1,25 +0,0 @@ -testCase = $testCase; - } - - public function count() - { - return 2; - } - - public function run(PHPUnit_Framework_TestResult $result = NULL) - { - $result->startTest($this); - - $this->testCase->runBare(); - $this->testCase->runBare(); - - $result->endTest($this, 0); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/EmptyTestCaseTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/EmptyTestCaseTest.php deleted file mode 100644 index 2a77bb20..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/EmptyTestCaseTest.php +++ /dev/null @@ -1,4 +0,0 @@ -setUp = TRUE; - } - - protected function assertPreConditions() - { - $this->assertPreConditions = TRUE; - } - - public function testSomething() - { - $this->testSomething = TRUE; - } - - protected function assertPostConditions() - { - $this->assertPostConditions = TRUE; - throw new Exception; - } - - protected function tearDown() - { - $this->tearDown = TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php deleted file mode 100644 index 01f571af..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php +++ /dev/null @@ -1,35 +0,0 @@ -setUp = TRUE; - } - - protected function assertPreConditions() - { - $this->assertPreConditions = TRUE; - throw new Exception; - } - - public function testSomething() - { - $this->testSomething = TRUE; - } - - protected function assertPostConditions() - { - $this->assertPostConditions = TRUE; - } - - protected function tearDown() - { - $this->tearDown = TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInSetUpTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInSetUpTest.php deleted file mode 100644 index e0861cd2..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInSetUpTest.php +++ /dev/null @@ -1,35 +0,0 @@ -setUp = TRUE; - throw new Exception; - } - - protected function assertPreConditions() - { - $this->assertPreConditions = TRUE; - } - - public function testSomething() - { - $this->testSomething = TRUE; - } - - protected function assertPostConditions() - { - $this->assertPostConditions = TRUE; - } - - protected function tearDown() - { - $this->tearDown = TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTearDownTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTearDownTest.php deleted file mode 100644 index 3688dfca..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTearDownTest.php +++ /dev/null @@ -1,35 +0,0 @@ -setUp = TRUE; - } - - protected function assertPreConditions() - { - $this->assertPreConditions = TRUE; - } - - public function testSomething() - { - $this->testSomething = TRUE; - } - - protected function assertPostConditions() - { - $this->assertPostConditions = TRUE; - } - - protected function tearDown() - { - $this->tearDown = TRUE; - throw new Exception; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTest.php deleted file mode 100644 index 2b1b66ca..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionInTest.php +++ /dev/null @@ -1,35 +0,0 @@ -setUp = TRUE; - } - - protected function assertPreConditions() - { - $this->assertPreConditions = TRUE; - } - - public function testSomething() - { - $this->testSomething = TRUE; - throw new Exception; - } - - protected function assertPostConditions() - { - $this->assertPostConditions = TRUE; - } - - protected function tearDown() - { - $this->tearDown = TRUE; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionNamespaceTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionNamespaceTest.php deleted file mode 100644 index 9644aae6..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionNamespaceTest.php +++ /dev/null @@ -1,38 +0,0 @@ -assertEquals(array(1), array(2), 'message'); - } catch (PHPUnit_Framework_ExpectationFailedException $e) { - $message = $e->getMessage() . "\n" . $e->getComparisonFailure()->getDiff(); - throw new ExceptionStackTestException("Child exception\n$message", 101, $e); - } - } - - public function testNestedExceptions() - { - $exceptionThree = new Exception('Three'); - $exceptionTwo = new InvalidArgumentException('Two', 0, $exceptionThree); - $exceptionOne = new Exception('One', 0, $exceptionTwo); - throw $exceptionOne; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionTest.php deleted file mode 100644 index 3493743e..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/ExceptionTest.php +++ /dev/null @@ -1,97 +0,0 @@ -fail(); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FailureTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FailureTest.php deleted file mode 100644 index 89a5843a..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FailureTest.php +++ /dev/null @@ -1,76 +0,0 @@ -assertEquals(array(1), array(2), 'message'); - } - - public function testAssertIntegerEqualsInteger() - { - $this->assertEquals(1, 2, 'message'); - } - - public function testAssertObjectEqualsObject() - { - $a = new StdClass; - $a->foo = 'bar'; - - $b = new StdClass; - $b->bar = 'foo'; - - $this->assertEquals($a, $b, 'message'); - } - - public function testAssertNullEqualsString() - { - $this->assertEquals(NULL, 'bar', 'message'); - } - - public function testAssertStringEqualsString() - { - $this->assertEquals('foo', 'bar', 'message'); - } - - public function testAssertTextEqualsText() - { - $this->assertEquals("foo\nbar\n", "foo\nbaz\n", 'message'); - } - - public function testAssertStringMatchesFormat() - { - $this->assertStringMatchesFormat('*%s*', '**', 'message'); - } - - public function testAssertNumericEqualsNumeric() - { - $this->assertEquals(1, 2, 'message'); - } - - public function testAssertTextSameText() - { - $this->assertSame('foo', 'bar', 'message'); - } - - public function testAssertObjectSameObject() - { - $this->assertSame(new StdClass, new StdClass, 'message'); - } - - public function testAssertObjectSameNull() - { - $this->assertSame(new StdClass, NULL, 'message'); - } - - public function testAssertFloatSameFloat() - { - $this->assertSame(1.0, 1.5, 'message'); - } - - // Note that due to the implementation of this assertion it counts as 2 asserts - public function testAssertStringMatchesFormatFile() - { - $this->assertStringMatchesFormatFile(__DIR__ . '/expectedFileFormat.txt', '...BAR...'); - } - -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FatalTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FatalTest.php deleted file mode 100644 index 6d07437b..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/FatalTest.php +++ /dev/null @@ -1,10 +0,0 @@ -markTestIncomplete('Test incomplete'); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/InheritedTestCase.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/InheritedTestCase.php deleted file mode 100644 index 1a15eb63..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/InheritedTestCase.php +++ /dev/null @@ -1,9 +0,0 @@ -assertEquals('foo', $a); - $this->assertEquals('bar', $b); - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoArgTestCaseTest.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoArgTestCaseTest.php deleted file mode 100644 index 5867ba3c..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/NoArgTestCaseTest.php +++ /dev/null @@ -1,7 +0,0 @@ -expectOutputString('foo'); - print 'foo'; - } - - public function testExpectOutputStringFooActualBar() - { - $this->expectOutputString('foo'); - print 'bar'; - } - - public function testExpectOutputRegexFooActualFoo() - { - $this->expectOutputRegex('/foo/'); - print 'foo'; - } - - public function testExpectOutputRegexFooActualBar() - { - $this->expectOutputRegex('/foo/'); - print 'bar'; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/OverrideTestCase.php b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/OverrideTestCase.php deleted file mode 100644 index 63ca294d..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/OverrideTestCase.php +++ /dev/null @@ -1,9 +0,0 @@ -a = $a; - $this->b = $b; - $this->c = $c; - } -} diff --git a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/SelectorAssertionsFixture.html b/includes/kohana/vendor/phpunit/phpunit/Tests/_files/SelectorAssertionsFixture.html deleted file mode 100644 index b8e908f4..00000000 --- a/includes/kohana/vendor/phpunit/phpunit/Tests/_files/SelectorAssertionsFixture.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - Login - - '; - } - - /** - * Draw the Tree Menu - * - * The incoming ID is either a Branch B_x or a Node N_x - * Where X is actually the module. - * - * @param array $data Tree data passed in by inherited methods - */ - public function action_json(array $data=array()) { - if ($this->_auth_required() AND ! Auth::instance()->logged_in()) { - $this->output = array('attr'=>array('id'=>'a_login'), - 'data'=>array('title'=>_('Please Login').'...','attr'=>array('id'=>'N_login','href'=>URL::site('login')))); - - return; - } - - $this->output = array(); - - foreach ($data as $branch) { - array_push($this->output,array( - 'attr'=>array('id'=>sprintf('B_%s',$branch['id'])), - 'state'=>$branch['state'], - 'data'=>array('title'=>$branch['name']), - 'attr'=>array('id'=>sprintf('N_%s',$branch['id']),'href'=>empty($branch['attr_href']) ? URL::link('user',$branch['name'].'/menu',TRUE) : $branch['attr_href']), - ) - ); - } - } -} -?> diff --git a/modules/lnApp/classes/lnApp/HTML.php b/modules/lnApp/classes/lnApp/HTML.php deleted file mode 100644 index 920eda58..00000000 --- a/modules/lnApp/classes/lnApp/HTML.php +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/modules/lnApp/classes/lnApp/HTMLRender.php b/modules/lnApp/classes/lnApp/HTMLRender.php deleted file mode 100644 index fb3e897d..00000000 --- a/modules/lnApp/classes/lnApp/HTMLRender.php +++ /dev/null @@ -1,91 +0,0 @@ -get_called_class())); - } - - /** - * Add an item to be rendered - * - * @param array Item to be added - */ - public static function add($item,$prepend=FALSE) { - foreach (static::$_required_keys as $key) - if (! isset($item[$key])) - throw new Kohana_Exception('Missing key :key for image',array(':key'=>$key)); - - // Check for unique keys - if (static::$_unique_vals) - foreach (static::$_unique_vals as $v=>$u) - foreach (static::$_data as $d) - if (isset($d[$u]) && $d['data'] == $item['data']) - return; - - if ($prepend) - array_unshift(static::$_data,$item); - else - array_push(static::$_data,$item); - } - - /** - * Set the space used between rendering output - */ - public static function setSpacer($spacer) { - static::$_spacer = $spacer; - } - - /** - * Set the Kohana Media Path, used to determine where to find additional - * HTML content required for rendering. - */ - public static function setMediaPath($path) { - static::$_media_path = $path; - } - - /** - * Factory instance method must be declared by the child class - */ - public static function factory() { - throw new Kohana_Exception(':class is calling :method, when it should have its own method', - array(':class'=>get_called_class(),':method'=>__METHOD__)); - } - - /** - * Return the HTML to render the header images - */ - public function __toString() { - try { - return static::render(); - } - - // Display the exception message - catch (Exception $e) { - Kohana_Exception::handler($e); - } - } - - /** - * Rendering must be declared by the child class - */ - protected function render() { - throw new Kohana_Exception(':class is calling :method, when it should have its own method', - array(':class'=>get_called_class(),':method'=>__METHOD__)); - } -} -?> diff --git a/modules/lnApp/classes/lnApp/HeadImages.php b/modules/lnApp/classes/lnApp/HeadImages.php deleted file mode 100644 index 26c8199d..00000000 --- a/modules/lnApp/classes/lnApp/HeadImages.php +++ /dev/null @@ -1,47 +0,0 @@ -uri(array('file'=>$value['img'])),array('alt'=>isset($value['attrs']['title']) ? $value['attrs']['title'] : '')); - if (isset($value['url'])) - $output .= HTML::anchor($value['url'],$i,(isset($value['attrs']) && is_array($value['attrs'])) ? $value['attrs'] : NULL); - else - $output .= $i; - $output .= static::$_spacer; - } - - return $output; - } -} -?> diff --git a/modules/lnApp/classes/lnApp/Meta.php b/modules/lnApp/classes/lnApp/Meta.php deleted file mode 100644 index 36df8563..00000000 --- a/modules/lnApp/classes/lnApp/Meta.php +++ /dev/null @@ -1,33 +0,0 @@ -_array_keys) && empty($this->_data[$key])) - return array(); - - if (empty($this->_data[$key])) - return NULL; - else - return $this->_data[$key]; - } - - public function __set($key,$value) { - if (in_array($key,$this->_array_keys) && ! is_array($value)) - throw new Kohana_Exception('Key :key must be an array',array(':key'=>$key)); - - $this->_data[$key] = $value; - } -} -?> diff --git a/modules/lnApp/classes/lnApp/PWgen.php b/modules/lnApp/classes/lnApp/PWgen.php deleted file mode 100644 index d6390b07..00000000 --- a/modules/lnApp/classes/lnApp/PWgen.php +++ /dev/null @@ -1,35 +0,0 @@ -load('pwgen')->host OR ! Kohana::$config->load('pwgen')->port) - throw new Kohana_Exception('No configuration for host or port (:host/:port)',array(':host'=>Kohana::$config->load('pwgen')->host,':port'=>Kohana::$config->load('pwgen')->port)); - - $ps = socket_create(AF_INET,SOCK_STREAM,0); - if (! socket_connect($ps,Kohana::$config->load('pwgen')->host,Kohana::$config->load('pwgen')->port)) - throw new Kohana_Exception('Unable to connect to password server'); - - // echo "Reading response:\n\n"; - $pw = ''; - while ($out = socket_read($ps,64)) - $pw .= rtrim($out); - - // echo "Closing socket..."; - socket_close ($ps); - - list($passwd,$passwdSay) = explode(' ',$pw); - // print " Password [$passwd] ($passwdSay) [$pw] ".md5($passwd)."
    "; - - return $pwonly ? $passwd : array('pw'=>$passwd,'say'=>$passwdSay); - } -} -?> diff --git a/modules/lnApp/classes/lnApp/Random.php b/modules/lnApp/classes/lnApp/Random.php deleted file mode 100644 index 47aa6b2b..00000000 --- a/modules/lnApp/classes/lnApp/Random.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/modules/lnApp/classes/lnApp/Script.php b/modules/lnApp/classes/lnApp/Script.php deleted file mode 100644 index 301bba7d..00000000 --- a/modules/lnApp/classes/lnApp/Script.php +++ /dev/null @@ -1,64 +0,0 @@ -'type'); - protected static $_rendered = FALSE; - - /** - * Return an instance of this class - * - * @return Script - */ - public static function factory() { - return new Script; - } - - /** - * Render the script tag - * - * @see HTMLRender::render() - */ - protected function render() { - $foutput = $soutput = ''; - $mediapath = Route::get(static::$_media_path); - - foreach (static::$_data as $value) { - switch ($value['type']) { - case 'file': - $foutput .= HTML::script($mediapath->uri(array('file'=>$value['data']))); - break; - case 'src': - $foutput .= HTML::script($value['data']); - break; - case 'stdin': - $soutput .= sprintf("",$value['data']); - break; - default: - throw new Kohana_Exception('Unknown style type :type',array(':type'=>$value['type'])); - } - } - - static::$_rendered = TRUE; - return $foutput.static::$_spacer.$soutput; - } - - public static function add($item,$prepend=FALSE,$x='') { - if (static::$_rendered) - throw new Kohana_Exception('Already rendered?'); - - return parent::add($item,$prepend); - } -} -?> diff --git a/modules/lnApp/classes/lnApp/Sort.php b/modules/lnApp/classes/lnApp/Sort.php deleted file mode 100644 index 4edef527..00000000 --- a/modules/lnApp/classes/lnApp/Sort.php +++ /dev/null @@ -1,89 +0,0 @@ -[a-zA-Z0-9])?)?,?)+$/',$sortby) || ! $data) - return; - - $code = '$c=0;'; - - foreach (explode(',',$sortby) as $key) { - $code .= 'if (is_object($a) || is_object($b)) {'; - foreach (array('a','b') as $x) { - $code .= 'if (is_array($'.$x.'->'.$key.')) {'; - $code .= 'asort($'.$x.'->'.$key.');'; - $code .= '$x'.$x.' = array_shift($'.$x.'->'.$key.');'; - $code .= '} else'; - $code .= '$x'.$x.' = $'.$x.'->'.$key.';'; - } - - $code .= 'if ($xa != $xb)'; - if ($rev) - $code .= 'return ($xa < $xb ? 1 : -1);'; - else - $code .= 'return ($xa > $xb ? 1 : -1);'; - - $code .= '} else {'; - - foreach (array('a','b') as $x) - $code .= '$'.$x.' = array_change_key_case($'.$x.');'; - - $key = strtolower($key); - - $code .= 'if ((! isset($a[\''.$key.'\'])) && isset($b[\''.$key.'\'])) return 1;'; - $code .= 'if (isset($a[\''.$key.'\']) && (! isset($b[\''.$key.'\']))) return -1;'; - - $code .= 'if ((isset($a[\''.$key.'\'])) && (isset($b[\''.$key.'\']))) {'; - foreach (array('a','b') as $x) { - $code .= 'if (is_array($'.$x.'[\''.$key.'\'])) {'; - $code .= 'asort($'.$x.'[\''.$key.'\']);'; - $code .= '$x'.$x.' = array_shift($'.$x.'[\''.$key.'\']);'; - $code .= '} else'; - $code .= '$x'.$x.' = $'.$x.'[\''.$key.'\'];'; - } - - $code .= 'if ($xa != $xb)'; - $code .= 'if (is_numeric($xa) && is_numeric($xb)) {'; - - if ($rev) - $code .= 'return ($xa < $xb ? 1 : -1);'; - else - $code .= 'return ($xa > $xb ? 1 : -1);'; - - $code .= '} else {'; - - if ($rev) - $code .= 'if (($c = strcasecmp($xb,$xa)) != 0) return $c;'; - else - $code .= 'if (($c = strcasecmp($xa,$xb)) != 0) return $c;'; - - $code .= '}}}'; - } - - $code .= 'return $c;'; - - $result = create_function('$a, $b',$code); - - uasort($data,$result); - } -} -?> diff --git a/modules/lnApp/classes/lnApp/Style.php b/modules/lnApp/classes/lnApp/Style.php deleted file mode 100644 index 150e90bd..00000000 --- a/modules/lnApp/classes/lnApp/Style.php +++ /dev/null @@ -1,53 +0,0 @@ -'type'); - - /** - * Return an instance of this class - * - * @return Style - */ - public static function factory() { - return new Style; - } - - /** - * Render the style tag - * - * @see HTMLRender::render() - */ - protected function render() { - $foutput = $soutput = ''; - $mediapath = Route::get(static::$_media_path); - - foreach (static::$_data as $value) { - switch ($value['type']) { - case 'file': - $foutput .= HTML::style($mediapath->uri(array('file'=>$value['data'])), - array('media'=>(! empty($value['media'])) ? $value['media'] : 'screen'),TRUE); - break; - case 'stdin': - $soutput .= sprintf("",$value['data']); - break; - default: - throw new Kohana_Exception('Unknown style type :type',array(':type'=>$value['type'])); - } - } - - return $foutput.static::$_spacer.$soutput; - } -} -?> diff --git a/modules/lnApp/classes/lnApp/SystemMessage.php b/modules/lnApp/classes/lnApp/SystemMessage.php deleted file mode 100644 index 5f827c4b..00000000 --- a/modules/lnApp/classes/lnApp/SystemMessage.php +++ /dev/null @@ -1,128 +0,0 @@ -
    {name}{methods_bar}
    {methods_tested_percent}
    {methods_number}
    {crap}{lines_bar}
    {lines_executed_percent}
    {lines_number}
     
    '; - protected static $_required_keys = array('title','body','type'); - - /** - * Add a system message to be rendered - * - * @param array System Message attributes - */ - public static function add($msg,$prepend=FALSE) { - if ($msgs = Session::instance()->get('sessionmsgs')) { - static::$_data = $msgs; - } - - parent::add($msg); - - // Add a gribber popup - Style::add(array( - 'type'=>'file', - 'data'=>'css/jquery.gritter.css', - 'media'=>'screen', - )); - Script::add(array( - 'type'=>'file', - 'data'=>'js/jquery.gritter-1.5.js', - )); - Script::add(array( - 'type'=>'stdin', - 'data'=>sprintf( -'$(document).ready(function() { - $.extend($.gritter.options, { - fade_in_speed: "medium", - fade_out_speed: 2000, - time: "3000", - sticky: false, - }); - $.gritter.add({ - title: "%s", - text: "%s", - image: "%s", -});});',$msg['title'],$msg['body'],URL::site().static::image($msg['type'],true)))); - - // Save our messages in our session, so that we get them for redirects - Session::instance()->set('sessionmsgs',static::$_data); - } - - /** - * Return an instance of this class - * - * @return SystemMessage - */ - public static function factory() { - return new SystemMessage; - } - - /** - * Render an image for the System Message - */ - public static function image($type,$raw=false,$big=false,$alt='') { - $mediapath = Route::get(static::$_media_path); - - switch ($type) { - case 'error': - $file = sprintf('img/dialog-error%s.png',$big ? '-big' : ''); - break; - case 'info': - $file = sprintf('img/dialog-information%s.png',$big ? '-big' : ''); - break; - case 'warning': - $file = sprintf('img/dialog-warning%s.png',$big ? '-big' : ''); - break; - case 'debug': - $file = sprintf('img/dialog-question%s.png',$big ? '-big' : ''); - break; - default: - throw new Kohana_Exception('Unknown system message type :type',array(':type'=>$value['type'])); - } - - if ($raw) - return $mediapath->uri(array('file'=>$file)); - else - return HTML::image($mediapath->uri(array('file'=>$file)),array('alt'=>$alt ? $alt : '','class'=>'sysicon')); - } - - /** - * Render this system message - * - * @see HTMLRender::render() - */ - protected function render() { - $output = ''; - $mediapath = Route::get(static::$_media_path); - - // Reload our message from the session - if ($msgs = Session::instance()->get('sessionmsgs')) { - Session::instance()->delete('sessionmsgs'); - static::$_data = $msgs; - } - - $i = 0; - foreach (static::$_data as $value) { - if ($i++) - $output .= static::$_spacer; - - $output .= ''; - $output .= sprintf('',static::image($value['type'],false,false,isset($value['alt']) ? $value['alt'] : '')); - $output .= sprintf('',$value['title']); - $output .= ''; - $output .= sprintf('',$value['body']); - $output .= '
    %s%s
    %s
    '; - } - - return $output; - } -} -?> diff --git a/modules/lnApp/classes/lnApp/Table.php b/modules/lnApp/classes/lnApp/Table.php deleted file mode 100644 index 9fd92a7c..00000000 --- a/modules/lnApp/classes/lnApp/Table.php +++ /dev/null @@ -1,275 +0,0 @@ -/',$key)) - eval("\$x = \$d->$key;"); - elseif (preg_match('/^__VALUE__$/',$key)) - $x = $d; - else - $x = $d->display($key); - - return $x; - } - - public static function display($data,$rows,array $cols,array $option) { - if (! (array)$data) - return ''; - - $pag = NULL; - $view = $output = $button = ''; - - if (isset($option['type']) AND $option['type']) - switch ($option['type']) { - case 'select': - $view = 'table/select'; - - if (! empty($option['button'])) - $button = implode('',$option['button']); - else - $button = Form::button('Submit','View/Edit',array('class'=>'form_button','type'=>'submit')); - - Script::add(array( - 'type'=>'stdin', - 'data'=>' -(function($) { - // Enable Range Selection - $.fn.enableCheckboxRangeSelection = function() { - var lastCheckbox = null; - var followOn = 0; - var $spec = this; - $spec.bind("click", function(e) { - if (lastCheckbox != null && e.shiftKey) { - x = y = 0; - if (followOn != 0) { - if ($spec.index(lastCheckbox) < $spec.index(e.target)) { - x = 1 - ((followOn == 1) ? 1 : 0); - } else { - y = 1 - ((followOn == -1) ? 1 : 0); - } - } - - $spec.slice( - Math.min($spec.index(lastCheckbox) - x, $spec.index(e.target)) + 1, - Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + y - ).attr("checked",function() { return ! this.checked; }) - .parent().parent().toggleClass("selected"); - - followOn = ($spec.index(lastCheckbox) < $spec.index(e.target)) ? 1 : -1; - } else { - followOn = 0; - } - lastCheckbox = e.target; - }); - - return $spec; - }; - - // Enable Toggle, (De)Select All - $.fn.check = function(mode) { - // if mode is undefined, use "on" as default - var mode = mode || "on"; - - switch(mode) { - case "on": - $("#select-table tr:not(.head)") - .filter(":has(:checkbox:not(checked))") - .toggleClass("selected") - break; - case "off": - $("#select-table tr:not(.head)") - .filter(":has(:checkbox:checked)") - .toggleClass("selected") - break; - case "toggle": - $("#select-table tr:not(.head)") - .toggleClass("selected"); - break; - } - - return this.each(function(e) { - switch(mode) { - case "on": - this.checked = true; - break; - case "off": - this.checked = false; - break; - case "toggle": - this.checked = !this.checked; - break; - } - }); - }; -})(jQuery); - -// Bind our actions -$(document).ready(function() { - $("#select-table :checkbox").enableCheckboxRangeSelection(); - $("#select-menu > #toggle").bind("click",function() { - $("#select-table :checkbox").check("toggle"); - }); - $("#select-menu > #all_on").bind("click",function() { - $("#select-table :checkbox").check("on"); - }); - $("#select-menu > #all_off").bind("click",function() { - $("#select-table :checkbox").check("off"); - }); - - // Our mouse over row highlight - $("#select-table tr:not(.head)").hover(function() { - $(this).children().toggleClass("highlight"); - }, - function() { - $(this).children().toggleClass("highlight"); - }); - - // Click to select Row - $("#select-table tr:not(.head)") - .filter(":has(:checkbox:checked)") - .addClass("selected") - .end() - .click(function(e) { - $(this).toggleClass("selected"); - if (e.target.type !== "checkbox") { - $(":checkbox", this).attr("checked", function() { - return !this.checked; - }); - } - }); - - // Double click to select a row - $("#select-table tr:not(.head)") - .dblclick(function(e) { - window.location = $("a", this).attr("href"); - }); -}); - ')); - - $output .= Form::open((isset($option['form']) ? $option['form'] : '')); - - if (! empty($option['hidden'])) - $output .= '
    '.implode('',$option['hidden']).'
    '; - - break; - - case 'list': - default: - Script::add(array( - 'type'=>'stdin', - 'data'=>' -// Bind our actions -$(document).ready(function() { - // Our mouse over row highlight - $("#list-table tr:not(.head)").hover(function() { - $(this).children().toggleClass("highlight"); - }, - function() { - $(this).children().toggleClass("highlight"); - }); -}); - ')); - } - - If (! $view) - $view = 'table/list'; - - if (isset($option['page']) AND $option['page']) { - $pag = new Pagination(array( - 'total_items'=>count($data), - 'items_per_page'=>$rows, - )); - - $output .= (string)$pag; - } - - $other = $i = 0; - $td = $th = array(); - foreach ($cols as $col => $details) { - $th[$col] = isset($details['label']) ? $details['label'] : ''; - $td[$col]['class'] = isset($details['class']) ? $details['class'] : ''; - $td[$col]['url'] = isset($details['url']) ? $details['url'] : ''; - } - - $output .= View::factory($view.'_head') - ->set('th',array_values($th)); - - foreach ($data as $do) { - if ($pag) { - if (++$i < $pag->current_first_item()) - continue; - elseif ($i > $pag->current_last_item()) - break; - } - - if ($pag OR ($i++ < $rows) OR is_null($rows)) { - foreach (array_keys($cols) as $col) - $td[$col]['value'] = Table::resolve($do,$col); - - $output .= View::factory($view.'_body') - ->set('td',$td); - - } elseif (isset($option['show_other']) AND ($col=$option['show_other'])) { - $other += Table::resolve($do,$col); - } - } - - if ($other) - $output .= View::factory($view.'_xtra') - ->set('td',array_values($cols)) - ->set('count',$i-$rows) - ->set('other',$other); - - $output .= View::factory($view.'_foot') - ->set('button',$button); - - if (isset($option['type']) AND $option['type']) - switch ($option['type']) { - case 'select': - $output .= Form::close(); - } - - return $output; - } - - public static function post($key,$i='id') { - if (isset($_POST[$i])) - Session::instance()->set('page_table_view'.$key,$_POST[$i]); - } - - public static function page($key) { - // We have preference for parameters passed to the action. - if (is_null($id = Request::current()->param('id'))) { - - if (isset($_POST['id']) AND is_array($_POST['id'])) - Table::post($key,'id'); - - if ($ids = Session::instance()->get('page_table_view'.$key)) { - $pag = new Pagination(array( - 'total_items'=>count($ids), - 'items_per_page'=>1, - )); - - return array($ids[$pag->current_first_item()-1],(string)$pag); - } - - } - - // If we get here, then there is no previous data to retrieve. - return array($id,''); - } -} -?> diff --git a/modules/lnApp/views/lnapp/default.php b/modules/lnApp/views/lnapp/default.php deleted file mode 100644 index a7e4fe5d..00000000 --- a/modules/lnApp/views/lnapp/default.php +++ /dev/null @@ -1,93 +0,0 @@ - - - - - <?php echo $meta->title; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - - - -
    -
    -
    -
    - -
    -
    > -
    - - - - -
    -
    -
    -
    - - - - - -
    - - - - - -
    -
    -
    > -
    - - - - -
    -
    -
    -
    - - - - - = Kohana::STAGING) { ?> - - - -
    - -

- - first_page() !== FALSE): ?> - - - - - - previous_page() !== FALSE): ?> - - - - - - total_pages(); $i++): ?> - - current_page()): ?> - - - - - - - - next_page() !== FALSE): ?> - - - - - - last_page() !== FALSE): ?> - - - - - -