├── .gitignore
├── .htaccess
├── .htrouter.php
├── README.md
├── app
├── config
│ ├── autoload.php
│ ├── config.php
│ └── routes.php
├── controllers
│ └── ExampleController.php
├── library
│ ├── application
│ │ └── Micro.php
│ ├── events
│ │ └── api
│ │ │ └── HmacAuthenticate.php
│ ├── interfaces
│ │ ├── IEvent.php
│ │ └── IRun.php
│ └── utilities
│ │ ├── debug
│ │ └── PhpError.php
│ │ └── outputformats
│ │ └── ArrayToXml.php
├── models
│ └── RuntimeError.php
└── tasks
│ └── ClientTask.php
├── client-connect.php
├── composer.json
├── composer.lock
├── composer.phar
├── public
├── .htaccess
└── index.php
└── vendor
├── Oauth2
└── src
│ └── Oauth2
│ └── Server
│ └── Storage
│ └── Pdo
│ └── Mysql
│ ├── Client.php
│ ├── Request.php
│ ├── Scope.php
│ └── Session.php
├── autoload.php
├── bin
└── phpunit
├── composer
├── ClassLoader.php
├── autoload_classmap.php
├── autoload_namespaces.php
├── autoload_psr4.php
├── autoload_real.php
├── include_paths.php
└── installed.json
├── league
└── oauth2-server
│ ├── .gitattributes
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── README.md
│ ├── composer.json
│ ├── phpunit.xml.dist
│ ├── sql
│ ├── index.html
│ └── mysql.sql
│ └── src
│ └── League
│ └── OAuth2
│ └── Server
│ ├── Authorization.php
│ ├── Exception
│ ├── ClientException.php
│ ├── InsufficientScopeException.php
│ ├── InvalidAccessTokenException.php
│ ├── InvalidGrantTypeException.php
│ ├── MissingAccessTokenException.php
│ └── OAuth2Exception.php
│ ├── Grant
│ ├── AuthCode.php
│ ├── ClientCredentials.php
│ ├── GrantTrait.php
│ ├── GrantTypeInterface.php
│ ├── Implicit.php
│ ├── Password.php
│ └── RefreshToken.php
│ ├── Resource.php
│ ├── Storage
│ ├── ClientInterface.php
│ ├── ScopeInterface.php
│ └── SessionInterface.php
│ └── Util
│ ├── KeyAlgorithm
│ ├── DefaultAlgorithm.php
│ └── KeyAlgorithmInterface.php
│ ├── RedirectUri.php
│ ├── Request.php
│ ├── RequestInterface.php
│ └── SecureKey.php
├── phpunit
├── php-code-coverage
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .travis.yml
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── PHP
│ │ ├── CodeCoverage.php
│ │ └── CodeCoverage
│ │ │ ├── Autoload.php
│ │ │ ├── Autoload.php.in
│ │ │ ├── Driver.php
│ │ │ ├── Driver
│ │ │ └── Xdebug.php
│ │ │ ├── Exception.php
│ │ │ ├── Filter.php
│ │ │ ├── Report
│ │ │ ├── Clover.php
│ │ │ ├── Factory.php
│ │ │ ├── HTML.php
│ │ │ ├── HTML
│ │ │ │ ├── Renderer.php
│ │ │ │ └── Renderer
│ │ │ │ │ ├── Dashboard.php
│ │ │ │ │ ├── Directory.php
│ │ │ │ │ ├── File.php
│ │ │ │ │ └── Template
│ │ │ │ │ ├── coverage_bar.html.dist
│ │ │ │ │ ├── css
│ │ │ │ │ ├── bootstrap-responsive.min.css
│ │ │ │ │ ├── bootstrap.min.css
│ │ │ │ │ ├── nv.d3.css
│ │ │ │ │ └── style.css
│ │ │ │ │ ├── dashboard.html.dist
│ │ │ │ │ ├── directory.html.dist
│ │ │ │ │ ├── directory_item.html.dist
│ │ │ │ │ ├── file.html.dist
│ │ │ │ │ ├── file_item.html.dist
│ │ │ │ │ ├── img
│ │ │ │ │ ├── glyphicons-halflings-white.png
│ │ │ │ │ └── glyphicons-halflings.png
│ │ │ │ │ ├── js
│ │ │ │ │ ├── bootstrap.min.js
│ │ │ │ │ ├── d3.min.js
│ │ │ │ │ ├── html5shiv.js
│ │ │ │ │ ├── jquery.min.js
│ │ │ │ │ └── nv.d3.min.js
│ │ │ │ │ └── method_item.html.dist
│ │ │ ├── Node.php
│ │ │ ├── Node
│ │ │ │ ├── Directory.php
│ │ │ │ ├── File.php
│ │ │ │ └── Iterator.php
│ │ │ ├── PHP.php
│ │ │ └── Text.php
│ │ │ ├── Util.php
│ │ │ ├── Util
│ │ │ └── InvalidArgumentHelper.php
│ │ │ └── Version.php
│ ├── README.md
│ ├── Tests
│ │ ├── PHP
│ │ │ ├── CodeCoverage
│ │ │ │ ├── FilterTest.php
│ │ │ │ ├── Report
│ │ │ │ │ ├── CloverTest.php
│ │ │ │ │ └── FactoryTest.php
│ │ │ │ └── UtilTest.php
│ │ │ └── CodeCoverageTest.php
│ │ ├── TestCase.php
│ │ └── _files
│ │ │ ├── BankAccount-clover.xml
│ │ │ ├── BankAccount.php
│ │ │ ├── BankAccountTest.php
│ │ │ ├── CoverageClassExtendedTest.php
│ │ │ ├── CoverageClassTest.php
│ │ │ ├── CoverageFunctionParenthesesTest.php
│ │ │ ├── CoverageFunctionParenthesesWhitespaceTest.php
│ │ │ ├── CoverageFunctionTest.php
│ │ │ ├── CoverageMethodOneLineAnnotationTest.php
│ │ │ ├── CoverageMethodParenthesesTest.php
│ │ │ ├── CoverageMethodParenthesesWhitespaceTest.php
│ │ │ ├── CoverageMethodTest.php
│ │ │ ├── CoverageNoneTest.php
│ │ │ ├── CoverageNotPrivateTest.php
│ │ │ ├── CoverageNotProtectedTest.php
│ │ │ ├── CoverageNotPublicTest.php
│ │ │ ├── CoverageNothingTest.php
│ │ │ ├── CoveragePrivateTest.php
│ │ │ ├── CoverageProtectedTest.php
│ │ │ ├── CoveragePublicTest.php
│ │ │ ├── CoverageTwoDefaultClassAnnotations.php
│ │ │ ├── CoveredClass.php
│ │ │ ├── CoveredFunction.php
│ │ │ ├── NamespaceCoverageClassExtendedTest.php
│ │ │ ├── NamespaceCoverageClassTest.php
│ │ │ ├── NamespaceCoverageCoversClassPublicTest.php
│ │ │ ├── NamespaceCoverageCoversClassTest.php
│ │ │ ├── NamespaceCoverageMethodTest.php
│ │ │ ├── NamespaceCoverageNotPrivateTest.php
│ │ │ ├── NamespaceCoverageNotProtectedTest.php
│ │ │ ├── NamespaceCoverageNotPublicTest.php
│ │ │ ├── NamespaceCoveragePrivateTest.php
│ │ │ ├── NamespaceCoverageProtectedTest.php
│ │ │ ├── NamespaceCoveragePublicTest.php
│ │ │ ├── NamespaceCoveredClass.php
│ │ │ ├── NotExistingCoveredElementTest.php
│ │ │ ├── class-with-anonymous-function-clover.xml
│ │ │ ├── ignored-lines-clover.xml
│ │ │ ├── source_with_class_and_anonymous_function.php
│ │ │ ├── source_with_ignore.php
│ │ │ ├── source_with_namespace.php
│ │ │ ├── source_with_oneline_annotations.php
│ │ │ ├── source_without_ignore.php
│ │ │ └── source_without_namespace.php
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ ├── phpmd.xml
│ │ └── travis-ci.xml
│ ├── composer.json
│ ├── package.xml
│ ├── phpunit.xml.dist
│ └── scripts
│ │ ├── auto_append.php
│ │ └── auto_prepend.php
├── php-file-iterator
│ ├── .gitattributes
│ ├── .gitignore
│ ├── ChangeLog.markdown
│ ├── File
│ │ ├── Iterator.php
│ │ └── Iterator
│ │ │ ├── Autoload.php
│ │ │ ├── Autoload.php.in
│ │ │ ├── Facade.php
│ │ │ └── Factory.php
│ ├── LICENSE
│ ├── README.markdown
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ └── phpmd.xml
│ ├── composer.json
│ └── package.xml
├── php-text-template
│ ├── .gitattributes
│ ├── .gitignore
│ ├── ChangeLog.md
│ ├── LICENSE
│ ├── README.md
│ ├── Text
│ │ ├── Template.php
│ │ └── Template
│ │ │ ├── Autoload.php
│ │ │ └── Autoload.php.in
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ └── phpmd.xml
│ ├── composer.json
│ └── package.xml
├── php-timer
│ ├── .gitattributes
│ ├── .gitignore
│ ├── LICENSE
│ ├── PHP
│ │ ├── Timer.php
│ │ └── Timer
│ │ │ ├── Autoload.php
│ │ │ └── Autoload.php.in
│ ├── README.md
│ ├── Tests
│ │ └── TimerTest.php
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ └── phpmd.xml
│ ├── composer.json
│ ├── package.xml
│ └── phpunit.xml.dist
├── php-token-stream
│ ├── .gitattributes
│ ├── .gitignore
│ ├── LICENSE
│ ├── PHP
│ │ ├── Token.php
│ │ └── Token
│ │ │ ├── Stream.php
│ │ │ └── Stream
│ │ │ ├── Autoload.php
│ │ │ ├── Autoload.php.in
│ │ │ └── CachingFactory.php
│ ├── README.md
│ ├── Tests
│ │ ├── Token
│ │ │ ├── ClassTest.php
│ │ │ ├── ClosureTest.php
│ │ │ ├── FunctionTest.php
│ │ │ ├── IncludeTest.php
│ │ │ ├── InterfaceTest.php
│ │ │ └── NamespaceTest.php
│ │ ├── TokenTest.php
│ │ └── _files
│ │ │ ├── classExtendsNamespacedClass.php
│ │ │ ├── classInNamespace.php
│ │ │ ├── classInScopedNamespace.php
│ │ │ ├── closure.php
│ │ │ ├── issue19.php
│ │ │ ├── issue30.php
│ │ │ ├── multipleNamespacesWithOneClassUsingBraces.php
│ │ │ ├── multipleNamespacesWithOneClassUsingNonBraceSyntax.php
│ │ │ ├── source.php
│ │ │ ├── source2.php
│ │ │ ├── source3.php
│ │ │ ├── source4.php
│ │ │ └── source5.php
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ └── phpmd.xml
│ ├── composer.json
│ ├── package.xml
│ └── phpunit.xml.dist
├── phpunit-mock-objects
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .travis.yml
│ ├── CONTRIBUTING.md
│ ├── ChangeLog.markdown
│ ├── LICENSE
│ ├── PHPUnit
│ │ └── Framework
│ │ │ └── MockObject
│ │ │ ├── Autoload.php
│ │ │ ├── Autoload.php.in
│ │ │ ├── Builder
│ │ │ ├── Identity.php
│ │ │ ├── InvocationMocker.php
│ │ │ ├── Match.php
│ │ │ ├── MethodNameMatch.php
│ │ │ ├── Namespace.php
│ │ │ ├── ParametersMatch.php
│ │ │ └── Stub.php
│ │ │ ├── Generator.php
│ │ │ ├── Generator
│ │ │ ├── mocked_class.tpl.dist
│ │ │ ├── mocked_clone.tpl.dist
│ │ │ ├── mocked_object_method.tpl.dist
│ │ │ ├── mocked_static_method.tpl.dist
│ │ │ ├── trait_class.tpl.dist
│ │ │ ├── unmocked_clone.tpl.dist
│ │ │ ├── wsdl_class.tpl.dist
│ │ │ └── wsdl_method.tpl.dist
│ │ │ ├── Invocation.php
│ │ │ ├── Invocation
│ │ │ ├── Object.php
│ │ │ └── Static.php
│ │ │ ├── InvocationMocker.php
│ │ │ ├── Invokable.php
│ │ │ ├── Matcher.php
│ │ │ ├── Matcher
│ │ │ ├── AnyInvokedCount.php
│ │ │ ├── AnyParameters.php
│ │ │ ├── Invocation.php
│ │ │ ├── InvokedAtIndex.php
│ │ │ ├── InvokedAtLeastOnce.php
│ │ │ ├── InvokedCount.php
│ │ │ ├── InvokedRecorder.php
│ │ │ ├── MethodName.php
│ │ │ ├── Parameters.php
│ │ │ └── StatelessInvocation.php
│ │ │ ├── MockBuilder.php
│ │ │ ├── MockObject.php
│ │ │ ├── Stub.php
│ │ │ ├── Stub
│ │ │ ├── ConsecutiveCalls.php
│ │ │ ├── Exception.php
│ │ │ ├── MatcherCollection.php
│ │ │ ├── Return.php
│ │ │ ├── ReturnArgument.php
│ │ │ ├── ReturnCallback.php
│ │ │ ├── ReturnSelf.php
│ │ │ └── ReturnValueMap.php
│ │ │ └── Verifiable.php
│ ├── Tests
│ │ ├── GeneratorTest.php
│ │ ├── MockBuilderTest.php
│ │ ├── MockObject
│ │ │ ├── Invocation
│ │ │ │ ├── ObjectTest.php
│ │ │ │ └── StaticTest.php
│ │ │ ├── class.phpt
│ │ │ ├── class_call_parent_clone.phpt
│ │ │ ├── class_call_parent_constructor.phpt
│ │ │ ├── class_dont_call_parent_clone.phpt
│ │ │ ├── class_dont_call_parent_constructor.phpt
│ │ │ ├── class_implementing_interface_call_parent_constructor.phpt
│ │ │ ├── class_implementing_interface_dont_call_parent_constructor.phpt
│ │ │ ├── class_partial.phpt
│ │ │ ├── interface.phpt
│ │ │ ├── invocation_object_clone_object.phpt
│ │ │ ├── invocation_static_clone_object.phpt
│ │ │ ├── namespaced_class.phpt
│ │ │ ├── namespaced_class_call_parent_clone.phpt
│ │ │ ├── namespaced_class_call_parent_constructor.phpt
│ │ │ ├── namespaced_class_dont_call_parent_clone.phpt
│ │ │ ├── namespaced_class_dont_call_parent_constructor.phpt
│ │ │ ├── namespaced_class_implementing_interface_call_parent_constructor.phpt
│ │ │ ├── namespaced_class_implementing_interface_dont_call_parent_constructor.phpt
│ │ │ ├── namespaced_class_partial.phpt
│ │ │ ├── namespaced_interface.phpt
│ │ │ ├── nonexistent_class.phpt
│ │ │ ├── nonexistent_class_with_namespace.phpt
│ │ │ ├── nonexistent_class_with_namespace_starting_with_separator.phpt
│ │ │ ├── wsdl_class.phpt
│ │ │ ├── wsdl_class_namespace.phpt
│ │ │ └── wsdl_class_partial.phpt
│ │ ├── MockObjectTest.php
│ │ └── _files
│ │ │ ├── AbstractMockTestClass.php
│ │ │ ├── AnInterface.php
│ │ │ ├── FunctionCallback.php
│ │ │ ├── GoogleSearch.wsdl
│ │ │ ├── MethodCallback.php
│ │ │ ├── MethodCallbackByReference.php
│ │ │ ├── Mockable.php
│ │ │ ├── PartialMockTestClass.php
│ │ │ ├── SomeClass.php
│ │ │ └── StaticMockTestClass.php
│ ├── build.xml
│ ├── build
│ │ ├── PHPCS
│ │ │ ├── Sniffs
│ │ │ │ ├── ControlStructures
│ │ │ │ │ └── ControlSignatureSniff.php
│ │ │ │ └── Whitespace
│ │ │ │ │ └── ConcatenationSpacingSniff.php
│ │ │ └── ruleset.xml
│ │ ├── phpmd.xml
│ │ └── travis-ci.xml
│ ├── composer.json
│ ├── package.xml
│ └── phpunit.xml.dist
└── phpunit
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .travis.yml
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── PHPUnit
│ ├── Autoload.php
│ ├── Autoload.php.in
│ ├── Extensions
│ │ ├── GroupTestSuite.php
│ │ ├── PhptTestCase.php
│ │ ├── PhptTestCase
│ │ │ └── Logger.php
│ │ ├── PhptTestSuite.php
│ │ ├── RepeatedTest.php
│ │ ├── TestDecorator.php
│ │ └── TicketListener.php
│ ├── Framework
│ │ ├── Assert.php
│ │ ├── Assert
│ │ │ ├── Functions.php
│ │ │ └── Functions.php.in
│ │ ├── AssertionFailedError.php
│ │ ├── Comparator.php
│ │ ├── Comparator
│ │ │ ├── Array.php
│ │ │ ├── DOMDocument.php
│ │ │ ├── Double.php
│ │ │ ├── Exception.php
│ │ │ ├── MockObject.php
│ │ │ ├── Numeric.php
│ │ │ ├── Object.php
│ │ │ ├── Resource.php
│ │ │ ├── Scalar.php
│ │ │ ├── SplObjectStorage.php
│ │ │ └── Type.php
│ │ ├── ComparatorFactory.php
│ │ ├── ComparisonFailure.php
│ │ ├── Constraint.php
│ │ ├── Constraint
│ │ │ ├── And.php
│ │ │ ├── ArrayHasKey.php
│ │ │ ├── Attribute.php
│ │ │ ├── Callback.php
│ │ │ ├── ClassHasAttribute.php
│ │ │ ├── ClassHasStaticAttribute.php
│ │ │ ├── Composite.php
│ │ │ ├── Count.php
│ │ │ ├── Exception.php
│ │ │ ├── ExceptionCode.php
│ │ │ ├── ExceptionMessage.php
│ │ │ ├── FileExists.php
│ │ │ ├── GreaterThan.php
│ │ │ ├── IsAnything.php
│ │ │ ├── IsEmpty.php
│ │ │ ├── IsEqual.php
│ │ │ ├── IsFalse.php
│ │ │ ├── IsIdentical.php
│ │ │ ├── IsInstanceOf.php
│ │ │ ├── IsJson.php
│ │ │ ├── IsNull.php
│ │ │ ├── IsTrue.php
│ │ │ ├── IsType.php
│ │ │ ├── JsonMatches.php
│ │ │ ├── JsonMatches
│ │ │ │ └── ErrorMessageProvider.php
│ │ │ ├── LessThan.php
│ │ │ ├── Not.php
│ │ │ ├── ObjectHasAttribute.php
│ │ │ ├── Or.php
│ │ │ ├── PCREMatch.php
│ │ │ ├── SameSize.php
│ │ │ ├── StringContains.php
│ │ │ ├── StringEndsWith.php
│ │ │ ├── StringMatches.php
│ │ │ ├── StringStartsWith.php
│ │ │ ├── TraversableContains.php
│ │ │ ├── TraversableContainsOnly.php
│ │ │ └── Xor.php
│ │ ├── Error.php
│ │ ├── Error
│ │ │ ├── Deprecated.php
│ │ │ ├── Notice.php
│ │ │ └── Warning.php
│ │ ├── Exception.php
│ │ ├── ExpectationFailedException.php
│ │ ├── IncompleteTest.php
│ │ ├── IncompleteTestError.php
│ │ ├── OutputError.php
│ │ ├── Process
│ │ │ └── TestCaseMethod.tpl.dist
│ │ ├── SelfDescribing.php
│ │ ├── SkippedTest.php
│ │ ├── SkippedTestError.php
│ │ ├── SkippedTestSuiteError.php
│ │ ├── SyntheticError.php
│ │ ├── Test.php
│ │ ├── TestCase.php
│ │ ├── TestFailure.php
│ │ ├── TestListener.php
│ │ ├── TestResult.php
│ │ ├── TestSuite.php
│ │ ├── TestSuite
│ │ │ └── DataProvider.php
│ │ └── Warning.php
│ ├── Runner
│ │ ├── BaseTestRunner.php
│ │ ├── StandardTestSuiteLoader.php
│ │ ├── TestSuiteLoader.php
│ │ └── Version.php
│ ├── TextUI
│ │ ├── Command.php
│ │ ├── ResultPrinter.php
│ │ └── TestRunner.php
│ └── Util
│ │ ├── Class.php
│ │ ├── Configuration.php
│ │ ├── DeprecatedFeature.php
│ │ ├── DeprecatedFeature
│ │ └── Logger.php
│ │ ├── Diff.php
│ │ ├── ErrorHandler.php
│ │ ├── Fileloader.php
│ │ ├── Filesystem.php
│ │ ├── Filter.php
│ │ ├── Getopt.php
│ │ ├── GlobalState.php
│ │ ├── InvalidArgumentHelper.php
│ │ ├── Log
│ │ ├── JSON.php
│ │ ├── JUnit.php
│ │ └── TAP.php
│ │ ├── PHP.php
│ │ ├── PHP
│ │ ├── Default.php
│ │ └── Windows.php
│ │ ├── Printer.php
│ │ ├── String.php
│ │ ├── Test.php
│ │ ├── TestDox
│ │ ├── NamePrettifier.php
│ │ ├── ResultPrinter.php
│ │ └── ResultPrinter
│ │ │ ├── HTML.php
│ │ │ └── Text.php
│ │ ├── TestSuiteIterator.php
│ │ ├── Type.php
│ │ └── XML.php
│ ├── README.md
│ ├── Tests
│ ├── Extensions
│ │ └── RepeatedTestTest.php
│ ├── Framework
│ │ ├── Assert
│ │ │ └── FunctionsTest.php
│ │ ├── AssertTest.php
│ │ ├── ComparatorTest.php
│ │ ├── Constraint
│ │ │ ├── CountTest.php
│ │ │ ├── JsonMatches
│ │ │ │ └── ErrorMessageProviderTest.php
│ │ │ └── JsonMatchesTest.php
│ │ ├── ConstraintTest.php
│ │ ├── SuiteTest.php
│ │ ├── TestCaseTest.php
│ │ ├── TestFailureTest.php
│ │ ├── TestImplementorTest.php
│ │ └── TestListenerTest.php
│ ├── Regression
│ │ ├── 523
│ │ │ └── Issue523Test.php
│ │ ├── 578
│ │ │ └── Issue578Test.php
│ │ ├── 684
│ │ │ └── Issue684Test.php
│ │ ├── 783
│ │ │ ├── ChildSuite.php
│ │ │ ├── OneTest.php
│ │ │ ├── ParentSuite.php
│ │ │ └── TwoTest.php
│ │ ├── 1021
│ │ │ └── Issue1021Test.php
│ │ ├── 1021.phpt
│ │ ├── 523.phpt
│ │ ├── 578.phpt
│ │ ├── 684.phpt
│ │ ├── 783.phpt
│ │ └── GitHub
│ │ │ ├── 74
│ │ │ ├── Issue74Test.php
│ │ │ └── NewException.php
│ │ │ ├── 244
│ │ │ └── Issue244Test.php
│ │ │ ├── 322
│ │ │ ├── Issue322Test.php
│ │ │ └── phpunit322.xml
│ │ │ ├── 433
│ │ │ └── Issue433Test.php
│ │ │ ├── 445
│ │ │ └── Issue445Test.php
│ │ │ ├── 498
│ │ │ └── Issue498Test.php
│ │ │ ├── 503
│ │ │ └── Issue503Test.php
│ │ │ ├── 581
│ │ │ └── Issue581Test.php
│ │ │ ├── 765
│ │ │ └── Issue765Test.php
│ │ │ ├── 244.phpt
│ │ │ ├── 322.phpt
│ │ │ ├── 433.phpt
│ │ │ ├── 445.phpt
│ │ │ ├── 498.phpt
│ │ │ ├── 503.phpt
│ │ │ ├── 581.phpt
│ │ │ ├── 74.phpt
│ │ │ ├── 765.phpt
│ │ │ └── 863.phpt
│ ├── Runner
│ │ └── BaseTestRunnerTest.php
│ ├── TextUI
│ │ ├── abstract-test-class.phpt
│ │ ├── concrete-test-class.phpt
│ │ ├── dataprovider-log-xml-isolation.phpt
│ │ ├── dataprovider-log-xml.phpt
│ │ ├── dataprovider-testdox.phpt
│ │ ├── debug.phpt
│ │ ├── default-isolation.phpt
│ │ ├── default.phpt
│ │ ├── dependencies-isolation.phpt
│ │ ├── dependencies.phpt
│ │ ├── dependencies2-isolation.phpt
│ │ ├── dependencies2.phpt
│ │ ├── dependencies3-isolation.phpt
│ │ ├── dependencies3.phpt
│ │ ├── empty-testcase.phpt
│ │ ├── exception-stack.phpt
│ │ ├── exclude-group-isolation.phpt
│ │ ├── exclude-group.phpt
│ │ ├── failure-isolation.phpt
│ │ ├── failure.phpt
│ │ ├── fatal-isolation.phpt
│ │ ├── fatal.phpt
│ │ ├── filter-class-isolation.phpt
│ │ ├── filter-class.phpt
│ │ ├── filter-method-isolation.phpt
│ │ ├── filter-method.phpt
│ │ ├── filter-no-results.phpt
│ │ ├── group-isolation.phpt
│ │ ├── group.phpt
│ │ ├── help.phpt
│ │ ├── help2.phpt
│ │ ├── list-groups.phpt
│ │ ├── log-json.phpt
│ │ ├── log-tap.phpt
│ │ ├── log-xml.phpt
│ │ ├── strict-incomplete.phpt
│ │ ├── strict-isolation.phpt
│ │ ├── strict.phpt
│ │ ├── tap.phpt
│ │ ├── test-suffix-multiple.phpt
│ │ ├── test-suffix-single.phpt
│ │ ├── testdox-html.phpt
│ │ ├── testdox-text.phpt
│ │ └── testdox.phpt
│ ├── Util
│ │ ├── ClassTest.php
│ │ ├── ConfigurationTest.php
│ │ ├── DiffTest.php
│ │ ├── TestDox
│ │ │ └── NamePrettifierTest.php
│ │ ├── TestTest.php
│ │ ├── TypeTest.php
│ │ └── XMLTest.php
│ └── _files
│ │ ├── AbstractTest.php
│ │ ├── Author.php
│ │ ├── BankAccount.php
│ │ ├── BankAccountTest.php
│ │ ├── BankAccountTest.test.php
│ │ ├── Book.php
│ │ ├── Calculator.php
│ │ ├── ChangeCurrentWorkingDirectoryTest.php
│ │ ├── ClassWithNonPublicAttributes.php
│ │ ├── ClassWithToString.php
│ │ ├── ConcreteTest.my.php
│ │ ├── ConcreteTest.php
│ │ ├── DataProviderTest.php
│ │ ├── DependencyFailureTest.php
│ │ ├── DependencySuccessTest.php
│ │ ├── DependencyTestSuite.php
│ │ ├── DoubleTestCase.php
│ │ ├── EmptyTestCaseTest.php
│ │ ├── Error.php
│ │ ├── ExceptionInAssertPostConditionsTest.php
│ │ ├── ExceptionInAssertPreConditionsTest.php
│ │ ├── ExceptionInSetUpTest.php
│ │ ├── ExceptionInTearDownTest.php
│ │ ├── ExceptionInTest.php
│ │ ├── ExceptionNamespaceTest.php
│ │ ├── ExceptionStack.php
│ │ ├── ExceptionTest.php
│ │ ├── Failure.php
│ │ ├── FailureTest.php
│ │ ├── FatalTest.php
│ │ ├── IncompleteTest.php
│ │ ├── InheritedTestCase.php
│ │ ├── JsonData
│ │ ├── arrayObject.js
│ │ ├── simpleObject.js
│ │ └── simpleObject2.js
│ │ ├── MockRunner.php
│ │ ├── MultiDependencyTest.php
│ │ ├── NoArgTestCaseTest.php
│ │ ├── NoTestCaseClass.php
│ │ ├── NoTestCases.php
│ │ ├── NonStatic.php
│ │ ├── NotPublicTestCase.php
│ │ ├── NotVoidTestCase.php
│ │ ├── NothingTest.php
│ │ ├── OneTestCase.php
│ │ ├── OutputTestCase.php
│ │ ├── OverrideTestCase.php
│ │ ├── RequirementsClassDocBlockTest.php
│ │ ├── RequirementsTest.php
│ │ ├── SampleArrayAccess.php
│ │ ├── SampleClass.php
│ │ ├── SelectorAssertionsFixture.html
│ │ ├── Singleton.php
│ │ ├── StackTest.php
│ │ ├── Struct.php
│ │ ├── Success.php
│ │ ├── TemplateMethodsTest.php
│ │ ├── TestIterator.php
│ │ ├── TestIterator2.php
│ │ ├── ThrowExceptionTestCase.php
│ │ ├── ThrowNoExceptionTestCase.php
│ │ ├── WasRun.php
│ │ ├── bar.xml
│ │ ├── configuration.xml
│ │ ├── configuration_xinclude.xml
│ │ ├── expectedFileFormat.txt
│ │ ├── foo.xml
│ │ ├── structureAttributesAreSameButValuesAreNot.xml
│ │ ├── structureExpected.xml
│ │ ├── structureIgnoreTextNodes.xml
│ │ ├── structureIsSameButDataIsNot.xml
│ │ ├── structureWrongNumberOfAttributes.xml
│ │ └── structureWrongNumberOfNodes.xml
│ ├── build.xml
│ ├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ ├── assertions.php
│ ├── phar-autoload.php.in
│ ├── phpmd.xml
│ └── travis-ci.xml
│ ├── composer.json
│ ├── composer
│ └── bin
│ │ └── phpunit
│ ├── phpdox.xml.dist
│ ├── phpunit.php
│ ├── phpunit.xml.dist
│ └── phpunit.xsd
└── symfony
└── yaml
└── Symfony
└── Component
└── Yaml
├── .gitignore
├── CHANGELOG.md
├── Dumper.php
├── Escaper.php
├── Exception
├── DumpException.php
├── ExceptionInterface.php
├── ParseException.php
└── RuntimeException.php
├── Inline.php
├── LICENSE
├── Parser.php
├── README.md
├── Tests
├── DumperTest.php
├── Fixtures
│ ├── YtsAnchorAlias.yml
│ ├── YtsBasicTests.yml
│ ├── YtsBlockMapping.yml
│ ├── YtsDocumentSeparator.yml
│ ├── YtsErrorTests.yml
│ ├── YtsFlowCollections.yml
│ ├── YtsFoldedScalars.yml
│ ├── YtsNullsAndEmpties.yml
│ ├── YtsSpecificationExamples.yml
│ ├── YtsTypeTransfers.yml
│ ├── embededPhp.yml
│ ├── escapedCharacters.yml
│ ├── index.yml
│ ├── sfComments.yml
│ ├── sfCompact.yml
│ ├── sfMergeKey.yml
│ ├── sfObjects.yml
│ ├── sfQuotes.yml
│ ├── sfTests.yml
│ └── unindentedCollections.yml
├── InlineTest.php
├── ParseExceptionTest.php
├── ParserTest.php
└── YamlTest.php
├── Unescaper.php
├── Yaml.php
├── composer.json
└── phpunit.xml.dist
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 | .DS_Store
3 | app/config/config.php
4 |
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine on
3 | RewriteRule ^$ public/ [L]
4 | RewriteRule (.*) public/$1 [L]
5 |
--------------------------------------------------------------------------------
/.htrouter.php:
--------------------------------------------------------------------------------
1 |
25 | api.domain.com/method?token=token&format=xml or
26 | api.domain.com/method.xml?token=token
27 |
28 | - json is supported by default
29 |
30 | 4) Update app/config/config.php with your own stuff
31 |
32 | TODO: Add oauth2 scope and static html page for allow/deny like Google oauth2 or Facebook oauth.
33 |
34 | Enjoy and do not forgot to run sql file vendor/league/oauth-server/sql/mysql.sql for oauth2!
35 | For any questions/suggestions please check my profile page and send me email.
36 |
--------------------------------------------------------------------------------
/app/config/autoload.php:
--------------------------------------------------------------------------------
1 | '/path/to/dir'
8 | */
9 | $vendorDir = dirname(dirname(dirname(__FILE__)))."/vendor";
10 |
11 | $autoload = [
12 | 'Events\Api' => $dir . '/library/events/api/',
13 | 'Utilities\Debug' => $dir . '/library/utilities/debug/',
14 | 'Utilities\Outputformats' => $dir . '/library/utilities/outputformats',
15 | 'Application' => $dir . '/library/application/',
16 | 'Interfaces' => $dir . '/library/interfaces/',
17 | 'Controllers' => $dir . '/controllers/',
18 | 'Models' => $dir . '/models/',
19 | ];
20 |
21 | return $autoload;
22 |
--------------------------------------------------------------------------------
/app/config/config.php:
--------------------------------------------------------------------------------
1 | array(
9 | 'adapter' => 'Mysql', /* Possible Values: Mysql, Postgres, Sqlite */
10 | 'host' => 'localhost',
11 | 'username' => 'api',
12 | 'password' => 'api',
13 | 'name' => 'helioapi',
14 | 'port' => 3306
15 | ),
16 |
17 | 'oauth2' => array(
18 | 'adapter' => 'Mysql',
19 | 'host' => 'localhost',
20 | 'port' => 3306,
21 | 'username' => 'api',
22 | 'password' => 'api',
23 | 'dbname' => 'oauth2',
24 | )
25 | );
26 |
27 |
28 | return $settings;
29 |
--------------------------------------------------------------------------------
/app/config/routes.php:
--------------------------------------------------------------------------------
1 | 'post',
11 | 'route' => '/api/update',
12 | 'handler' => 'myFunction'
13 | ];
14 |
15 | */
16 |
17 | $routes[] = [
18 | 'method' => 'get',
19 | 'route' => '/ping',
20 | 'handler' => ['Controllers\ExampleController', 'pingAction']
21 | ];
22 |
23 |
24 | $routes[] = [
25 | 'method' => 'post',
26 | 'route' => '/test/{id}',
27 | 'handler' => ['Controllers\ExampleController', 'testAction']
28 | ];
29 |
30 | $routes[] = [
31 | 'method' => 'post',
32 | 'route' => '/skip/{name}',
33 | 'handler' => ['Controllers\ExampleController', 'skipAction'],
34 | 'authentication' => FALSE
35 | ];
36 |
37 | return $routes;
38 |
--------------------------------------------------------------------------------
/app/controllers/ExampleController.php:
--------------------------------------------------------------------------------
1 | array(
13 | array(
14 | '@attributes' => array(
15 | 'author' => 'George Orwell'
16 | ),
17 | 'title' => '1984'
18 | ),
19 | array(
20 | '@attributes' => array(
21 | 'author' => 'Isaac Asimov'
22 | ),
23 | 'title' => 'Foundation',
24 | 'price' => '$15.61'
25 | ),
26 | array(
27 | '@attributes' => array(
28 | 'author' => 'Robert A Heinlein'
29 | ),
30 | 'title' => 'Stranger in a Strange Land',
31 | 'price' => array(
32 | '@attributes' => array(
33 | 'discount' => '10%'
34 | ),
35 | '@value' => '$18.00'
36 | )
37 | )
38 | )
39 | );
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/app/library/events/api/HmacAuthenticate.php:
--------------------------------------------------------------------------------
1 | oauthConfig = $oauthConfig;
29 |
30 |
31 | // Add Event to validate message
32 | $this->handleEvent();
33 | }
34 |
35 | /**
36 | * Setup an Event
37 | *
38 | * Phalcon event to make sure client sends a valid message
39 | * @return FALSE|void
40 | */
41 | public function handleEvent() {
42 |
43 | $this->attach('micro', function ($event, $app) {
44 | if ($event->getType() == 'beforeExecuteRoute') {
45 |
46 | if(!preg_match("/access/", $app->request->getURI())){
47 |
48 | $app->resource->setTokenKey('token');
49 | $app->resource->isValid();
50 |
51 | }
52 |
53 | }
54 | });
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/app/library/interfaces/IEvent.php:
--------------------------------------------------------------------------------
1 |
9 | * @link
10 | * @license
11 | */
12 |
13 | namespace Interfaces;
14 |
15 | interface IRun {
16 |
17 | /**
18 | * Main method to run the object
19 | */
20 | public function run();
21 | }
22 |
--------------------------------------------------------------------------------
/app/models/RuntimeError.php:
--------------------------------------------------------------------------------
1 | setSource("runtimeError");
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/app/tasks/ClientTask.php:
--------------------------------------------------------------------------------
1 |
54 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 | "league/oauth2-server": "3.*"
4 | },
5 | "require-dev": {
6 | "phpunit/phpunit": "3.7.*"
7 | }
8 |
9 | }
--------------------------------------------------------------------------------
/composer.phar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goors/phalcon-api-oauth2/7339ca7c65161b49af46997f87b1ce8d16209ed7/composer.phar
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
2 |
3 | RewriteEngine On
4 | RewriteCond %{REQUEST_FILENAME} !-f
5 | RewriteRule ^([^.]+)$ index.php?_url=/$1&format=json [QSA,L]
6 | RewriteRule ^([^.]+)\.(\w+)$ index.php?_url=/$1&format=$2 [QSA,L]
7 |
--------------------------------------------------------------------------------
/vendor/Oauth2/src/Oauth2/Server/Storage/Pdo/Mysql/Request.php:
--------------------------------------------------------------------------------
1 | request = new \Phalcon\Http\Request();
15 | }
16 |
17 | public function get($index = NULL)
18 | {
19 | return $this->request->getQuery($index);
20 | }
21 |
22 | public function post($index = NULL)
23 | {
24 | return $this->request->getPost($index);
25 | }
26 |
27 | public function cookie($index = NULL)
28 | {
29 | $cook = new Cookies();
30 | return $cook->get($index);
31 | }
32 |
33 | public function file($index = NULL)
34 | {
35 | if (is_null($index))
36 | return $_FILES;
37 |
38 | return isset($_FILES[$index]) ? $_FILES[$index] : NULL;
39 | }
40 |
41 | public function server($index = NULL)
42 | {
43 | return $this->request->getServer($index);
44 | }
45 |
46 | public function header($index = NULL)
47 | {
48 | return $this->request->getHeader($index);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/vendor/autoload.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/symfony/yaml'),
10 | 'League\\OAuth2\\Server' => array($vendorDir . '/league/oauth2-server/src'),
11 | );
12 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_psr4.php:
--------------------------------------------------------------------------------
1 | =5.4.0"
7 | },
8 | "require-dev": {
9 | "mockery/mockery": ">=0.7.2",
10 | "league/phpunit-coverage-listener": "~1.0"
11 | },
12 | "repositories": [
13 | {
14 | "type": "git",
15 | "url": "https://github.com/thephpleague/oauth2-server.git"
16 | }
17 | ],
18 | "keywords": [
19 | "oauth",
20 | "oauth2",
21 | "server",
22 | "authorization",
23 | "authentication",
24 | "resource",
25 | "api",
26 | "auth",
27 | "protect",
28 | "secure"
29 | ],
30 | "authors": [
31 | {
32 | "name": "Alex Bilbie",
33 | "email": "hello@alexbilbie.com",
34 | "homepage": "http://www.alexbilbie.com",
35 | "role": "Developer"
36 | }
37 | ],
38 | "replace": {
39 | "lncd/oauth2": "*"
40 | },
41 | "autoload": {
42 | "psr-0": {
43 | "League\\OAuth2\\Server": "src/"
44 | }
45 | },
46 | "suggest": {
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/sql/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goors/phalcon-api-oauth2/7339ca7c65161b49af46997f87b1ce8d16209ed7/vendor/league/oauth2-server/sql/index.html
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/ClientException.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * ClientException Exception
16 | */
17 | class ClientException extends OAuth2Exception
18 | {
19 |
20 | }
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/InsufficientScopeException.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2014 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * InsufficientScope Exception
16 | */
17 | class InsufficientScopeException extends OAuth2Exception
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/InvalidAccessTokenException.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * InvalidAccessToken Exception
16 | */
17 | class InvalidAccessTokenException extends OAuth2Exception
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/InvalidGrantTypeException.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * InvalidGrantTypeException Exception
16 | */
17 | class InvalidGrantTypeException extends OAuth2Exception
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/MissingAccessTokenException.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2014 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * MissingAccessToken Exception
16 | */
17 | class MissingAccessTokenException extends OAuth2Exception
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Exception/OAuth2Exception.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Exception;
13 |
14 | /**
15 | * Exception class
16 | */
17 | class OAuth2Exception extends \Exception
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Util/KeyAlgorithm/KeyAlgorithmInterface.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Util\KeyAlgorithm;
13 |
14 |
15 | interface KeyAlgorithmInterface
16 | {
17 | public function make($len = 40);
18 | }
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Util/RedirectUri.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Util;
13 |
14 | /**
15 | * RedirectUri class
16 | */
17 | class RedirectUri
18 | {
19 | /**
20 | * Generate a new redirect uri
21 | * @param string $uri The base URI
22 | * @param array $params The query string parameters
23 | * @param string $queryDelimeter The query string delimeter (default: "?")
24 | * @return string The updated URI
25 | */
26 | public static function make($uri, $params = array(), $queryDelimeter = '?')
27 | {
28 | $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&';
29 | return $uri.http_build_query($params);
30 | }
31 | }
--------------------------------------------------------------------------------
/vendor/league/oauth2-server/src/League/OAuth2/Server/Util/RequestInterface.php:
--------------------------------------------------------------------------------
1 |
7 | * @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
8 | * @license http://mit-license.org/
9 | * @link http://github.com/php-loep/oauth2-server
10 | */
11 |
12 | namespace League\OAuth2\Server\Util;
13 |
14 | interface RequestInterface
15 | {
16 |
17 | public function get($index = null);
18 |
19 | public function post($index = null);
20 |
21 | public function cookie($index = null);
22 |
23 | public function file($index = null);
24 |
25 | public function server($index = null);
26 |
27 | public function header($index = null);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 | /vendor
9 | /composer.lock
10 | /composer.phar
11 | /.idea
12 |
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - 5.3.3
5 | - 5.3
6 | - 5.4
7 | - 5.5
8 | - 5.6
9 |
10 | before_script:
11 | - COMPOSER_ROOT_VERSION=dev-master composer install --dev --prefer-source
12 |
13 | script: vendor/bin/phpunit --configuration ./build/travis-ci.xml
14 |
15 | notifications:
16 | email: false
17 | irc:
18 | channels:
19 | - "irc.freenode.org#phpunit"
20 | use_notice: true
21 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Pull Requests for bug fixes should be made against the current release branch (1.2).
2 |
3 | Pull Requests for new features should be made against master.
4 |
5 | For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md)
6 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist:
--------------------------------------------------------------------------------
1 |
2 | {{icon}}{{name}} |
3 | {{lines_bar}} |
4 | {{lines_executed_percent}} |
5 | {{lines_number}} |
6 | {{methods_bar}} |
7 | {{methods_tested_percent}} |
8 | {{methods_number}} |
9 | {{classes_bar}} |
10 | {{classes_tested_percent}} |
11 | {{classes_number}} |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist:
--------------------------------------------------------------------------------
1 |
2 | {{name}} |
3 | {{classes_bar}} |
4 | {{classes_tested_percent}} |
5 | {{classes_number}} |
6 | {{methods_bar}} |
7 | {{methods_tested_percent}} |
8 | {{methods_number}} |
9 | {{crap}} |
10 | {{lines_bar}} |
11 | {{lines_executed_percent}} |
12 | {{lines_number}} |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goors/phalcon-api-oauth2/7339ca7c65161b49af46997f87b1ce8d16209ed7/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goors/phalcon-api-oauth2/7339ca7c65161b49af46997f87b1ce8d16209ed7/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist:
--------------------------------------------------------------------------------
1 |
2 | {{name}} |
3 | {{methods_bar}} |
4 | {{methods_tested_percent}} |
5 | {{methods_number}} |
6 | {{crap}} |
7 | {{lines_bar}} |
8 | {{lines_executed_percent}} |
9 | {{lines_number}} |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/BankAccount.php:
--------------------------------------------------------------------------------
1 | balance;
9 | }
10 |
11 | protected function setBalance($balance)
12 | {
13 | if ($balance >= 0) {
14 | $this->balance = $balance;
15 | } else {
16 | throw new RuntimeException;
17 | }
18 | }
19 |
20 | public function depositMoney($balance)
21 | {
22 | $this->setBalance($this->getBalance() + $balance);
23 |
24 | return $this->getBalance();
25 | }
26 |
27 | public function withdrawMoney($balance)
28 | {
29 | $this->setBalance($this->getBalance() - $balance);
30 |
31 | return $this->getBalance();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageClassTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageFunctionParenthesesTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
10 | }
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodParenthesesTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodParenthesesWhitespaceTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageMethodTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNoneTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNotPublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageNothingTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoveragePublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoverageTwoDefaultClassAnnotations.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | public function testSomething()
14 | {
15 | $o = new Foo\CoveredClass;
16 | $o->publicMethod();
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoveredClass.php:
--------------------------------------------------------------------------------
1 | privateMethod();
11 | }
12 |
13 | public function publicMethod()
14 | {
15 | $this->protectedMethod();
16 | }
17 | }
18 |
19 | class CoveredClass extends CoveredParentClass
20 | {
21 | private function privateMethod()
22 | {
23 | }
24 |
25 | protected function protectedMethod()
26 | {
27 | parent::protectedMethod();
28 | $this->privateMethod();
29 | }
30 |
31 | public function publicMethod()
32 | {
33 | parent::publicMethod();
34 | $this->protectedMethod();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/CoveredFunction.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassPublicTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
14 | }
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageCoversClassTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageNotPublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoverageProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveragePublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new Foo\CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NamespaceCoveredClass.php:
--------------------------------------------------------------------------------
1 | privateMethod();
13 | }
14 |
15 | public function publicMethod()
16 | {
17 | $this->protectedMethod();
18 | }
19 | }
20 |
21 | class CoveredClass extends CoveredParentClass
22 | {
23 | private function privateMethod()
24 | {
25 | }
26 |
27 | protected function protectedMethod()
28 | {
29 | parent::protectedMethod();
30 | $this->privateMethod();
31 | }
32 |
33 | public function publicMethod()
34 | {
35 | parent::publicMethod();
36 | $this->protectedMethod();
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php:
--------------------------------------------------------------------------------
1 |
20 | */
21 | public function testThree()
22 | {
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/ignored-lines-clover.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/Tests/_files/source_with_class_and_anonymous_function.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/build/phpmd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | Sebastian Bergmann's ruleset
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/build/travis-ci.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | ../Tests/PHP
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | ../PHP
19 |
20 | ../PHP/CodeCoverage/Autoload.php
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 | Tests/PHP
10 |
11 |
12 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | PHP
24 |
25 | PHP/CodeCoverage/Autoload.php
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/scripts/auto_append.php:
--------------------------------------------------------------------------------
1 | stop();
3 |
4 | $writer = new PHP_CodeCoverage_Report_HTML;
5 | $writer->process($coverage, '/tmp/coverage');
6 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php:
--------------------------------------------------------------------------------
1 | filter();
6 |
7 | $filter->addFileToBlacklist(__FILE__);
8 | $filter->addFileToBlacklist(dirname(__FILE__) . '/auto_append.php');
9 |
10 | $coverage->start($_SERVER['SCRIPT_FILENAME']);
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | File_Iterator 1.3
2 | =================
3 |
4 | This is the list of changes for the File_Iterator 1.3 release series.
5 |
6 | File_Iterator 1.3.4
7 | -------------------
8 |
9 | * Symlinks are now followed.
10 |
11 | File_Iterator 1.3.3
12 | -------------------
13 |
14 | * No changes.
15 |
16 | File_Iterator 1.3.2
17 | -------------------
18 |
19 | * No changes.
20 |
21 | File_Iterator 1.3.1
22 | -------------------
23 |
24 | * Fixed infinite loop in `File_Iterator_Facade::getCommonPath()` for empty directories.
25 |
26 | File_Iterator 1.3.0
27 | -------------------
28 |
29 | * Added `File_Iterator_Facade` for the most common use case.
30 | * Moved `File_Iterator_Factory::getFilesAsArray()` to `File_Iterator_Facade::getFilesAsArray()`.
31 | * `File_Iterator_Factory` is no longer static.
32 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/README.markdown:
--------------------------------------------------------------------------------
1 | File_Iterator
2 | =============
3 |
4 | Installation
5 | ------------
6 |
7 | 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.
8 |
9 | The PEAR channel (`pear.phpunit.de`) that is used to distribute File_Iterator needs to be registered with the local PEAR environment:
10 |
11 | sb@ubuntu ~ % pear channel-discover pear.phpunit.de
12 | Adding Channel "pear.phpunit.de" succeeded
13 | Discovery of channel "pear.phpunit.de" succeeded
14 |
15 | This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:
16 |
17 | sb@vmware ~ % pear install phpunit/File_Iterator
18 | downloading File_Iterator-1.1.1.tgz ...
19 | Starting to download File_Iterator-1.1.1.tgz (3,173 bytes)
20 | ....done: 3,173 bytes
21 | install ok: channel://pear.phpunit.de/File_Iterator-1.1.1
22 |
23 | After the installation you can find the File_Iterator source files inside your local PEAR directory; the path is usually `/usr/lib/php/File`.
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-file-iterator/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpunit/php-file-iterator",
3 | "description": "FilterIterator implementation that filters files based on a list of suffixes.",
4 | "type": "library",
5 | "keywords": [
6 | "iterator",
7 | "filesystem"
8 | ],
9 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
10 | "license": "BSD-3-Clause",
11 | "authors": [
12 | {
13 | "name": "Sebastian Bergmann",
14 | "email": "sb@sebastian-bergmann.de",
15 | "role": "lead"
16 | }
17 | ],
18 | "support": {
19 | "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
20 | "irc": "irc://irc.freenode.net/phpunit"
21 | },
22 | "require": {
23 | "php": ">=5.3.3"
24 | },
25 | "autoload": {
26 | "classmap": [
27 | "File/"
28 | ]
29 | },
30 | "include-path": [
31 | ""
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/ChangeLog.md:
--------------------------------------------------------------------------------
1 | Text_Template 1.2
2 | =================
3 |
4 | This is the list of changes for the Text_Template 1.2 release series.
5 |
6 | Text_Template 1.2.0
7 | -------------------
8 |
9 | * Added support for arbitrary delimiters for template variables.
10 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/README.md:
--------------------------------------------------------------------------------
1 | Text_Template
2 | =============
3 |
4 | Installation
5 | ------------
6 |
7 | 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.
8 |
9 | The PEAR channel (`pear.phpunit.de`) that is used to distribute Text_Template needs to be registered with the local PEAR environment:
10 |
11 | sb@ubuntu ~ % pear channel-discover pear.phpunit.de
12 | Adding Channel "pear.phpunit.de" succeeded
13 | Discovery of channel "pear.phpunit.de" succeeded
14 |
15 | This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:
16 |
17 | sb@vmware ~ % pear install phpunit/Text_Template
18 | downloading Text_Template-1.0.0.tgz ...
19 | Starting to download Text_Template-1.0.0.tgz (2,493 bytes)
20 | ....done: 2,493 bytes
21 | install ok: channel://pear.phpunit.de/Text_Template-1.0.0
22 |
23 | After the installation you can find the Text_Template source files inside your local PEAR directory; the path is usually `/usr/lib/php/Text`.
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-text-template/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpunit/php-text-template",
3 | "description": "Simple template engine.",
4 | "type": "library",
5 | "keywords": [
6 | "template"
7 | ],
8 | "homepage": "https://github.com/sebastianbergmann/php-text-template/",
9 | "license": "BSD-3-Clause",
10 | "authors": [
11 | {
12 | "name": "Sebastian Bergmann",
13 | "email": "sb@sebastian-bergmann.de",
14 | "role": "lead"
15 | }
16 | ],
17 | "support": {
18 | "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
19 | "irc": "irc://irc.freenode.net/phpunit"
20 | },
21 | "require": {
22 | "php": ">=5.3.3"
23 | },
24 | "autoload": {
25 | "classmap": [
26 | "Text/"
27 | ]
28 | },
29 | "include-path": [
30 | ""
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/build/phpmd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | Sebastian Bergmann's ruleset
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpunit/php-timer",
3 | "description": "Utility class for timing",
4 | "type": "library",
5 | "keywords": [
6 | "timer"
7 | ],
8 | "homepage": "https://github.com/sebastianbergmann/php-timer/",
9 | "license": "BSD-3-Clause",
10 | "authors": [
11 | {
12 | "name": "Sebastian Bergmann",
13 | "email": "sb@sebastian-bergmann.de",
14 | "role": "lead"
15 | }
16 | ],
17 | "support": {
18 | "issues": "https://github.com/sebastianbergmann/php-timer/issues",
19 | "irc": "irc://irc.freenode.net/phpunit"
20 | },
21 | "require": {
22 | "php": ">=5.3.3"
23 | },
24 | "autoload": {
25 | "classmap": [
26 | "PHP/"
27 | ]
28 | },
29 | "include-path": [
30 | ""
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-timer/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Tests
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | PHP
21 |
22 | PHP/Timer/Autoload.php
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/README.md:
--------------------------------------------------------------------------------
1 | # PHP_TokenStream
2 |
3 | ## Installation
4 |
5 | You can use [Composer](http://getcomposer.org/) or the [PEAR Installer](http://pear.php.net/manual/en/guide.users.commandline.cli.php) to download and install this package as well as its dependencies.
6 |
7 | ### Composer
8 |
9 | To add this package as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-token-stream` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHP_TokenStream:
10 |
11 | {
12 | "require": {
13 | "phpunit/php-token-stream": "*"
14 | }
15 | }
16 |
17 | ### PEAR Installer
18 |
19 | The following two commands (which you may have to run as `root`) are all that is required to install this package using the PEAR Installer:
20 |
21 | pear config-set auto_discover 1
22 | pear install pear.phpunit.de/PHP_TokenStream
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/Tests/_files/classExtendsNamespacedClass.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/build/phpmd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | Sebastian Bergmann's ruleset
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpunit/php-token-stream",
3 | "description": "Wrapper around PHP's tokenizer extension.",
4 | "type": "library",
5 | "keywords": [
6 | "tokenizer"
7 | ],
8 | "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
9 | "license": "BSD-3-Clause",
10 | "authors": [
11 | {
12 | "name": "Sebastian Bergmann",
13 | "email": "sb@sebastian-bergmann.de",
14 | "role": "lead"
15 | }
16 | ],
17 | "support": {
18 | "issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
19 | "irc": "irc://irc.freenode.net/phpunit"
20 | },
21 | "require": {
22 | "php": ">=5.3.3",
23 | "ext-tokenizer": "*"
24 | },
25 | "autoload": {
26 | "classmap": [
27 | "PHP/"
28 | ]
29 | },
30 | "include-path": [
31 | ""
32 | ],
33 | "extra": {
34 | "branch-alias": {
35 | "dev-master": "1.2-dev"
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/phpunit/php-token-stream/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Tests
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | PHP
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Pull Requests for bug fixes should be made against the current release branch (1.2).
2 |
3 | Pull Requests for new features should be made against master.
4 |
5 | For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md)
6 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | PHPUnit_MockObject 1.2
2 | ======================
3 |
4 | This is the list of changes for the PHPUnit_MockObject 1.2 release series.
5 |
6 | PHPUnit_MockObject 1.2.3
7 | ------------------------
8 |
9 | * Fixed a bug where getting two mocks with different argument cloning options returned the same mock.
10 |
11 | PHPUnit_MockObject 1.2.2
12 | ------------------------
13 |
14 | * Fixed #100: Removed the unique mock object ID introduced in version 1.2.
15 |
16 | PHPUnit_MockObject 1.2.1
17 | ------------------------
18 |
19 | * No changes.
20 |
21 | PHPUnit_MockObject 1.2.0
22 | ------------------------
23 |
24 | * Implemented #47: Make cloning of arguments passed to mocked methods optional.
25 | * Implemented #84: `getMockFromWsdl()` now works with namespaces.
26 | * Fixed #90: Mocks with a fixed class name could only be created once.
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist:
--------------------------------------------------------------------------------
1 | public function __clone()
2 | {
3 | $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
4 | }
5 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist:
--------------------------------------------------------------------------------
1 |
2 | {modifier} function {reference}{method_name}({arguments_decl})
3 | {
4 | $arguments = array({arguments_call});
5 | $count = func_num_args();
6 |
7 | if ($count > {arguments_count}) {
8 | $_arguments = func_get_args();
9 |
10 | for ($i = {arguments_count}; $i < $count; $i++) {
11 | $arguments[] = $_arguments[$i];
12 | }
13 | }
14 |
15 | $result = $this->__phpunit_getInvocationMocker()->invoke(
16 | new PHPUnit_Framework_MockObject_Invocation_Object(
17 | '{class_name}', '{method_name}', $arguments, $this, {clone_arguments}
18 | )
19 | );
20 |
21 | return $result;
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist:
--------------------------------------------------------------------------------
1 |
2 | {modifier} static function {reference}{method_name}({arguments_decl})
3 | {
4 | $arguments = array({arguments_call});
5 | $count = func_num_args();
6 |
7 | if ($count > {arguments_count}) {
8 | $_arguments = func_get_args();
9 |
10 | for ($i = {arguments_count}; $i < $count; $i++) {
11 | $arguments[] = $_arguments[$i];
12 | }
13 | }
14 |
15 | $result = self::__phpunit_getStaticInvocationMocker()->invoke(
16 | new PHPUnit_Framework_MockObject_Invocation_Static(
17 | '{class_name}', '{method_name}', $arguments, {clone_arguments}
18 | )
19 | );
20 |
21 | return $result;
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist:
--------------------------------------------------------------------------------
1 | class {class_name}
2 | {
3 | use {trait_name};
4 | }
5 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist:
--------------------------------------------------------------------------------
1 | public function __clone()
2 | {
3 | $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
4 | parent::__clone();
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist:
--------------------------------------------------------------------------------
1 | {namespace}
2 |
3 | class {class_name} extends \SOAPClient
4 | {
5 | public function __construct($wsdl, array $options)
6 | {
7 | parent::__construct('{wsdl}', $options);
8 | }
9 | {methods}}
10 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist:
--------------------------------------------------------------------------------
1 |
2 | public function {method_name}({arguments})
3 | {
4 | }
5 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
3 | --SKIPIF--
4 |
7 | --FILE--
8 |
17 | --EXPECTF--
18 | class GoogleSearch extends \SOAPClient
19 | {
20 | public function __construct($wsdl, array $options)
21 | {
22 | parent::__construct('%s/GoogleSearch.wsdl', $options);
23 | }
24 |
25 | public function doGetCachedPage($key, $url)
26 | {
27 | }
28 |
29 | public function doSpellingSuggestion($key, $phrase)
30 | {
31 | }
32 |
33 | public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
34 | {
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_namespace.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
3 | --SKIPIF--
4 |
7 | --FILE--
8 |
17 | --EXPECTF--
18 | namespace My\Space;
19 |
20 | class GoogleSearch extends \SOAPClient
21 | {
22 | public function __construct($wsdl, array $options)
23 | {
24 | parent::__construct('%s/GoogleSearch.wsdl', $options);
25 | }
26 |
27 | public function doGetCachedPage($key, $url)
28 | {
29 | }
30 |
31 | public function doSpellingSuggestion($key, $phrase)
32 | {
33 | }
34 |
35 | public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
36 | {
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/MockObject/wsdl_class_partial.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch'))
3 | --SKIPIF--
4 |
7 | --FILE--
8 |
18 | --EXPECTF--
19 | class GoogleSearch extends \SOAPClient
20 | {
21 | public function __construct($wsdl, array $options)
22 | {
23 | parent::__construct('%s/GoogleSearch.wsdl', $options);
24 | }
25 |
26 | public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
27 | {
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/_files/AbstractMockTestClass.php:
--------------------------------------------------------------------------------
1 | constructorArgs = array($arg1, $arg2);
10 | }
11 |
12 | public function mockableMethod()
13 | {
14 | // something different from NULL
15 | return TRUE;
16 | }
17 |
18 | public function anotherMockableMethod()
19 | {
20 | // something different from NULL
21 | return TRUE;
22 | }
23 |
24 | public function __clone()
25 | {
26 | $this->cloned = TRUE;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/_files/PartialMockTestClass.php:
--------------------------------------------------------------------------------
1 | constructorCalled = TRUE;
9 | }
10 |
11 | public function doSomething()
12 | {
13 | }
14 |
15 | public function doAnotherThing()
16 | {
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/Tests/_files/SomeClass.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/build/travis-ci.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | ../Tests
12 | ../Tests
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | ../PHPUnit
23 |
24 | ../PHPUnit/Framework/MockObject/Autoload.php
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpunit/phpunit-mock-objects",
3 | "description": "Mock Object library for PHPUnit",
4 | "type": "library",
5 | "keywords": [
6 | "xunit",
7 | "mock"
8 | ],
9 | "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
10 | "license": "BSD-3-Clause",
11 | "authors": [
12 | {
13 | "name": "Sebastian Bergmann",
14 | "email": "sb@sebastian-bergmann.de",
15 | "role": "lead"
16 | }
17 | ],
18 | "support": {
19 | "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues",
20 | "irc": "irc://irc.freenode.net/phpunit"
21 | },
22 | "require": {
23 | "php": ">=5.3.3",
24 | "phpunit/php-text-template": ">=1.1.1@stable"
25 | },
26 | "suggest": {
27 | "ext-soap": "*"
28 | },
29 | "autoload": {
30 | "classmap": [
31 | "PHPUnit/"
32 | ]
33 | },
34 | "include-path": [
35 | ""
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Tests
11 | Tests
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | PHPUnit
26 |
27 | PHPUnit/Framework/MockObject/Autoload.php
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | build/phar
7 | build/phpdox
8 | build/*.phar
9 | Tests/TextUI/*.diff
10 | Tests/TextUI/*.exp
11 | Tests/TextUI/*.log
12 | Tests/TextUI/*.out
13 | Tests/TextUI/*.php
14 | /bin
15 | /vendor
16 | /composer.lock
17 | /composer.phar
18 | phpunit.xml
19 | cache.properties
20 | .idea
21 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - 5.3.3
5 | - 5.3
6 | - 5.4
7 | - 5.5
8 | - 5.6
9 | - hhvm
10 |
11 | env:
12 | - INSTALL_PHP_INVOKER=0
13 | - INSTALL_PHP_INVOKER=1
14 |
15 | before_script:
16 | - sh -c "if [ '$INSTALL_PHP_INVOKER' = '1' ]; then composer require --dev --prefer-source phpunit/php-invoker:\>=1.1.0,\<1.2.0; else composer install --dev --prefer-source; fi"
17 |
18 | script: ./phpunit.php --configuration ./build/travis-ci.xml
19 |
20 | matrix:
21 | allow_failures:
22 | - php: hhvm
23 |
24 | notifications:
25 | email: false
26 | irc:
27 | channels:
28 | - "irc.freenode.org#phpunit"
29 | use_notice: true
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/1021.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | #1021: Depending on a test that uses a data provider does not work
3 | --FILE--
4 |
12 | --EXPECTF--
13 | PHPUnit %s by Sebastian Bergmann.
14 |
15 | ..
16 |
17 | Time: %s, Memory: %sMb
18 |
19 | OK (2 tests, 1 assertion)
20 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/1021/Issue1021Test.php:
--------------------------------------------------------------------------------
1 | assertTrue($data);
10 | }
11 |
12 | /**
13 | * @depends testSomething
14 | */
15 | public function testSomethingElse()
16 | {
17 | }
18 |
19 | public function provider()
20 | {
21 | return array(array(TRUE));
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/523.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | #523: assertAttributeEquals does not work with classes extending ArrayIterator
3 | --FILE--
4 |
12 | --EXPECTF--
13 | PHPUnit %s by Sebastian Bergmann.
14 |
15 | .
16 |
17 | Time: %s, Memory: %sMb
18 |
19 | OK (1 test, 1 assertion)
20 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/523/Issue523Test.php:
--------------------------------------------------------------------------------
1 | assertAttributeEquals('foo', 'field', new Issue523());
7 | }
8 | };
9 |
10 | class Issue523 extends ArrayIterator
11 | {
12 | protected $field = 'foo';
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/578.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | #578: Double printing of trace line for exceptions from notices and warnings
3 | --FILE--
4 |
12 | --EXPECTF--
13 | PHPUnit %s by Sebastian Bergmann.
14 |
15 | EEE
16 |
17 | Time: %s, Memory: %sMb
18 |
19 | There were 3 errors:
20 |
21 | 1) Issue578Test::testNoticesDoublePrintStackTrace
22 | Invalid error type specified
23 |
24 | %s/Issue578Test.php:%i
25 |
26 | 2) Issue578Test::testWarningsDoublePrintStackTrace
27 | Invalid error type specified
28 |
29 | %s/Issue578Test.php:%i
30 |
31 | 3) Issue578Test::testUnexpectedExceptionsPrintsCorrectly
32 | Exception: Double printed exception
33 |
34 | %s/Issue578Test.php:%i
35 |
36 | FAILURES!
37 | Tests: 3, Assertions: 0, Errors: 3.
38 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php:
--------------------------------------------------------------------------------
1 | iniSet('error_reporting', E_ALL | E_NOTICE);
7 | trigger_error('Stack Trace Test Notice', E_NOTICE);
8 | }
9 |
10 | public function testWarningsDoublePrintStackTrace()
11 | {
12 | $this->iniSet('error_reporting', E_ALL | E_NOTICE);
13 | trigger_error('Stack Trace Test Notice', E_WARNING);
14 | }
15 |
16 | public function testUnexpectedExceptionsPrintsCorrectly()
17 | {
18 | throw new Exception('Double printed exception');
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/684.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | #684: Unable to find test class when no test methods exists
3 | --FILE--
4 |
12 | --EXPECTF--
13 | PHPUnit %s by Sebastian Bergmann.
14 |
15 | F
16 |
17 | Time: %s, Memory: %sMb
18 |
19 | There was 1 failure:
20 |
21 | 1) Warning
22 | No tests found in class "Foo_Bar_Issue684Test".
23 |
24 |
25 | FAILURES!
26 | Tests: 1, Assertions: 0, Failures: 1.
27 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/684/Issue684Test.php:
--------------------------------------------------------------------------------
1 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ..
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | OK (2 tests, 0 assertions)
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/783/ChildSuite.php:
--------------------------------------------------------------------------------
1 | addTestSuite('OneTest');
11 | $suite->addTestSuite('TwoTest');
12 |
13 | return $suite;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/783/OneTest.php:
--------------------------------------------------------------------------------
1 | addTest(ChildSuite::suite());
10 |
11 | return $suite;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/783/TwoTest.php:
--------------------------------------------------------------------------------
1 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | .FFF
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | There were 3 failures:
23 |
24 | 1) Issue244Test::testFails
25 | Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'.
26 |
27 | %s:%i
28 |
29 | 2) Issue244Test::testFailsTooIfExpectationIsANumber
30 | Failed asserting that '123StringCode' is equal to expected exception code 123.
31 |
32 | %s:%i
33 |
34 | 3) Issue244Test::testFailsTooIfExceptionCodeIsANumber
35 | Failed asserting that 123 is equal to expected exception code '123String'.
36 |
37 | %s:%i
38 |
39 | FAILURES!
40 | Tests: 4, Assertions: 8, Failures: 3.
41 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/322.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-322: group commandline option should override group/exclude setting in phpunit.xml
3 | --FILE--
4 |
17 | --EXPECTF--
18 | PHPUnit %s by Sebastian Bergmann.
19 |
20 | Configuration read from %s
21 |
22 |
23 | Starting test 'Issue322Test::testOne'.
24 | .
25 |
26 | Time: %s, Memory: %sMb
27 |
28 | OK (1 test, 0 assertions)
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/322/Issue322Test.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test.php
4 |
5 |
6 |
7 |
8 | one
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/433.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-433: expectOutputString not completely working as expected
3 | --FILE--
4 |
13 | --EXPECTF--
14 | PHPUnit %s by Sebastian Bergmann.
15 |
16 | ..F
17 |
18 | Time: %s, Memory: %sMb
19 |
20 | There was 1 failure:
21 |
22 | 1) Issue433Test::testNotMatchingOutput
23 | Failed asserting that two strings are equal.
24 | --- Expected
25 | +++ Actual
26 | @@ @@
27 | -'foo'
28 | +'bar'
29 |
30 |
31 | FAILURES!
32 | Tests: 3, Assertions: 3, Failures: 1.
33 |
34 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/433/Issue433Test.php:
--------------------------------------------------------------------------------
1 | expectOutputString('test');
7 | print 'test';
8 | }
9 |
10 | public function testOutputWithExpectationAfter()
11 | {
12 | print 'test';
13 | $this->expectOutputString('test');
14 | }
15 |
16 | public function testNotMatchingOutput()
17 | {
18 | print 'bar';
19 | $this->expectOutputString('foo');
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/445.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-455: expectOutputString not working in strict mode
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ..F
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | There was 1 failure:
22 |
23 | 1) Issue445Test::testNotMatchingOutput
24 | Failed asserting that two strings are equal.
25 | --- Expected
26 | +++ Actual
27 | @@ @@
28 | -'foo'
29 | +'bar'
30 |
31 |
32 | FAILURES!
33 | Tests: 3, Assertions: 3, Failures: 1.
34 |
35 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/445/Issue445Test.php:
--------------------------------------------------------------------------------
1 | expectOutputString('test');
7 | print 'test';
8 | }
9 |
10 | public function testOutputWithExpectationAfter()
11 | {
12 | print 'test';
13 | $this->expectOutputString('test');
14 | }
15 |
16 | public function testNotMatchingOutput()
17 | {
18 | print 'bar';
19 | $this->expectOutputString('foo');
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/498.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-498: The test methods won't be run if a dataProvider throws Exception and --group is added in command line
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | F
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | There was 1 failure:
23 |
24 | 1) Warning
25 | The data provider specified for Issue498Test::shouldBeFalse is invalid.
26 | Can't create the data
27 |
28 |
29 | FAILURES!
30 | Tests: 1, Assertions: 0, Failures: 1.
31 |
32 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/498/Issue498Test.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
14 | }
15 |
16 |
17 | /**
18 | * @test
19 | * @dataProvider shouldBeFalseDataProvider
20 | * @group trueOnly
21 | */
22 | public function shouldBeFalse($testData)
23 | {
24 | $this->assertFalse(false);
25 | }
26 |
27 | public function shouldBeTrueDataProvider()
28 | {
29 |
30 | //throw new Exception("Can't create the data");
31 | return array(
32 | array(true),
33 | array(false)
34 | );
35 | }
36 |
37 | public function shouldBeFalseDataProvider()
38 | {
39 |
40 | throw new Exception("Can't create the data");
41 | return array(
42 | array(true),
43 | array(false)
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/503.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-503: assertEquals() Line Ending Differences Are Obscure
3 | --FILE--
4 |
13 | --EXPECTF--
14 | PHPUnit %s by Sebastian Bergmann.
15 |
16 | F
17 |
18 | Time: %s, Memory: %sMb
19 |
20 | There was 1 failure:
21 |
22 | 1) Issue503Test::testCompareDifferentLineEndings
23 | Failed asserting that two strings are identical.
24 | --- Expected
25 | +++ Actual
26 | @@ @@
27 | #Warning: Strings contain different line endings!
28 | foo
29 |
30 | %s:%i
31 |
32 | FAILURES!
33 | Tests: 1, Assertions: 1, Failures: 1.
34 |
35 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php:
--------------------------------------------------------------------------------
1 | assertSame(
7 | "foo\n",
8 | "foo\r\n"
9 | );
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/581.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-581: PHPUnit_Util_Type::export adds extra newlines in Windows
3 | --FILE--
4 |
13 | --EXPECTF--
14 | PHPUnit %s by Sebastian Bergmann.
15 |
16 | F
17 |
18 | Time: %s, Memory: %sMb
19 |
20 | There was 1 failure:
21 |
22 | 1) Issue581Test::testExportingObjectsDoesNotBreakWindowsLineFeeds
23 | Failed asserting that two objects are equal.
24 | --- Expected
25 | +++ Actual
26 | @@ @@
27 | stdClass Object (
28 | 0 => 1
29 | 1 => 2
30 | 2 => 'Test\n'
31 | 3 => 4
32 | - 4 => 5
33 | + 4 => 1
34 | 5 => 6
35 | 6 => 7
36 | 7 => 8
37 | )
38 |
39 | %s:%i
40 |
41 | FAILURES!
42 | Tests: 1, Assertions: 1, Failures: 1.
43 |
44 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/581/Issue581Test.php:
--------------------------------------------------------------------------------
1 | assertEquals(
6 | (object)array(1,2,"Test\r\n",4,5,6,7,8),
7 | (object)array(1,2,"Test\r\n",4,1,6,7,8)
8 | );
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/74.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-74: catchable fatal error in 3.5
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | E
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | There was 1 error:
23 |
24 | 1) Issue74Test::testCreateAndThrowNewExceptionInProcessIsolation
25 | NewException: Testing GH-74
26 |
27 | %s/Tests/Regression/GitHub/74/Issue74Test.php:7
28 | %s
29 |
30 | FAILURES!
31 | Tests: 1, Assertions: 0, Errors: 1.
32 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php:
--------------------------------------------------------------------------------
1 |
13 | --EXPECTF--
14 | PHPUnit %s by Sebastian Bergmann.
15 |
16 | .F
17 |
18 | Time: %s, Memory: %sMb
19 |
20 | There was 1 failure:
21 |
22 | 1) Warning
23 | The data provider specified for Issue765Test::testDependent is invalid.
24 |
25 |
26 | FAILURES!
27 | Tests: 2, Assertions: 1, Failures: 1.
28 |
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/765/Issue765Test.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
7 | }
8 |
9 | /**
10 | * @depends testDependee
11 | * @dataProvider dependentProvider
12 | */
13 | public function testDependent($a)
14 | {
15 | $this->assertTrue(true);
16 | }
17 |
18 | public function dependentProvider()
19 | {
20 | throw new Exception;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/Regression/GitHub/863.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | GH-863: Number of tests to run calculated incorrectly when --repeat is used
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ............................................................... 63 / 150 ( 42%)
19 | ............................................................... 126 / 150 ( 84%)
20 | ........................
21 |
22 | Time: %s, Memory: %sMb
23 |
24 | OK (150 tests, 150 assertions)
25 |
26 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/abstract-test-class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit AbstractTest ../_files/AbstractTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | F
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | There was 1 failure:
22 |
23 | 1) Warning
24 | Cannot instantiate class "AbstractTest".
25 |
26 | %s:%i
27 |
28 | FAILURES!
29 | Tests: 1, Assertions: 0, Failures: 1.
30 |
31 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/concrete-test-class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit ConcreteTest ../_files/ConcreteTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ..
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | OK (2 tests, 0 assertions)
22 |
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dataprovider-testdox.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --testdox DataProviderTest ../_files/DataProviderTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | DataProvider
19 | [ ] Add
20 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/debug.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --debug BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 |
19 | Starting test 'BankAccountTest::testBalanceIsInitiallyZero'.
20 | .
21 | Starting test 'BankAccountTest::testBalanceCannotBecomeNegative'.
22 | .
23 | Starting test 'BankAccountTest::testBalanceCannotBecomeNegative2'.
24 | .
25 |
26 | Time: %s, Memory: %sMb
27 |
28 | OK (3 tests, 3 assertions)
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/default-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ...
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK (3 tests, 3 assertions)
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/default.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ...
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | OK (3 tests, 3 assertions)
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | ...FSS
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | There was 1 failure:
24 |
25 | 1) DependencyFailureTest::testOne
26 |
27 | %s:%i
28 |
29 | There were 2 skipped tests:
30 |
31 | 1) DependencyFailureTest::testTwo
32 | This test depends on "DependencyFailureTest::testOne" to pass.
33 |
34 | %s:%i
35 |
36 | 2) DependencyFailureTest::testThree
37 | This test depends on "DependencyFailureTest::testTwo" to pass.
38 |
39 | %s:%i
40 |
41 | FAILURES!
42 | Tests: 4, Assertions: 0, Failures: 1, Skipped: 2.
43 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ...FSS
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | There was 1 failure:
23 |
24 | 1) DependencyFailureTest::testOne
25 |
26 | %s:%i
27 | %s:%i
28 |
29 | There were 2 skipped tests:
30 |
31 | 1) DependencyFailureTest::testTwo
32 | This test depends on "DependencyFailureTest::testOne" to pass.
33 |
34 | %s:%i
35 |
36 | 2) DependencyFailureTest::testThree
37 | This test depends on "DependencyFailureTest::testTwo" to pass.
38 |
39 | %s:%i
40 |
41 | FAILURES!
42 | Tests: 4, Assertions: 0, Failures: 1, Skipped: 2.
43 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies2-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation StackTest ../_files/StackTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ..
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK (2 tests, 5 assertions)
23 |
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies2.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit StackTest ../_files/StackTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ..
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | OK (2 tests, 5 assertions)
22 |
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies3-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation MultiDependencyTest ../_files/MultiDependencyTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ...
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK (3 tests, 2 assertions)
23 |
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/dependencies3.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit MultiDependencyTest ../_files/MultiDependencyTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | ...
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | OK (3 tests, 2 assertions)
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/empty-testcase.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit EmptyTestCaseTest ../_files/EmptyTestCaseTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | F
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | There was 1 failure:
22 |
23 | 1) Warning
24 | No tests found in class "EmptyTestCaseTest".
25 |
26 | %s:%i
27 |
28 | FAILURES!
29 | Tests: 1, Assertions: 0, Failures: 1.
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/exception-stack.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit ExceptionStackTest ../_files/ExceptionStack.php
3 | --FILE--
4 |
12 | --EXPECTF--
13 | PHPUnit %s by Sebastian Bergmann.
14 |
15 | EE
16 |
17 | Time: %s, Memory: %sMb
18 |
19 | There were 2 errors:
20 |
21 | 1) ExceptionStackTest::testPrintingChildException
22 | ExceptionStackTestException: Child exception
23 | message
24 | Failed asserting that two arrays are equal.
25 | --- Expected
26 | +++ Actual
27 | @@ @@
28 | Array (
29 | - 0 => 1
30 | + 0 => 2
31 | )
32 |
33 | %s:%i
34 |
35 | Caused by
36 | %s:%i
37 |
38 | 2) ExceptionStackTest::testNestedExceptions
39 | Exception: One
40 |
41 | %s:%i
42 |
43 | Caused by
44 | InvalidArgumentException: Two
45 |
46 | %s:%i
47 |
48 | Caused by
49 | Exception: Three
50 |
51 | %s:%i
52 |
53 | FAILURES!
54 | Tests: 2, Assertions: 1, Errors: 2.
55 |
56 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/exclude-group-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
17 | --EXPECTF--
18 | PHPUnit %s by Sebastian Bergmann.
19 |
20 | ..
21 |
22 | Time: %s, Memory: %sMb
23 |
24 | OK (2 tests, 2 assertions)
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/exclude-group.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | ..
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK (2 tests, 2 assertions)
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/fatal-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit FatalTest ../_files/FatalTest.php
3 | --FILE--
4 |
14 | --EXPECTF--
15 | PHPUnit %s by Sebastian Bergmann.
16 |
17 | E
18 |
19 | Time: %s, Memory: %sMb
20 |
21 | There was 1 error:
22 |
23 | 1) FatalTest::testFatalError
24 | PHPUnit_Framework_Exception: %s error: Call to undefined function non_existing_function() in %s
25 |
26 |
27 | FAILURES!
28 | Tests: 1, Assertions: 0, Errors: 1.
29 |
30 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/fatal.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit FatalTest ../_files/FatalTest.php
3 | --FILE--
4 |
13 | --EXPECTF--
14 | PHPUnit %s by Sebastian Bergmann.
15 |
16 |
17 | Fatal error: Call to undefined function non_existing_function() in %s
18 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/filter-class-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
17 | --EXPECTF--
18 | PHPUnit %s by Sebastian Bergmann.
19 |
20 | ...
21 |
22 | Time: %s, Memory: %sMb
23 |
24 | OK (3 tests, 3 assertions)
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/filter-class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | ...
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK (3 tests, 3 assertions)
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/filter-method-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
17 | --EXPECTF--
18 | PHPUnit %s by Sebastian Bergmann.
19 |
20 | .
21 |
22 | Time: %s, Memory: %sMb
23 |
24 | OK (1 test, 1 assertion)
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/filter-method.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | .
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK (1 test, 1 assertion)
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/filter-no-results.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 |
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | No tests executed!
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/group-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --process-isolation --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
17 | --EXPECTF--
18 | PHPUnit %s by Sebastian Bergmann.
19 |
20 | .
21 |
22 | Time: %s, Memory: %sMb
23 |
24 | OK (1 test, 1 assertion)
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/group.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | .
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK (1 test, 1 assertion)
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/list-groups.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --list-groups BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | Available test group(s):
19 | - Sebastian Bergmann
20 | - balanceCannotBecomeNegative
21 | - balanceIsInitiallyZero
22 | - specification
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/log-tap.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --log-tap php://stdout BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | TAP version 13
20 | .ok 1 - BankAccountTest::testBalanceIsInitiallyZero
21 | .ok 2 - BankAccountTest::testBalanceCannotBecomeNegative
22 | .ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2
23 | 1..3
24 |
25 |
26 | Time: %s, Memory: %sMb
27 |
28 | OK (3 tests, 3 assertions)
29 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/strict-incomplete.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --strict IncompleteTest ../_files/IncompleteTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | I
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK, but incomplete or skipped tests!
23 | Tests: 1, Assertions: 0, Incomplete: 1.
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/strict-isolation.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --strict --process-isolation IncompleteTest ../_files/IncompleteTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | I
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK, but incomplete or skipped tests!
24 | Tests: 1, Assertions: 0, Incomplete: 1.
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/strict.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --strict NothingTest ../_files/NothingTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | I
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK, but incomplete or skipped tests!
23 | Tests: 1, Assertions: 0, Incomplete: 1.
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/tap.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --tap BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | TAP version 13
17 | ok 1 - BankAccountTest::testBalanceIsInitiallyZero
18 | ok 2 - BankAccountTest::testBalanceCannotBecomeNegative
19 | ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2
20 | 1..3
21 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-multiple.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --test-suffix .test.php,.my.php ../_files/
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | .....
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK (5 tests, 3 assertions)
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/test-suffix-single.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --test-suffix .test.php ../_files/
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | ...
19 |
20 | Time: %s, Memory: %sMb
21 |
22 | OK (3 tests, 3 assertions)
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/testdox-html.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --testdox-html php://stdout BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | BankAccount
...- Balance is initially zero
- Balance cannot become negative
20 |
21 | Time: %s, Memory: %sMb
22 |
23 | OK (3 tests, 3 assertions)
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/testdox-text.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --testdox-text php://stdout BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
16 | --EXPECTF--
17 | PHPUnit %s by Sebastian Bergmann.
18 |
19 | BankAccount
20 | ... [x] Balance is initially zero
21 | [x] Balance cannot become negative
22 |
23 |
24 |
25 | Time: %s, Memory: %sMb
26 |
27 | OK (3 tests, 3 assertions)
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/TextUI/testdox.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | phpunit --testdox php://stdout BankAccountTest ../_files/BankAccountTest.php
3 | --FILE--
4 |
15 | --EXPECTF--
16 | PHPUnit %s by Sebastian Bergmann.
17 |
18 | BankAccount
19 | [x] Balance is initially zero
20 | [x] Balance cannot become negative
21 |
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/AbstractTest.php:
--------------------------------------------------------------------------------
1 | assertTrue(TRUE);
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ClassWithNonPublicAttributes.php:
--------------------------------------------------------------------------------
1 | assertEquals($c, $a + $b);
10 | }
11 |
12 | public static function providerMethod()
13 | {
14 | return array(
15 | array(0, 0, 0),
16 | array(0, 1, 1),
17 | array(1, 1, 3),
18 | array(1, 0, 1)
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php:
--------------------------------------------------------------------------------
1 | fail();
7 | }
8 |
9 | /**
10 | * @depends testOne
11 | */
12 | public function testTwo()
13 | {
14 | }
15 |
16 | /**
17 | * @depends testTwo
18 | */
19 | public function testThree()
20 | {
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/DependencySuccessTest.php:
--------------------------------------------------------------------------------
1 | addTestSuite('DependencySuccessTest');
12 | $suite->addTestSuite('DependencyFailureTest');
13 |
14 | return $suite;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/DoubleTestCase.php:
--------------------------------------------------------------------------------
1 | testCase = $testCase;
9 | }
10 |
11 | public function count()
12 | {
13 | return 2;
14 | }
15 |
16 | public function run(PHPUnit_Framework_TestResult $result = NULL)
17 | {
18 | $result->startTest($this);
19 |
20 | $this->testCase->runBare();
21 | $this->testCase->runBare();
22 |
23 | $result->endTest($this, 0);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/EmptyTestCaseTest.php:
--------------------------------------------------------------------------------
1 | setUp = TRUE;
13 | }
14 |
15 | protected function assertPreConditions()
16 | {
17 | $this->assertPreConditions = TRUE;
18 | }
19 |
20 | public function testSomething()
21 | {
22 | $this->testSomething = TRUE;
23 | }
24 |
25 | protected function assertPostConditions()
26 | {
27 | $this->assertPostConditions = TRUE;
28 | throw new Exception;
29 | }
30 |
31 | protected function tearDown()
32 | {
33 | $this->tearDown = TRUE;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php:
--------------------------------------------------------------------------------
1 | setUp = TRUE;
13 | }
14 |
15 | protected function assertPreConditions()
16 | {
17 | $this->assertPreConditions = TRUE;
18 | throw new Exception;
19 | }
20 |
21 | public function testSomething()
22 | {
23 | $this->testSomething = TRUE;
24 | }
25 |
26 | protected function assertPostConditions()
27 | {
28 | $this->assertPostConditions = TRUE;
29 | }
30 |
31 | protected function tearDown()
32 | {
33 | $this->tearDown = TRUE;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ExceptionInSetUpTest.php:
--------------------------------------------------------------------------------
1 | setUp = TRUE;
13 | throw new Exception;
14 | }
15 |
16 | protected function assertPreConditions()
17 | {
18 | $this->assertPreConditions = TRUE;
19 | }
20 |
21 | public function testSomething()
22 | {
23 | $this->testSomething = TRUE;
24 | }
25 |
26 | protected function assertPostConditions()
27 | {
28 | $this->assertPostConditions = TRUE;
29 | }
30 |
31 | protected function tearDown()
32 | {
33 | $this->tearDown = TRUE;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ExceptionInTearDownTest.php:
--------------------------------------------------------------------------------
1 | setUp = TRUE;
13 | }
14 |
15 | protected function assertPreConditions()
16 | {
17 | $this->assertPreConditions = TRUE;
18 | }
19 |
20 | public function testSomething()
21 | {
22 | $this->testSomething = TRUE;
23 | }
24 |
25 | protected function assertPostConditions()
26 | {
27 | $this->assertPostConditions = TRUE;
28 | }
29 |
30 | protected function tearDown()
31 | {
32 | $this->tearDown = TRUE;
33 | throw new Exception;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ExceptionInTest.php:
--------------------------------------------------------------------------------
1 | setUp = TRUE;
13 | }
14 |
15 | protected function assertPreConditions()
16 | {
17 | $this->assertPreConditions = TRUE;
18 | }
19 |
20 | public function testSomething()
21 | {
22 | $this->testSomething = TRUE;
23 | throw new Exception;
24 | }
25 |
26 | protected function assertPostConditions()
27 | {
28 | $this->assertPostConditions = TRUE;
29 | }
30 |
31 | protected function tearDown()
32 | {
33 | $this->tearDown = TRUE;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ExceptionNamespaceTest.php:
--------------------------------------------------------------------------------
1 | assertEquals(array(1), array(2), 'message');
10 | } catch (PHPUnit_Framework_ExpectationFailedException $e) {
11 | $message = $e->getMessage() . "\n" . $e->getComparisonFailure()->getDiff();
12 | throw new ExceptionStackTestException("Child exception\n$message", 101, $e);
13 | }
14 | }
15 |
16 | public function testNestedExceptions()
17 | {
18 | $exceptionThree = new Exception('Three');
19 | $exceptionTwo = new InvalidArgumentException('Two', 0, $exceptionThree);
20 | $exceptionOne = new Exception('One', 0, $exceptionTwo);
21 | throw $exceptionOne;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/Failure.php:
--------------------------------------------------------------------------------
1 | fail();
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/FatalTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('Test incomplete');
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/InheritedTestCase.php:
--------------------------------------------------------------------------------
1 | assertEquals('foo', $a);
21 | $this->assertEquals('bar', $b);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/NoArgTestCaseTest.php:
--------------------------------------------------------------------------------
1 | expectOutputString('foo');
7 | print 'foo';
8 | }
9 |
10 | public function testExpectOutputStringFooActualBar()
11 | {
12 | $this->expectOutputString('foo');
13 | print 'bar';
14 | }
15 |
16 | public function testExpectOutputRegexFooActualFoo()
17 | {
18 | $this->expectOutputRegex('/foo/');
19 | print 'foo';
20 | }
21 |
22 | public function testExpectOutputRegexFooActualBar()
23 | {
24 | $this->expectOutputRegex('/foo/');
25 | print 'bar';
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/OverrideTestCase.php:
--------------------------------------------------------------------------------
1 | container = array();
15 | }
16 | public function offsetSet($offset, $value) {
17 | if (is_null($offset)) {
18 | $this->container[] = $value;
19 | } else {
20 | $this->container[$offset] = $value;
21 | }
22 | }
23 | public function offsetExists($offset) {
24 | return isset($this->container[$offset]);
25 | }
26 | public function offsetUnset($offset) {
27 | unset($this->container[$offset]);
28 | }
29 | public function offsetGet($offset) {
30 | return isset($this->container[$offset]) ? $this->container[$offset] : null;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/SampleClass.php:
--------------------------------------------------------------------------------
1 | a = $a;
11 | $this->b = $b;
12 | $this->c = $c;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/Singleton.php:
--------------------------------------------------------------------------------
1 | assertEquals(0, count($stack));
8 |
9 | array_push($stack, 'foo');
10 | $this->assertEquals('foo', $stack[count($stack)-1]);
11 | $this->assertEquals(1, count($stack));
12 |
13 | return $stack;
14 | }
15 |
16 | /**
17 | * @depends testPush
18 | */
19 | public function testPop(array $stack)
20 | {
21 | $this->assertEquals('foo', array_pop($stack));
22 | $this->assertEquals(0, count($stack));
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/Struct.php:
--------------------------------------------------------------------------------
1 | var = $var;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/Success.php:
--------------------------------------------------------------------------------
1 | assertTrue(TRUE);
23 | }
24 |
25 | public function testTwo()
26 | {
27 | print __METHOD__ . "\n";
28 | $this->assertTrue(FALSE);
29 | }
30 |
31 | protected function assertPostConditions()
32 | {
33 | print __METHOD__ . "\n";
34 | }
35 |
36 | protected function tearDown()
37 | {
38 | print __METHOD__ . "\n";
39 | }
40 |
41 | public static function tearDownAfterClass()
42 | {
43 | print __METHOD__ . "\n";
44 | }
45 |
46 | protected function onNotSuccessfulTest(Exception $e)
47 | {
48 | print __METHOD__ . "\n";
49 | throw $e;
50 | }
51 | }
52 | ?>
53 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/TestIterator.php:
--------------------------------------------------------------------------------
1 | array = $array;
10 | }
11 |
12 | public function rewind()
13 | {
14 | $this->position = 0;
15 | }
16 |
17 | public function valid()
18 | {
19 | return $this->position < count($this->array);
20 | }
21 |
22 | public function key()
23 | {
24 | return $this->position;
25 | }
26 |
27 | public function current()
28 | {
29 | return $this->array[$this->position];
30 | }
31 |
32 | public function next()
33 | {
34 | $this->position++;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/TestIterator2.php:
--------------------------------------------------------------------------------
1 | data = $array;
9 | }
10 |
11 | public function current()
12 | {
13 | return current($this->data);
14 | }
15 |
16 | public function next()
17 | {
18 | next($this->data);
19 | }
20 |
21 | public function key()
22 | {
23 | return key($this->data);
24 | }
25 |
26 | public function valid()
27 | {
28 | return key($this->data) !== null;
29 | }
30 |
31 | public function rewind()
32 | {
33 | reset($this->data);
34 | }
35 | }
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/ThrowExceptionTestCase.php:
--------------------------------------------------------------------------------
1 | wasRun = TRUE;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/bar.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/expectedFileFormat.txt:
--------------------------------------------------------------------------------
1 | FOO
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/foo.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureAttributesAreSameButValuesAreNot.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Image 1: Dette er en test caption
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureExpected.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Image 1: Dette er en test caption
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureIgnoreTextNodes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | textnode
5 |
6 | textnode
7 |
8 | textnode
9 | Image 1: Dette er en test caption
10 | textnode
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureIsSameButDataIsNot.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Image is not the same 1: Dette er en test caption
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureWrongNumberOfAttributes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Image 1: Dette er en test caption
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/Tests/_files/structureWrongNumberOfNodes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php:
--------------------------------------------------------------------------------
1 | getTokens();
12 |
13 | if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
14 | $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
15 |
16 | $phpcsFile->addError(
17 | 'Concatenation operator must be surrounded by whitespace',
18 | $stackPtr
19 | );
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/build/phar-autoload.php.in:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 |
2 |
3 |
8 | Sebastian Bergmann's ruleset
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vendor/phpunit/phpunit/phpdox.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/
2 | composer.lock
3 | phpunit.xml
4 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | CHANGELOG
2 | =========
3 |
4 | 2.1.0
5 | -----
6 |
7 | * Yaml::parse() does not evaluate loaded files as PHP files by default
8 | anymore (call Yaml::enablePhpParsing() to get back the old behavior)
9 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Yaml\Exception;
13 |
14 | /**
15 | * Exception class thrown when an error occurs during dumping.
16 | *
17 | * @author Fabien Potencier
18 | *
19 | * @api
20 | */
21 | class DumpException extends RuntimeException
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Yaml\Exception;
13 |
14 | /**
15 | * Exception interface for all exceptions thrown by the component.
16 | *
17 | * @author Fabien Potencier
18 | *
19 | * @api
20 | */
21 | interface ExceptionInterface
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Yaml\Exception;
13 |
14 | /**
15 | * Exception class thrown when an error occurs during parsing.
16 | *
17 | * @author Romain Neutron
18 | *
19 | * @api
20 | */
21 | class RuntimeException extends \RuntimeException implements ExceptionInterface
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2004-2014 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/README.md:
--------------------------------------------------------------------------------
1 | Yaml Component
2 | ==============
3 |
4 | YAML implements most of the YAML 1.2 specification.
5 |
6 | use Symfony\Component\Yaml\Yaml;
7 |
8 | $array = Yaml::parse($file);
9 |
10 | print Yaml::dump($array);
11 |
12 | Resources
13 | ---------
14 |
15 | You can run the unit tests with the following command:
16 |
17 | $ cd path/to/Symfony/Component/Yaml/
18 | $ composer.phar install
19 | $ phpunit
20 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsAnchorAlias.yml:
--------------------------------------------------------------------------------
1 | --- %YAML:1.0
2 | test: Simple Alias Example
3 | brief: >
4 | If you need to refer to the same item of data twice,
5 | you can give that item an alias. The alias is a plain
6 | string, starting with an ampersand. The item may then
7 | be referred to by the alias throughout your document
8 | by using an asterisk before the name of the alias.
9 | This is called an anchor.
10 | yaml: |
11 | - &showell Steve
12 | - Clark
13 | - Brian
14 | - Oren
15 | - *showell
16 | php: |
17 | array('Steve', 'Clark', 'Brian', 'Oren', 'Steve')
18 |
19 | ---
20 | test: Alias of a Mapping
21 | brief: >
22 | An alias can be used on any item of data, including
23 | sequences, mappings, and other complex data types.
24 | yaml: |
25 | - &hello
26 | Meat: pork
27 | Starch: potato
28 | - banana
29 | - *hello
30 | php: |
31 | array(array('Meat'=>'pork', 'Starch'=>'potato'), 'banana', array('Meat'=>'pork', 'Starch'=>'potato'))
32 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBlockMapping.yml:
--------------------------------------------------------------------------------
1 | ---
2 | test: One Element Mapping
3 | brief: |
4 | A mapping with one key/value pair
5 | yaml: |
6 | foo: bar
7 | php: |
8 | array('foo' => 'bar')
9 | ---
10 | test: Multi Element Mapping
11 | brief: |
12 | More than one key/value pair
13 | yaml: |
14 | red: baron
15 | white: walls
16 | blue: berries
17 | php: |
18 | array(
19 | 'red' => 'baron',
20 | 'white' => 'walls',
21 | 'blue' => 'berries',
22 | )
23 | ---
24 | test: Values aligned
25 | brief: |
26 | Often times human editors of documents will align the values even
27 | though YAML emitters generally don't.
28 | yaml: |
29 | red: baron
30 | white: walls
31 | blue: berries
32 | php: |
33 | array(
34 | 'red' => 'baron',
35 | 'white' => 'walls',
36 | 'blue' => 'berries',
37 | )
38 | ---
39 | test: Colons aligned
40 | brief: |
41 | Spaces can come before the ': ' key/value separator.
42 | yaml: |
43 | red : baron
44 | white : walls
45 | blue : berries
46 | php: |
47 | array(
48 | 'red' => 'baron',
49 | 'white' => 'walls',
50 | 'blue' => 'berries',
51 | )
52 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsErrorTests.yml:
--------------------------------------------------------------------------------
1 | ---
2 | test: Missing value for hash item
3 | todo: true
4 | brief: |
5 | Third item in this hash doesn't have a value
6 | yaml: |
7 | okay: value
8 | also okay: ~
9 | causes error because no value specified
10 | last key: value okay here too
11 | python-error: causes error because no value specified
12 |
13 | ---
14 | test: Not indenting enough
15 | brief: |
16 | There was a bug in PyYaml where it was off by one
17 | in the indentation check. It was allowing the YAML
18 | below.
19 | # This is actually valid YAML now. Someone should tell showell.
20 | yaml: |
21 | foo:
22 | firstline: 1
23 | secondline: 2
24 | php: |
25 | array('foo' => null, 'firstline' => 1, 'secondline' => 2)
26 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsNullsAndEmpties.yml:
--------------------------------------------------------------------------------
1 | --- %YAML:1.0
2 | test: Empty Sequence
3 | brief: >
4 | You can represent the empty sequence
5 | with an empty inline sequence.
6 | yaml: |
7 | empty: []
8 | php: |
9 | array('empty' => array())
10 | ---
11 | test: Empty Mapping
12 | brief: >
13 | You can represent the empty mapping
14 | with an empty inline mapping.
15 | yaml: |
16 | empty: {}
17 | php: |
18 | array('empty' => array())
19 | ---
20 | test: Empty Sequence as Entire Document
21 | yaml: |
22 | []
23 | php: |
24 | array()
25 | ---
26 | test: Empty Mapping as Entire Document
27 | yaml: |
28 | {}
29 | php: |
30 | array()
31 | ---
32 | test: Null as Document
33 | yaml: |
34 | ~
35 | php: |
36 | null
37 | ---
38 | test: Empty String
39 | brief: >
40 | You can represent an empty string
41 | with a pair of quotes.
42 | yaml: |
43 | ''
44 | php: |
45 | ''
46 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/embededPhp.yml:
--------------------------------------------------------------------------------
1 | value:
2 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/index.yml:
--------------------------------------------------------------------------------
1 | - escapedCharacters
2 | - sfComments
3 | - sfCompact
4 | - sfTests
5 | - sfObjects
6 | - sfMergeKey
7 | - sfQuotes
8 | - YtsAnchorAlias
9 | - YtsBasicTests
10 | - YtsBlockMapping
11 | - YtsDocumentSeparator
12 | - YtsErrorTests
13 | - YtsFlowCollections
14 | - YtsFoldedScalars
15 | - YtsNullsAndEmpties
16 | - YtsSpecificationExamples
17 | - YtsTypeTransfers
18 | - unindentedCollections
19 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfObjects.yml:
--------------------------------------------------------------------------------
1 | --- %YAML:1.0
2 | test: Objects
3 | brief: >
4 | Comments at the end of a line
5 | yaml: |
6 | ex1: "foo # bar"
7 | ex2: "foo # bar" # comment
8 | ex3: 'foo # bar' # comment
9 | ex4: foo # comment
10 | php: |
11 | array('ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo')
12 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfQuotes.yml:
--------------------------------------------------------------------------------
1 | --- %YAML:1.0
2 | test: Some characters at the beginning of a string must be escaped
3 | brief: >
4 | Some characters at the beginning of a string must be escaped
5 | yaml: |
6 | foo: | bar
7 | php: |
8 | array('foo' => '| bar')
9 | ---
10 | test: A key can be a quoted string
11 | brief: >
12 | A key can be a quoted string
13 | yaml: |
14 | "foo1": bar
15 | 'foo2': bar
16 | "foo \" bar": bar
17 | 'foo '' bar': bar
18 | 'foo3: ': bar
19 | "foo4: ": bar
20 | foo5: { "foo \" bar: ": bar, 'foo '' bar: ': bar }
21 | php: |
22 | array(
23 | 'foo1' => 'bar',
24 | 'foo2' => 'bar',
25 | 'foo " bar' => 'bar',
26 | 'foo \' bar' => 'bar',
27 | 'foo3: ' => 'bar',
28 | 'foo4: ' => 'bar',
29 | 'foo5' => array(
30 | 'foo " bar: ' => 'bar',
31 | 'foo \' bar: ' => 'bar',
32 | ),
33 | )
34 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParseExceptionTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Yaml\Tests;
13 |
14 | use Symfony\Component\Yaml\Exception\ParseException;
15 | use Symfony\Component\Yaml\Yaml;
16 |
17 | class ParseExceptionTest extends \PHPUnit_Framework_TestCase
18 | {
19 | public function testGetMessage()
20 | {
21 | $exception = new ParseException('Error message', 42, 'foo: bar', '/var/www/app/config.yml');
22 | if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
23 | $message = 'Error message in "/var/www/app/config.yml" at line 42 (near "foo: bar")';
24 | } else {
25 | $message = 'Error message in "\\/var\\/www\\/app\\/config.yml" at line 42 (near "foo: bar")';
26 | }
27 |
28 | $this->assertEquals($message, $exception->getMessage());
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/YamlTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Yaml\Tests;
13 |
14 | use Symfony\Component\Yaml\Yaml;
15 |
16 | class YamlTest extends \PHPUnit_Framework_TestCase
17 | {
18 | public function testParseAndDump()
19 | {
20 | $data = array('lorem' => 'ipsum', 'dolor' => 'sit');
21 | $yml = Yaml::dump($data);
22 | $parsed = Yaml::parse($yml);
23 | $this->assertEquals($data, $parsed);
24 |
25 | $filename = __DIR__.'/Fixtures/index.yml';
26 | $contents = file_get_contents($filename);
27 | $parsedByFilename = Yaml::parse($filename);
28 | $parsedByContents = Yaml::parse($contents);
29 | $this->assertEquals($parsedByFilename, $parsedByContents);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "symfony/yaml",
3 | "type": "library",
4 | "description": "Symfony Yaml Component",
5 | "keywords": [],
6 | "homepage": "http://symfony.com",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Fabien Potencier",
11 | "email": "fabien@symfony.com"
12 | },
13 | {
14 | "name": "Symfony Community",
15 | "homepage": "http://symfony.com/contributors"
16 | }
17 | ],
18 | "require": {
19 | "php": ">=5.3.3"
20 | },
21 | "autoload": {
22 | "psr-0": { "Symfony\\Component\\Yaml\\": "" }
23 | },
24 | "target-dir": "Symfony/Component/Yaml",
25 | "minimum-stability": "dev",
26 | "extra": {
27 | "branch-alias": {
28 | "dev-master": "2.5-dev"
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/symfony/yaml/Symfony/Component/Yaml/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 | ./Tests/
12 |
13 |
14 |
15 |
16 |
17 | ./
18 |
19 | ./vendor
20 | ./Tests
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------