├── .gitignore
├── README.md
├── bin
├── dbunit
├── init.php
├── phpcov
├── phpcpd
├── phpdcd
├── phploc
├── phpunit
└── phpunit-skelgen
├── build.sh
├── composer.json
└── src
├── dbunit
├── .gitattributes
├── .gitignore
├── 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
├── dbunit.bat
├── dbunit.php
├── package.xml
└── phpunit.xml.dist
├── finder-facade-fix
└── SebastianBergmann
│ └── FinderFacade
│ ├── Configuration.php
│ ├── FinderFacade.php
│ ├── autoload.php
│ └── autoload.php.in
├── php-code-coverage
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── 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
│ │ │ │ ├── close12_1.gif
│ │ │ │ ├── container-min.js
│ │ │ │ ├── container.css
│ │ │ │ ├── dashboard.html.dist
│ │ │ │ ├── directory.html.dist
│ │ │ │ ├── directory.png
│ │ │ │ ├── directory_item.html.dist
│ │ │ │ ├── file.html.dist
│ │ │ │ ├── file.png
│ │ │ │ ├── file_item.html.dist
│ │ │ │ ├── file_no_yui.html.dist
│ │ │ │ ├── glass.png
│ │ │ │ ├── highcharts.js
│ │ │ │ ├── jquery.min.js
│ │ │ │ ├── method_item.html.dist
│ │ │ │ ├── style.css
│ │ │ │ ├── yahoo-dom-event.js
│ │ │ │ └── yui_item.js
│ │ ├── Node.php
│ │ ├── Node
│ │ │ ├── Directory.php
│ │ │ ├── File.php
│ │ │ └── Iterator.php
│ │ ├── PHP.php
│ │ └── Text.php
│ │ └── Util.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
│ │ ├── CoverageFunctionTest.php
│ │ ├── CoverageMethodTest.php
│ │ ├── CoverageNoneTest.php
│ │ ├── CoverageNotPrivateTest.php
│ │ ├── CoverageNotProtectedTest.php
│ │ ├── CoverageNotPublicTest.php
│ │ ├── CoveragePrivateTest.php
│ │ ├── CoverageProtectedTest.php
│ │ ├── CoveragePublicTest.php
│ │ ├── CoveredClass.php
│ │ ├── CoveredFunction.php
│ │ ├── NamespaceCoverageClassExtendedTest.php
│ │ ├── NamespaceCoverageClassTest.php
│ │ ├── NamespaceCoverageMethodTest.php
│ │ ├── NamespaceCoverageNotPrivateTest.php
│ │ ├── NamespaceCoverageNotProtectedTest.php
│ │ ├── NamespaceCoverageNotPublicTest.php
│ │ ├── NamespaceCoveragePrivateTest.php
│ │ ├── NamespaceCoverageProtectedTest.php
│ │ ├── NamespaceCoveragePublicTest.php
│ │ ├── NamespaceCoveredClass.php
│ │ ├── NotExistingCoveredElementTest.php
│ │ ├── ignored-lines-clover.xml
│ │ ├── source_with_ignore.php
│ │ ├── source_with_namespace.php
│ │ ├── source_without_ignore.php
│ │ └── source_without_namespace.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
├── phpunit.xml.dist
└── scripts
│ ├── auto_append.php
│ └── auto_prepend.php
├── php-file-iterator
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── File
│ ├── Iterator.php
│ └── Iterator
│ │ ├── Autoload.php
│ │ ├── Autoload.php.in
│ │ ├── Facade.php
│ │ └── Factory.php
├── LICENSE
├── README.markdown
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
└── package.xml
├── php-text-template
├── .gitattributes
├── .gitignore
├── 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
└── package.xml
├── php-timer
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── LICENSE
├── PHP
│ ├── Timer.php
│ └── Timer
│ │ ├── Autoload.php
│ │ └── Autoload.php.in
├── README.markdown
├── Tests
│ └── TimerTest.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
└── phpunit.xml.dist
├── php-token-stream
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── LICENSE
├── PHP
│ ├── Token.php
│ └── Token
│ │ ├── Stream.php
│ │ └── Stream
│ │ ├── Autoload.php
│ │ ├── Autoload.php.in
│ │ └── CachingFactory.php
├── README.markdown
├── Tests
│ ├── Token
│ │ ├── ClassTest.php
│ │ ├── FunctionTest.php
│ │ ├── IncludeTest.php
│ │ ├── InterfaceTest.php
│ │ └── NamespaceTest.php
│ ├── TokenTest.php
│ └── _files
│ │ ├── classExtendsNamespacedClass.php
│ │ ├── classInNamespace.php
│ │ ├── classInScopedNamespace.php
│ │ ├── issue19.php
│ │ ├── multipleNamespacesWithOneClassUsingBraces.php
│ │ ├── multipleNamespacesWithOneClassUsingNonBraceSyntax.php
│ │ ├── source.php
│ │ ├── source2.php
│ │ ├── source3.php
│ │ └── source4.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
└── phpunit.xml.dist
├── php
└── ezc
│ ├── Base
│ ├── base.php
│ ├── base_autoload.php
│ ├── exceptions
│ │ ├── autoload.php
│ │ ├── double_class_repository_prefix.php
│ │ ├── exception.php
│ │ ├── extension_not_found.php
│ │ ├── file_exception.php
│ │ ├── file_io.php
│ │ ├── file_not_found.php
│ │ ├── file_permission.php
│ │ ├── functionality_not_supported.php
│ │ ├── init_callback_configured.php
│ │ ├── invalid_callback_class.php
│ │ ├── invalid_parent_class.php
│ │ ├── property_not_found.php
│ │ ├── property_permission.php
│ │ ├── setting_not_found.php
│ │ ├── setting_value.php
│ │ ├── value.php
│ │ └── whatever.php
│ ├── ezc_bootstrap.php
│ ├── features.php
│ ├── file.php
│ ├── init.php
│ ├── interfaces
│ │ ├── configuration_initializer.php
│ │ ├── exportable.php
│ │ └── persistable.php
│ ├── metadata.php
│ ├── metadata
│ │ ├── pear.php
│ │ └── tarball.php
│ ├── options.php
│ ├── options
│ │ └── autoload.php
│ ├── struct.php
│ └── structs
│ │ ├── file_find_context.php
│ │ └── repository_directory.php
│ ├── ConsoleTools
│ ├── console_autoload.php
│ ├── dialog
│ │ ├── menu_dialog.php
│ │ ├── question_dialog.php
│ │ └── validators
│ │ │ ├── menu_dialog_default.php
│ │ │ ├── question_dialog_collection.php
│ │ │ ├── question_dialog_mapping.php
│ │ │ ├── question_dialog_regex.php
│ │ │ └── question_dialog_type.php
│ ├── dialog_viewer.php
│ ├── exceptions
│ │ ├── argument.php
│ │ ├── argument_already_registered.php
│ │ ├── argument_mandatory_violation.php
│ │ ├── argument_too_many.php
│ │ ├── argument_type_violation.php
│ │ ├── dialog_abort.php
│ │ ├── exception.php
│ │ ├── invalid_option_name.php
│ │ ├── invalid_output_target.php
│ │ ├── no_position_stored.php
│ │ ├── no_valid_dialog_result.php
│ │ ├── option.php
│ │ ├── option_already_registered.php
│ │ ├── option_arguments_violation.php
│ │ ├── option_dependency_violation.php
│ │ ├── option_exclusion_violation.php
│ │ ├── option_mandatory_violation.php
│ │ ├── option_missing_value.php
│ │ ├── option_no_alias.php
│ │ ├── option_not_exists.php
│ │ ├── option_string_not_wellformed.php
│ │ ├── option_too_many_values.php
│ │ └── option_type_violation.php
│ ├── input.php
│ ├── input
│ │ ├── argument.php
│ │ ├── arguments.php
│ │ ├── help_generators
│ │ │ └── standard.php
│ │ ├── option.php
│ │ └── validators
│ │ │ └── standard.php
│ ├── interfaces
│ │ ├── dialog.php
│ │ ├── dialog_validator.php
│ │ ├── input_help_generator.php
│ │ ├── input_validator.php
│ │ ├── menu_dialog_validator.php
│ │ └── question_dialog_validator.php
│ ├── options
│ │ ├── dialog.php
│ │ ├── menu_dialog.php
│ │ ├── output.php
│ │ ├── progressbar.php
│ │ ├── progressmonitor.php
│ │ ├── question_dialog.php
│ │ ├── statusbar.php
│ │ └── table.php
│ ├── output.php
│ ├── progressbar.php
│ ├── progressmonitor.php
│ ├── statusbar.php
│ ├── structs
│ │ ├── option_rule.php
│ │ ├── output_format.php
│ │ └── output_formats.php
│ ├── table.php
│ ├── table
│ │ ├── cell.php
│ │ └── row.php
│ └── tools
│ │ └── string.php
│ └── autoload
│ ├── base_autoload.php
│ └── console_autoload.php
├── phpcov
├── .gitattributes
├── .gitignore
├── PHP
│ └── CodeCoverage
│ │ └── TextUI
│ │ └── Command.php
├── README.markdown
├── package.xml
├── phpcov.bat
└── phpcov.php
├── phpcpd
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── LICENSE
├── README.markdown
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ ├── package.xml
│ ├── phpdox.xml
│ └── phpmd.xml
├── phpcpd.bat
├── phpcpd.php
├── src
│ ├── CodeClone.php
│ ├── CodeCloneMap.php
│ ├── Detector
│ │ ├── Detector.php
│ │ └── Strategy
│ │ │ ├── Abstract.php
│ │ │ ├── Default.php
│ │ │ └── MemoryConserving.php
│ ├── Log
│ │ ├── AbstractXmlLogger.php
│ │ └── PMD.php
│ ├── TextUI
│ │ ├── Command.php
│ │ └── ResultPrinter.php
│ ├── autoload.php
│ └── autoload.php.in
└── tests
│ ├── DetectorTest.php
│ └── _files
│ └── Math.php
├── phpdcd
├── .gitattributes
├── .gitignore
├── PHPDCD
│ ├── Autoload.php
│ ├── Autoload.php.in
│ ├── Detector.php
│ └── TextUI
│ │ ├── Command.php
│ │ └── ResultPrinter.php
├── README.markdown
├── Tests
│ ├── DetectorTest.php
│ └── _files
│ │ ├── declarations.php
│ │ ├── function_call.php
│ │ ├── function_call2.php
│ │ ├── issue_5.php
│ │ ├── method_call.php
│ │ └── static_method_call.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
├── phpdcd.bat
├── phpdcd.php
└── phpunit.xml.dist
├── phploc
├── .gitattributes
├── .gitignore
├── PHPLOC
│ ├── Analyser.php
│ ├── Autoload.php
│ ├── Autoload.php.in
│ └── TextUI
│ │ ├── Command.php
│ │ └── ResultPrinter
│ │ ├── CSV.php
│ │ ├── Text.php
│ │ └── XML.php
├── README.markdown
├── Tests
│ ├── AnalyzerTest.php
│ └── _files
│ │ ├── source.php
│ │ ├── tests.php
│ │ └── twoTestsThatIndirectlyExtendPHPUnitTestCase.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
├── phploc.bat
├── phploc.php
└── phpunit.xml.dist
├── phpunit-mock-objects
├── .gitattributes
├── .gitignore
├── 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
│ │ ├── Mockable.php
│ │ ├── PartialMockTestClass.php
│ │ ├── SomeClass.php
│ │ └── StaticMockTestClass.php
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
└── phpunit.xml.dist
├── phpunit-selenium
├── .gitignore
├── .gitmodules
├── .travis.yml
├── ChangeLog.markdown
├── LICENSE
├── PHPUnit
│ └── Extensions
│ │ ├── Selenium2TestCase.php
│ │ ├── Selenium2TestCase
│ │ ├── Command.php
│ │ ├── CommandsHolder.php
│ │ ├── Driver.php
│ │ ├── Element.php
│ │ ├── Element
│ │ │ └── Select.php
│ │ ├── ElementCommand
│ │ │ ├── Attribute.php
│ │ │ ├── Click.php
│ │ │ ├── Css.php
│ │ │ ├── Equals.php
│ │ │ ├── GenericAccessor.php
│ │ │ ├── GenericPost.php
│ │ │ └── Value.php
│ │ ├── ElementCriteria.php
│ │ ├── Exception.php
│ │ ├── Response.php
│ │ ├── Session.php
│ │ ├── Session
│ │ │ ├── Cookie.php
│ │ │ ├── Cookie
│ │ │ │ └── Builder.php
│ │ │ ├── Storage.php
│ │ │ └── Timeouts.php
│ │ ├── SessionCommand
│ │ │ ├── AcceptAlert.php
│ │ │ ├── AlertText.php
│ │ │ ├── DismissAlert.php
│ │ │ ├── Frame.php
│ │ │ ├── GenericAccessor.php
│ │ │ ├── Url.php
│ │ │ └── Window.php
│ │ ├── SessionStrategy.php
│ │ ├── SessionStrategy
│ │ │ ├── Isolated.php
│ │ │ └── Shared.php
│ │ ├── StateCommand.php
│ │ ├── URL.php
│ │ └── Window.php
│ │ ├── SeleniumBrowserSuite.php
│ │ ├── SeleniumTestCase.php
│ │ ├── SeleniumTestCase
│ │ ├── Autoload.php
│ │ ├── Autoload.php.in
│ │ ├── Driver.php
│ │ ├── append.php
│ │ ├── phpunit_coverage.php
│ │ └── prepend.php
│ │ └── SeleniumTestSuite.php
├── README.txt
├── Tests
│ ├── Selenium2TestCase
│ │ ├── BaseTestCase.php
│ │ ├── FailuresTest.php
│ │ ├── PageObjectTest.php
│ │ └── URLTest.php
│ ├── Selenium2TestCaseTest.php
│ ├── SeleniumTestCase
│ │ ├── FailuresTest.php
│ │ ├── MultipleBrowsersTest.php
│ │ ├── RegressionsTest.php
│ │ ├── SkippedTest.php
│ │ ├── SuiteBuildingTest.php
│ │ └── Ticket114Test.php
│ └── SeleniumTestCaseTest.php
├── before_script.sh
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
├── phpunit-selenium-bootstrap.php
├── phpunit.xml.dist
├── run-phpunit.php
└── selenium-1-tests
│ └── html
│ ├── CamelCasePage.html
│ ├── test_check_uncheck.html
│ ├── test_click_javascript_page.html
│ ├── test_click_page1.html
│ ├── test_click_page2.html
│ ├── test_confirm.html
│ ├── test_delayed_element.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_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_slowloading_page.html
│ ├── test_store_value.html
│ ├── test_submit.html
│ ├── test_type_page1.html
│ ├── test_type_page2.html
│ ├── test_verifications.html
│ ├── test_verify_alert.html
│ ├── test_visibility.html
│ └── test_wait.html
├── phpunit-skeleton-generator
├── .gitignore
├── ChangeLog.markdown
├── LICENSE
├── PHPUnit
│ ├── SkeletonGenerator.php
│ └── SkeletonGenerator
│ │ ├── Autoload.php
│ │ ├── Autoload.php.in
│ │ ├── Class.php
│ │ ├── Template
│ │ ├── Class.tpl.dist
│ │ ├── IncompleteTestMethod.tpl.dist
│ │ ├── Method.tpl.dist
│ │ ├── TestClass.tpl.dist
│ │ ├── TestMethod.tpl.dist
│ │ ├── TestMethodBool.tpl.dist
│ │ ├── TestMethodBoolStatic.tpl.dist
│ │ ├── TestMethodException.tpl.dist
│ │ ├── TestMethodExceptionStatic.tpl.dist
│ │ └── TestMethodStatic.tpl.dist
│ │ ├── Test.php
│ │ └── TextUI
│ │ └── Command.php
├── README.markdown
├── Tests
│ ├── _fixture
│ │ ├── BankAccount.php
│ │ ├── BankAccountNS.php
│ │ └── BankAccountTest.php
│ ├── class-from-test.phpt
│ ├── test-from-class.phpt
│ └── test-from-namespaced-class.phpt
├── build.xml
├── build
│ ├── PHPCS
│ │ ├── Sniffs
│ │ │ ├── ControlStructures
│ │ │ │ └── ControlSignatureSniff.php
│ │ │ └── Whitespace
│ │ │ │ └── ConcatenationSpacingSniff.php
│ │ └── ruleset.xml
│ └── phpmd.xml
├── package.xml
├── phpunit-skelgen.bat
├── phpunit-skelgen.php
└── phpunit.xml.dist
└── phpunit
├── .gitattributes
├── .gitignore
├── ChangeLog.markdown
├── LICENSE
├── PHPUnit
├── Autoload.php
├── Autoload.php.in
├── Extensions
│ ├── GroupTestSuite.php
│ ├── OutputTestCase.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
│ │ ├── 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
│ │ ├── IsNull.php
│ │ ├── IsTrue.php
│ │ ├── IsType.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
│ ├── File.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
│ ├── Skeleton.php
│ ├── Skeleton
│ ├── Class.php
│ ├── Template
│ │ ├── Class.tpl.dist
│ │ ├── IncompleteTestMethod.tpl.dist
│ │ ├── Method.tpl.dist
│ │ ├── TestClass.tpl.dist
│ │ ├── TestMethod.tpl.dist
│ │ ├── TestMethodBool.tpl.dist
│ │ ├── TestMethodBoolStatic.tpl.dist
│ │ ├── TestMethodException.tpl.dist
│ │ ├── TestMethodExceptionStatic.tpl.dist
│ │ └── TestMethodStatic.tpl.dist
│ └── Test.php
│ ├── String.php
│ ├── Test.php
│ ├── TestDox
│ ├── NamePrettifier.php
│ ├── ResultPrinter.php
│ └── ResultPrinter
│ │ ├── HTML.php
│ │ └── Text.php
│ ├── TestSuiteIterator.php
│ ├── Type.php
│ └── XML.php
├── README.markdown
├── Tests
├── Extensions
│ └── RepeatedTestTest.php
├── Framework
│ ├── AssertTest.php
│ ├── ComparatorTest.php
│ ├── ConstraintTest.php
│ ├── SuiteTest.php
│ ├── TestCaseTest.php
│ ├── TestImplementorTest.php
│ └── TestListenerTest.php
├── Regression
│ ├── 578
│ │ └── Issue578Test.php
│ ├── 684
│ │ └── Issue684Test.php
│ ├── 783
│ │ ├── ChildSuite.php
│ │ ├── OneTest.php
│ │ ├── ParentSuite.php
│ │ └── TwoTest.php
│ ├── 1021
│ │ └── Issue1021Test.php
│ ├── 1021.phpt
│ ├── 578.phpt
│ ├── 684.phpt
│ ├── 783.phpt
│ └── GitHub
│ │ ├── 74
│ │ ├── Issue74Test.php
│ │ └── NewException.php
│ │ ├── 244
│ │ └── Issue244Test.php
│ │ ├── 433
│ │ └── Issue433Test.php
│ │ ├── 445
│ │ └── Issue445Test.php
│ │ ├── 503
│ │ └── Issue503Test.php
│ │ ├── 244.phpt
│ │ ├── 433.phpt
│ │ ├── 445.phpt
│ │ ├── 503.phpt
│ │ └── 74.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
│ ├── exclude-group-isolation.phpt
│ ├── exclude-group.phpt
│ ├── failure-isolation.phpt
│ ├── failure.phpt
│ ├── filter-class-isolation.phpt
│ ├── filter-class.phpt
│ ├── filter-method-isolation.phpt
│ ├── filter-method.phpt
│ ├── group-isolation.phpt
│ ├── group.phpt
│ ├── help.phpt
│ ├── help2.phpt
│ ├── list-groups.phpt
│ ├── log-json.phpt
│ ├── log-tap.phpt
│ ├── log-xml.phpt
│ ├── skeleton.phpt
│ ├── strict-incomplete.phpt
│ ├── strict-isolation.phpt
│ ├── strict.phpt
│ ├── tap.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
│ ├── Book.php
│ ├── Calculator.php
│ ├── ClassWithNonPublicAttributes.php
│ ├── ClassWithToString.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
│ ├── ExceptionTest.php
│ ├── Failure.php
│ ├── FailureTest.php
│ ├── IncompleteTest.php
│ ├── InheritedTestCase.php
│ ├── MockRunner.php
│ ├── MultiDependencyTest.php
│ ├── NoArgTestCaseTest.php
│ ├── NoTestCaseClass.php
│ ├── NoTestCases.php
│ ├── NonStatic.php
│ ├── NotPublicTestCase.php
│ ├── NotVoidTestCase.php
│ ├── NothingTest.php
│ ├── OneTestCase.php
│ ├── OutputTestCase.php
│ ├── OverrideTestCase.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
│ ├── expectedFileFormat.txt
│ ├── foo.xml
│ ├── structureAttributesAreSameButValuesAreNot.xml
│ ├── structureExpected.xml
│ ├── structureIgnoreTextNodes.xml
│ ├── structureIsSameButDataIsNot.xml
│ ├── structureWrongNumberOfAttributes.xml
│ └── structureWrongNumberOfNodes.xml
├── build.xml
├── build
├── PHPCS
│ ├── Sniffs
│ │ └── Whitespace
│ │ │ └── ConcatenationSpacingSniff.php
│ └── ruleset.xml
├── assertions.php
├── create-phar.php
└── phpmd.xml
├── package.xml
├── phpunit.bat
├── phpunit.php
└── phpunit.xml.dist
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | *.swp
3 | composer.lock
4 | composer.phar
5 | vendor
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHPUnit All in One
2 |
3 | That's another way to install PHPUnit without the PEAR
4 |
5 | ## Git
6 |
7 | Just clone and run
8 |
9 | ./bin/phpunit
10 |
11 | or
12 |
13 | /path/to/phpunit-all-in-one/bin/phpunit
14 |
15 |
16 | ## Composer
17 |
18 | Add ["EHER/PHPUnit"](http://packagist.org/packages/EHER/PHPUnit) package to your composer.json file
19 |
20 | {
21 | "require": {
22 | "php": ">=5.3.2",
23 | "EHER/PHPUnit": ">=1.2"
24 | }
25 | }
26 |
27 | After install/update vendors with Composer, you can simply run
28 |
29 | php vendor/EHER/PHPUnit/phpunit.php
30 |
31 |
32 |
33 | [](https://bitdeli.com/free "Bitdeli Badge")
34 |
35 |
--------------------------------------------------------------------------------
/bin/dbunit:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | addFileToBlacklist(__FILE__, 'PHPUNIT');
10 | }
11 |
12 | $command = new PHPUnit_Extensions_Database_UI_Command(
13 | new PHPUnit_Extensions_Database_UI_ModeFactory()
14 | );
15 |
16 | $command->main(
17 | new PHPUnit_Extensions_Database_UI_Mediums_Text($_SERVER['argv']),
18 | new PHPUnit_Extensions_Database_UI_Context()
19 | );
20 |
--------------------------------------------------------------------------------
/bin/phpcov:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | =5.3.0",
6 | "symfony/finder": "v2.0.16"
7 | },
8 | "bin": ["bin/dbunit", "bin/phpcov", "bin/phpcpd", "bin/phpdcd", "bin/phploc", "bin/phpunit", "bin/phpunit-skelgen"]
9 | }
10 |
--------------------------------------------------------------------------------
/src/dbunit/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/dbunit/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/dbunit/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | DbUnit 1.1
2 | ==========
3 |
4 | This is the list of changes for the DbUnit 1.1 release series.
5 |
6 | DbUnit 1.1.2
7 | -------------
8 |
9 | * `PHPUnit_Extensions_Database_Constraint_TableIsEqual` did not work with PHPUnit 3.6 and DbUnit 1.1.
10 |
11 | DbUnit 1.1.1
12 | -------------
13 |
14 | * `PHPUnit_Extensions_Database_TestCase` test cases did not work at all with PHPUnit 3.6 and DbUnit 1.1.
15 |
16 | DbUnit 1.1.0
17 | -------------
18 |
19 | * Added support for MS SQL Server.
20 | * Added `assertTableRowCount()`.
21 |
--------------------------------------------------------------------------------
/src/dbunit/Samples/BankAccountDB/_files/bank-account-after-deposits.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/dbunit/Samples/BankAccountDB/_files/bank-account-after-new-account.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/dbunit/Samples/BankAccountDB/_files/bank-account-after-withdrawals.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/dbunit/Samples/BankAccountDB/_files/bank-account-seed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/DB/DefaultDatabaseConnectionTest.php:
--------------------------------------------------------------------------------
1 | db = new PDO('sqlite::memory:');
9 | $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
10 | $this->db->exec('CREATE TABLE test (field1 VARCHAR(100))');
11 | }
12 |
13 | public function testRowCountForEmptyTableReturnsZero()
14 | {
15 | $conn = new PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection($this->db);
16 | $this->assertEquals(0, $conn->getRowCount('test'));
17 | }
18 |
19 | public function testRowCountForTableWithTwoRowsReturnsTwo()
20 | {
21 | $this->db->exec('INSERT INTO test (field1) VALUES (\'foobar\')');
22 | $this->db->exec('INSERT INTO test (field1) VALUES (\'foobarbaz\')');
23 |
24 | $conn = new PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection($this->db);
25 | $this->assertEquals(2, $conn->getRowCount('test'));
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/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
--------------------------------------------------------------------------------
/src/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"
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/AllEmptyTableInsertResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/AllEmptyTableInsertTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/DeleteAllOperationTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/DeleteOperationResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/DeleteOperationTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/EmptyTableInsertResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/EmptyTableInsertTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/FilteredTestComparison.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/FilteredTestFixture.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/FlatXmlDataSet.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/FlatXmlWriter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
13 |
18 |
19 |
24 |
28 |
32 |
33 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/FlatXmlWriterEntities.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/InsertOperationResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/InsertOperationTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/OperationsMySQLTestFixture.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/OperationsTestFixture.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/QueryDataSetTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
17 |
24 |
31 |
32 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/ReplaceOperationResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/ReplaceOperationTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/RowBasedExecute.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/UpdateOperationResult.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/XmlDataSets/UpdateOperationTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/dbunit/Tests/_files/YamlDataSets/testDataSet.yaml:
--------------------------------------------------------------------------------
1 | table1:
2 | -
3 | table1_id: 1
4 | column1: "tgfahgasdf"
5 | column2: 200
6 | column3: 34.64
7 | column4: "yghkf;a hahfg8ja h;"
8 | -
9 | table1_id: 2
10 | column1: "hk;afg"
11 | column2: 654
12 | column3: 46.54
13 | column4: 24rwehhads
14 | extraColumn: 'causes no worries'
15 | -
16 | table1_id: 3
17 | column1: ha;gyt
18 | column2: 462
19 | column3: 1654.4
20 | column4: asfgklg
21 | table2:
22 | -
23 | table2_id: 1
24 | column5: fhah
25 | column6: 456
26 | column7: 46.5
27 | column8: "fsdb, ghfdas"
28 | -
29 | table2_id: 2
30 | column5: asdhfoih
31 | column6: 654
32 | column7: blah
33 | column8: "43asd \"fhgj\" sfadh"
34 | -
35 | table2_id: 3
36 | column5: ajsdlkfguitah
37 | column6: 654
38 | column7: blah
39 | column8: |-
40 | thesethasdl
41 | asdflkjsadf asdfsadfhl "adsf, halsdf" sadfhlasdf
42 |
43 | emptyTable:
44 |
45 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-code-coverage/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/php-code-coverage/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/close12_1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EHER/phpunit-all-in-one/06993af272175abda34da556c7a19c447dcbb4b5/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/close12_1.gif
--------------------------------------------------------------------------------
/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EHER/phpunit-all-in-one/06993af272175abda34da556c7a19c447dcbb4b5/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/directory.png
--------------------------------------------------------------------------------
/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EHER/phpunit-all-in-one/06993af272175abda34da556c7a19c447dcbb4b5/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/file.png
--------------------------------------------------------------------------------
/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EHER/phpunit-all-in-one/06993af272175abda34da556c7a19c447dcbb4b5/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/glass.png
--------------------------------------------------------------------------------
/src/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/yui_item.js:
--------------------------------------------------------------------------------
1 | "panel{line}": {
2 | "header": "{header}",
3 | "body": "
",
4 | "footer": ""
5 | },
6 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageClassExtendedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageClassTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageFunctionTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageNoneTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageNotPrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageNotProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageNotPublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoveragePrivateTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoverageProtectedTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/CoveragePublicTest.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 | public function testSomething()
8 | {
9 | $o = new CoveredClass;
10 | $o->publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/NamespaceCoverageClassTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/NamespaceCoverageMethodTest.php:
--------------------------------------------------------------------------------
1 | publicMethod();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/NotExistingCoveredElementTest.php:
--------------------------------------------------------------------------------
1 |
20 | */
21 | public function testThree()
22 | {
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/php-code-coverage/Tests/_files/source_with_ignore.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 |
--------------------------------------------------------------------------------
/src/php-code-coverage/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 | Tests/PHP
10 |
11 |
12 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | PHP
24 |
25 | PHP/CodeCoverage/Autoload.php
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/php-code-coverage/scripts/auto_append.php:
--------------------------------------------------------------------------------
1 | stop();
3 |
4 | $writer = new PHP_CodeCoverage_Report_HTML;
5 | $writer->process($coverage, '/tmp/coverage');
6 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-file-iterator/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/php-file-iterator/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/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.1
7 | -------------------
8 |
9 | * Fixed infinite loop in `File_Iterator_Facade::getCommonPath()` for empty directories.
10 |
11 | File_Iterator 1.3.0
12 | -------------------
13 |
14 | * Added `File_Iterator_Facade` for the most common use case.
15 | * Moved `File_Iterator_Factory::getFilesAsArray()` to `File_Iterator_Facade::getFilesAsArray()`.
16 | * `File_Iterator_Factory` is no longer static.
17 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-text-template/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/php-text-template/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/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.1
7 | -------------------
8 |
9 | * No changes.
10 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-timer/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/php-timer/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/php-timer/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | PHP_Timer 1.0
2 | =============
3 |
4 | This is the list of changes for the PHP_Timer 1.0 release series.
5 |
6 | PHP_Timer 1.0.2
7 | ---------------
8 |
9 | * `$_SERVER['REQUEST_TIME_FLOAT']` is used when available.
10 |
11 | PHP_Timer 1.0.1
12 | ---------------
13 |
14 | * No changes.
15 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-token-stream/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/php-token-stream/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/php-token-stream/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | PHP_TokenStream 1.1
2 | ===================
3 |
4 | This is the list of changes for the PHP_TokenStream 1.1 release series.
5 |
6 | PHP_TokenStream 1.1.3
7 | ---------------------
8 |
9 | * Added class for the `T_TRAIT_C` token that was added in PHP 5.4.
10 |
11 | PHP_TokenStream 1.1.2
12 | ---------------------
13 |
14 | * Added classes for the `T_CALLABLE` and `T_INSTEADOF` tokens that were added in PHP 5.4.
15 | * Added support for namespaced functions.
16 |
17 | PHP_TokenStream 1.1.1
18 | ---------------------
19 |
20 | * Fixed issue #19: Notice in `PHP_Token_INTERFACE::hasInterfaces()`.
21 |
22 | PHP_TokenStream 1.1.0
23 | ---------------------
24 |
25 | * Moved `phptok` tool to separate package.
26 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/php-token-stream/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Tests
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | PHP
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/file_exception.php:
--------------------------------------------------------------------------------
1 |
26 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/functionality_not_supported.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/invalid_callback_class.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/invalid_parent_class.php:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/property_not_found.php:
--------------------------------------------------------------------------------
1 |
31 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/exceptions/setting_not_found.php:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/interfaces/configuration_initializer.php:
--------------------------------------------------------------------------------
1 |
33 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/interfaces/exportable.php:
--------------------------------------------------------------------------------
1 |
34 |
--------------------------------------------------------------------------------
/src/php/ezc/Base/struct.php:
--------------------------------------------------------------------------------
1 |
43 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/argument.php:
--------------------------------------------------------------------------------
1 |
24 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/argument_mandatory_violation.php:
--------------------------------------------------------------------------------
1 | name}' is mandatory but was not submitted." );
30 | }
31 | }
32 |
33 | ?>
34 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/dialog_abort.php:
--------------------------------------------------------------------------------
1 | -D to a dialog instead of a valid answer.
13 | *
14 | * @package ConsoleTools
15 | * @version //autogen//
16 | */
17 | class ezcConsoleDialogAbortException extends ezcConsoleException
18 | {
19 | /**
20 | * Creates a new exception object.
21 | *
22 | * @param string $name Name of the already existing option.
23 | * @return void
24 | */
25 | public function __construct()
26 | {
27 | parent::__construct( "User send EOF." );
28 | }
29 | }
30 | ?>
31 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/exception.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/invalid_option_name.php:
--------------------------------------------------------------------------------
1 |
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/invalid_output_target.php:
--------------------------------------------------------------------------------
1 |
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/no_position_stored.php:
--------------------------------------------------------------------------------
1 |
31 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/no_valid_dialog_result.php:
--------------------------------------------------------------------------------
1 |
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option.php:
--------------------------------------------------------------------------------
1 |
23 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_already_registered.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_mandatory_violation.php:
--------------------------------------------------------------------------------
1 | long}' is mandatory but was not submitted." );
29 | }
30 | }
31 |
32 | ?>
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_missing_value.php:
--------------------------------------------------------------------------------
1 | long}' expects a value, but none was submitted." );
29 | }
30 | }
31 |
32 | ?>
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_no_alias.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_not_exists.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_string_not_wellformed.php:
--------------------------------------------------------------------------------
1 |
32 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/exceptions/option_too_many_values.php:
--------------------------------------------------------------------------------
1 | long}' expects a single value, but multiple were submitted." );
29 | }
30 | }
31 |
32 | ?>
33 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/interfaces/menu_dialog_validator.php:
--------------------------------------------------------------------------------
1 | string) Elements to display.
24 | */
25 | public function getElements();
26 |
27 | }
28 |
29 | ?>
30 |
--------------------------------------------------------------------------------
/src/php/ezc/ConsoleTools/interfaces/question_dialog_validator.php:
--------------------------------------------------------------------------------
1 |
31 |
--------------------------------------------------------------------------------
/src/phpcov/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/phpcov/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | phpunit.xml
3 |
--------------------------------------------------------------------------------
/src/phpcpd/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/phpcpd/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | build/phpdox
7 | build/SebastianBergmann
8 | build/phpcpd.bat
9 | build/phpcpd.php
10 | build/*.tgz
11 | cache.properties
12 | phpunit.xml
13 |
--------------------------------------------------------------------------------
/src/phpcpd/ChangeLog.markdown:
--------------------------------------------------------------------------------
1 | phpcpd
2 | ======
3 |
4 | This is the list of changes for the phpcpd 1.4 release series.
5 |
6 | phpcpd 1.4.0
7 | ------------
8 |
9 | * The `--verbose` switch now enables printing of the duplicated code lines.
10 | * The progress bar is no longer enabled with `--verbose` but with `--progress`.
11 | * The [Finder](http://symfony.com/doc/2.0/components/finder.html) component of the Symfony project is now used to find files.
12 | * Fixed #4: Incorrect reporting of duplicated lines when duplication occurs near end of tokens.
13 | * Fixed #18: Wrong result when `mbstring.func_overload` is enabled.
14 | * PHP 5.3.3 is now required to use PHPCPD.
15 |
--------------------------------------------------------------------------------
/src/phpcpd/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 |
--------------------------------------------------------------------------------
/src/phpcpd/build/phpdox.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/phpdcd/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/phpdcd/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/phpdcd/Tests/_files/declarations.php:
--------------------------------------------------------------------------------
1 | getClass()->test = 'a';
9 | }
10 | }
11 |
12 | $a = new Test();
13 | $a->callClass();
14 |
--------------------------------------------------------------------------------
/src/phpdcd/Tests/_files/method_call.php:
--------------------------------------------------------------------------------
1 | aMethod();
4 |
--------------------------------------------------------------------------------
/src/phpdcd/Tests/_files/static_method_call.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 |
--------------------------------------------------------------------------------
/src/phpdcd/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 | Tests
10 |
11 |
12 |
13 |
14 | PHPDCD
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/phploc/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/phploc/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/phploc/Tests/_files/source.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 |
--------------------------------------------------------------------------------
/src/phploc/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | Tests
9 |
10 |
11 |
12 |
13 | PHPLOC
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/.gitattributes:
--------------------------------------------------------------------------------
1 | *.php diff=php
2 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | cache.properties
7 | phpunit.xml
8 |
--------------------------------------------------------------------------------
/src/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.0
7 | ------------------------
8 |
9 | * Implemented #47: Make cloning of arguments passed to mocked methods optional.
10 | * Implemented #84: `getMockFromWsdl()` now works with namespaces.
11 | * Fixed #90: Mocks with a fixed class name could only be created once.
12 |
13 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist:
--------------------------------------------------------------------------------
1 | public function __clone()
2 | {
3 | $this->invocationMocker = clone $this->__phpunit_getInvocationMocker();
4 | }
5 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/trait_class.tpl.dist:
--------------------------------------------------------------------------------
1 | class {class_name}
2 | {
3 | use {trait_name};
4 | }
5 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist:
--------------------------------------------------------------------------------
1 | public function __clone()
2 | {
3 | $this->invocationMocker = clone $this->__phpunit_getInvocationMocker();
4 | parent::__clone();
5 | }
6 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist:
--------------------------------------------------------------------------------
1 |
2 | public function {method_name}({arguments})
3 | {
4 | }
5 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/Tests/MockObject/wsdl_class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
3 | --SKIPIF--
4 |
7 | --FILE--
8 |
17 | --EXPECTF--
18 | class GoogleSearch extends SOAPClient
19 | {
20 | public function __construct($wsdl, array $options)
21 | {
22 | parent::__construct('%s/GoogleSearch.wsdl', $options);
23 | }
24 |
25 | public function doGetCachedPage($key, $url)
26 | {
27 | }
28 |
29 | public function doSpellingSuggestion($key, $phrase)
30 | {
31 | }
32 |
33 | public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
34 | {
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/phpunit-mock-objects/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Tests
11 | Tests
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | PHPUnit
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/.gitignore:
--------------------------------------------------------------------------------
1 | build/api
2 | build/code-browser
3 | build/coverage
4 | build/logs
5 | build/pdepend
6 | phpunit.xml
7 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 | php:
3 | - 5.2
4 | - 5.3
5 | before_script: ./before_script.sh
6 | script: "php run-phpunit.php"
7 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/README.txt:
--------------------------------------------------------------------------------
1 | This package contains a base Testcase Class that can be used to run end-to-end tests against Selenium 2 (using its Selenium 1 backward compatible Api).
2 | Please direct *pull requests* to giorgiosironi/phpunit-selenium for automated testing upon merging. A feature branch containing all the commits you want to prose works best.
3 |
4 | = Running the test suite =
5 | To run the test suite for this package, you should serve selenium-1-tests via HTTP:
6 | selenium-1-tests/ $ python -m SimpleHTTPServer 8080
7 | and configure the constant that you will be asked for accordingly.
8 | You also need to run a Selenium Server.
9 | $ java -jar java -jar selenium-server-standalone-2.x.xjar
10 | Dependencies are managed via git submodules.
11 | $ git submodule init
12 | $ git submodule update
13 | $ php run-phpunit.php
14 | You can copy phpunit.xml.dist to phpunit.xml and setup a custom configuration for browsers.
15 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/Tests/Selenium2TestCase/BaseTestCase.php:
--------------------------------------------------------------------------------
1 | markTestSkipped('Functionality available only under PHP 5.3.');
8 | }
9 | $this->setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST);
10 | $this->setPort((int)PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT);
11 | $this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER);
12 | if (!defined('PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL')) {
13 | $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.");
14 | }
15 | $this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/Tests/SeleniumTestCase/Ticket114Test.php:
--------------------------------------------------------------------------------
1 | setBrowser('firefox');
7 | $this->setBrowserUrl('http://www.example.com/');
8 | }
9 |
10 | public function testDependable()
11 | {
12 | return 'dependsValue';
13 | }
14 |
15 | /**
16 | * @dataProvider exampleDataProvider
17 | * @depends testDependable
18 | */
19 | public function testDependent($dataProvider, $depends)
20 | {
21 | $this->assertSame($dataProvider, 'dataProviderValue');
22 | $this->assertSame($depends, 'dependsValue');
23 | }
24 |
25 | public function exampleDataProvider()
26 | {
27 | return array(
28 | array('dataProviderValue'),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/before_script.sh:
--------------------------------------------------------------------------------
1 | git submodule init
2 | git submodule update
3 | cd vendor/phpunit
4 | git checkout 3.6
5 | cd -
6 | cd selenium-1-tests
7 | python -m SimpleHTTPServer 8080 > /dev/null 2>&1 &
8 | cd ..
9 | sh -e /etc/init.d/xvfb start
10 | export DISPLAY=:99.0
11 | wget http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar
12 | java -jar selenium-server-standalone-2.20.0.jar > /dev/null 2>&1 &
13 | sleep 30
14 |
--------------------------------------------------------------------------------
/src/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 |
--------------------------------------------------------------------------------
/src/phpunit-selenium/phpunit-selenium-bootstrap.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | CamelCase page
4 |
5 |
6 |
7 |