├── .idea ├── TutsLibrary.iml ├── encodings.xml ├── misc.xml ├── modules.xml ├── php.xml ├── scopes │ └── scope_settings.xml └── vcs.xml ├── Books ├── Book.php ├── BookFactory.php ├── ColoringBook.php ├── NoSuchBookTypeException.php └── Novel.php ├── Car.php ├── Library.php ├── LibraryFacade.php ├── Persistence ├── FileSystem.php └── InMemory.php ├── PersitenceGateway.php ├── README.md ├── Requirements ├── Tests ├── BookFactoryTest.php ├── BookTest.php ├── ColoringBookTest.php ├── FileSystemTest.php ├── LibraryTest.php └── NovelTest.php ├── autoload.php ├── bootstrap.php ├── composer.json ├── composer.lock ├── index.php ├── nbproject ├── project.properties └── project.xml └── vendor ├── autoload.php ├── bin ├── dbunit.php └── phpunit ├── composer ├── ClassLoader.php ├── autoload_classmap.php ├── autoload_namespaces.php ├── autoload_real.php ├── include_paths.php └── installed.json ├── mockery └── mockery │ ├── LICENSE │ ├── README.markdown │ ├── composer.json │ ├── examples │ └── starship │ │ ├── Bootstrap.php │ │ ├── Starship.php │ │ ├── StarshipTest.php │ │ └── phpunit.xml │ ├── library │ ├── Mockery.php │ └── Mockery │ │ ├── Adapter │ │ └── Phpunit │ │ │ └── TestListener.php │ │ ├── CompositeExpectation.php │ │ ├── Configuration.php │ │ ├── Container.php │ │ ├── CountValidator │ │ ├── AtLeast.php │ │ ├── AtMost.php │ │ ├── CountValidatorAbstract.php │ │ ├── Exact.php │ │ └── Exception.php │ │ ├── Exception.php │ │ ├── Exception │ │ ├── InvalidCountException.php │ │ ├── InvalidOrderException.php │ │ └── NoMatchingExpectationException.php │ │ ├── Expectation.php │ │ ├── ExpectationDirector.php │ │ ├── Generator.php │ │ ├── Loader.php │ │ ├── Matcher │ │ ├── Any.php │ │ ├── AnyOf.php │ │ ├── Closure.php │ │ ├── Contains.php │ │ ├── Ducktype.php │ │ ├── HasKey.php │ │ ├── HasValue.php │ │ ├── MatcherAbstract.php │ │ ├── MustBe.php │ │ ├── Not.php │ │ ├── NotAnyOf.php │ │ ├── Subset.php │ │ └── Type.php │ │ ├── Mock.php │ │ ├── MockInterface.php │ │ ├── Recorder.php │ │ └── Undefined.php │ ├── package.xml │ └── tests │ ├── Bootstrap.php │ ├── Mockery │ ├── AdhocTest.php │ ├── ContainerTest.php │ ├── ExpectationTest.php │ ├── HamcrestExpectationTest.php │ ├── LoaderTest.php │ ├── MockTest.php │ ├── RecorderTest.php │ ├── WithFormatterExpectationTest.php │ └── _files │ │ └── file.txt │ └── phpunit.xml ├── phpunit ├── dbunit │ ├── ChangeLog.markdown │ ├── LICENSE │ ├── PHPUnit │ │ └── Extensions │ │ │ └── Database │ │ │ ├── AbstractTester.php │ │ │ ├── Autoload.php │ │ │ ├── Autoload.php.in │ │ │ ├── Constraint │ │ │ ├── DataSetIsEqual.php │ │ │ ├── TableIsEqual.php │ │ │ └── TableRowCount.php │ │ │ ├── DB │ │ │ ├── DataSet.php │ │ │ ├── DefaultDatabaseConnection.php │ │ │ ├── FilteredDataSet.php │ │ │ ├── IDatabaseConnection.php │ │ │ ├── IMetaData.php │ │ │ ├── MetaData.php │ │ │ ├── MetaData │ │ │ │ ├── InformationSchema.php │ │ │ │ ├── MySQL.php │ │ │ │ ├── Oci.php │ │ │ │ ├── PgSQL.php │ │ │ │ ├── SqlSrv.php │ │ │ │ └── Sqlite.php │ │ │ ├── ResultSetTable.php │ │ │ ├── Table.php │ │ │ ├── TableIterator.php │ │ │ └── TableMetaData.php │ │ │ ├── DataSet │ │ │ ├── AbstractDataSet.php │ │ │ ├── AbstractTable.php │ │ │ ├── AbstractTableMetaData.php │ │ │ ├── AbstractXmlDataSet.php │ │ │ ├── CompositeDataSet.php │ │ │ ├── CsvDataSet.php │ │ │ ├── DataSetFilter.php │ │ │ ├── DefaultDataSet.php │ │ │ ├── DefaultTable.php │ │ │ ├── DefaultTableIterator.php │ │ │ ├── DefaultTableMetaData.php │ │ │ ├── FlatXmlDataSet.php │ │ │ ├── IDataSet.php │ │ │ ├── IPersistable.php │ │ │ ├── ISpec.php │ │ │ ├── ITable.php │ │ │ ├── ITableIterator.php │ │ │ ├── ITableMetaData.php │ │ │ ├── MysqlXmlDataSet.php │ │ │ ├── Persistors │ │ │ │ ├── Abstract.php │ │ │ │ ├── Factory.php │ │ │ │ ├── FlatXml.php │ │ │ │ ├── MysqlXml.php │ │ │ │ ├── Xml.php │ │ │ │ └── Yaml.php │ │ │ ├── QueryDataSet.php │ │ │ ├── QueryTable.php │ │ │ ├── ReplacementDataSet.php │ │ │ ├── ReplacementTable.php │ │ │ ├── ReplacementTableIterator.php │ │ │ ├── Specs │ │ │ │ ├── Csv.php │ │ │ │ ├── DbQuery.php │ │ │ │ ├── DbTable.php │ │ │ │ ├── Factory.php │ │ │ │ ├── FlatXml.php │ │ │ │ ├── IFactory.php │ │ │ │ ├── Xml.php │ │ │ │ └── Yaml.php │ │ │ ├── TableFilter.php │ │ │ ├── TableMetaDataFilter.php │ │ │ ├── XmlDataSet.php │ │ │ └── YamlDataSet.php │ │ │ ├── DefaultTester.php │ │ │ ├── Exception.php │ │ │ ├── IDatabaseListConsumer.php │ │ │ ├── ITester.php │ │ │ ├── Operation │ │ │ ├── Composite.php │ │ │ ├── Delete.php │ │ │ ├── DeleteAll.php │ │ │ ├── Exception.php │ │ │ ├── Factory.php │ │ │ ├── IDatabaseOperation.php │ │ │ ├── Insert.php │ │ │ ├── Null.php │ │ │ ├── Replace.php │ │ │ ├── RowBased.php │ │ │ ├── Truncate.php │ │ │ └── Update.php │ │ │ ├── TestCase.php │ │ │ └── UI │ │ │ ├── Command.php │ │ │ ├── Context.php │ │ │ ├── IMedium.php │ │ │ ├── IMediumPrinter.php │ │ │ ├── IMode.php │ │ │ ├── IModeFactory.php │ │ │ ├── InvalidModeException.php │ │ │ ├── Mediums │ │ │ └── Text.php │ │ │ ├── ModeFactory.php │ │ │ └── Modes │ │ │ ├── ExportDataSet.php │ │ │ └── ExportDataSet │ │ │ └── Arguments.php │ ├── Samples │ │ └── BankAccountDB │ │ │ ├── BankAccount.php │ │ │ ├── BankAccountCompositeTest.php │ │ │ ├── BankAccountDBTest.php │ │ │ ├── BankAccountDBTestMySQL.php │ │ │ └── _files │ │ │ ├── bank-account-after-deposits.xml │ │ │ ├── bank-account-after-new-account.xml │ │ │ ├── bank-account-after-withdrawals.xml │ │ │ └── bank-account-seed.xml │ ├── Tests │ │ ├── Constraint │ │ │ └── TableRowCountTest.php │ │ ├── DB │ │ │ └── DefaultDatabaseConnectionTest.php │ │ ├── DataSet │ │ │ ├── AbstractTableTest.php │ │ │ ├── CompositeDataSetTest.php │ │ │ ├── CsvDataSetTest.php │ │ │ ├── FilterTest.php │ │ │ ├── PersistorTest.php │ │ │ ├── QueryDataSetTest.php │ │ │ ├── QueryTableTest.php │ │ │ ├── ReplacementDataSetTest.php │ │ │ ├── ReplacementTableTest.php │ │ │ ├── XmlDataSetsTest.php │ │ │ └── YamlDataSetTest.php │ │ ├── Operation │ │ │ ├── OperationsMySQLTest.php │ │ │ ├── OperationsTest.php │ │ │ └── RowBasedTest.php │ │ └── _files │ │ │ ├── CsvDataSets │ │ │ ├── table1.csv │ │ │ └── table2.csv │ │ │ ├── DatabaseTestUtility.php │ │ │ ├── XmlDataSets │ │ │ ├── AllEmptyTableInsertResult.xml │ │ │ ├── AllEmptyTableInsertTest.xml │ │ │ ├── DeleteAllOperationTest.xml │ │ │ ├── DeleteOperationResult.xml │ │ │ ├── DeleteOperationTest.xml │ │ │ ├── EmptyTableInsertResult.xml │ │ │ ├── EmptyTableInsertTest.xml │ │ │ ├── FilteredTestComparison.xml │ │ │ ├── FilteredTestFixture.xml │ │ │ ├── FlatXmlDataSet.xml │ │ │ ├── FlatXmlWriter.xml │ │ │ ├── FlatXmlWriterEntities.xml │ │ │ ├── InsertOperationResult.xml │ │ │ ├── InsertOperationTest.xml │ │ │ ├── MysqlXmlDataSet.xml │ │ │ ├── OperationsMySQLTestFixture.xml │ │ │ ├── OperationsTestFixture.xml │ │ │ ├── QueryDataSetTest.xml │ │ │ ├── ReplaceOperationResult.xml │ │ │ ├── ReplaceOperationTest.xml │ │ │ ├── RowBasedExecute.xml │ │ │ ├── UpdateOperationResult.xml │ │ │ ├── UpdateOperationTest.xml │ │ │ ├── XmlDataSet.xml │ │ │ ├── XmlWriter.xml │ │ │ └── XmlWriterEntities.xml │ │ │ └── YamlDataSets │ │ │ └── testDataSet.yaml │ ├── build.xml │ ├── build │ │ ├── PHPCS │ │ │ ├── Sniffs │ │ │ │ ├── ControlStructures │ │ │ │ │ └── ControlSignatureSniff.php │ │ │ │ └── Whitespace │ │ │ │ │ └── ConcatenationSpacingSniff.php │ │ │ └── ruleset.xml │ │ ├── phpmd.xml │ │ └── travis-ci.xml │ ├── composer.json │ ├── dbunit.bat │ ├── dbunit.php │ ├── package.xml │ └── phpunit.xml.dist ├── php-code-coverage │ ├── 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 │ │ │ │ │ └── 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 │ │ │ │ │ ├── highcharts.js │ │ │ │ │ ├── html5shiv.js │ │ │ │ │ └── jquery.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.markdown │ ├── 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 │ ├── 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-invoker │ ├── ChangeLog.markdown │ ├── LICENSE │ ├── PHP │ │ ├── Invoker.php │ │ └── Invoker │ │ │ ├── Autoload.php │ │ │ ├── Autoload.php.in │ │ │ └── TimeoutException.php │ ├── README.markdown │ ├── Tests │ │ ├── InvokerTest.php │ │ └── _fixture │ │ │ └── TestCallable.php │ ├── build.xml │ ├── build │ │ ├── PHPCS │ │ │ ├── Sniffs │ │ │ │ ├── ControlStructures │ │ │ │ │ └── ControlSignatureSniff.php │ │ │ │ └── Whitespace │ │ │ │ │ └── ConcatenationSpacingSniff.php │ │ │ └── ruleset.xml │ │ └── phpmd.xml │ ├── composer.json │ ├── package.xml │ └── phpunit.xml.dist ├── php-text-template │ ├── ChangeLog.markdown │ ├── LICENSE │ ├── README.markdown │ ├── 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 │ ├── 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 │ ├── 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 │ ├── 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-selenium │ ├── ChangeLog.markdown │ ├── LICENSE │ ├── PHPUnit │ │ └── Extensions │ │ │ ├── Selenium2TestCase.php │ │ │ ├── Selenium2TestCase │ │ │ ├── Command.php │ │ │ ├── CommandsHolder.php │ │ │ ├── Driver.php │ │ │ ├── Element.php │ │ │ ├── Element │ │ │ │ ├── Accessor.php │ │ │ │ └── Select.php │ │ │ ├── ElementCommand │ │ │ │ ├── Attribute.php │ │ │ │ ├── Click.php │ │ │ │ ├── Css.php │ │ │ │ ├── Equals.php │ │ │ │ ├── GenericAccessor.php │ │ │ │ ├── GenericPost.php │ │ │ │ └── Value.php │ │ │ ├── ElementCriteria.php │ │ │ ├── Exception.php │ │ │ ├── Keys.php │ │ │ ├── KeysHolder.php │ │ │ ├── NoSeleniumException.php │ │ │ ├── Response.php │ │ │ ├── ScreenshotListener.php │ │ │ ├── Session.php │ │ │ ├── Session │ │ │ │ ├── Cookie.php │ │ │ │ ├── Cookie │ │ │ │ │ └── Builder.php │ │ │ │ ├── Storage.php │ │ │ │ └── Timeouts.php │ │ │ ├── SessionCommand │ │ │ │ ├── AcceptAlert.php │ │ │ │ ├── AlertText.php │ │ │ │ ├── Click.php │ │ │ │ ├── DismissAlert.php │ │ │ │ ├── File.php │ │ │ │ ├── Frame.php │ │ │ │ ├── GenericAccessor.php │ │ │ │ ├── GenericAttribute.php │ │ │ │ ├── Keys.php │ │ │ │ ├── Location.php │ │ │ │ ├── MoveTo.php │ │ │ │ ├── Orientation.php │ │ │ │ ├── Url.php │ │ │ │ └── Window.php │ │ │ ├── SessionStrategy.php │ │ │ ├── SessionStrategy │ │ │ │ ├── Isolated.php │ │ │ │ └── Shared.php │ │ │ ├── StateCommand.php │ │ │ ├── URL.php │ │ │ ├── WaitUntil.php │ │ │ ├── WebDriverException.php │ │ │ └── Window.php │ │ │ ├── SeleniumBrowserSuite.php │ │ │ ├── SeleniumCommon │ │ │ ├── Autoload.php │ │ │ ├── Autoload.php.in │ │ │ ├── ExitHandler.php │ │ │ ├── RemoteCoverage.php │ │ │ ├── append.php │ │ │ ├── phpunit_coverage.php │ │ │ └── prepend.php │ │ │ ├── SeleniumTestCase.php │ │ │ ├── SeleniumTestCase │ │ │ ├── Autoload.php │ │ │ └── Driver.php │ │ │ └── SeleniumTestSuite.php │ ├── README.md │ ├── Tests │ │ ├── CodeCoverageTest.php │ │ ├── Selenium2TestCase │ │ │ ├── BaseTestCase.php │ │ │ ├── Coverage │ │ │ │ ├── DummyClass.php │ │ │ │ ├── RemoteCoverageTest.php │ │ │ │ ├── SingleFileTest.php │ │ │ │ ├── singleFile.php │ │ │ │ └── singleFileCoverage.php │ │ │ ├── CustomDesiredCapabilitiesTest.php │ │ │ ├── FailuresTest.php │ │ │ ├── MobileFeaturesTest.php │ │ │ ├── MultipleBrowsersTest.php │ │ │ ├── PageObjectTest.php │ │ │ ├── RegressionsTest.php │ │ │ ├── ScreenshotListenerTest.php │ │ │ ├── SessionCommand │ │ │ │ └── FileTest.php │ │ │ ├── SessionInSetupTest.php │ │ │ ├── SetUpPageTest.php │ │ │ ├── SuiteBuildingTest.php │ │ │ ├── TimeoutTest.php │ │ │ ├── URLTest.php │ │ │ ├── WaitUntilTest.php │ │ │ └── WebDriverBackedSeleniumTest.php │ │ ├── Selenium2TestCaseTest.php │ │ ├── SeleniumTestCase │ │ │ ├── BaseTestCase.php │ │ │ ├── CountMethodsTest.php │ │ │ ├── FailuresTest.php │ │ │ ├── MultipleBrowsersTest.php │ │ │ ├── RegressionsTest.php │ │ │ ├── SeleneseFileTest.php │ │ │ ├── SeleneseTest.php │ │ │ ├── SkippedTest.php │ │ │ ├── StringMatchPatternTest.php │ │ │ ├── SuiteBuildingTest.php │ │ │ ├── Ticket114Test.php │ │ │ └── Ticket90UnicodeExpressionTest.php │ │ └── SeleniumTestCaseTest.php │ ├── after_script.sh │ ├── before_script.sh │ ├── build.xml │ ├── build │ │ ├── PHPCS │ │ │ ├── Sniffs │ │ │ │ └── Whitespace │ │ │ │ │ └── ConcatenationSpacingSniff.php │ │ │ └── ruleset.xml │ │ └── phpmd.xml │ ├── composer.json │ ├── composer.lock │ ├── package.xml │ ├── phpunit-selenium-bootstrap.php │ ├── phpunit.xml.dist │ └── selenium-1-tests │ │ ├── coverage │ │ └── dummy.txt │ │ ├── html │ │ ├── CamelCasePage.html │ │ ├── banner.gif │ │ ├── test_check_uncheck.html │ │ ├── test_click_javascript_page.html │ │ ├── test_click_page1.html │ │ ├── test_click_page2.html │ │ ├── test_confirm.html │ │ ├── test_count.html │ │ ├── test_delayed_element.html │ │ ├── test_doubleclick.html │ │ ├── test_dummy_page.html │ │ ├── test_editable.html │ │ ├── test_element_selection.html │ │ ├── test_focus_on_blur.html │ │ ├── test_form_elements.html │ │ ├── test_form_events.html │ │ ├── test_frames.html │ │ ├── test_geometry.html │ │ ├── test_locators.html │ │ ├── test_mouse_buttons.html │ │ ├── test_moveto.html │ │ ├── test_multiselect.html │ │ ├── test_open.html │ │ ├── test_page.slow.html │ │ ├── test_prompt.html │ │ ├── test_reload_onchange_page.html │ │ ├── test_select.html │ │ ├── test_select_window.html │ │ ├── test_select_window_popup.html │ │ ├── test_send_keys.html │ │ ├── test_slowloading_page.html │ │ ├── test_special_keys.html │ │ ├── test_store_value.html │ │ ├── test_submit.html │ │ ├── test_text_patterns.html │ │ ├── test_type_page1.html │ │ ├── test_type_page2.html │ │ ├── test_verifications.html │ │ ├── test_verify_alert.html │ │ ├── test_visibility.html │ │ └── test_wait.html │ │ ├── php │ │ └── file_upload.php │ │ └── selenese │ │ └── test_selenese_directory.html ├── phpunit-story │ ├── ChangeLog.markdown │ ├── LICENSE │ ├── PHPUnit │ │ └── Extensions │ │ │ └── Story │ │ │ ├── Autoload.php │ │ │ ├── Autoload.php.in │ │ │ ├── Given.php │ │ │ ├── ResultPrinter.php │ │ │ ├── ResultPrinter │ │ │ ├── HTML.php │ │ │ ├── Template │ │ │ │ ├── scenario.html.dist │ │ │ │ ├── scenario_header.html.dist │ │ │ │ ├── scenarios.html.dist │ │ │ │ └── step.html.dist │ │ │ └── Text.php │ │ │ ├── Scenario.php │ │ │ ├── Step.php │ │ │ ├── TestCase.php │ │ │ ├── Then.php │ │ │ └── When.php │ ├── Tests │ │ ├── Functional │ │ │ ├── default.phpt │ │ │ ├── story.phpt │ │ │ └── testdox.phpt │ │ └── _files │ │ │ ├── BowlingGame.php │ │ │ └── BowlingGameSpec.php │ ├── build.xml │ ├── composer.json │ ├── package.xml │ └── phpunit.xml.dist └── phpunit │ ├── 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 │ │ │ ├── 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 │ │ ├── SampleClass.php │ │ ├── SelectorAssertionsFixture.html │ │ ├── Singleton.php │ │ ├── StackTest.php │ │ ├── Struct.php │ │ ├── Success.php │ │ ├── TemplateMethodsTest.php │ │ ├── TestIterator.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 │ ├── package.xml │ ├── phpdox.xml.dist │ ├── phpunit.bat │ ├── phpunit.php │ ├── phpunit.xml.dist │ └── phpunit.xsd └── symfony └── yaml └── Symfony └── Component └── Yaml ├── 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 /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/php.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Books/BookFactory.php: -------------------------------------------------------------------------------- 1 | '\Books\Novel', 9 | 'cb' => '\Books\ColoringBook' 10 | ]; 11 | 12 | function makeFromRequestModel($requestModel) { 13 | 14 | if (!array_key_exists($requestModel['bookType'], $this->bookMap)) { 15 | throw new NoSuchBookTypeException($requestModel['bookType']); 16 | } 17 | 18 | return new $this->bookMap[$requestModel['bookType']]($requestModel['title'], $requestModel['author']); 19 | } 20 | 21 | function makeManyFromRequestModels($requestModels) { 22 | $books = []; 23 | foreach ($requestModels as $requestModel) { 24 | $books[] = $this->makeFromRequestModel($requestModel); 25 | } 26 | return $books; 27 | } 28 | } -------------------------------------------------------------------------------- /Books/ColoringBook.php: -------------------------------------------------------------------------------- 1 | recommendedAge; 16 | } 17 | 18 | public function setRecommendedAge($recommendedAge) { 19 | $this->recommendedAge = $recommendedAge; 20 | } 21 | 22 | function setIntroToParents($pageNumbers) { 23 | $this->introductionToParents = $pageNumbers; 24 | } 25 | 26 | function numberOfPages() { 27 | return $this->allPages - self::COVERPAGES - $this->introductionToParents; 28 | } 29 | 30 | 31 | 32 | 33 | } 34 | 35 | ?> 36 | -------------------------------------------------------------------------------- /Books/NoSuchBookTypeException.php: -------------------------------------------------------------------------------- 1 | category; 13 | } 14 | 15 | public function setCategory($category) { 16 | $this->category = $category; 17 | } 18 | 19 | public function getCategory() { 20 | return $this->doComplexCategoryGuessing(); 21 | } 22 | 23 | private function doComplexCategoryGuessing() { 24 | return $this->category; 25 | } 26 | 27 | public function getWeight() { 28 | return $this->numberOfPages() * $this->paperWeight; 29 | } 30 | 31 | function numberOfPages() { 32 | return $this->allPages - self::COVERPAGES; 33 | } 34 | 35 | } 36 | 37 | ?> 38 | -------------------------------------------------------------------------------- /Car.php: -------------------------------------------------------------------------------- 1 | 26 | -------------------------------------------------------------------------------- /Library.php: -------------------------------------------------------------------------------- 1 | persistence = $persistence ? : new \Persistence\FileSystem(); 10 | $this->bookFactory = new \Books\BookFactory(); 11 | } 12 | 13 | function add(\Books\Book $book) { 14 | $this->persistence->add($book); 15 | } 16 | 17 | function findAll() { 18 | return $this->bookFactory->makeManyFromRequestModels($this->persistence->select('*')); 19 | } 20 | 21 | function findByTitle($title) { 22 | return $this->bookFactory->makeManyFromRequestModels($this->persistence->select('title=' . $title)); 23 | } 24 | 25 | function removeByTitle($title) { 26 | $this->persistence->remove('title=' . $title); 27 | } 28 | 29 | 30 | 31 | } 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /LibraryFacade.php: -------------------------------------------------------------------------------- 1 | library = new Library(); 10 | $this->bookFactory = new \Books\BookFactory(); 11 | } 12 | 13 | function findAll() { 14 | return $this->library->findAll(); 15 | } 16 | 17 | function addBook($requestModel) { 18 | $this->library->add($this->bookFactory->makeFromRequestModel($requestModel)); 19 | } 20 | 21 | } 22 | 23 | ?> 24 | -------------------------------------------------------------------------------- /PersitenceGateway.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /Tests/ColoringBookTest.php: -------------------------------------------------------------------------------- 1 | setRecommendedAge($range); 11 | 12 | $this->assertEquals($range, $coloringBook->getRecommendedAge()); 13 | $this->assertEquals($title, $coloringBook->getTitle()); 14 | $this->assertEquals('Not Required', $coloringBook->getAuthor()); 15 | } 16 | 17 | function testItCanTellActualNumberOfPages() { 18 | $coloringBook = new ColoringBook(); 19 | $coloringBook->setAllPages(100); 20 | $coloringBook->setIntroToParents(10); 21 | $this->assertEquals(88, $coloringBook->numberOfPages()); 22 | } 23 | } 24 | 25 | ?> 26 | -------------------------------------------------------------------------------- /autoload.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.php.project 4 | 5 | 6 | TutsLibrary 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/yaml'), 10 | 'Mockery' => array($vendorDir . '/mockery/mockery/library'), 11 | ); 12 | -------------------------------------------------------------------------------- /vendor/composer/include_paths.php: -------------------------------------------------------------------------------- 1 | register(); 12 | -------------------------------------------------------------------------------- /vendor/mockery/mockery/examples/starship/Starship.php: -------------------------------------------------------------------------------- 1 | _engineering = $engineering; 11 | } 12 | 13 | public function enterOrbit() 14 | { 15 | $this->_engineering->disengageWarp(); 16 | $this->_engineering->runDiagnosticLevel(5); 17 | $this->_engineering->divertPower(0.40, 'sensors'); 18 | $this->_engineering->divertPower(0.30, 'auxengines'); 19 | $this->_engineering->runDiagnosticLevel(1); 20 | 21 | // We can add more runDiagnosticLevel() calls without failing the test 22 | // anywhere above since they are unordered. 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /vendor/mockery/mockery/examples/starship/StarshipTest.php: -------------------------------------------------------------------------------- 1 | shouldReceive('disengageWarp')->once()->ordered(); 13 | $mock->shouldReceive('divertPower')->with(0.40, 'sensors')->once()->ordered(); 14 | $mock->shouldReceive('divertPower')->with(0.30, 'auxengines')->once()->ordered(); 15 | $mock->shouldReceive('runDiagnosticLevel')->with(1)->once()->ordered(); 16 | $mock->shouldReceive('runDiagnosticLevel')->with(M::type('int'))->zeroOrMoreTimes(); 17 | 18 | $starship = new Starship($mock); 19 | $starship->enterOrbit(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vendor/mockery/mockery/examples/starship/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ./ 4 | 5 | 6 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/mockery/mockery/library/Mockery/CountValidator/Exception.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | ./ 4 | 5 | 6 | 7 | 8 | disable 9 | 10 | 11 | 12 | 13 | 14 | ../library/ 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/ChangeLog.markdown: -------------------------------------------------------------------------------- 1 | DbUnit 1.2 2 | ========== 3 | 4 | This is the list of changes for the DbUnit 1.2 release series. 5 | 6 | DbUnit 1.2.3 7 | ------------ 8 | 9 | * No changes. 10 | 11 | DbUnit 1.2.2 12 | ------------ 13 | 14 | * No changes. 15 | 16 | DbUnit 1.2.1 17 | ------------ 18 | 19 | * No changes. 20 | 21 | DbUnit 1.2.0 22 | ------------- 23 | 24 | * Updated for PHPUnit 3.7. 25 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Samples/BankAccountDB/_files/bank-account-after-deposits.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Samples/BankAccountDB/_files/bank-account-after-new-account.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Samples/BankAccountDB/_files/bank-account-after-withdrawals.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Samples/BankAccountDB/_files/bank-account-seed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/CsvDataSets/table1.csv: -------------------------------------------------------------------------------- 1 | table1_id,column1,column2,column3,column4 2 | 1,tgfahgasdf,200,34.64,"yghkf;a hahfg8ja h;" 3 | 2,hk;afg,654,46.54,24rwehhads 4 | 3,ha;gyt,462,1654.4,asfgklg -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/CsvDataSets/table2.csv: -------------------------------------------------------------------------------- 1 | table2_id,column5,column6,column7,column8 2 | 1,fhah,456,46.5,"fsdb, ghfdas" 3 | 2,asdhfoih,654,blah,"43asd ""fhgj"" sfadh" 4 | 3,ajsdlkfguitah,654,blah,"thesethasdl 5 | asdflkjsadf asdfsadfhl ""adsf, halsdf"" sadfhlasdf" -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/AllEmptyTableInsertResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/AllEmptyTableInsertTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/DeleteAllOperationTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/DeleteOperationResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/DeleteOperationTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/EmptyTableInsertResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/EmptyTableInsertTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/FilteredTestComparison.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/FilteredTestFixture.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/FlatXmlDataSet.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/FlatXmlWriter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 13 | 18 | 19 | 24 | 28 | 32 | 33 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/FlatXmlWriterEntities.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/InsertOperationTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/OperationsMySQLTestFixture.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/OperationsTestFixture.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/QueryDataSetTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 17 | 24 | 31 | 32 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/ReplaceOperationTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/RowBasedExecute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/UpdateOperationResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/UpdateOperationTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/XmlWriter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | col1 5 | col2 6 | col3 7 | 8 | val1 9 | val2 10 | val3 11 | 12 | 13 | 14 | 15 | val4 16 | 17 | 18 | val5 19 | val6 20 | val7 21 | 22 |
23 | 24 | col1 25 | col2 26 | col3 27 |
28 |
29 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/Tests/_files/XmlDataSets/XmlWriterEntities.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | col1 5 | col2 6 | 7 | 1 8 | <?xml version="1.0"?><myxml>test</myxml> 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /vendor/phpunit/dbunit/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/dbunit/build/travis-ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | ../Tests/DataSet 14 | ../Tests/Operation 15 | ../Tests/DB 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | ../PHPUnit 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /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 |
2 |
3 |
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/tutsplus/advanced-oop-in-php-with-tests/b2ed5991454be9a55b39ca307628e79e37da1db6/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/tutsplus/advanced-oop-in-php-with-tests/b2ed5991454be9a55b39ca307628e79e37da1db6/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/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/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/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/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/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-invoker/ChangeLog.markdown: -------------------------------------------------------------------------------- 1 | PHP_Invoker 1.1 2 | =============== 3 | 4 | This is the list of changes for the PHP_Invoker 1.1 release series. 5 | 6 | PHP_Invoker 1.1.3 7 | ----------------- 8 | 9 | * No changes. 10 | 11 | PHP_Invoker 1.1.2 12 | ----------------- 13 | 14 | * No changes. 15 | 16 | PHP_Invoker 1.1.1 17 | ----------------- 18 | 19 | * No changes. 20 | 21 | PHP_Invoker 1.1.0 22 | ----------------- 23 | 24 | * `PHP_Invoker_TimeoutException` now holds information on the timeout. 25 | -------------------------------------------------------------------------------- /vendor/phpunit/php-invoker/Tests/_fixture/TestCallable.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/ChangeLog.markdown: -------------------------------------------------------------------------------- 1 | Text_Template 1.1 2 | ================= 3 | 4 | This is the list of changes for the Text_Template 1.1 release series. 5 | 6 | Text_Template 1.1.4 7 | ------------------- 8 | 9 | * Improved error message in case `renderTo()` cannot write to the target file. 10 | 11 | Text_Template 1.1.3 12 | ------------------- 13 | 14 | * No changes. 15 | 16 | Text_Template 1.1.2 17 | ------------------- 18 | 19 | * No changes. 20 | 21 | Text_Template 1.1.1 22 | ------------------- 23 | 24 | * No changes. 25 | -------------------------------------------------------------------------------- /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/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/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/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/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_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-selenium/PHPUnit/Extensions/SeleniumCommon/ExitHandler.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | */ 9 | class PHPUnit_Extensions_SeleniumCommon_ExitHandler 10 | { 11 | /** 12 | * Register handler. 13 | * If project have own shutdown hanldler user have to add function to handler 14 | * 15 | */ 16 | public static function init() 17 | { 18 | register_shutdown_function( array( 'PHPUnit_Extensions_SeleniumCommon_ExitHandler', 'handle' ) ); 19 | } 20 | 21 | /** 22 | * Manual include apendable files 23 | */ 24 | public static function handle() 25 | { 26 | $execFile = ini_get('auto_append_file'); 27 | if ($execFile!=='') { 28 | include_once ($execFile); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumTestCase/Autoload.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete('Would require PHP 5.4 for running .php files on the server'); 9 | $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER); 10 | $this->setBrowserUrl('http://localhost/'); 11 | } 12 | 13 | public function testCoverageIsRetrieved() 14 | { 15 | $this->url('example.php'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/BaseTestCase.php: -------------------------------------------------------------------------------- 1 | setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST); 7 | $this->setPort((int)PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT); 8 | $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER); 9 | if (!defined('PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL')) { 10 | $this->markTestSkipped("You must serve the selenium-1-tests folder from an HTTP server and configure the PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL constant accordingly."); 11 | } 12 | $this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/Coverage/DummyClass.php: -------------------------------------------------------------------------------- 1 | get(); 12 | $dummyClassSourceFile = dirname(__FILE__) . '/DummyClass.php'; 13 | $expectedCoverage = array( 14 | 3 => 1, 15 | 6 => 1, 16 | 7 => -2, 17 | 11 => -1, 18 | 12 => -2, 19 | 14 => 1 20 | ); 21 | $this->assertEquals($expectedCoverage, $content[$dummyClassSourceFile]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/Coverage/singleFile.php: -------------------------------------------------------------------------------- 1 | coveredMethod(); 8 | 9 | require __DIR__ . '/../../../PHPUnit/Extensions/SeleniumCommon/append.php'; 10 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/Coverage/singleFileCoverage.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright 2010-2013 Sebastian Bergmann 8 | * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 9 | * @link http://www.phpunit.de/ 10 | */ 11 | class Extensions_Selenium2TestCase_CustomDesiredCapabilitiesTest extends Tests_Selenium2TestCase_BaseTestCase 12 | { 13 | public function setUp() 14 | { 15 | parent::setUp(); 16 | $this->setDesiredCapabilities(array( 17 | 'platform' => 'ANY' 18 | )); 19 | } 20 | 21 | public function testOpen() 22 | { 23 | $this->url('html/test_open.html'); 24 | $this->assertStringEndsWith('html/test_open.html', $this->url()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/SessionCommand/FileTest.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete("Cannot get this to run reliablyat all on Travis CI."); 8 | $this->url('php/file_upload.php'); 9 | 10 | $remote_file = $this->file('selenium-1-tests/html/banner.gif'); 11 | 12 | $this->byName('upload_here') 13 | ->value($remote_file); 14 | 15 | $this->byId('submit') 16 | ->click(); 17 | 18 | $msg_displayed = $this->byId('uploaded') 19 | ->displayed(); 20 | 21 | $this->assertNotEmpty($msg_displayed); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/SessionInSetupTest.php: -------------------------------------------------------------------------------- 1 | setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST); 7 | $this->setPort((int)PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT); 8 | $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER); 9 | $this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL); 10 | $this->prepareSession(); 11 | $this->url('html/test_open.html'); 12 | } 13 | 14 | public function testTheSessionStartedInSetupAndCanBeUsedNow() 15 | { 16 | $this->assertStringEndsWith('html/test_open.html', $this->url()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/Tests/SeleniumTestCase/SeleneseFileTest.php: -------------------------------------------------------------------------------- 1 | assertSame($dataProvider, 'dataProviderValue'); 16 | $this->assertSame($depends, 'dependsValue'); 17 | } 18 | 19 | public function exampleDataProvider() 20 | { 21 | return array( 22 | array('dataProviderValue'), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/after_script.sh: -------------------------------------------------------------------------------- 1 | killall php 2 | killall python 3 | killall java 4 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.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-selenium/phpunit-selenium-bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | CamelCase page 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/banner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/advanced-oop-in-php-with-tests/b2ed5991454be9a55b39ca307628e79e37da1db6/vendor/phpunit/phpunit-selenium/selenium-1-tests/html/banner.gif -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_count.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test count 4 | 5 | 6 | This is a test of the count* commands. 7 | 8 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_delayed_element.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Delayed element 5 | 18 | 19 | 20 | banner
21 |

This is a page with slow-loading (delayed) element.

22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_dummy_page.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | Dummy Page 19 | 21 | 22 | 23 | This is a dummy page. 24 | 25 | 26 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_element_selection.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
Other div
4 |
The right div
5 |
Other div
6 |
Child span
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_form_elements.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_frames.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | This page contains frames. 5 |