├── .deepsource.toml
├── .gitignore
├── LICENSE
├── README.md
├── Tests
└── TraderTest.php
├── composer.json
├── composer.lock
├── phpunit.xml
└── source
├── Trader.php
└── TraderTrait.php
/.deepsource.toml:
--------------------------------------------------------------------------------
1 | version = 1
2 |
3 | test_patterns = ["Tests/*Test.php"]
4 |
5 | [[analyzers]]
6 | name = "php"
7 | enabled = true
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !/.gitignore
3 | !/.gitlab-ci.yml
4 | /vendor/
5 | /logs/
6 | /metrics/
7 | *.bat
8 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 |
6 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
7 | Preamble
8 |
9 | The GNU General Public License is a free, copyleft license for software and other kinds of works.
10 |
11 | The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
12 |
13 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
14 |
15 | To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
16 |
17 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
18 |
19 | Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
20 |
21 | For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
22 |
23 | Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
24 |
25 | Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
26 |
27 | The precise terms and conditions for copying, distribution and modification follow.
28 | TERMS AND CONDITIONS
29 | 0. Definitions.
30 |
31 | “This License” refers to version 3 of the GNU General Public License.
32 |
33 | “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
34 |
35 | “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
36 |
37 | To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
38 |
39 | A “covered work” means either the unmodified Program or a work based on the Program.
40 |
41 | To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
42 |
43 | To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
44 |
45 | An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
46 | 1. Source Code.
47 |
48 | The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
49 |
50 | A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
51 |
52 | The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
53 |
54 | The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
55 |
56 | The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
57 |
58 | The Corresponding Source for a work in source code form is that same work.
59 | 2. Basic Permissions.
60 |
61 | All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
62 |
63 | You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
64 |
65 | Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
66 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
67 |
68 | No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
69 |
70 | When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
71 | 4. Conveying Verbatim Copies.
72 |
73 | You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
74 |
75 | You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
76 | 5. Conveying Modified Source Versions.
77 |
78 | You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
79 |
80 | a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
81 | b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
82 | c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
83 | d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
84 |
85 | A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
86 | 6. Conveying Non-Source Forms.
87 |
88 | You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
89 |
90 | a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
91 | b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
92 | c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
93 | d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
94 | e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
95 |
96 | A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
97 |
98 | A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
99 |
100 | “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
101 |
102 | If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
103 |
104 | The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
105 |
106 | Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
107 | 7. Additional Terms.
108 |
109 | “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
110 |
111 | When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
112 |
113 | Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
114 |
115 | a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
116 | b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
117 | c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
118 | d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
119 | e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
120 | f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
121 |
122 | All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
123 |
124 | If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
125 |
126 | Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
127 | 8. Termination.
128 |
129 | You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
130 |
131 | However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
132 |
133 | Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
134 |
135 | Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
136 | 9. Acceptance Not Required for Having Copies.
137 |
138 | You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
139 | 10. Automatic Licensing of Downstream Recipients.
140 |
141 | Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
142 |
143 | An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
144 |
145 | You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
146 | 11. Patents.
147 |
148 | A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
149 |
150 | A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
151 |
152 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
153 |
154 | In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
155 |
156 | If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
157 |
158 | If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
159 |
160 | A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
161 |
162 | Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
163 | 12. No Surrender of Others' Freedom.
164 |
165 | If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
166 | 13. Use with the GNU Affero General Public License.
167 |
168 | Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
169 | 14. Revised Versions of this License.
170 |
171 | The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
172 |
173 | Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
174 |
175 | If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
176 |
177 | Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
178 | 15. Disclaimer of Warranty.
179 |
180 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
181 | 16. Limitation of Liability.
182 |
183 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
184 | 17. Interpretation of Sections 15 and 16.
185 |
186 | If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
187 |
188 | END OF TERMS AND CONDITIONS
189 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHP Trader Interface
2 |
3 | This is an interface to the PHP Trader Extension.
4 | The PHP Trader Extension is available from .
5 | The extension and the source for it can be downloaded there.
6 |
7 | ### Requires the PHP Trader Extension to be installed.
8 |
9 | This project is just an interface to that extension, and does not work without it.
10 |
11 | If you cannot install the PECL extension, try the [PHP Trader Native](https://github.com/LupeCode/phpTraderNative) project instead.
12 |
13 | ### Requires PHP 7.0.0 or newer
14 |
15 | Variable types are set on all function parameters.
16 |
17 | ### Requires PECL Trader 0.4.1 or newer.
18 |
19 | If you are using version 0.4.0, see the branch `trader-0.4.0` for that.
20 |
21 | ## Purpose
22 |
23 | This package is meant to help when using the Trader PECL package.
24 | This is helpful if you do not have the code stub for the Trader Extension.
25 | Loading this interface will provide your IDE with the function information and auto completing.
26 |
27 | ## How to use
28 |
29 | Lets assume that you want to generate a correlation indicator.
30 | Instead of using
31 | `trader_correl($Open, $Close, 30)`
32 | You can now use the exact named
33 | `\LupeCode\phpTraderInterface\Trader::correl($Open, $Close, 30)`
34 | or the friendly named
35 | `\LupeCode\phpTraderInterface\Trader::pearsonCorrelationCoefficient($Open, $Close, 30)`
36 |
37 | ## Metrics & Coverage
38 | ### PHP Metrics Report
39 | To see the current report of metrics by PHP Metrics, visit [Metrics](https://projects.lupecode.com/phpTraderInterface/metrics/)
40 | ### PHP Unit Coverage
41 | To see the current report of coverage by PHP Unit, visit [Coverage](https://projects.lupecode.com/phpTraderInterface/logs/report/)
42 | ### PHP Unit Test Results
43 | * PHP 7.0 NTS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.0NTS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0NTS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0NTS.html)
44 | * PHP 7.0 TS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.0TS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0TS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0TS.html)
45 | * PHP 7.1 NTS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.1NTS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1NTS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1NTS.html)
46 | * PHP 7.1 TS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.1TS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1TS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1TS.html)
47 | * PHP 7.2 NTS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.2NTS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2NTS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.html)
48 | * PHP 7.2 TS [[XML]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.2TS.xml) [[TXT]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.txt) [[HTML]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.html)
49 |
50 | ## License
51 | Copyright (C) Lupe Code, LLC.; Joshua Lopez
52 |
53 | This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
54 |
55 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
56 |
57 | You should have received a copy of the GNU General Public License along with this program. If not, see .
58 |
--------------------------------------------------------------------------------
/Tests/TraderTest.php:
--------------------------------------------------------------------------------
1 |
13 | protected $Open =
14 | [
15 | '37.560001', '36.889999', '36.25', '35.580002', '35.869999', '36.400002', '37.639999', '37.369999',
16 | '37.369999', '37.27', '37.43', '37.389999', '37.43', '36.630001', '36.700001', '36.970001', '36.82',
17 | '36.84', '36.900002', '36.669998', '37.110001', '36.66', '37.25', '37.73', '36.880001', '36.130001',
18 | '36.630001', '36.849998', '36.459999', '36.049999', '36.939999', '37.09', '37.439999', '37.029999',
19 | '36.91', '37.389999', '37.279999', '37.169998', '36.970001', '36.549999', '37.060001', '35.810001',
20 | '36.25', '36.650002', '36.509998', '36.84', '37.52', '37.32', '37.470001', '37.50', '37.919998',
21 | '37.099998', '36.459999', '36.240002', '37.130001', '37.470001', '36.939999', '36.650002',
22 | '36.380001', '36.849998', '35.860001', '36.400002', '36.700001', '36.549999', '36.540001',
23 | '36.509998', '36.610001', '35.049999', '35.389999', '34.450001', '35.43', '34.68', '35.00',
24 | '34.540001', '33.880001', '33.029999', '33.32', '33.75', '33.290001', '33.59', '33.09', '33.66',
25 | '33.68', '32.91', '32.709999', '32.810001', '32.040001', '31.309999', '31.68', '30.74', '30.41',
26 | '31.200001', '30.65', '30.190001', '29.559999', '29.469999', '27.98', '27.120001', '26.459999',
27 | '27.110001', '26.639999', '27.610001', '29.059999', '27.91', '28.450001', '29.32', '29.27', '29.10',
28 | '30.59', '29.90', '29.76', '29.959999', '29.969999', '28.75', '28.98', '29.84', '29.280001',
29 | '29.690001', '30.889999', '30.58', '30.65', '30.51', '30.969999', '31.67', '31.549999', '32.119999',
30 | '33.220001', '33.849998', '33.630001', '33.900002', '34.189999', '34.240002', '32.990002',
31 | '33.119999', '33.099998', '33.810001', '33.150002', '32.529999', '32.939999', '34.009998',
32 | '34.490002', '35.799999', '34.240002', '34.759998', '34.34', '35.59', '35.00', '33.869999',
33 | '33.029999', '32.790001', '32.77', '33.09', '33.00', '32.860001', '33.209999', '32.889999',
34 | '33.009998', '32.23', '32.779999', '33.200001', '34.209999', '33.450001', '34.07', '34.939999',
35 | '35.02', '34.889999', '35.150002', '35.459999', '35.139999', '34.869999', '34.299999', '34.970001',
36 | '33.130001', '32.650002', '31.26', '32.060001', '33.490002', '33.259998', '33.639999', '32.419998',
37 | '32.279999', '32.560001', '32.709999', '32.349998', '31.790001', '31.309999', '30.790001',
38 | '30.799999', '28.620001', '28.950001', '28.65', '28.58', '29.030001', '29.66', '29.469999',
39 | '30.559999', '30.780001', '31.200001', '30.51', '31.309999', '31.139999', '29.719999', '30.68',
40 | '31.09', '31.35', '30.40', '32.200001', '32.00', '31.860001', '32.009998', '31.49', '32.91',
41 | '33.32', '33.360001', '32.459999', '32.98', '29.02', '33.580002', '34.77', '35.669998', '35.779999',
42 | '36.240002', '35.82', '35.080002', '34.290001', '36.740002', '36.869999', '36.52', '37.34', '37.32',
43 | '36.610001', '36.669998', '37.560001', '37.50', '37.919998', '37.639999', '38.310001', '39.580002',
44 | '39.299999', '38.57', '39.610001', '39.98', '39.189999', '38.700001', '38.509998', '38.650002',
45 | '38.25', '38.349998', '38.23', '37.200001', '38.240002', '38.759998', '39.259998', '39.459999',
46 | ];
47 | protected $High =
48 | [
49 | '38.080002', '37.580002', '37.080002', '36.139999', '36.009998', '36.950001', '37.779999', '37.52',
50 | '37.549999', '37.68', '37.439999', '37.450001', '37.599998', '37.439999', '36.91', '37.139999',
51 | '37.73', '37.299999', '36.990002', '37.200001', '37.110001', '37.220001', '37.740002', '38.080002',
52 | '37.880001', '36.849998', '36.959999', '37.630001', '36.950001', '36.720001', '37.23', '37.50',
53 | '37.700001', '37.790001', '37.07', '37.509998', '37.630001', '37.580002', '37.349998', '37.310001',
54 | '37.450001', '36.09', '36.41', '36.740002', '36.98', '37.439999', '37.59', '37.540001', '37.540001',
55 | '38.09', '38.119999', '38.189999', '36.73', '37.00', '37.150002', '37.50', '37.349998', '36.830002',
56 | '36.849998', '36.919998', '37.25', '37.00', '36.919998', '37.50', '36.880001', '37.02', '37.279999',
57 | '36.43', '35.450001', '34.869999', '35.700001', '35.610001', '36.099998', '35.209999', '34.549999',
58 | '34.080002', '33.459999', '34.09', '33.860001', '33.599998', '33.52', '33.82', '34.380001', '33.93',
59 | '33.209999', '33.240002', '32.849998', '32.459999', '31.90', '31.360001', '31.120001', '31.379999',
60 | '31.209999', '30.23', '30.139999', '29.66', '29.440001', '27.32', '26.969999', '27.809999',
61 | '27.690001', '27.969999', '29.139999', '29.23', '28.610001', '30.23', '29.790001', '29.51',
62 | '30.629999', '30.530001', '30.190001', '30.389999', '30.52', '29.799999', '29.110001', '30.00',
63 | '29.77', '30.57', '31.17', '30.969999', '30.75', '31.540001', '31.190001', '32.459999', '32.330002',
64 | '32.349998', '33.689999', '34.040001', '34.169998', '33.91', '34.740002', '34.580002', '34.209999',
65 | '33.299999', '33.630001', '34.080002', '33.880001', '33.389999', '33.27', '34.150002', '34.73',
66 | '35.84', '34.98', '34.919998', '35.200001', '35.720001', '36.389999', '33.889999', '33.830002',
67 | '33.09', '33.52', '33.189999', '33.869999', '33.299999', '33.50', '33.02', '33.119999', '32.990002',
68 | '33.040001', '33.849998', '34.23', '34.130001', '34.080002', '35.200001', '35.299999', '35.240002',
69 | '35.34', '35.48', '35.700001', '35.150002', '35.27', '35.470001', '33.490002', '33.360001', '31.90',
70 | '32.43', '33.59', '33.630001', '33.860001', '33.490002', '32.490002', '32.830002', '33.02', '32.689999',
71 | '32.50', '31.99', '31.190001', '31.200001', '30.709999', '29.00', '29.110001', '29.23', '29.219999',
72 | '29.709999', '29.57', '30.57', '30.92', '31.74', '30.799999', '31.33', '31.77', '31.23', '30.92',
73 | '31.43', '31.59', '31.799999', '32.830002', '32.290001', '32.740002', '32.029999', '32.099998',
74 | '32.990002', '33.57', '33.77', '32.619999', '33.029999', '32.279999', '34.02', '34.950001',
75 | '35.669998', '36.189999', '36.240002', '36.349998', '36.610001', '34.77', '36.77', '37.689999',
76 | '36.759998', '37.52', '37.709999', '37.209999', '36.98', '37.57', '37.689999', '37.919998',
77 | '37.919998', '38.310001', '39.580002', '39.779999', '39.630001', '39.849998', '39.98', '39.790001',
78 | '38.959999', '38.799999', '39.029999', '38.799999', '38.419998', '38.68', '37.490002', '38.380001',
79 | '39.119999', '39.639999', '39.779999',
80 | ];
81 | protected $Low =
82 | [
83 | '37.43', '36.889999', '36.25', '35.50', '35.049999', '36.09', '37.41', '37.169998', '37.200001',
84 | '37.240002', '36.810001', '36.540001', '37.099998', '36.630001', '36.419998', '36.59', '36.709999',
85 | '36.84', '36.630001', '36.52', '36.50', '36.580002', '36.560001', '37.50', '36.84', '36.07',
86 | '35.470001', '36.77', '36.43', '35.880001', '36.669998', '36.889999', '37.25', '36.880001',
87 | '36.380001', '36.790001', '37.200001', '37.139999', '36.919998', '36.490002', '36.860001',
88 | '35.740002', '35.91', '36.32', '36.150002', '36.509998', '36.630001', '36.91', '37.18', '37.16',
89 | '37.349998', '37.00', '36.110001', '35.880001', '36.419998', '36.849998', '36.900002', '36.279999',
90 | '36.32', '35.619999', '35.720001', '36.310001', '36.220001', '36.540001', '36.310001', '36.50',
91 | '36.439999', '35.009998', '34.619999', '33.93', '34.709999', '34.68', '35.00', '34.380001',
92 | '33.869999', '33.00', '33.110001', '33.509998', '32.84', '32.09', '32.779999', '32.84', '33.59',
93 | '32.759998', '32.419998', '32.77', '32.040001', '31.309999', '31.219999', '30.24', '29.799999',
94 | '30.51', '30.389999', '29.700001', '29.389999', '29.059999', '27.940001', '26.719999', '26.15',
95 | '26.84', '26.51', '26.48', '27.73', '27.709999', '26.57', '28.129999', '28.790001', '28.51',
96 | '28.60', '29.450001', '29.620001', '29.66', '29.309999', '28.190001', '27.440001', '29.309999',
97 | '28.59', '28.709999', '29.33', '30.209999', '29.74', '30.00', '30.02', '31.60', '31.530001',
98 | '31.139999', '33.18', '33.349998', '33.599998', '33.349998', '34.099998', '33.990002', '32.970001',
99 | '32.689999', '32.869999', '33.110001', '32.91', '32.50', '32.209999', '32.82', '33.91', '33.150002',
100 | '34.029999', '34.470001', '34.18', '34.099998', '34.77', '33.470001', '32.849998', '32.439999',
101 | '32.75', '32.610001', '32.869999', '32.689999', '32.580002', '32.32', '32.619999', '32.119999',
102 | '32.169998', '33.130001', '33.029999', '33.259998', '33.080002', '33.459999', '34.16', '34.75',
103 | '34.650002', '35.07', '35.049999', '34.700001', '34.299999', '33.880001', '33.00', '32.240002',
104 | '31.209999', '31.01', '32.77', '33.18', '33.16', '32.400002', '31.77', '32.32', '32.549999',
105 | '31.99', '31.73', '31.209999', '30.66', '30.35', '28.43', '28.440001', '28.49', '27.85',
106 | '27.200001', '28.91', '28.85', '29.629999', '30.17', '30.879999', '30.41', '30.809999', '30.99',
107 | '29.41', '30.00', '30.629999', '31.030001', '30.35', '30.860001', '31.440001', '31.799999',
108 | '31.379999', '31.23', '32.23', '32.93', '32.950001', '31.110001', '31.540001', '29.00', '32.91',
109 | '33.869999', '35.029999', '35.599998', '35.77', '35.720001', '34.82', '33.849998', '35.73',
110 | '36.869999', '36.150002', '36.299999', '37.23', '36.599998', '36.369999', '36.619999', '37.299999',
111 | '37.380001', '37.27', '37.650002', '38.669998', '39.060001', '38.259998', '39.349998', '39.259998',
112 | '38.93', '38.599998', '38.150002', '38.439999', '38.099998', '37.779999', '37.52', '36.939999',
113 | '36.580002', '38.459999', '39.189999', '39.150002',
114 | ];
115 | protected $Close =
116 | [
117 | '37.990002', '37.560001', '36.860001', '36.040001', '35.220001', '36.240002', '37.779999',
118 | '37.360001', '37.400002', '37.290001', '36.939999', '37.389999', '37.32', '37.400002', '36.470001',
119 | '36.830002', '37.349998', '36.970001', '36.73', '37.07', '36.599998', '37.150002', '36.650002',
120 | '37.939999', '37.82', '36.759998', '35.59', '37.529999', '36.66', '36.50', '37.02', '37.240002',
121 | '37.27', '37.48', '36.48', '37.029999', '37.369999', '37.439999', '37.18', '37.23', '36.939999',
122 | '36.00', '36.009998', '36.529999', '36.599998', '36.59', '36.950001', '37.110001', '37.23', '37.48',
123 | '37.669998', '37.84', '36.330002', '36.52', '36.509998', '37.169998', '37.310001', '36.66', '36.48',
124 | '36.07', '36.169998', '36.66', '36.41', '37.02', '36.48', '36.810001', '36.560001', '36.32',
125 | '35.23', '34.860001', '34.799999', '35.41', '35.470001', '35.169998', '34.279999', '34.009998',
126 | '33.259998', '33.580002', '33.810001', '32.82', '33.509998', '32.93', '33.959999', '33.860001',
127 | '32.880001', '32.91', '32.799999', '31.790001', '31.370001', '31.360001', '30.950001', '30.67',
128 | '31.17', '30.040001', '29.42', '29.370001', '29.280001', '27.040001', '26.76', '27.10', '26.82',
129 | '27.049999', '27.969999', '29.15', '27.68', '29.059999', '29.57', '29.51', '28.75', '29.690001',
130 | '29.98', '29.780001', '29.75', '29.309999', '28.780001', '29.74', '29.139999', '30.32', '29.440001',
131 | '30.690001', '30.17', '30.629999', '30.16', '32.16', '32.200001', '31.40', '33.259998', '33.369999',
132 | '34.040001', '33.599998', '34.110001', '34.450001', '34.189999', '32.970001', '32.950001', '33.23',
133 | '33.779999', '33.029999', '32.59', '32.91', '34.630001', '34.400002', '34.849998', '34.68', '34.91',
134 | '34.34', '35.650002', '33.709999', '33.810001', '32.939999', '33.16', '32.959999', '33.360001',
135 | '33.110001', '32.630001', '32.98', '32.860001', '32.950001', '32.189999', '33.23', '33.380001',
136 | '33.990002', '33.68', '34.200001', '35.119999', '35.07', '34.720001', '35.27', '35.619999',
137 | '35.049999', '35.189999', '34.299999', '33.400002', '33.169998', '31.67', '31.120001', '32.830002',
138 | '33.50', '33.369999', '33.48', '32.09', '32.34', '32.860001', '32.52', '32.369999', '31.870001',
139 | '30.959999', '30.85', '30.709999', '28.91', '28.91', '28.26', '27.60', '29.129999', '29.34',
140 | '29.74', '30.40', '31.17', '30.74', '30.93', '31.40', '31.040001', '30.32', '31.43', '31.15',
141 | '31.52', '30.90', '31.58', '32.540001', '31.77', '31.60', '32.240002', '33.139999', '33.689999',
142 | '32.52', '31.74', '31.309999', '32.93', '34.099998', '35.189999', '35.689999', '36.099998',
143 | '36.240002', '35.93', '34.490002', '36.029999', '37.150002', '36.669998', '36.459999', '37.25',
144 | '37.119999', '36.689999', '36.669998', '37.419998', '37.669998', '37.720001', '37.84', '38.849998',
145 | '39.209999', '39.240002', '39.73', '39.540001', '39.68', '38.91', '38.380001', '38.630001',
146 | '38.759998', '37.919998', '37.610001', '37.23', '38.23', '38.610001', '39.380001', '39.330002',
147 | ];
148 | protected $Volume =
149 | [
150 | '10602800', '15209900', '10808200', '10990700', '14108600', '19657800', '7710900', '6279200',
151 | '5574600', '8957300', '12593900', '10634000', '10213200', '13023100', '6519800', '11216500',
152 | '14759100', '9181900', '14757100', '8426100', '12059100', '12179300', '22177600', '12873600',
153 | '14645900', '16285700', '33984900', '10623800', '7785800', '34330700', '7127500', '8497900',
154 | '11340300', '16995100', '11073200', '11170900', '10010800', '7178500', '6157400', '9218200',
155 | '13718900', '9668700', '9088800', '6585500', '12006800', '13175900', '16401800', '10083100',
156 | '9832100', '9106700', '11658700', '30761900', '20460600', '17738300', '19046900', '16620000',
157 | '17166400', '10447800', '13750800', '20273400', '38789100', '19445000', '12443000', '20227300',
158 | '13656200', '18679000', '19849800', '23603400', '12981000', '14118600', '12217700', '11613900',
159 | '13551300', '20552600', '9335700', '11002500', '10672300', '8252700', '12380800', '19452000',
160 | '12653200', '21043800', '22924000', '22946600', '11361400', '10462200', '14850900', '21168500',
161 | '16683500', '19907400', '12613500', '17072300', '21465100', '20735000', '15319400', '12949700',
162 | '20187900', '13011900', '11188200', '9098800', '14324800', '24498200', '16379600', '28548200',
163 | '55707000', '36544700', '12905700', '18979500', '15589300', '13534600', '11426200', '23176900',
164 | '16298100', '16282500', '20458900', '20053000', '17572600', '15031400', '16692400', '13198500',
165 | '17140100', '26322800', '21209100', '16047800', '14301100', '25194400', '7423300', '5933500',
166 | '12621900', '11020800', '3470700', '13469200', '15531300', '9106700', '16921800', '13243500',
167 | '12689400', '16140900', '15949600', '14936200', '16174200', '45101900', '19852600', '12047900',
168 | '16109600', '17080500', '56708100', '11020400', '17534700', '5316100', '13257200', '13364700',
169 | '11899700', '12498500', '14222100', '11105600', '10270400', '11087800', '11063300', '14273100',
170 | '11804100', '11511000', '13645500', '16608600', '15679100', '17501800', '12394300', '15206700',
171 | '17418900', '10796200', '15174300', '26380900', '15810300', '24308600', '18501200', '30390400',
172 | '19349200', '10856500', '12209300', '19403800', '11282800', '15873800', '12580300', '11830400',
173 | '14245400', '12224800', '10963900', '12883300', '29250500', '14467600', '18317900', '41895400',
174 | '49541300', '12817500', '19109900', '12755400', '15614900', '18745000', '20538300', '17094200',
175 | '22179700', '25661600', '22186900', '14365400', '14330900', '47058500', '26873900', '13854100',
176 | '13748900', '15688100', '19903500', '13609000', '9366100', '19105100', '25414500', '15752300',
177 | '23163400', '18373600', '15604400', '8976700', '11445300', '7933600', '12241100', '28987700',
178 | '31405700', '13833200', '11351400', '11845500', '12299700', '6844000', '9051900', '9887300',
179 | '15446100', '9542700', '10290600', '10333100', '12942700', '8590700', '9267400', '17714800',
180 | '14861600', '14752100', '14864300', '8462400', '9147300', '9506500', '8713200', '10057600',
181 | '16909400', '20529200', '19432500', '11803400', '7713000', '6398400',
182 | ];
183 | //
184 |
185 | //
186 | public function testConstants_TRADER_MA_TYPE_SMA()
187 | {
188 | self::assertEquals(TRADER_MA_TYPE_SMA, Trader::$TRADER_MA_TYPE_SMA);
189 | }
190 |
191 | public function testConstants_TRADER_MA_TYPE_EMA()
192 | {
193 | self::assertEquals(TRADER_MA_TYPE_EMA, Trader::$TRADER_MA_TYPE_EMA);
194 | }
195 |
196 | public function testConstants_TRADER_MA_TYPE_WMA()
197 | {
198 | self::assertEquals(TRADER_MA_TYPE_WMA, Trader::$TRADER_MA_TYPE_WMA);
199 | }
200 |
201 | public function testConstants_TRADER_MA_TYPE_DEMA()
202 | {
203 | self::assertEquals(TRADER_MA_TYPE_DEMA, Trader::$TRADER_MA_TYPE_DEMA);
204 | }
205 |
206 | public function testConstants_TRADER_MA_TYPE_TEMA()
207 | {
208 | self::assertEquals(TRADER_MA_TYPE_TEMA, Trader::$TRADER_MA_TYPE_TEMA);
209 | }
210 |
211 | public function testConstants_TRADER_MA_TYPE_TRIMA()
212 | {
213 | self::assertEquals(TRADER_MA_TYPE_TRIMA, Trader::$TRADER_MA_TYPE_TRIMA);
214 | }
215 |
216 | public function testConstants_TRADER_MA_TYPE_KAMA()
217 | {
218 | self::assertEquals(TRADER_MA_TYPE_KAMA, Trader::$TRADER_MA_TYPE_KAMA);
219 | }
220 |
221 | public function testConstants_TRADER_MA_TYPE_MAMA()
222 | {
223 | self::assertEquals(TRADER_MA_TYPE_MAMA, Trader::$TRADER_MA_TYPE_MAMA);
224 | }
225 |
226 | public function testConstants_TRADER_MA_TYPE_T3()
227 | {
228 | self::assertEquals(TRADER_MA_TYPE_T3, Trader::$TRADER_MA_TYPE_T3);
229 | }
230 |
231 | public function testConstants_TRADER_REAL_MIN()
232 | {
233 | self::assertEquals(TRADER_REAL_MIN, Trader::$TRADER_REAL_MIN);
234 | }
235 |
236 | public function testConstants_TRADER_REAL_MAX()
237 | {
238 | self::assertEquals(TRADER_REAL_MAX, Trader::$TRADER_REAL_MAX);
239 | }
240 |
241 | public function testConstants_TRADER_FUNC_UNST_ADX()
242 | {
243 | self::assertEquals(TRADER_FUNC_UNST_ADX, Trader::$TRADER_FUNC_UNST_ADX);
244 | }
245 |
246 | public function testConstants_TRADER_FUNC_UNST_ADXR()
247 | {
248 | self::assertEquals(TRADER_FUNC_UNST_ADXR, Trader::$TRADER_FUNC_UNST_ADXR);
249 | }
250 |
251 | public function testConstants_TRADER_FUNC_UNST_ATR()
252 | {
253 | self::assertEquals(TRADER_FUNC_UNST_ATR, Trader::$TRADER_FUNC_UNST_ATR);
254 | }
255 |
256 | public function testConstants_TRADER_FUNC_UNST_CMO()
257 | {
258 | self::assertEquals(TRADER_FUNC_UNST_CMO, Trader::$TRADER_FUNC_UNST_CMO);
259 | }
260 |
261 | public function testConstants_TRADER_FUNC_UNST_DX()
262 | {
263 | self::assertEquals(TRADER_FUNC_UNST_DX, Trader::$TRADER_FUNC_UNST_DX);
264 | }
265 |
266 | public function testConstants_TRADER_FUNC_UNST_EMA()
267 | {
268 | self::assertEquals(TRADER_FUNC_UNST_EMA, Trader::$TRADER_FUNC_UNST_EMA);
269 | }
270 |
271 | public function testConstants_TRADER_FUNC_UNST_HT_DCPERIOD()
272 | {
273 | self::assertEquals(TRADER_FUNC_UNST_HT_DCPERIOD, Trader::$TRADER_FUNC_UNST_HT_DCPERIOD);
274 | }
275 |
276 | public function testConstants_TRADER_FUNC_UNST_HT_DCPHASE()
277 | {
278 | self::assertEquals(TRADER_FUNC_UNST_HT_DCPHASE, Trader::$TRADER_FUNC_UNST_HT_DCPHASE);
279 | }
280 |
281 | public function testConstants_TRADER_FUNC_UNST_HT_PHASOR()
282 | {
283 | self::assertEquals(TRADER_FUNC_UNST_HT_PHASOR, Trader::$TRADER_FUNC_UNST_HT_PHASOR);
284 | }
285 |
286 | public function testConstants_TRADER_FUNC_UNST_HT_TRENDLINE()
287 | {
288 | self::assertEquals(TRADER_FUNC_UNST_HT_TRENDLINE, Trader::$TRADER_FUNC_UNST_HT_TRENDLINE);
289 | }
290 |
291 | public function testConstants_TRADER_FUNC_UNST_HT_TRENDMODE()
292 | {
293 | self::assertEquals(TRADER_FUNC_UNST_HT_TRENDMODE, Trader::$TRADER_FUNC_UNST_HT_TRENDMODE);
294 | }
295 |
296 | public function testConstants_TRADER_FUNC_UNST_KAMA()
297 | {
298 | self::assertEquals(TRADER_FUNC_UNST_KAMA, Trader::$TRADER_FUNC_UNST_KAMA);
299 | }
300 |
301 | public function testConstants_TRADER_FUNC_UNST_MAMA()
302 | {
303 | self::assertEquals(TRADER_FUNC_UNST_MAMA, Trader::$TRADER_FUNC_UNST_MAMA);
304 | }
305 |
306 | public function testConstants_TRADER_FUNC_UNST_MFI()
307 | {
308 | self::assertEquals(TRADER_FUNC_UNST_MFI, Trader::$TRADER_FUNC_UNST_MFI);
309 | }
310 |
311 | public function testConstants_TRADER_FUNC_UNST_MINUS_DI()
312 | {
313 | self::assertEquals(TRADER_FUNC_UNST_MINUS_DI, Trader::$TRADER_FUNC_UNST_MINUS_DI);
314 | }
315 |
316 | public function testConstants_TRADER_FUNC_UNST_MINUS_DM()
317 | {
318 | self::assertEquals(TRADER_FUNC_UNST_MINUS_DM, Trader::$TRADER_FUNC_UNST_MINUS_DM);
319 | }
320 |
321 | public function testConstants_TRADER_FUNC_UNST_NATR()
322 | {
323 | self::assertEquals(TRADER_FUNC_UNST_NATR, Trader::$TRADER_FUNC_UNST_NATR);
324 | }
325 |
326 | public function testConstants_TRADER_FUNC_UNST_PLUS_DI()
327 | {
328 | self::assertEquals(TRADER_FUNC_UNST_PLUS_DI, Trader::$TRADER_FUNC_UNST_PLUS_DI);
329 | }
330 |
331 | public function testConstants_TRADER_FUNC_UNST_PLUS_DM()
332 | {
333 | self::assertEquals(TRADER_FUNC_UNST_PLUS_DM, Trader::$TRADER_FUNC_UNST_PLUS_DM);
334 | }
335 |
336 | public function testConstants_TRADER_FUNC_UNST_RSI()
337 | {
338 | self::assertEquals(TRADER_FUNC_UNST_RSI, Trader::$TRADER_FUNC_UNST_RSI);
339 | }
340 |
341 | public function testConstants_TRADER_FUNC_UNST_STOCHRSI()
342 | {
343 | self::assertEquals(TRADER_FUNC_UNST_STOCHRSI, Trader::$TRADER_FUNC_UNST_STOCHRSI);
344 | }
345 |
346 | public function testConstants_TRADER_FUNC_UNST_T3()
347 | {
348 | self::assertEquals(TRADER_FUNC_UNST_T3, Trader::$TRADER_FUNC_UNST_T3);
349 | }
350 |
351 | public function testConstants_TRADER_FUNC_UNST_ALL()
352 | {
353 | self::assertEquals(TRADER_FUNC_UNST_ALL, Trader::$TRADER_FUNC_UNST_ALL);
354 | }
355 |
356 | public function testConstants_TRADER_FUNC_UNST_NONE()
357 | {
358 | self::assertEquals(TRADER_FUNC_UNST_NONE, Trader::$TRADER_FUNC_UNST_NONE);
359 | }
360 |
361 | public function testConstants_TRADER_COMPATIBILITY_DEFAULT()
362 | {
363 | self::assertEquals(TRADER_COMPATIBILITY_DEFAULT, Trader::$TRADER_COMPATIBILITY_DEFAULT);
364 | }
365 |
366 | public function testConstants_TRADER_COMPATIBILITY_METASTOCK()
367 | {
368 | self::assertEquals(TRADER_COMPATIBILITY_METASTOCK, Trader::$TRADER_COMPATIBILITY_METASTOCK);
369 | }
370 |
371 | public function testConstants_TRADER_ERR_SUCCESS()
372 | {
373 | self::assertEquals(TRADER_ERR_SUCCESS, Trader::$TRADER_ERR_SUCCESS);
374 | }
375 |
376 | public function testConstants_TRADER_ERR_LIB_NOT_INITIALIZE()
377 | {
378 | self::assertEquals(TRADER_ERR_LIB_NOT_INITIALIZE, Trader::$TRADER_ERR_LIB_NOT_INITIALIZE);
379 | }
380 |
381 | public function testConstants_TRADER_ERR_BAD_PARAM()
382 | {
383 | self::assertEquals(TRADER_ERR_BAD_PARAM, Trader::$TRADER_ERR_BAD_PARAM);
384 | }
385 |
386 | public function testConstants_TRADER_ERR_ALLOC_ERR()
387 | {
388 | self::assertEquals(TRADER_ERR_ALLOC_ERR, Trader::$TRADER_ERR_ALLOC_ERR);
389 | }
390 |
391 | public function testConstants_TRADER_ERR_GROUP_NOT_FOUND()
392 | {
393 | self::assertEquals(TRADER_ERR_GROUP_NOT_FOUND, Trader::$TRADER_ERR_GROUP_NOT_FOUND);
394 | }
395 |
396 | public function testConstants_TRADER_ERR_FUNC_NOT_FOUND()
397 | {
398 | self::assertEquals(TRADER_ERR_FUNC_NOT_FOUND, Trader::$TRADER_ERR_FUNC_NOT_FOUND);
399 | }
400 |
401 | public function testConstants_TRADER_ERR_INVALID_HANDLE()
402 | {
403 | self::assertEquals(TRADER_ERR_INVALID_HANDLE, Trader::$TRADER_ERR_INVALID_HANDLE);
404 | }
405 |
406 | public function testConstants_TRADER_ERR_INVALID_PARAM_HOLDER()
407 | {
408 | self::assertEquals(TRADER_ERR_INVALID_PARAM_HOLDER, Trader::$TRADER_ERR_INVALID_PARAM_HOLDER);
409 | }
410 |
411 | public function testConstants_TRADER_ERR_INVALID_PARAM_HOLDER_TYPE()
412 | {
413 | self::assertEquals(TRADER_ERR_INVALID_PARAM_HOLDER_TYPE, Trader::$TRADER_ERR_INVALID_PARAM_HOLDER_TYPE);
414 | }
415 |
416 | public function testConstants_TRADER_ERR_INVALID_PARAM_FUNCTION()
417 | {
418 | self::assertEquals(TRADER_ERR_INVALID_PARAM_FUNCTION, Trader::$TRADER_ERR_INVALID_PARAM_FUNCTION);
419 | }
420 |
421 | public function testConstants_TRADER_ERR_INPUT_NOT_ALL_INITIALIZE()
422 | {
423 | self::assertEquals(TRADER_ERR_INPUT_NOT_ALL_INITIALIZE, Trader::$TRADER_ERR_INPUT_NOT_ALL_INITIALIZE);
424 | }
425 |
426 | public function testConstants_TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE()
427 | {
428 | self::assertEquals(TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE, Trader::$TRADER_ERR_OUTPUT_NOT_ALL_INITIALIZE);
429 | }
430 |
431 | public function testConstants_TRADER_ERR_OUT_OF_RANGE_START_INDEX()
432 | {
433 | self::assertEquals(TRADER_ERR_OUT_OF_RANGE_START_INDEX, Trader::$TRADER_ERR_OUT_OF_RANGE_START_INDEX);
434 | }
435 |
436 | public function testConstants_TRADER_ERR_OUT_OF_RANGE_END_INDEX()
437 | {
438 | self::assertEquals(TRADER_ERR_OUT_OF_RANGE_END_INDEX, Trader::$TRADER_ERR_OUT_OF_RANGE_END_INDEX);
439 | }
440 |
441 | public function testConstants_TRADER_ERR_INVALID_LIST_TYPE()
442 | {
443 | self::assertEquals(TRADER_ERR_INVALID_LIST_TYPE, Trader::$TRADER_ERR_INVALID_LIST_TYPE);
444 | }
445 |
446 | public function testConstants_TRADER_ERR_BAD_OBJECT()
447 | {
448 | self::assertEquals(TRADER_ERR_BAD_OBJECT, Trader::$TRADER_ERR_BAD_OBJECT);
449 | }
450 |
451 | public function testConstants_TRADER_ERR_NOT_SUPPORTED()
452 | {
453 | self::assertEquals(TRADER_ERR_NOT_SUPPORTED, Trader::$TRADER_ERR_NOT_SUPPORTED);
454 | }
455 |
456 | public function testConstants_TRADER_ERR_INTERNAL_ERROR()
457 | {
458 | self::assertEquals(TRADER_ERR_INTERNAL_ERROR, Trader::$TRADER_ERR_INTERNAL_ERROR);
459 | }
460 |
461 | public function testConstants_TRADER_ERR_UNKNOWN_ERROR()
462 | {
463 | self::assertEquals(TRADER_ERR_UNKNOWN_ERROR, Trader::$TRADER_ERR_UNKNOWN_ERROR);
464 | }
465 | //
466 |
467 | //
468 |
469 | public function testInterfaceFunctions_acos()
470 | {
471 | self::assertEquals(trader_acos(array_map('cos', $this->Close)), Trader::acos(array_map('cos', $this->Close)));
472 | }
473 |
474 | public function testInterfaceFunctions_ad()
475 | {
476 | self::assertEquals(trader_ad($this->High, $this->Low, $this->Close, $this->Volume), Trader::ad($this->High, $this->Low, $this->Close, $this->Volume));
477 | }
478 |
479 | public function testInterfaceFunctions_add()
480 | {
481 | self::assertEquals(trader_add($this->High, $this->Low), Trader::add($this->High, $this->Low));
482 | }
483 |
484 | public function testInterfaceFunctions_adosc()
485 | {
486 | self::assertEquals(trader_adosc($this->High, $this->Low, $this->Close, $this->Volume, 3, 10), Trader::adosc($this->High, $this->Low, $this->Close, $this->Volume, 3, 10));
487 | }
488 |
489 | public function testInterfaceFunctions_adx()
490 | {
491 | self::assertEquals(trader_adx($this->High, $this->Low, $this->Close, 14), Trader::adx($this->High, $this->Low, $this->Close, 14));
492 | }
493 |
494 | public function testInterfaceFunctions_adxr()
495 | {
496 | self::assertEquals(trader_adxr($this->High, $this->Low, $this->Close, 14), Trader::adxr($this->High, $this->Low, $this->Close, 14));
497 | }
498 |
499 | public function testInterfaceFunctions_apo()
500 | {
501 | self::assertEquals(trader_apo($this->Close, 12, 26, TRADER_MA_TYPE_SMA), Trader::apo($this->Close, 12, 26, TRADER_MA_TYPE_SMA));
502 | }
503 |
504 | public function testInterfaceFunctions_aroon()
505 | {
506 | self::assertEquals(trader_aroon($this->High, $this->Low, 14), Trader::aroon($this->High, $this->Low, 14));
507 | }
508 |
509 | public function testInterfaceFunctions_arronosc()
510 | {
511 | self::assertEquals(trader_aroonosc($this->High, $this->Low, 14), Trader::aroonosc($this->High, $this->Low, 14));
512 | }
513 |
514 | public function testInterfaceFunctions_asin()
515 | {
516 | self::assertEquals(trader_asin(array_map('sin', $this->Close)), Trader::asin(array_map('sin', $this->Close)));
517 | }
518 |
519 | public function testInterfaceFunctions_atan()
520 | {
521 | self::assertEquals(trader_atan(array_map('tan', $this->Close)), Trader::atan(array_map('tan', $this->Close)));
522 | }
523 |
524 | public function testInterfaceFunctions_atr()
525 | {
526 | self::assertEquals(trader_atr($this->High, $this->Low, $this->Close, 14), Trader::atr($this->High, $this->Low, $this->Close, 14));
527 | }
528 |
529 | public function testInterfaceFunctions_avgprice()
530 | {
531 | self::assertEquals(trader_avgprice($this->Open, $this->High, $this->Low, $this->Close), Trader::avgprice($this->Open, $this->High, $this->Low, $this->Close));
532 | }
533 |
534 | public function testInterfaceFunctions_bbands()
535 | {
536 | self::assertEquals(trader_bbands($this->Close, 5, 2.0, 2.0, TRADER_MA_TYPE_SMA), Trader::bbands($this->Close, 5, 2.0, 2.0, TRADER_MA_TYPE_SMA));
537 | }
538 |
539 | public function testInterfaceFunctions_beta()
540 | {
541 | self::assertEquals(trader_beta($this->Open, $this->Close, 5), Trader::beta($this->Open, $this->Close, 5));
542 | }
543 |
544 | public function testInterfaceFunctions_bop()
545 | {
546 | self::assertEquals(trader_bop($this->Open, $this->High, $this->Low, $this->Close), Trader::bop($this->Open, $this->High, $this->Low, $this->Close));
547 | }
548 |
549 | public function testInterfaceFunctions_cci()
550 | {
551 | self::assertEquals(trader_cci($this->High, $this->Low, $this->Close, 14), Trader::cci($this->High, $this->Low, $this->Close, 14));
552 | }
553 |
554 | public function testInterfaceFunctions_cdl2crows()
555 | {
556 | self::assertEquals(trader_cdl2crows($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl2crows($this->Open, $this->High, $this->Low, $this->Close));
557 | }
558 |
559 | public function testInterfaceFunctions_cdl3blackcrows()
560 | {
561 | self::assertEquals(trader_cdl3blackcrows($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3blackcrows($this->Open, $this->High, $this->Low, $this->Close));
562 | }
563 |
564 | public function testInterfaceFunctions_cdl3inside()
565 | {
566 | self::assertEquals(trader_cdl3inside($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3inside($this->Open, $this->High, $this->Low, $this->Close));
567 | }
568 |
569 | public function testInterfaceFunctions_cdl3linestrike()
570 | {
571 | self::assertEquals(trader_cdl3linestrike($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3linestrike($this->Open, $this->High, $this->Low, $this->Close));
572 | }
573 |
574 | public function testInterfaceFunctions_cdl3outside()
575 | {
576 | self::assertEquals(trader_cdl3outside($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3outside($this->Open, $this->High, $this->Low, $this->Close));
577 | }
578 |
579 | public function testInterfaceFunctions_cdl3starsinsouth()
580 | {
581 | self::assertEquals(trader_cdl3starsinsouth($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3starsinsouth($this->Open, $this->High, $this->Low, $this->Close));
582 | }
583 |
584 | public function testInterfaceFunctions_cdl3whitesoldiers()
585 | {
586 | self::assertEquals(trader_cdl3whitesoldiers($this->Open, $this->High, $this->Low, $this->Close), Trader::cdl3whitesoldiers($this->Open, $this->High, $this->Low, $this->Close));
587 | }
588 |
589 | public function testInterfaceFunctions_cdlabandonedbaby()
590 | {
591 | self::assertEquals(trader_cdlabandonedbaby($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlabandonedbaby($this->Open, $this->High, $this->Low, $this->Close));
592 | }
593 |
594 | public function testInterfaceFunctions_cdladvanceblock()
595 | {
596 | self::assertEquals(trader_cdladvanceblock($this->Open, $this->High, $this->Low, $this->Close), Trader::cdladvanceblock($this->Open, $this->High, $this->Low, $this->Close));
597 | }
598 |
599 | public function testInterfaceFunctions_cdlbelthold()
600 | {
601 | self::assertEquals(trader_cdlbelthold($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlbelthold($this->Open, $this->High, $this->Low, $this->Close));
602 | }
603 |
604 | public function testInterfaceFunctions_cdlbreakaway()
605 | {
606 | self::assertEquals(trader_cdlbreakaway($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlbreakaway($this->Open, $this->High, $this->Low, $this->Close));
607 | }
608 |
609 | public function testInterfaceFunctions_cdlclosingmarubozu()
610 | {
611 | self::assertEquals(trader_cdlclosingmarubozu($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlclosingmarubozu($this->Open, $this->High, $this->Low, $this->Close));
612 | }
613 |
614 | public function testInterfaceFunctions_cdlconcealbabyswall()
615 | {
616 | self::assertEquals(trader_cdlconcealbabyswall($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlconcealbabyswall($this->Open, $this->High, $this->Low, $this->Close));
617 | }
618 |
619 | public function testInterfaceFunctions_cdlcounterattack()
620 | {
621 | self::assertEquals(trader_cdlcounterattack($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlcounterattack($this->Open, $this->High, $this->Low, $this->Close));
622 | }
623 |
624 | public function testInterfaceFunctions_cdldarkcloudcover()
625 | {
626 | self::assertEquals(trader_cdldarkcloudcover($this->Open, $this->High, $this->Low, $this->Close, 0.5), Trader::cdldarkcloudcover($this->Open, $this->High, $this->Low, $this->Close, 0.5));
627 | }
628 |
629 | public function testInterfaceFunctions_cdldoji()
630 | {
631 | self::assertEquals(trader_cdldoji($this->Open, $this->High, $this->Low, $this->Close), Trader::cdldoji($this->Open, $this->High, $this->Low, $this->Close));
632 | }
633 |
634 | public function testInterfaceFunctions_cdldojistar()
635 | {
636 | self::assertEquals(trader_cdldojistar($this->Open, $this->High, $this->Low, $this->Close), Trader::cdldojistar($this->Open, $this->High, $this->Low, $this->Close));
637 | }
638 |
639 | public function testInterfaceFunctions_cdldragonflydoji()
640 | {
641 | self::assertEquals(trader_cdldragonflydoji($this->Open, $this->High, $this->Low, $this->Close), Trader::cdldragonflydoji($this->Open, $this->High, $this->Low, $this->Close));
642 | }
643 |
644 | public function testInterfaceFunctions_cdlengulfing()
645 | {
646 | self::assertEquals(trader_cdlengulfing($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlengulfing($this->Open, $this->High, $this->Low, $this->Close));
647 | }
648 |
649 | public function testInterfaceFunctions_cdleveningdojistar()
650 | {
651 | self::assertEquals(trader_cdleveningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::cdleveningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
652 | }
653 |
654 | public function testInterfaceFunctions_cdleveningstar()
655 | {
656 | self::assertEquals(trader_cdleveningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::cdleveningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
657 | }
658 |
659 | public function testInterfaceFunctions_cdlgapsidesidewhite()
660 | {
661 | self::assertEquals(trader_cdlgapsidesidewhite($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlgapsidesidewhite($this->Open, $this->High, $this->Low, $this->Close));
662 | }
663 |
664 | public function testInterfaceFunctions_cdlgravestonedoji()
665 | {
666 | self::assertEquals(trader_cdlgravestonedoji($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlgravestonedoji($this->Open, $this->High, $this->Low, $this->Close));
667 | }
668 |
669 | public function testInterfaceFunctions_cdlhammer()
670 | {
671 | self::assertEquals(trader_cdlhammer($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhammer($this->Open, $this->High, $this->Low, $this->Close));
672 | }
673 |
674 | public function testInterfaceFunctions_cdlhangingman()
675 | {
676 | self::assertEquals(trader_cdlhangingman($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhangingman($this->Open, $this->High, $this->Low, $this->Close));
677 | }
678 |
679 | public function testInterfaceFunctions_cdlharami()
680 | {
681 | self::assertEquals(trader_cdlharami($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlharami($this->Open, $this->High, $this->Low, $this->Close));
682 | }
683 |
684 | public function testInterfaceFunctions_cdlharamicross()
685 | {
686 | self::assertEquals(trader_cdlharamicross($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlharamicross($this->Open, $this->High, $this->Low, $this->Close));
687 | }
688 |
689 | public function testInterfaceFunctions_cdlhighwave()
690 | {
691 | self::assertEquals(trader_cdlhighwave($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhighwave($this->Open, $this->High, $this->Low, $this->Close));
692 | }
693 |
694 | public function testInterfaceFunctions_cdlhikkake()
695 | {
696 | self::assertEquals(trader_cdlhikkake($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhikkake($this->Open, $this->High, $this->Low, $this->Close));
697 | }
698 |
699 | public function testInterfaceFunctions_cdlhikkakemod()
700 | {
701 | self::assertEquals(trader_cdlhikkakemod($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhikkakemod($this->Open, $this->High, $this->Low, $this->Close));
702 | }
703 |
704 | public function testInterfaceFunctions_cdlhomingpigeon()
705 | {
706 | self::assertEquals(trader_cdlhomingpigeon($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlhomingpigeon($this->Open, $this->High, $this->Low, $this->Close));
707 | }
708 |
709 | public function testInterfaceFunctions_cdlidentical3crows()
710 | {
711 | self::assertEquals(trader_cdlidentical3crows($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlidentical3crows($this->Open, $this->High, $this->Low, $this->Close));
712 | }
713 |
714 | public function testInterfaceFunctions_cdlinneck()
715 | {
716 | self::assertEquals(trader_cdlinneck($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlinneck($this->Open, $this->High, $this->Low, $this->Close));
717 | }
718 |
719 | public function testInterfaceFunctions_cdlinvertedhammer()
720 | {
721 | self::assertEquals(trader_cdlinvertedhammer($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlinvertedhammer($this->Open, $this->High, $this->Low, $this->Close));
722 | }
723 |
724 | public function testInterfaceFunctions_cdlkicking()
725 | {
726 | self::assertEquals(trader_cdlkicking($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlkicking($this->Open, $this->High, $this->Low, $this->Close));
727 | }
728 |
729 | public function testInterfaceFunctions_cdlkickingbylength()
730 | {
731 | self::assertEquals(trader_cdlkickingbylength($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlkickingbylength($this->Open, $this->High, $this->Low, $this->Close));
732 | }
733 |
734 | public function testInterfaceFunctions_cdlladderbottom()
735 | {
736 | self::assertEquals(trader_cdlladderbottom($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlladderbottom($this->Open, $this->High, $this->Low, $this->Close));
737 | }
738 |
739 | public function testInterfaceFunctions_cdllongleggeddoji()
740 | {
741 | self::assertEquals(trader_cdllongleggeddoji($this->Open, $this->High, $this->Low, $this->Close), Trader::cdllongleggeddoji($this->Open, $this->High, $this->Low, $this->Close));
742 | }
743 |
744 | public function testInterfaceFunctions_cdllongline()
745 | {
746 | self::assertEquals(trader_cdllongline($this->Open, $this->High, $this->Low, $this->Close), Trader::cdllongline($this->Open, $this->High, $this->Low, $this->Close));
747 | }
748 |
749 | public function testInterfaceFunctions_cdlmarubozu()
750 | {
751 | self::assertEquals(trader_cdlmarubozu($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlmarubozu($this->Open, $this->High, $this->Low, $this->Close));
752 | }
753 |
754 | public function testInterfaceFunctions_cdlmatchinglow()
755 | {
756 | self::assertEquals(trader_cdlmatchinglow($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlmatchinglow($this->Open, $this->High, $this->Low, $this->Close));
757 | }
758 |
759 | public function testInterfaceFunctions_cdlmathold()
760 | {
761 | self::assertEquals(trader_cdlmathold($this->Open, $this->High, $this->Low, $this->Close, 0.5), Trader::cdlmathold($this->Open, $this->High, $this->Low, $this->Close, 0.5));
762 | }
763 |
764 | public function testInterfaceFunctions_cdlmorningdojistar()
765 | {
766 | self::assertEquals(trader_cdlmorningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::cdlmorningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
767 | }
768 |
769 | public function testInterfaceFunctions_cdlmorningstar()
770 | {
771 | self::assertEquals(trader_cdlmorningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::cdlmorningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
772 | }
773 |
774 | public function testInterfaceFunctions_cdlonneck()
775 | {
776 | self::assertEquals(trader_cdlonneck($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlonneck($this->Open, $this->High, $this->Low, $this->Close));
777 | }
778 |
779 | public function testInterfaceFunctions_cdlpiercing()
780 | {
781 | self::assertEquals(trader_cdlpiercing($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlpiercing($this->Open, $this->High, $this->Low, $this->Close));
782 | }
783 |
784 | public function testInterfaceFunctions_cdlrickshawman()
785 | {
786 | self::assertEquals(trader_cdlrickshawman($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlrickshawman($this->Open, $this->High, $this->Low, $this->Close));
787 | }
788 |
789 | public function testInterfaceFunctions_cdlrisefall3methods()
790 | {
791 | self::assertEquals(trader_cdlrisefall3methods($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlrisefall3methods($this->Open, $this->High, $this->Low, $this->Close));
792 | }
793 |
794 | public function testInterfaceFunctions_cdlseparatinglines()
795 | {
796 | self::assertEquals(trader_cdlseparatinglines($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlseparatinglines($this->Open, $this->High, $this->Low, $this->Close));
797 | }
798 |
799 | public function testInterfaceFunctions_cdlshootingstar()
800 | {
801 | self::assertEquals(trader_cdlshootingstar($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlshootingstar($this->Open, $this->High, $this->Low, $this->Close));
802 | }
803 |
804 | public function testInterfaceFunctions_cdlshortline()
805 | {
806 | self::assertEquals(trader_cdlshortline($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlshortline($this->Open, $this->High, $this->Low, $this->Close));
807 | }
808 |
809 | public function testInterfaceFunctions_cdlspinningtop()
810 | {
811 | self::assertEquals(trader_cdlspinningtop($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlspinningtop($this->Open, $this->High, $this->Low, $this->Close));
812 | }
813 |
814 | public function testInterfaceFunctions_cdlstalledpattern()
815 | {
816 | self::assertEquals(trader_cdlstalledpattern($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlstalledpattern($this->Open, $this->High, $this->Low, $this->Close));
817 | }
818 |
819 | public function testInterfaceFunctions_cdlsticksandwich()
820 | {
821 | self::assertEquals(trader_cdlsticksandwich($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlsticksandwich($this->Open, $this->High, $this->Low, $this->Close));
822 | }
823 |
824 | public function testInterfaceFunctions_cdltakuri()
825 | {
826 | self::assertEquals(trader_cdltakuri($this->Open, $this->High, $this->Low, $this->Close), Trader::cdltakuri($this->Open, $this->High, $this->Low, $this->Close));
827 | }
828 |
829 | public function testInterfaceFunctions_cdltasukigap()
830 | {
831 | self::assertEquals(trader_cdltasukigap($this->Open, $this->High, $this->Low, $this->Close), Trader::cdltasukigap($this->Open, $this->High, $this->Low, $this->Close));
832 | }
833 |
834 | public function testInterfaceFunctions_cdlthrusting()
835 | {
836 | self::assertEquals(trader_cdlthrusting($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlthrusting($this->Open, $this->High, $this->Low, $this->Close));
837 | }
838 |
839 | public function testInterfaceFunctions_cdltristar()
840 | {
841 | self::assertEquals(trader_cdltristar($this->Open, $this->High, $this->Low, $this->Close), Trader::cdltristar($this->Open, $this->High, $this->Low, $this->Close));
842 | }
843 |
844 | public function testInterfaceFunctions_cdlunique3river()
845 | {
846 | self::assertEquals(trader_cdlunique3river($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlunique3river($this->Open, $this->High, $this->Low, $this->Close));
847 | }
848 |
849 | public function testInterfaceFunctions_cdlupsidegap2crows()
850 | {
851 | self::assertEquals(trader_cdlupsidegap2crows($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlupsidegap2crows($this->Open, $this->High, $this->Low, $this->Close));
852 | }
853 |
854 | public function testInterfaceFunctions_cdlxsidegap3methods()
855 | {
856 | self::assertEquals(trader_cdlxsidegap3methods($this->Open, $this->High, $this->Low, $this->Close), Trader::cdlxsidegap3methods($this->Open, $this->High, $this->Low, $this->Close));
857 | }
858 |
859 | public function testInterfaceFunctions_ceil()
860 | {
861 | self::assertEquals(trader_ceil($this->Close), Trader::ceil($this->Close));
862 | }
863 |
864 | public function testInterfaceFunctions_cmo()
865 | {
866 | self::assertEquals(trader_cmo($this->Close, 14), Trader::cmo($this->Close, 14));
867 | }
868 |
869 | public function testInterfaceFunctions_correl()
870 | {
871 | self::assertEquals(trader_correl($this->Open, $this->Close, 30), Trader::correl($this->Open, $this->Close, 30));
872 | }
873 |
874 | public function testInterfaceFunctions_cos()
875 | {
876 | self::assertEquals(trader_cos($this->Close), Trader::cos($this->Close));
877 | }
878 |
879 | public function testInterfaceFunctions_cosh()
880 | {
881 | self::assertEquals(trader_cosh($this->Close), Trader::cosh($this->Close));
882 | }
883 |
884 | public function testInterfaceFunctions_dema()
885 | {
886 | self::assertEquals(trader_dema($this->Close, 30), Trader::dema($this->Close, 30));
887 | }
888 |
889 | public function testInterfaceFunctions_div()
890 | {
891 | self::assertEquals(trader_div($this->Open, $this->Close), Trader::div($this->Open, $this->Close));
892 | }
893 |
894 | public function testInterfaceFunctions_dx()
895 | {
896 | self::assertEquals(trader_dx($this->High, $this->Low, $this->Close, 14), Trader::dx($this->High, $this->Low, $this->Close, 14));
897 | }
898 |
899 | public function testInterfaceFunctions_ema()
900 | {
901 | self::assertEquals(trader_ema($this->Close, 30), Trader::ema($this->Close, 30));
902 | }
903 |
904 | public function testInterfaceFunctions_exp()
905 | {
906 | self::assertEquals(trader_exp($this->Close), Trader::exp($this->Close));
907 | }
908 |
909 | public function testInterfaceFunctions_floor()
910 | {
911 | self::assertEquals(trader_floor($this->Close), Trader::floor($this->Close));
912 | }
913 |
914 | public function testInterfaceFunctions_ht_dcperiod()
915 | {
916 | self::assertEquals(trader_ht_dcperiod($this->Close), Trader::ht_dcperiod($this->Close));
917 | }
918 |
919 | public function testInterfaceFunctions_ht_dcphase()
920 | {
921 | self::assertEquals(trader_ht_dcphase($this->Close), Trader::ht_dcphase($this->Close));
922 | }
923 |
924 | public function testInterfaceFunctions_ht_phasor()
925 | {
926 | self::assertEquals(trader_ht_phasor($this->Close), Trader::ht_phasor($this->Close));
927 | }
928 |
929 | public function testInterfaceFunctions_ht_sine()
930 | {
931 | self::assertEquals(trader_ht_sine($this->Close), Trader::ht_sine($this->Close));
932 | }
933 |
934 | public function testInterfaceFunctions_ht_trendline()
935 | {
936 | self::assertEquals(trader_ht_trendline($this->Close), Trader::ht_trendline($this->Close));
937 | }
938 |
939 | public function testInterfaceFunctions_ht_trendmode()
940 | {
941 | self::assertEquals(trader_ht_trendmode($this->Close), Trader::ht_trendmode($this->Close));
942 | }
943 |
944 | public function testInterfaceFunctions_kama()
945 | {
946 | self::assertEquals(trader_kama($this->Close, 30), Trader::kama($this->Close, 30));
947 | }
948 |
949 | public function testInterfaceFunctions_linearreg_angle()
950 | {
951 | self::assertEquals(trader_linearreg_angle($this->Close, 14), Trader::linearreg_angle($this->Close, 14));
952 | }
953 |
954 | public function testInterfaceFunctions_linearreg_intercept()
955 | {
956 | self::assertEquals(trader_linearreg_intercept($this->Close, 14), Trader::linearreg_intercept($this->Close, 14));
957 | }
958 |
959 | public function testInterfaceFunctions_linearreg_slope()
960 | {
961 | self::assertEquals(trader_linearreg_slope($this->Close, 14), Trader::linearreg_slope($this->Close, 14));
962 | }
963 |
964 | public function testInterfaceFunctions_linearreg()
965 | {
966 | self::assertEquals(trader_linearreg($this->Close, 14), Trader::linearreg($this->Close, 14));
967 | }
968 |
969 | public function testInterfaceFunctions_ln()
970 | {
971 | self::assertEquals(trader_ln($this->Close), Trader::ln($this->Close));
972 | }
973 |
974 | public function testInterfaceFunctions_log10()
975 | {
976 | self::assertEquals(trader_log10($this->Close), Trader::log10($this->Close));
977 | }
978 |
979 | public function testInterfaceFunctions_ma()
980 | {
981 | self::assertEquals(trader_ma($this->Close, 30, TRADER_MA_TYPE_SMA), Trader::ma($this->Close, 30, TRADER_MA_TYPE_SMA));
982 | }
983 |
984 | public function testInterfaceFunctions_macd()
985 | {
986 | self::assertEquals(trader_macd($this->Close, 12, 26, 9), Trader::macd($this->Close, 12, 26, 9));
987 | }
988 |
989 | public function testInterfaceFunctions_macdext()
990 | {
991 | self::assertEquals(trader_macdext($this->Close, 12, TRADER_MA_TYPE_SMA, 26, TRADER_MA_TYPE_SMA, 9), Trader::macdext($this->Close, 12, TRADER_MA_TYPE_SMA, 26, TRADER_MA_TYPE_SMA, 9));
992 | }
993 |
994 | public function testInterfaceFunctions_macdfix()
995 | {
996 | self::assertEquals(trader_macdfix($this->Close, 9), Trader::macdfix($this->Close, 9));
997 | }
998 |
999 | public function testInterfaceFunctions_mama()
1000 | {
1001 | self::assertEquals(trader_mama($this->Close, 0.5, 0.05), Trader::mama($this->Close, 0.5, 0.05));
1002 | }
1003 |
1004 | public function testInterfaceFunctions_mavp()
1005 | {
1006 | self::assertEquals(trader_mavp($this->Close, $this->Open, 2, 30, TRADER_MA_TYPE_SMA), Trader::mavp($this->Close, $this->Open, 2, 30, TRADER_MA_TYPE_SMA));
1007 | }
1008 |
1009 | public function testInterfaceFunctions_max()
1010 | {
1011 | self::assertEquals(trader_max($this->Close, 30), Trader::max($this->Close, 30));
1012 | }
1013 |
1014 | public function testInterfaceFunctions_maxindex()
1015 | {
1016 | self::assertEquals(trader_maxindex($this->Close, 30), Trader::maxindex($this->Close, 30));
1017 | }
1018 |
1019 | public function testInterfaceFunctions_medprice()
1020 | {
1021 | self::assertEquals(trader_medprice($this->High, $this->Low), Trader::medprice($this->High, $this->Low));
1022 | }
1023 |
1024 | public function testInterfaceFunctions_mfi()
1025 | {
1026 | self::assertEquals(trader_mfi($this->High, $this->Low, $this->Close, $this->Volume, 14), Trader::mfi($this->High, $this->Low, $this->Close, $this->Volume, 14));
1027 | }
1028 |
1029 | public function testInterfaceFunctions_midpoint()
1030 | {
1031 | self::assertEquals(trader_midpoint($this->Close, 14), Trader::midpoint($this->Close, 14));
1032 | }
1033 |
1034 | public function testInterfaceFunctions_midprice()
1035 | {
1036 | self::assertEquals(trader_midprice($this->High, $this->Low, 14), Trader::midprice($this->High, $this->Low, 14));
1037 | }
1038 |
1039 | public function testInterfaceFunctions_min()
1040 | {
1041 | self::assertEquals(trader_min($this->High, 30), Trader::min($this->High, 30));
1042 | }
1043 |
1044 | public function testInterfaceFunctions_minindex()
1045 | {
1046 | self::assertEquals(trader_minindex($this->High, 30), Trader::minindex($this->High, 30));
1047 | }
1048 |
1049 | public function testInterfaceFunctions_minmax()
1050 | {
1051 | self::assertEquals(trader_minmax($this->High, 30), Trader::minmax($this->High, 30));
1052 | }
1053 |
1054 | public function testInterfaceFunctions_minmaxindex()
1055 | {
1056 | self::assertEquals(trader_minmaxindex($this->High, 30), Trader::minmaxindex($this->High, 30));
1057 | }
1058 |
1059 | public function testInterfaceFunctions_minus_di()
1060 | {
1061 | self::assertEquals(trader_minus_di($this->High, $this->Low, $this->Close, 14), Trader::minus_di($this->High, $this->Low, $this->Close, 14));
1062 | }
1063 |
1064 | public function testInterfaceFunctions_minus_dmi()
1065 | {
1066 | self::assertEquals(trader_minus_dm($this->High, $this->Low, 14), Trader::minus_dm($this->High, $this->Low, 14));
1067 | }
1068 |
1069 | public function testInterfaceFunctions_mom()
1070 | {
1071 | self::assertEquals(trader_mom($this->High, 10), Trader::mom($this->High, 10));
1072 | }
1073 |
1074 | public function testInterfaceFunctions_mult()
1075 | {
1076 | self::assertEquals(trader_mult($this->Open, $this->Close), Trader::mult($this->Open, $this->Close));
1077 | }
1078 |
1079 | public function testInterfaceFunctions_natr()
1080 | {
1081 | self::assertEquals(trader_natr($this->High, $this->Low, $this->Close, 14), Trader::natr($this->High, $this->Low, $this->Close, 14));
1082 | }
1083 |
1084 | public function testInterfaceFunctions_obv()
1085 | {
1086 | self::assertEquals(trader_obv($this->Close, $this->Volume), Trader::obv($this->Close, $this->Volume));
1087 | }
1088 |
1089 | public function testInterfaceFunctions_plus_di()
1090 | {
1091 | self::assertEquals(trader_plus_di($this->High, $this->Low, $this->Close, 14), Trader::plus_di($this->High, $this->Low, $this->Close, 14));
1092 | }
1093 |
1094 | public function testInterfaceFunctions_plus_dm()
1095 | {
1096 | self::assertEquals(trader_plus_dm($this->High, $this->Low, 14), Trader::plus_dm($this->High, $this->Low, 14));
1097 | }
1098 |
1099 | public function testInterfaceFunctions_ppo()
1100 | {
1101 | self::assertEquals(trader_ppo($this->Close, 12, 26, TRADER_MA_TYPE_SMA), Trader::ppo($this->Close, 12, 26, TRADER_MA_TYPE_SMA));
1102 | }
1103 |
1104 | public function testInterfaceFunctions_roc()
1105 | {
1106 | self::assertEquals(trader_roc($this->Close, 10), Trader::roc($this->Close, 10));
1107 | }
1108 |
1109 | public function testInterfaceFunctions_rocp()
1110 | {
1111 | self::assertEquals(trader_rocp($this->Close, 10), Trader::rocp($this->Close, 10));
1112 | }
1113 |
1114 | public function testInterfaceFunctions_rocr100()
1115 | {
1116 | self::assertEquals(trader_rocr100($this->Close, 10), Trader::rocr100($this->Close, 10));
1117 | }
1118 |
1119 | public function testInterfaceFunctions_rocr()
1120 | {
1121 | self::assertEquals(trader_rocr($this->Close, 10), Trader::rocr($this->Close, 10));
1122 | }
1123 |
1124 | public function testInterfaceFunctions_rsi()
1125 | {
1126 | self::assertEquals(trader_rsi($this->Close, 14), Trader::rsi($this->Close, 14));
1127 | }
1128 |
1129 | public function testInterfaceFunctions_sar()
1130 | {
1131 | self::assertEquals(trader_sar($this->Close, $this->Low, 0.02, 0.2), Trader::sar($this->Close, $this->Low, 0.02, 0.2));
1132 | }
1133 |
1134 | public function testInterfaceFunctions_sarext()
1135 | {
1136 | self::assertEquals(trader_sarext($this->Close, $this->Low, 0.0, 0.0, 0.02, 0.02, 0.2, 0.02, 0.02, 0.2), Trader::sarext($this->Close, $this->Low, 0.0, 0.0, 0.02, 0.02, 0.2, 0.02, 0.02, 0.2));
1137 | }
1138 |
1139 | public function testInterfaceFunctions_sin()
1140 | {
1141 | self::assertEquals(trader_sin($this->Close), Trader::sin($this->Close));
1142 | }
1143 |
1144 | public function testInterfaceFunctions_sinh()
1145 | {
1146 | self::assertEquals(trader_sinh($this->Close), Trader::sinh($this->Close));
1147 | }
1148 |
1149 | public function testInterfaceFunctions_sma()
1150 | {
1151 | self::assertEquals(trader_sma($this->Close, 30), Trader::sma($this->Close, 30));
1152 | }
1153 |
1154 | public function testInterfaceFunctions_sqrt()
1155 | {
1156 | self::assertEquals(trader_sqrt($this->Close), Trader::sqrt($this->Close));
1157 | }
1158 |
1159 | public function testInterfaceFunctions_stddev()
1160 | {
1161 | self::assertEquals(trader_stddev($this->Close, 5, 1.0), Trader::stddev($this->Close, 5, 1.0));
1162 | }
1163 |
1164 | public function testInterfaceFunctions_stoch()
1165 | {
1166 | self::assertEquals(trader_stoch($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA, 3, TRADER_MA_TYPE_SMA), Trader::stoch($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA, 3, TRADER_MA_TYPE_SMA));
1167 | }
1168 |
1169 | public function testInterfaceFunctions_stochf()
1170 | {
1171 | self::assertEquals(trader_stochf($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA), Trader::stochf($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA));
1172 | }
1173 |
1174 | public function testInterfaceFunctions_stochrsi()
1175 | {
1176 | self::assertEquals(trader_stochrsi($this->Close, 14, 5, 3, TRADER_MA_TYPE_SMA), Trader::stochrsi($this->Close, 14, 5, 3, TRADER_MA_TYPE_SMA));
1177 | }
1178 |
1179 | public function testInterfaceFunctions_sub()
1180 | {
1181 | self::assertEquals(trader_sub($this->High, $this->Low), Trader::sub($this->High, $this->Low));
1182 | }
1183 |
1184 | public function testInterfaceFunctions_sum()
1185 | {
1186 | self::assertEquals(trader_sum($this->High, 30), Trader::sum($this->High, 30));
1187 | }
1188 |
1189 | public function testInterfaceFunctions_t3()
1190 | {
1191 | self::assertEquals(trader_t3($this->High, 5, 0.7), Trader::t3($this->High, 5, 0.7));
1192 | }
1193 |
1194 | public function testInterfaceFunctions_tan()
1195 | {
1196 | self::assertEquals(trader_tan($this->Close), Trader::tan($this->Close));
1197 | }
1198 |
1199 | public function testInterfaceFunctions_tanh()
1200 | {
1201 | self::assertEquals(trader_tanh($this->Close), Trader::tanh($this->Close));
1202 | }
1203 |
1204 | public function testInterfaceFunctions_tema()
1205 | {
1206 | self::assertEquals(trader_tema($this->Close, 30), Trader::tema($this->Close, 30));
1207 | }
1208 |
1209 | public function testInterfaceFunctions_trange()
1210 | {
1211 | self::assertEquals(trader_trange($this->High, $this->Low, $this->Close), Trader::trange($this->High, $this->Low, $this->Close));
1212 | }
1213 |
1214 | public function testInterfaceFunctions_trima()
1215 | {
1216 | self::assertEquals(trader_trima($this->Close, 30), Trader::trima($this->Close, 30));
1217 | }
1218 |
1219 | public function testInterfaceFunctions_trix()
1220 | {
1221 | self::assertEquals(trader_trix($this->Close, 30), Trader::trix($this->Close, 30));
1222 | }
1223 |
1224 | public function testInterfaceFunctions_tsf()
1225 | {
1226 | self::assertEquals(trader_tsf($this->Close, 14), Trader::tsf($this->Close, 14));
1227 | }
1228 |
1229 | public function testInterfaceFunctions_typprice()
1230 | {
1231 | self::assertEquals(trader_typprice($this->High, $this->Low, $this->Close), Trader::typprice($this->High, $this->Low, $this->Close));
1232 | }
1233 |
1234 | public function testInterfaceFunctions_ultosc()
1235 | {
1236 | self::assertEquals(trader_ultosc($this->High, $this->Low, $this->Close, 7, 14, 28), Trader::ultosc($this->High, $this->Low, $this->Close, 7, 14, 28));
1237 | }
1238 |
1239 | public function testInterfaceFunctions_var()
1240 | {
1241 | self::assertEquals(trader_var($this->Close, 5, 1.0), Trader::var($this->Close, 5, 1.0));
1242 | }
1243 |
1244 | public function testInterfaceFunctions_wclprice()
1245 | {
1246 | self::assertEquals(trader_wclprice($this->High, $this->Low, $this->Close), Trader::wclprice($this->High, $this->Low, $this->Close));
1247 | }
1248 |
1249 | public function testInterfaceFunctions_willr()
1250 | {
1251 | self::assertEquals(trader_willr($this->High, $this->Low, $this->Close, 14), Trader::willr($this->High, $this->Low, $this->Close, 14));
1252 | }
1253 |
1254 | public function testInterfaceFunctions_wma()
1255 | {
1256 | self::assertEquals(trader_wma($this->Close, 30), Trader::wma($this->Close, 30));
1257 | }
1258 |
1259 | //
1260 |
1261 | //
1262 |
1263 | public function testFriendlyFunctions_acos()
1264 | {
1265 | self::assertEquals(trader_acos(array_map('cos', $this->Close)), Trader::mathArcCosine(array_map('cos', $this->Close)));
1266 | }
1267 |
1268 | public function testFriendlyFunctions_ad()
1269 | {
1270 | self::assertEquals(trader_ad($this->High, $this->Low, $this->Close, $this->Volume), Trader::chaikinAccumulationDistributionLine($this->High, $this->Low, $this->Close, $this->Volume));
1271 | }
1272 |
1273 | public function testFriendlyFunctions_add()
1274 | {
1275 | self::assertEquals(trader_add($this->High, $this->Low), Trader::mathAddition($this->High, $this->Low));
1276 | }
1277 |
1278 | public function testFriendlyFunctions_adosc()
1279 | {
1280 | self::assertEquals(trader_adosc($this->High, $this->Low, $this->Close, $this->Volume, 3, 10), Trader::chaikinAccumulationDistributionOscillator($this->High, $this->Low, $this->Close, $this->Volume, 3, 10));
1281 | }
1282 |
1283 | public function testFriendlyFunctions_adx()
1284 | {
1285 | self::assertEquals(trader_adx($this->High, $this->Low, $this->Close, 14), Trader::averageDirectionalMovementIndex($this->High, $this->Low, $this->Close, 14));
1286 | }
1287 |
1288 | public function testFriendlyFunctions_adxr()
1289 | {
1290 | self::assertEquals(trader_adxr($this->High, $this->Low, $this->Close, 14), Trader::averageDirectionalMovementIndexRating($this->High, $this->Low, $this->Close, 14));
1291 | }
1292 |
1293 | public function testFriendlyFunctions_apo()
1294 | {
1295 | self::assertEquals(trader_apo($this->Close, 12, 26, TRADER_MA_TYPE_SMA), Trader::absolutePriceOscillator($this->Close, 12, 26, TRADER_MA_TYPE_SMA));
1296 | }
1297 |
1298 | public function testFriendlyFunctions_aroon()
1299 | {
1300 | self::assertEquals(trader_aroon($this->High, $this->Low, 14), Trader::aroonIndicator($this->High, $this->Low, 14));
1301 | }
1302 |
1303 | public function testFriendlyFunctions_arronosc()
1304 | {
1305 | self::assertEquals(trader_aroonosc($this->High, $this->Low, 14), Trader::arronOscillator($this->High, $this->Low, 14));
1306 | }
1307 |
1308 | public function testFriendlyFunctions_asin()
1309 | {
1310 | self::assertEquals(trader_asin(array_map('sin', $this->Close)), Trader::mathArcSine(array_map('sin', $this->Close)));
1311 | }
1312 |
1313 | public function testFriendlyFunctions_atan()
1314 | {
1315 | self::assertEquals(trader_atan(array_map('tan', $this->Close)), Trader::mathArcTangent(array_map('tan', $this->Close)));
1316 | }
1317 |
1318 | public function testFriendlyFunctions_atr()
1319 | {
1320 | self::assertEquals(trader_atr($this->High, $this->Low, $this->Close, 14), Trader::averageTrueRange($this->High, $this->Low, $this->Close, 14));
1321 | }
1322 |
1323 | public function testFriendlyFunctions_avgprice()
1324 | {
1325 | self::assertEquals(trader_avgprice($this->Open, $this->High, $this->Low, $this->Close), Trader::averagePrice($this->Open, $this->High, $this->Low, $this->Close));
1326 | }
1327 |
1328 | public function testFriendlyFunctions_bbands()
1329 | {
1330 | self::assertEquals(trader_bbands($this->Close, 5, 2.0, 2.0, TRADER_MA_TYPE_SMA), Trader::bollingerBands($this->Close, 5, 2.0, 2.0, TRADER_MA_TYPE_SMA));
1331 | }
1332 |
1333 | public function testFriendlyFunctions_beta()
1334 | {
1335 | self::assertEquals(trader_beta($this->Open, $this->Close, 5), Trader::betaVolatility($this->Open, $this->Close, 5));
1336 | }
1337 |
1338 | public function testFriendlyFunctions_bop()
1339 | {
1340 | self::assertEquals(trader_bop($this->Open, $this->High, $this->Low, $this->Close), Trader::balanceOfPower($this->Open, $this->High, $this->Low, $this->Close));
1341 | }
1342 |
1343 | public function testFriendlyFunctions_cci()
1344 | {
1345 | self::assertEquals(trader_cci($this->High, $this->Low, $this->Close, 14), Trader::commodityChannelIndex($this->High, $this->Low, $this->Close, 14));
1346 | }
1347 |
1348 | public function testFriendlyFunctions_cdl2crows()
1349 | {
1350 | self::assertEquals(trader_cdl2crows($this->Open, $this->High, $this->Low, $this->Close), Trader::candleTwoCrows($this->Open, $this->High, $this->Low, $this->Close));
1351 | }
1352 |
1353 | public function testFriendlyFunctions_cdl3blackcrows()
1354 | {
1355 | self::assertEquals(trader_cdl3blackcrows($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeBlackCrows($this->Open, $this->High, $this->Low, $this->Close));
1356 | }
1357 |
1358 | public function testFriendlyFunctions_cdl3inside()
1359 | {
1360 | self::assertEquals(trader_cdl3inside($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeInsideUpDown($this->Open, $this->High, $this->Low, $this->Close));
1361 | }
1362 |
1363 | public function testFriendlyFunctions_cdl3linestrike()
1364 | {
1365 | self::assertEquals(trader_cdl3linestrike($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeLineStrike($this->Open, $this->High, $this->Low, $this->Close));
1366 | }
1367 |
1368 | public function testFriendlyFunctions_cdl3outside()
1369 | {
1370 | self::assertEquals(trader_cdl3outside($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeOutsideUpDown($this->Open, $this->High, $this->Low, $this->Close));
1371 | }
1372 |
1373 | public function testFriendlyFunctions_cdl3starsinsouth()
1374 | {
1375 | self::assertEquals(trader_cdl3starsinsouth($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeStarsInTheSouth($this->Open, $this->High, $this->Low, $this->Close));
1376 | }
1377 |
1378 | public function testFriendlyFunctions_cdl3whitesoldiers()
1379 | {
1380 | self::assertEquals(trader_cdl3whitesoldiers($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThreeWhiteSoldiers($this->Open, $this->High, $this->Low, $this->Close));
1381 | }
1382 |
1383 | public function testFriendlyFunctions_cdlabandonedbaby()
1384 | {
1385 | self::assertEquals(trader_cdlabandonedbaby($this->Open, $this->High, $this->Low, $this->Close), Trader::candleAbandonedBaby($this->Open, $this->High, $this->Low, $this->Close));
1386 | }
1387 |
1388 | public function testFriendlyFunctions_cdladvanceblock()
1389 | {
1390 | self::assertEquals(trader_cdladvanceblock($this->Open, $this->High, $this->Low, $this->Close), Trader::candleAdvanceBlock($this->Open, $this->High, $this->Low, $this->Close));
1391 | }
1392 |
1393 | public function testFriendlyFunctions_cdlbelthold()
1394 | {
1395 | self::assertEquals(trader_cdlbelthold($this->Open, $this->High, $this->Low, $this->Close), Trader::candleBeltHold($this->Open, $this->High, $this->Low, $this->Close));
1396 | }
1397 |
1398 | public function testFriendlyFunctions_cdlbreakaway()
1399 | {
1400 | self::assertEquals(trader_cdlbreakaway($this->Open, $this->High, $this->Low, $this->Close), Trader::candleBreakaway($this->Open, $this->High, $this->Low, $this->Close));
1401 | }
1402 |
1403 | public function testFriendlyFunctions_cdlclosingmarubozu()
1404 | {
1405 | self::assertEquals(trader_cdlclosingmarubozu($this->Open, $this->High, $this->Low, $this->Close), Trader::candleClosingMarubozu($this->Open, $this->High, $this->Low, $this->Close));
1406 | }
1407 |
1408 | public function testFriendlyFunctions_cdlconcealbabyswall()
1409 | {
1410 | self::assertEquals(trader_cdlconcealbabyswall($this->Open, $this->High, $this->Low, $this->Close), Trader::candleConcealingBabySwallow($this->Open, $this->High, $this->Low, $this->Close));
1411 | }
1412 |
1413 | public function testFriendlyFunctions_cdlcounterattack()
1414 | {
1415 | self::assertEquals(trader_cdlcounterattack($this->Open, $this->High, $this->Low, $this->Close), Trader::candleCounterattack($this->Open, $this->High, $this->Low, $this->Close));
1416 | }
1417 |
1418 | public function testFriendlyFunctions_cdldarkcloudcover()
1419 | {
1420 | self::assertEquals(trader_cdldarkcloudcover($this->Open, $this->High, $this->Low, $this->Close, 0.5), Trader::candleDarkCloudCover($this->Open, $this->High, $this->Low, $this->Close, 0.5));
1421 | }
1422 |
1423 | public function testFriendlyFunctions_cdldoji()
1424 | {
1425 | self::assertEquals(trader_cdldoji($this->Open, $this->High, $this->Low, $this->Close), Trader::candleDoji($this->Open, $this->High, $this->Low, $this->Close));
1426 | }
1427 |
1428 | public function testFriendlyFunctions_cdldojistar()
1429 | {
1430 | self::assertEquals(trader_cdldojistar($this->Open, $this->High, $this->Low, $this->Close), Trader::candleDojiStar($this->Open, $this->High, $this->Low, $this->Close));
1431 | }
1432 |
1433 | public function testFriendlyFunctions_cdldragonflydoji()
1434 | {
1435 | self::assertEquals(trader_cdldragonflydoji($this->Open, $this->High, $this->Low, $this->Close), Trader::candleDragonflyDoji($this->Open, $this->High, $this->Low, $this->Close));
1436 | }
1437 |
1438 | public function testFriendlyFunctions_cdlengulfing()
1439 | {
1440 | self::assertEquals(trader_cdlengulfing($this->Open, $this->High, $this->Low, $this->Close), Trader::candleEngulfingPattern($this->Open, $this->High, $this->Low, $this->Close));
1441 | }
1442 |
1443 | public function testFriendlyFunctions_cdleveningdojistar()
1444 | {
1445 | self::assertEquals(trader_cdleveningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::candleEveningDojiStar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
1446 | }
1447 |
1448 | public function testFriendlyFunctions_cdleveningstar()
1449 | {
1450 | self::assertEquals(trader_cdleveningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::candleEveningStar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
1451 | }
1452 |
1453 | public function testFriendlyFunctions_cdlgapsidesidewhite()
1454 | {
1455 | self::assertEquals(trader_cdlgapsidesidewhite($this->Open, $this->High, $this->Low, $this->Close), Trader::candleUpDownGapsSideBySideWhiteLines($this->Open, $this->High, $this->Low, $this->Close));
1456 | }
1457 |
1458 | public function testFriendlyFunctions_cdlgravestonedoji()
1459 | {
1460 | self::assertEquals(trader_cdlgravestonedoji($this->Open, $this->High, $this->Low, $this->Close), Trader::candleGravestoneDoji($this->Open, $this->High, $this->Low, $this->Close));
1461 | }
1462 |
1463 | public function testFriendlyFunctions_cdlhammer()
1464 | {
1465 | self::assertEquals(trader_cdlhammer($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHammer($this->Open, $this->High, $this->Low, $this->Close));
1466 | }
1467 |
1468 | public function testFriendlyFunctions_cdlhangingman()
1469 | {
1470 | self::assertEquals(trader_cdlhangingman($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHangingMan($this->Open, $this->High, $this->Low, $this->Close));
1471 | }
1472 |
1473 | public function testFriendlyFunctions_cdlharami()
1474 | {
1475 | self::assertEquals(trader_cdlharami($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHarami($this->Open, $this->High, $this->Low, $this->Close));
1476 | }
1477 |
1478 | public function testFriendlyFunctions_cdlharamicross()
1479 | {
1480 | self::assertEquals(trader_cdlharamicross($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHaramiCross($this->Open, $this->High, $this->Low, $this->Close));
1481 | }
1482 |
1483 | public function testFriendlyFunctions_cdlhighwave()
1484 | {
1485 | self::assertEquals(trader_cdlhighwave($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHighWave($this->Open, $this->High, $this->Low, $this->Close));
1486 | }
1487 |
1488 | public function testFriendlyFunctions_cdlhikkake()
1489 | {
1490 | self::assertEquals(trader_cdlhikkake($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHikkake($this->Open, $this->High, $this->Low, $this->Close));
1491 | }
1492 |
1493 | public function testFriendlyFunctions_cdlhikkakemod()
1494 | {
1495 | self::assertEquals(trader_cdlhikkakemod($this->Open, $this->High, $this->Low, $this->Close), Trader::candleModifiedHikkake($this->Open, $this->High, $this->Low, $this->Close));
1496 | }
1497 |
1498 | public function testFriendlyFunctions_cdlhomingpigeon()
1499 | {
1500 | self::assertEquals(trader_cdlhomingpigeon($this->Open, $this->High, $this->Low, $this->Close), Trader::candleHomingPigeon($this->Open, $this->High, $this->Low, $this->Close));
1501 | }
1502 |
1503 | public function testFriendlyFunctions_cdlidentical3crows()
1504 | {
1505 | self::assertEquals(trader_cdlidentical3crows($this->Open, $this->High, $this->Low, $this->Close), Trader::candleIdenticalThreeCrows($this->Open, $this->High, $this->Low, $this->Close));
1506 | }
1507 |
1508 | public function testFriendlyFunctions_cdlinneck()
1509 | {
1510 | self::assertEquals(trader_cdlinneck($this->Open, $this->High, $this->Low, $this->Close), Trader::candleInNeck($this->Open, $this->High, $this->Low, $this->Close));
1511 | }
1512 |
1513 | public function testFriendlyFunctions_cdlinvertedhammer()
1514 | {
1515 | self::assertEquals(trader_cdlinvertedhammer($this->Open, $this->High, $this->Low, $this->Close), Trader::candleInvertedHammer($this->Open, $this->High, $this->Low, $this->Close));
1516 | }
1517 |
1518 | public function testFriendlyFunctions_cdlkicking()
1519 | {
1520 | self::assertEquals(trader_cdlkicking($this->Open, $this->High, $this->Low, $this->Close), Trader::candleKicking($this->Open, $this->High, $this->Low, $this->Close));
1521 | }
1522 |
1523 | public function testFriendlyFunctions_cdlkickingbylength()
1524 | {
1525 | self::assertEquals(trader_cdlkickingbylength($this->Open, $this->High, $this->Low, $this->Close), Trader::candleKickingByLength($this->Open, $this->High, $this->Low, $this->Close));
1526 | }
1527 |
1528 | public function testFriendlyFunctions_cdlladderbottom()
1529 | {
1530 | self::assertEquals(trader_cdlladderbottom($this->Open, $this->High, $this->Low, $this->Close), Trader::candleLadderBottom($this->Open, $this->High, $this->Low, $this->Close));
1531 | }
1532 |
1533 | public function testFriendlyFunctions_cdllongleggeddoji()
1534 | {
1535 | self::assertEquals(trader_cdllongleggeddoji($this->Open, $this->High, $this->Low, $this->Close), Trader::candleLongLeggedDoji($this->Open, $this->High, $this->Low, $this->Close));
1536 | }
1537 |
1538 | public function testFriendlyFunctions_cdllongline()
1539 | {
1540 | self::assertEquals(trader_cdllongline($this->Open, $this->High, $this->Low, $this->Close), Trader::candleLongLine($this->Open, $this->High, $this->Low, $this->Close));
1541 | }
1542 |
1543 | public function testFriendlyFunctions_cdlmarubozu()
1544 | {
1545 | self::assertEquals(trader_cdlmarubozu($this->Open, $this->High, $this->Low, $this->Close), Trader::candleMarubozu($this->Open, $this->High, $this->Low, $this->Close));
1546 | }
1547 |
1548 | public function testFriendlyFunctions_cdlmatchinglow()
1549 | {
1550 | self::assertEquals(trader_cdlmatchinglow($this->Open, $this->High, $this->Low, $this->Close), Trader::candleMatchingLow($this->Open, $this->High, $this->Low, $this->Close));
1551 | }
1552 |
1553 | public function testFriendlyFunctions_cdlmathold()
1554 | {
1555 | self::assertEquals(trader_cdlmathold($this->Open, $this->High, $this->Low, $this->Close, 0.5), Trader::candleMatHold($this->Open, $this->High, $this->Low, $this->Close, 0.5));
1556 | }
1557 |
1558 | public function testFriendlyFunctions_cdlmorningdojistar()
1559 | {
1560 | self::assertEquals(trader_cdlmorningdojistar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::candleMorningDojiStar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
1561 | }
1562 |
1563 | public function testFriendlyFunctions_cdlmorningstar()
1564 | {
1565 | self::assertEquals(trader_cdlmorningstar($this->Open, $this->High, $this->Low, $this->Close, 0.3), Trader::candleMorningStar($this->Open, $this->High, $this->Low, $this->Close, 0.3));
1566 | }
1567 |
1568 | public function testFriendlyFunctions_cdlonneck()
1569 | {
1570 | self::assertEquals(trader_cdlonneck($this->Open, $this->High, $this->Low, $this->Close), Trader::candleOnNeck($this->Open, $this->High, $this->Low, $this->Close));
1571 | }
1572 |
1573 | public function testFriendlyFunctions_cdlpiercing()
1574 | {
1575 | self::assertEquals(trader_cdlpiercing($this->Open, $this->High, $this->Low, $this->Close), Trader::candlePiercing($this->Open, $this->High, $this->Low, $this->Close));
1576 | }
1577 |
1578 | public function testFriendlyFunctions_cdlrickshawman()
1579 | {
1580 | self::assertEquals(trader_cdlrickshawman($this->Open, $this->High, $this->Low, $this->Close), Trader::candleRickshawMan($this->Open, $this->High, $this->Low, $this->Close));
1581 | }
1582 |
1583 | public function testFriendlyFunctions_cdlrisefall3methods()
1584 | {
1585 | self::assertEquals(trader_cdlrisefall3methods($this->Open, $this->High, $this->Low, $this->Close), Trader::candleRisingFallingThreeMethods($this->Open, $this->High, $this->Low, $this->Close));
1586 | }
1587 |
1588 | public function testFriendlyFunctions_cdlseparatinglines()
1589 | {
1590 | self::assertEquals(trader_cdlseparatinglines($this->Open, $this->High, $this->Low, $this->Close), Trader::candleSeparatingLines($this->Open, $this->High, $this->Low, $this->Close));
1591 | }
1592 |
1593 | public function testFriendlyFunctions_cdlshootingstar()
1594 | {
1595 | self::assertEquals(trader_cdlshootingstar($this->Open, $this->High, $this->Low, $this->Close), Trader::candleShootingStar($this->Open, $this->High, $this->Low, $this->Close));
1596 | }
1597 |
1598 | public function testFriendlyFunctions_cdlshortline()
1599 | {
1600 | self::assertEquals(trader_cdlshortline($this->Open, $this->High, $this->Low, $this->Close), Trader::candleShortLine($this->Open, $this->High, $this->Low, $this->Close));
1601 | }
1602 |
1603 | public function testFriendlyFunctions_cdlspinningtop()
1604 | {
1605 | self::assertEquals(trader_cdlspinningtop($this->Open, $this->High, $this->Low, $this->Close), Trader::candleSpinningTop($this->Open, $this->High, $this->Low, $this->Close));
1606 | }
1607 |
1608 | public function testFriendlyFunctions_cdlstalledpattern()
1609 | {
1610 | self::assertEquals(trader_cdlstalledpattern($this->Open, $this->High, $this->Low, $this->Close), Trader::candleStalled($this->Open, $this->High, $this->Low, $this->Close));
1611 | }
1612 |
1613 | public function testFriendlyFunctions_cdlsticksandwich()
1614 | {
1615 | self::assertEquals(trader_cdlsticksandwich($this->Open, $this->High, $this->Low, $this->Close), Trader::candleStickSandwich($this->Open, $this->High, $this->Low, $this->Close));
1616 | }
1617 |
1618 | public function testFriendlyFunctions_cdltakuri()
1619 | {
1620 | self::assertEquals(trader_cdltakuri($this->Open, $this->High, $this->Low, $this->Close), Trader::candleTakuri($this->Open, $this->High, $this->Low, $this->Close));
1621 | }
1622 |
1623 | public function testFriendlyFunctions_cdltasukigap()
1624 | {
1625 | self::assertEquals(trader_cdltasukigap($this->Open, $this->High, $this->Low, $this->Close), Trader::candleTasukiGap($this->Open, $this->High, $this->Low, $this->Close));
1626 | }
1627 |
1628 | public function testFriendlyFunctions_cdlthrusting()
1629 | {
1630 | self::assertEquals(trader_cdlthrusting($this->Open, $this->High, $this->Low, $this->Close), Trader::candleThrusting($this->Open, $this->High, $this->Low, $this->Close));
1631 | }
1632 |
1633 | public function testFriendlyFunctions_cdltristar()
1634 | {
1635 | self::assertEquals(trader_cdltristar($this->Open, $this->High, $this->Low, $this->Close), Trader::candleTristar($this->Open, $this->High, $this->Low, $this->Close));
1636 | }
1637 |
1638 | public function testFriendlyFunctions_cdlunique3river()
1639 | {
1640 | self::assertEquals(trader_cdlunique3river($this->Open, $this->High, $this->Low, $this->Close), Trader::candleUniqueThreeRiver($this->Open, $this->High, $this->Low, $this->Close));
1641 | }
1642 |
1643 | public function testFriendlyFunctions_cdlupsidegap2crows()
1644 | {
1645 | self::assertEquals(trader_cdlupsidegap2crows($this->Open, $this->High, $this->Low, $this->Close), Trader::candleUpsideGapTwoCrows($this->Open, $this->High, $this->Low, $this->Close));
1646 | }
1647 |
1648 | public function testFriendlyFunctions_cdlxsidegap3methods()
1649 | {
1650 | self::assertEquals(trader_cdlxsidegap3methods($this->Open, $this->High, $this->Low, $this->Close), Trader::candleUpsideDownsideGapThreeMethods($this->Open, $this->High, $this->Low, $this->Close));
1651 | }
1652 |
1653 | public function testFriendlyFunctions_ceil()
1654 | {
1655 | self::assertEquals(trader_ceil($this->Close), Trader::mathCeiling($this->Close));
1656 | }
1657 |
1658 | public function testFriendlyFunctions_cmo()
1659 | {
1660 | self::assertEquals(trader_cmo($this->Close, 14), Trader::chandeMomentumOscillator($this->Close, 14));
1661 | }
1662 |
1663 | public function testFriendlyFunctions_correl()
1664 | {
1665 | self::assertEquals(trader_correl($this->Open, $this->Close, 30), Trader::pearsonCorrelationCoefficient($this->Open, $this->Close, 30));
1666 | }
1667 |
1668 | public function testFriendlyFunctions_cos()
1669 | {
1670 | self::assertEquals(trader_cos($this->Close), Trader::mathCosine($this->Close));
1671 | }
1672 |
1673 | public function testFriendlyFunctions_cosh()
1674 | {
1675 | self::assertEquals(trader_cosh($this->Close), Trader::mathHyperbolicCosine($this->Close));
1676 | }
1677 |
1678 | public function testFriendlyFunctions_dema()
1679 | {
1680 | self::assertEquals(trader_dema($this->Close, 30), Trader::doubleExponentialMovingAverage($this->Close, 30));
1681 | }
1682 |
1683 | public function testFriendlyFunctions_div()
1684 | {
1685 | self::assertEquals(trader_div($this->Open, $this->Close), Trader::mathDivision($this->Open, $this->Close));
1686 | }
1687 |
1688 | public function testFriendlyFunctions_dx()
1689 | {
1690 | self::assertEquals(trader_dx($this->High, $this->Low, $this->Close, 14), Trader::directionalMovementIndex($this->High, $this->Low, $this->Close, 14));
1691 | }
1692 |
1693 | public function testFriendlyFunctions_ema()
1694 | {
1695 | self::assertEquals(trader_ema($this->Close, 30), Trader::exponentialMovingAverage($this->Close, 30));
1696 | }
1697 |
1698 | public function testFriendlyFunctions_exp()
1699 | {
1700 | self::assertEquals(trader_exp($this->Close), Trader::mathExponent($this->Close));
1701 | }
1702 |
1703 | public function testFriendlyFunctions_floor()
1704 | {
1705 | self::assertEquals(trader_floor($this->Close), Trader::mathFloor($this->Close));
1706 | }
1707 |
1708 | public function testFriendlyFunctions_ht_dcperiod()
1709 | {
1710 | self::assertEquals(trader_ht_dcperiod($this->Close), Trader::hilbertTransformDominantCyclePeriod($this->Close));
1711 | }
1712 |
1713 | public function testFriendlyFunctions_ht_dcphase()
1714 | {
1715 | self::assertEquals(trader_ht_dcphase($this->Close), Trader::hilbertTransformDominantCyclePhase($this->Close));
1716 | }
1717 |
1718 | public function testFriendlyFunctions_ht_phasor()
1719 | {
1720 | self::assertEquals(trader_ht_phasor($this->Close), Trader::hilbertTransformPhasorComponents($this->Close));
1721 | }
1722 |
1723 | public function testFriendlyFunctions_ht_sine()
1724 | {
1725 | self::assertEquals(trader_ht_sine($this->Close), Trader::hilbertTransformSineWave($this->Close));
1726 | }
1727 |
1728 | public function testFriendlyFunctions_ht_trendline()
1729 | {
1730 | self::assertEquals(trader_ht_trendline($this->Close), Trader::hilbertTransformInstantaneousTrendLine($this->Close));
1731 | }
1732 |
1733 | public function testFriendlyFunctions_ht_trendmode()
1734 | {
1735 | self::assertEquals(trader_ht_trendmode($this->Close), Trader::hilbertTransformTrendVsCycleMode($this->Close));
1736 | }
1737 |
1738 | public function testFriendlyFunctions_kama()
1739 | {
1740 | self::assertEquals(trader_kama($this->Close, 30), Trader::kaufmanAdaptiveMovingAverage($this->Close, 30));
1741 | }
1742 |
1743 | public function testFriendlyFunctions_linearreg_angle()
1744 | {
1745 | self::assertEquals(trader_linearreg_angle($this->Close, 14), Trader::linearRegressionAngle($this->Close, 14));
1746 | }
1747 |
1748 | public function testFriendlyFunctions_linearreg_intercept()
1749 | {
1750 | self::assertEquals(trader_linearreg_intercept($this->Close, 14), Trader::linearRegressionIntercept($this->Close, 14));
1751 | }
1752 |
1753 | public function testFriendlyFunctions_linearreg_slope()
1754 | {
1755 | self::assertEquals(trader_linearreg_slope($this->Close, 14), Trader::linearRegressionSlope($this->Close, 14));
1756 | }
1757 |
1758 | public function testFriendlyFunctions_linearreg()
1759 | {
1760 | self::assertEquals(trader_linearreg($this->Close, 14), Trader::linearRegression($this->Close, 14));
1761 | }
1762 |
1763 | public function testFriendlyFunctions_ln()
1764 | {
1765 | self::assertEquals(trader_ln($this->Close), Trader::mathLogarithmNatural($this->Close));
1766 | }
1767 |
1768 | public function testFriendlyFunctions_log10()
1769 | {
1770 | self::assertEquals(trader_log10($this->Close), Trader::mathLogarithmBase10($this->Close));
1771 | }
1772 |
1773 | public function testFriendlyFunctions_ma()
1774 | {
1775 | self::assertEquals(trader_ma($this->Close, 30, TRADER_MA_TYPE_SMA), Trader::movingAverage($this->Close, 30, TRADER_MA_TYPE_SMA));
1776 | }
1777 |
1778 | public function testFriendlyFunctions_macd()
1779 | {
1780 | self::assertEquals(trader_macd($this->Close, 12, 26, 9), Trader::movingAverageConvergenceDivergence($this->Close, 12, 26, 9));
1781 | }
1782 |
1783 | public function testFriendlyFunctions_macdext()
1784 | {
1785 | self::assertEquals(trader_macdext($this->Close, 12, TRADER_MA_TYPE_SMA, 26, TRADER_MA_TYPE_SMA, 9), Trader::movingAverageConvergenceDivergenceExtended($this->Close, 12, TRADER_MA_TYPE_SMA, 26, TRADER_MA_TYPE_SMA, 9));
1786 | }
1787 |
1788 | public function testFriendlyFunctions_macdfix()
1789 | {
1790 | self::assertEquals(trader_macdfix($this->Close, 9), Trader::movingAverageConvergenceDivergenceFixed($this->Close, 9));
1791 | }
1792 |
1793 | public function testFriendlyFunctions_mama()
1794 | {
1795 | self::assertEquals(trader_mama($this->Close, 0.5, 0.05), Trader::mesaAdaptiveMovingAverage($this->Close, 0.5, 0.05));
1796 | }
1797 |
1798 | public function testFriendlyFunctions_mavp()
1799 | {
1800 | self::assertEquals(trader_mavp($this->Close, $this->Open, 2, 30, TRADER_MA_TYPE_SMA), Trader::movingAverageVariablePeriod($this->Close, $this->Open, 2, 30, TRADER_MA_TYPE_SMA));
1801 | }
1802 |
1803 | public function testFriendlyFunctions_max()
1804 | {
1805 | self::assertEquals(trader_max($this->Close, 30), Trader::mathMax($this->Close, 30));
1806 | }
1807 |
1808 | public function testFriendlyFunctions_maxindex()
1809 | {
1810 | self::assertEquals(trader_maxindex($this->Close, 30), Trader::mathMaxIndex($this->Close, 30));
1811 | }
1812 |
1813 | public function testFriendlyFunctions_medprice()
1814 | {
1815 | self::assertEquals(trader_medprice($this->High, $this->Low), Trader::mathMedianPrice($this->High, $this->Low));
1816 | }
1817 |
1818 | public function testFriendlyFunctions_mfi()
1819 | {
1820 | self::assertEquals(trader_mfi($this->High, $this->Low, $this->Close, $this->Volume, 14), Trader::moneyFlowIndex($this->High, $this->Low, $this->Close, $this->Volume, 14));
1821 | }
1822 |
1823 | public function testFriendlyFunctions_midpoint()
1824 | {
1825 | self::assertEquals(trader_midpoint($this->Close, 14), Trader::middlePoint($this->Close, 14));
1826 | }
1827 |
1828 | public function testFriendlyFunctions_midprice()
1829 | {
1830 | self::assertEquals(trader_midprice($this->High, $this->Low, 14), Trader::middlePointPrice($this->High, $this->Low, 14));
1831 | }
1832 |
1833 | public function testFriendlyFunctions_min()
1834 | {
1835 | self::assertEquals(trader_min($this->High, 30), Trader::mathMin($this->High, 30));
1836 | }
1837 |
1838 | public function testFriendlyFunctions_minindex()
1839 | {
1840 | self::assertEquals(trader_minindex($this->High, 30), Trader::mathMinIndex($this->High, 30));
1841 | }
1842 |
1843 | public function testFriendlyFunctions_minmax()
1844 | {
1845 | self::assertEquals(trader_minmax($this->High, 30), Trader::mathMinMax($this->High, 30));
1846 | }
1847 |
1848 | public function testFriendlyFunctions_minmaxindex()
1849 | {
1850 | self::assertEquals(trader_minmaxindex($this->High, 30), Trader::mathMinMaxIndex($this->High, 30));
1851 | }
1852 |
1853 | public function testFriendlyFunctions_minus_di()
1854 | {
1855 | self::assertEquals(trader_minus_di($this->High, $this->Low, $this->Close, 14), Trader::minusDirectionalIndicator($this->High, $this->Low, $this->Close, 14));
1856 | }
1857 |
1858 | public function testFriendlyFunctions_minus_dmi()
1859 | {
1860 | self::assertEquals(trader_minus_dm($this->High, $this->Low, 14), Trader::minusDirectionalMovement($this->High, $this->Low, 14));
1861 | }
1862 |
1863 | public function testFriendlyFunctions_mom()
1864 | {
1865 | self::assertEquals(trader_mom($this->High, 10), Trader::momentum($this->High, 10));
1866 | }
1867 |
1868 | public function testFriendlyFunctions_mult()
1869 | {
1870 | self::assertEquals(trader_mult($this->Open, $this->Close), Trader::mathMultiply($this->Open, $this->Close));
1871 | }
1872 |
1873 | public function testFriendlyFunctions_natr()
1874 | {
1875 | self::assertEquals(trader_natr($this->High, $this->Low, $this->Close, 14), Trader::normalizedAverageTrueRange($this->High, $this->Low, $this->Close, 14));
1876 | }
1877 |
1878 | public function testFriendlyFunctions_obv()
1879 | {
1880 | self::assertEquals(trader_obv($this->Close, $this->Volume), Trader::onBalanceVolume($this->Close, $this->Volume));
1881 | }
1882 |
1883 | public function testFriendlyFunctions_plus_di()
1884 | {
1885 | self::assertEquals(trader_plus_di($this->High, $this->Low, $this->Close, 14), Trader::plusDirectionalIndicator($this->High, $this->Low, $this->Close, 14));
1886 | }
1887 |
1888 | public function testFriendlyFunctions_plus_dm()
1889 | {
1890 | self::assertEquals(trader_plus_dm($this->High, $this->Low, 14), Trader::plusDirectionalMovement($this->High, $this->Low, 14));
1891 | }
1892 |
1893 | public function testFriendlyFunctions_ppo()
1894 | {
1895 | self::assertEquals(trader_ppo($this->Close, 12, 26, TRADER_MA_TYPE_SMA), Trader::percentagePriceOscillator($this->Close, 12, 26, TRADER_MA_TYPE_SMA));
1896 | }
1897 |
1898 | public function testFriendlyFunctions_roc()
1899 | {
1900 | self::assertEquals(trader_roc($this->Close, 10), Trader::rateOfChange($this->Close, 10));
1901 | }
1902 |
1903 | public function testFriendlyFunctions_rocp()
1904 | {
1905 | self::assertEquals(trader_rocp($this->Close, 10), Trader::rateOfChangePercentage($this->Close, 10));
1906 | }
1907 |
1908 | public function testFriendlyFunctions_rocr100()
1909 | {
1910 | self::assertEquals(trader_rocr100($this->Close, 10), Trader::rateOfChangeRatio100($this->Close, 10));
1911 | }
1912 |
1913 | public function testFriendlyFunctions_rocr()
1914 | {
1915 | self::assertEquals(trader_rocr($this->Close, 10), Trader::rateOfChangeRatio($this->Close, 10));
1916 | }
1917 |
1918 | public function testFriendlyFunctions_rsi()
1919 | {
1920 | self::assertEquals(trader_rsi($this->Close, 14), Trader::relativeStrengthIndex($this->Close, 14));
1921 | }
1922 |
1923 | public function testFriendlyFunctions_sar()
1924 | {
1925 | self::assertEquals(trader_sar($this->Close, $this->Low, 0.02, 0.2), Trader::parabolicSAR($this->Close, $this->Low, 0.02, 0.2));
1926 | }
1927 |
1928 | public function testFriendlyFunctions_sarext()
1929 | {
1930 | self::assertEquals(trader_sarext($this->Close, $this->Low, 0.0, 0.0, 0.02, 0.02, 0.2, 0.02, 0.02, 0.2), Trader::parabolicSARExtended($this->Close, $this->Low, 0.0, 0.0, 0.02, 0.02, 0.2, 0.02, 0.02, 0.2));
1931 | }
1932 |
1933 | public function testFriendlyFunctions_sin()
1934 | {
1935 | self::assertEquals(trader_sin($this->Close), Trader::mathSine($this->Close));
1936 | }
1937 |
1938 | public function testFriendlyFunctions_sinh()
1939 | {
1940 | self::assertEquals(trader_sinh($this->Close), Trader::mathHyperbolicSine($this->Close));
1941 | }
1942 |
1943 | public function testFriendlyFunctions_sma()
1944 | {
1945 | self::assertEquals(trader_sma($this->Close, 30), Trader::simpleMovingAverage($this->Close, 30));
1946 | }
1947 |
1948 | public function testFriendlyFunctions_sqrt()
1949 | {
1950 | self::assertEquals(trader_sqrt($this->Close), Trader::mathSquareRoot($this->Close));
1951 | }
1952 |
1953 | public function testFriendlyFunctions_stddev()
1954 | {
1955 | self::assertEquals(trader_stddev($this->Close, 5, 1.0), Trader::standardDeviation($this->Close, 5, 1.0));
1956 | }
1957 |
1958 | public function testFriendlyFunctions_stoch()
1959 | {
1960 | self::assertEquals(trader_stoch($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA, 3, TRADER_MA_TYPE_SMA), Trader::stochastic($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA, 3, TRADER_MA_TYPE_SMA));
1961 | }
1962 |
1963 | public function testFriendlyFunctions_stochf()
1964 | {
1965 | self::assertEquals(trader_stochf($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA), Trader::stochasticFast($this->High, $this->Low, $this->Close, 5, 3, TRADER_MA_TYPE_SMA));
1966 | }
1967 |
1968 | public function testFriendlyFunctions_stochrsi()
1969 | {
1970 | self::assertEquals(trader_stochrsi($this->Close, 14, 5, 3, TRADER_MA_TYPE_SMA), Trader::stochasticRelativeStrengthIndex($this->Close, 14, 5, 3, TRADER_MA_TYPE_SMA));
1971 | }
1972 |
1973 | public function testFriendlyFunctions_sub()
1974 | {
1975 | self::assertEquals(trader_sub($this->High, $this->Low), Trader::mathSubtraction($this->High, $this->Low));
1976 | }
1977 |
1978 | public function testFriendlyFunctions_sum()
1979 | {
1980 | self::assertEquals(trader_sum($this->High, 30), Trader::mathSummation($this->High, 30));
1981 | }
1982 |
1983 | public function testFriendlyFunctions_t3()
1984 | {
1985 | self::assertEquals(trader_t3($this->High, 5, 0.7), Trader::tripleExponentialMovingAverageT3($this->High, 5, 0.7));
1986 | }
1987 |
1988 | public function testFriendlyFunctions_tan()
1989 | {
1990 | self::assertEquals(trader_tan($this->Close), Trader::mathTangent($this->Close));
1991 | }
1992 |
1993 | public function testFriendlyFunctions_tanh()
1994 | {
1995 | self::assertEquals(trader_tanh($this->Close), Trader::mathHyperbolicTangent($this->Close));
1996 | }
1997 |
1998 | public function testFriendlyFunctions_tema()
1999 | {
2000 | self::assertEquals(trader_tema($this->Close, 30), Trader::tripleExponentialMovingAverage($this->Close, 30));
2001 | }
2002 |
2003 | public function testFriendlyFunctions_trange()
2004 | {
2005 | self::assertEquals(trader_trange($this->High, $this->Low, $this->Close), Trader::trueRange($this->High, $this->Low, $this->Close));
2006 | }
2007 |
2008 | public function testFriendlyFunctions_trima()
2009 | {
2010 | self::assertEquals(trader_trima($this->Close, 30), Trader::triangularMovingAverage($this->Close, 30));
2011 | }
2012 |
2013 | public function testFriendlyFunctions_trix()
2014 | {
2015 | self::assertEquals(trader_trix($this->Close, 30), Trader::tripleExponentialAverage($this->Close, 30));
2016 | }
2017 |
2018 | public function testFriendlyFunctions_tsf()
2019 | {
2020 | self::assertEquals(trader_tsf($this->Close, 14), Trader::timeSeriesForecast($this->Close, 14));
2021 | }
2022 |
2023 | public function testFriendlyFunctions_typprice()
2024 | {
2025 | self::assertEquals(trader_typprice($this->High, $this->Low, $this->Close), Trader::typicalPrice($this->High, $this->Low, $this->Close));
2026 | }
2027 |
2028 | public function testFriendlyFunctions_ultosc()
2029 | {
2030 | self::assertEquals(trader_ultosc($this->High, $this->Low, $this->Close, 7, 14, 28), Trader::ultimateOscillator($this->High, $this->Low, $this->Close, 7, 14, 28));
2031 | }
2032 |
2033 | public function testFriendlyFunctions_var()
2034 | {
2035 | self::assertEquals(trader_var($this->Close, 5, 1.0), Trader::variance($this->Close, 5, 1.0));
2036 | }
2037 |
2038 | public function testFriendlyFunctions_wclprice()
2039 | {
2040 | self::assertEquals(trader_wclprice($this->High, $this->Low, $this->Close), Trader::weightedClosePrice($this->High, $this->Low, $this->Close));
2041 | }
2042 |
2043 | public function testFriendlyFunctions_willr()
2044 | {
2045 | self::assertEquals(trader_willr($this->High, $this->Low, $this->Close, 14), Trader::williamsR($this->High, $this->Low, $this->Close, 14));
2046 | }
2047 |
2048 | public function testFriendlyFunctions_wma()
2049 | {
2050 | self::assertEquals(trader_wma($this->Close, 30), Trader::weightedMovingAverage($this->Close, 30));
2051 | }
2052 |
2053 | //
2054 |
2055 | }
2056 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lupecode/php-trader-interface",
3 | "description": "An interface to the PHP Trader extension.",
4 | "version": "1.0.5",
5 | "type": "library",
6 | "license": "GPL-3.0-or-later",
7 | "authors": [
8 | {
9 | "name": "Joshua Lopez",
10 | "email": "joshua@lupecode.com",
11 | "homepage": "http://github.com/LupeCode",
12 | "role": "Developer"
13 | }
14 | ],
15 | "require": {
16 | "php": ">=7.0.0",
17 | "ext-trader": ">=0.4.1"
18 | },
19 | "require-dev": {
20 | "phpunit/phpunit": "~6.3.0",
21 | "codacy/coverage": "~1.4.0",
22 | "phpmetrics/phpmetrics": "~2.3.2"
23 | },
24 | "autoload": {
25 | "psr-4": {"LupeCode\\phpTraderInterface\\": "source/"}
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "f7641e61f8461268a7d266bc0e55f69e",
8 | "packages": [],
9 | "packages-dev": [
10 | {
11 | "name": "codacy/coverage",
12 | "version": "1.4.1",
13 | "source": {
14 | "type": "git",
15 | "url": "https://github.com/codacy/php-codacy-coverage.git",
16 | "reference": "546ac2e000a004571c1000ecff4d68a98706db3a"
17 | },
18 | "dist": {
19 | "type": "zip",
20 | "url": "https://api.github.com/repos/codacy/php-codacy-coverage/zipball/546ac2e000a004571c1000ecff4d68a98706db3a",
21 | "reference": "546ac2e000a004571c1000ecff4d68a98706db3a",
22 | "shasum": ""
23 | },
24 | "require": {
25 | "gitonomy/gitlib": ">=1.0",
26 | "php": ">=5.3.3",
27 | "symfony/console": "~2.5|~3.0|~4.0"
28 | },
29 | "require-dev": {
30 | "phpunit/phpunit": "~6.5"
31 | },
32 | "bin": [
33 | "bin/codacycoverage"
34 | ],
35 | "type": "library",
36 | "autoload": {
37 | "classmap": [
38 | "src/"
39 | ]
40 | },
41 | "notification-url": "https://packagist.org/downloads/",
42 | "license": [
43 | "MIT"
44 | ],
45 | "authors": [
46 | {
47 | "name": "Jakob Pupke",
48 | "email": "jakob.pupke@gmail.com"
49 | }
50 | ],
51 | "description": "Sends PHP test coverage information to Codacy.",
52 | "homepage": "https://github.com/codacy/php-codacy-coverage",
53 | "time": "2017-12-20T14:31:46+00:00"
54 | },
55 | {
56 | "name": "doctrine/instantiator",
57 | "version": "1.1.0",
58 | "source": {
59 | "type": "git",
60 | "url": "https://github.com/doctrine/instantiator.git",
61 | "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
62 | },
63 | "dist": {
64 | "type": "zip",
65 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
66 | "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
67 | "shasum": ""
68 | },
69 | "require": {
70 | "php": "^7.1"
71 | },
72 | "require-dev": {
73 | "athletic/athletic": "~0.1.8",
74 | "ext-pdo": "*",
75 | "ext-phar": "*",
76 | "phpunit/phpunit": "^6.2.3",
77 | "squizlabs/php_codesniffer": "^3.0.2"
78 | },
79 | "type": "library",
80 | "extra": {
81 | "branch-alias": {
82 | "dev-master": "1.2.x-dev"
83 | }
84 | },
85 | "autoload": {
86 | "psr-4": {
87 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
88 | }
89 | },
90 | "notification-url": "https://packagist.org/downloads/",
91 | "license": [
92 | "MIT"
93 | ],
94 | "authors": [
95 | {
96 | "name": "Marco Pivetta",
97 | "email": "ocramius@gmail.com",
98 | "homepage": "http://ocramius.github.com/"
99 | }
100 | ],
101 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
102 | "homepage": "https://github.com/doctrine/instantiator",
103 | "keywords": [
104 | "constructor",
105 | "instantiate"
106 | ],
107 | "time": "2017-07-22T11:58:36+00:00"
108 | },
109 | {
110 | "name": "gitonomy/gitlib",
111 | "version": "v1.0.3",
112 | "source": {
113 | "type": "git",
114 | "url": "https://github.com/gitonomy/gitlib.git",
115 | "reference": "1c2b0605115786613cb517798046c8ab57c17097"
116 | },
117 | "dist": {
118 | "type": "zip",
119 | "url": "https://api.github.com/repos/gitonomy/gitlib/zipball/1c2b0605115786613cb517798046c8ab57c17097",
120 | "reference": "1c2b0605115786613cb517798046c8ab57c17097",
121 | "shasum": ""
122 | },
123 | "require": {
124 | "php": "^5.3 || ^7.0",
125 | "symfony/process": "^2.3|^3.0|^4.0"
126 | },
127 | "require-dev": {
128 | "phpunit/phpunit": "^4.8.35|^5.7",
129 | "psr/log": "^1.0"
130 | },
131 | "suggest": {
132 | "psr/log": "Add some log"
133 | },
134 | "type": "library",
135 | "extra": {
136 | "branch-alias": {
137 | "dev-master": "1.0-dev"
138 | }
139 | },
140 | "autoload": {
141 | "psr-4": {
142 | "Gitonomy\\Git\\": "src/Gitonomy/Git/"
143 | }
144 | },
145 | "notification-url": "https://packagist.org/downloads/",
146 | "license": [
147 | "MIT"
148 | ],
149 | "authors": [
150 | {
151 | "name": "Alexandre Salomé",
152 | "email": "alexandre.salome@gmail.com",
153 | "homepage": "http://alexandre-salome.fr"
154 | },
155 | {
156 | "name": "Julien DIDIER",
157 | "email": "genzo.wm@gmail.com",
158 | "homepage": "http://www.jdidier.net"
159 | }
160 | ],
161 | "description": "Library for accessing git",
162 | "homepage": "http://gitonomy.com",
163 | "time": "2018-01-10T11:34:47+00:00"
164 | },
165 | {
166 | "name": "myclabs/deep-copy",
167 | "version": "1.7.0",
168 | "source": {
169 | "type": "git",
170 | "url": "https://github.com/myclabs/DeepCopy.git",
171 | "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
172 | },
173 | "dist": {
174 | "type": "zip",
175 | "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
176 | "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
177 | "shasum": ""
178 | },
179 | "require": {
180 | "php": "^5.6 || ^7.0"
181 | },
182 | "require-dev": {
183 | "doctrine/collections": "^1.0",
184 | "doctrine/common": "^2.6",
185 | "phpunit/phpunit": "^4.1"
186 | },
187 | "type": "library",
188 | "autoload": {
189 | "psr-4": {
190 | "DeepCopy\\": "src/DeepCopy/"
191 | },
192 | "files": [
193 | "src/DeepCopy/deep_copy.php"
194 | ]
195 | },
196 | "notification-url": "https://packagist.org/downloads/",
197 | "license": [
198 | "MIT"
199 | ],
200 | "description": "Create deep copies (clones) of your objects",
201 | "keywords": [
202 | "clone",
203 | "copy",
204 | "duplicate",
205 | "object",
206 | "object graph"
207 | ],
208 | "time": "2017-10-19T19:58:43+00:00"
209 | },
210 | {
211 | "name": "nikic/php-parser",
212 | "version": "v3.1.3",
213 | "source": {
214 | "type": "git",
215 | "url": "https://github.com/nikic/PHP-Parser.git",
216 | "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda"
217 | },
218 | "dist": {
219 | "type": "zip",
220 | "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/579f4ce846734a1cf55d6a531d00ca07a43e3cda",
221 | "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda",
222 | "shasum": ""
223 | },
224 | "require": {
225 | "ext-tokenizer": "*",
226 | "php": ">=5.5"
227 | },
228 | "require-dev": {
229 | "phpunit/phpunit": "~4.0|~5.0"
230 | },
231 | "bin": [
232 | "bin/php-parse"
233 | ],
234 | "type": "library",
235 | "extra": {
236 | "branch-alias": {
237 | "dev-master": "3.0-dev"
238 | }
239 | },
240 | "autoload": {
241 | "psr-4": {
242 | "PhpParser\\": "lib/PhpParser"
243 | }
244 | },
245 | "notification-url": "https://packagist.org/downloads/",
246 | "license": [
247 | "BSD-3-Clause"
248 | ],
249 | "authors": [
250 | {
251 | "name": "Nikita Popov"
252 | }
253 | ],
254 | "description": "A PHP parser written in PHP",
255 | "keywords": [
256 | "parser",
257 | "php"
258 | ],
259 | "time": "2017-12-26T14:43:21+00:00"
260 | },
261 | {
262 | "name": "phar-io/manifest",
263 | "version": "1.0.1",
264 | "source": {
265 | "type": "git",
266 | "url": "https://github.com/phar-io/manifest.git",
267 | "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
268 | },
269 | "dist": {
270 | "type": "zip",
271 | "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
272 | "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
273 | "shasum": ""
274 | },
275 | "require": {
276 | "ext-dom": "*",
277 | "ext-phar": "*",
278 | "phar-io/version": "^1.0.1",
279 | "php": "^5.6 || ^7.0"
280 | },
281 | "type": "library",
282 | "extra": {
283 | "branch-alias": {
284 | "dev-master": "1.0.x-dev"
285 | }
286 | },
287 | "autoload": {
288 | "classmap": [
289 | "src/"
290 | ]
291 | },
292 | "notification-url": "https://packagist.org/downloads/",
293 | "license": [
294 | "BSD-3-Clause"
295 | ],
296 | "authors": [
297 | {
298 | "name": "Arne Blankerts",
299 | "email": "arne@blankerts.de",
300 | "role": "Developer"
301 | },
302 | {
303 | "name": "Sebastian Heuer",
304 | "email": "sebastian@phpeople.de",
305 | "role": "Developer"
306 | },
307 | {
308 | "name": "Sebastian Bergmann",
309 | "email": "sebastian@phpunit.de",
310 | "role": "Developer"
311 | }
312 | ],
313 | "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
314 | "time": "2017-03-05T18:14:27+00:00"
315 | },
316 | {
317 | "name": "phar-io/version",
318 | "version": "1.0.1",
319 | "source": {
320 | "type": "git",
321 | "url": "https://github.com/phar-io/version.git",
322 | "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
323 | },
324 | "dist": {
325 | "type": "zip",
326 | "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
327 | "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
328 | "shasum": ""
329 | },
330 | "require": {
331 | "php": "^5.6 || ^7.0"
332 | },
333 | "type": "library",
334 | "autoload": {
335 | "classmap": [
336 | "src/"
337 | ]
338 | },
339 | "notification-url": "https://packagist.org/downloads/",
340 | "license": [
341 | "BSD-3-Clause"
342 | ],
343 | "authors": [
344 | {
345 | "name": "Arne Blankerts",
346 | "email": "arne@blankerts.de",
347 | "role": "Developer"
348 | },
349 | {
350 | "name": "Sebastian Heuer",
351 | "email": "sebastian@phpeople.de",
352 | "role": "Developer"
353 | },
354 | {
355 | "name": "Sebastian Bergmann",
356 | "email": "sebastian@phpunit.de",
357 | "role": "Developer"
358 | }
359 | ],
360 | "description": "Library for handling version information and constraints",
361 | "time": "2017-03-05T17:38:23+00:00"
362 | },
363 | {
364 | "name": "phpdocumentor/reflection-common",
365 | "version": "1.0.1",
366 | "source": {
367 | "type": "git",
368 | "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
369 | "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
370 | },
371 | "dist": {
372 | "type": "zip",
373 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
374 | "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
375 | "shasum": ""
376 | },
377 | "require": {
378 | "php": ">=5.5"
379 | },
380 | "require-dev": {
381 | "phpunit/phpunit": "^4.6"
382 | },
383 | "type": "library",
384 | "extra": {
385 | "branch-alias": {
386 | "dev-master": "1.0.x-dev"
387 | }
388 | },
389 | "autoload": {
390 | "psr-4": {
391 | "phpDocumentor\\Reflection\\": [
392 | "src"
393 | ]
394 | }
395 | },
396 | "notification-url": "https://packagist.org/downloads/",
397 | "license": [
398 | "MIT"
399 | ],
400 | "authors": [
401 | {
402 | "name": "Jaap van Otterdijk",
403 | "email": "opensource@ijaap.nl"
404 | }
405 | ],
406 | "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
407 | "homepage": "http://www.phpdoc.org",
408 | "keywords": [
409 | "FQSEN",
410 | "phpDocumentor",
411 | "phpdoc",
412 | "reflection",
413 | "static analysis"
414 | ],
415 | "time": "2017-09-11T18:02:19+00:00"
416 | },
417 | {
418 | "name": "phpdocumentor/reflection-docblock",
419 | "version": "4.2.0",
420 | "source": {
421 | "type": "git",
422 | "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
423 | "reference": "66465776cfc249844bde6d117abff1d22e06c2da"
424 | },
425 | "dist": {
426 | "type": "zip",
427 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/66465776cfc249844bde6d117abff1d22e06c2da",
428 | "reference": "66465776cfc249844bde6d117abff1d22e06c2da",
429 | "shasum": ""
430 | },
431 | "require": {
432 | "php": "^7.0",
433 | "phpdocumentor/reflection-common": "^1.0.0",
434 | "phpdocumentor/type-resolver": "^0.4.0",
435 | "webmozart/assert": "^1.0"
436 | },
437 | "require-dev": {
438 | "doctrine/instantiator": "~1.0.5",
439 | "mockery/mockery": "^1.0",
440 | "phpunit/phpunit": "^6.4"
441 | },
442 | "type": "library",
443 | "extra": {
444 | "branch-alias": {
445 | "dev-master": "4.x-dev"
446 | }
447 | },
448 | "autoload": {
449 | "psr-4": {
450 | "phpDocumentor\\Reflection\\": [
451 | "src/"
452 | ]
453 | }
454 | },
455 | "notification-url": "https://packagist.org/downloads/",
456 | "license": [
457 | "MIT"
458 | ],
459 | "authors": [
460 | {
461 | "name": "Mike van Riel",
462 | "email": "me@mikevanriel.com"
463 | }
464 | ],
465 | "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
466 | "time": "2017-11-27T17:38:31+00:00"
467 | },
468 | {
469 | "name": "phpdocumentor/type-resolver",
470 | "version": "0.4.0",
471 | "source": {
472 | "type": "git",
473 | "url": "https://github.com/phpDocumentor/TypeResolver.git",
474 | "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
475 | },
476 | "dist": {
477 | "type": "zip",
478 | "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
479 | "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
480 | "shasum": ""
481 | },
482 | "require": {
483 | "php": "^5.5 || ^7.0",
484 | "phpdocumentor/reflection-common": "^1.0"
485 | },
486 | "require-dev": {
487 | "mockery/mockery": "^0.9.4",
488 | "phpunit/phpunit": "^5.2||^4.8.24"
489 | },
490 | "type": "library",
491 | "extra": {
492 | "branch-alias": {
493 | "dev-master": "1.0.x-dev"
494 | }
495 | },
496 | "autoload": {
497 | "psr-4": {
498 | "phpDocumentor\\Reflection\\": [
499 | "src/"
500 | ]
501 | }
502 | },
503 | "notification-url": "https://packagist.org/downloads/",
504 | "license": [
505 | "MIT"
506 | ],
507 | "authors": [
508 | {
509 | "name": "Mike van Riel",
510 | "email": "me@mikevanriel.com"
511 | }
512 | ],
513 | "time": "2017-07-14T14:27:02+00:00"
514 | },
515 | {
516 | "name": "phpmetrics/phpmetrics",
517 | "version": "v2.3.2",
518 | "source": {
519 | "type": "git",
520 | "url": "https://github.com/phpmetrics/PhpMetrics.git",
521 | "reference": "e44f5224d08571ee6ba85c50379560b9ec217b91"
522 | },
523 | "dist": {
524 | "type": "zip",
525 | "url": "https://api.github.com/repos/phpmetrics/PhpMetrics/zipball/e44f5224d08571ee6ba85c50379560b9ec217b91",
526 | "reference": "e44f5224d08571ee6ba85c50379560b9ec217b91",
527 | "shasum": ""
528 | },
529 | "require": {
530 | "ext-dom": "*",
531 | "ext-tokenizer": "*",
532 | "nikic/php-parser": "v3.*",
533 | "php": ">=5.5"
534 | },
535 | "replace": {
536 | "halleck45/php-metrics": "*",
537 | "halleck45/phpmetrics": "*"
538 | },
539 | "require-dev": {
540 | "phpunit/phpunit": ">=4.8.27,<=5.7.13"
541 | },
542 | "bin": [
543 | "bin/phpmetrics"
544 | ],
545 | "type": "library",
546 | "autoload": {
547 | "psr-0": {
548 | "Hal\\": "./src/"
549 | },
550 | "files": [
551 | "./src/functions.php"
552 | ]
553 | },
554 | "notification-url": "https://packagist.org/downloads/",
555 | "license": [
556 | "MIT"
557 | ],
558 | "authors": [
559 | {
560 | "name": "Jean-François Lépine",
561 | "email": "lepinejeanfrancois@yahoo.fr",
562 | "homepage": "http://www.lepine.pro",
563 | "role": "Copyright Holder"
564 | }
565 | ],
566 | "description": "Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more !",
567 | "homepage": "http://www.phpmetrics.org",
568 | "keywords": [
569 | "analysis",
570 | "qa",
571 | "quality",
572 | "testing"
573 | ],
574 | "time": "2017-10-13T16:11:30+00:00"
575 | },
576 | {
577 | "name": "phpspec/prophecy",
578 | "version": "1.7.3",
579 | "source": {
580 | "type": "git",
581 | "url": "https://github.com/phpspec/prophecy.git",
582 | "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf"
583 | },
584 | "dist": {
585 | "type": "zip",
586 | "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf",
587 | "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf",
588 | "shasum": ""
589 | },
590 | "require": {
591 | "doctrine/instantiator": "^1.0.2",
592 | "php": "^5.3|^7.0",
593 | "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
594 | "sebastian/comparator": "^1.1|^2.0",
595 | "sebastian/recursion-context": "^1.0|^2.0|^3.0"
596 | },
597 | "require-dev": {
598 | "phpspec/phpspec": "^2.5|^3.2",
599 | "phpunit/phpunit": "^4.8.35 || ^5.7"
600 | },
601 | "type": "library",
602 | "extra": {
603 | "branch-alias": {
604 | "dev-master": "1.7.x-dev"
605 | }
606 | },
607 | "autoload": {
608 | "psr-0": {
609 | "Prophecy\\": "src/"
610 | }
611 | },
612 | "notification-url": "https://packagist.org/downloads/",
613 | "license": [
614 | "MIT"
615 | ],
616 | "authors": [
617 | {
618 | "name": "Konstantin Kudryashov",
619 | "email": "ever.zet@gmail.com",
620 | "homepage": "http://everzet.com"
621 | },
622 | {
623 | "name": "Marcello Duarte",
624 | "email": "marcello.duarte@gmail.com"
625 | }
626 | ],
627 | "description": "Highly opinionated mocking framework for PHP 5.3+",
628 | "homepage": "https://github.com/phpspec/prophecy",
629 | "keywords": [
630 | "Double",
631 | "Dummy",
632 | "fake",
633 | "mock",
634 | "spy",
635 | "stub"
636 | ],
637 | "time": "2017-11-24T13:59:53+00:00"
638 | },
639 | {
640 | "name": "phpunit/php-code-coverage",
641 | "version": "5.3.0",
642 | "source": {
643 | "type": "git",
644 | "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
645 | "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1"
646 | },
647 | "dist": {
648 | "type": "zip",
649 | "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/661f34d0bd3f1a7225ef491a70a020ad23a057a1",
650 | "reference": "661f34d0bd3f1a7225ef491a70a020ad23a057a1",
651 | "shasum": ""
652 | },
653 | "require": {
654 | "ext-dom": "*",
655 | "ext-xmlwriter": "*",
656 | "php": "^7.0",
657 | "phpunit/php-file-iterator": "^1.4.2",
658 | "phpunit/php-text-template": "^1.2.1",
659 | "phpunit/php-token-stream": "^2.0.1",
660 | "sebastian/code-unit-reverse-lookup": "^1.0.1",
661 | "sebastian/environment": "^3.0",
662 | "sebastian/version": "^2.0.1",
663 | "theseer/tokenizer": "^1.1"
664 | },
665 | "require-dev": {
666 | "phpunit/phpunit": "^6.0"
667 | },
668 | "suggest": {
669 | "ext-xdebug": "^2.5.5"
670 | },
671 | "type": "library",
672 | "extra": {
673 | "branch-alias": {
674 | "dev-master": "5.3.x-dev"
675 | }
676 | },
677 | "autoload": {
678 | "classmap": [
679 | "src/"
680 | ]
681 | },
682 | "notification-url": "https://packagist.org/downloads/",
683 | "license": [
684 | "BSD-3-Clause"
685 | ],
686 | "authors": [
687 | {
688 | "name": "Sebastian Bergmann",
689 | "email": "sebastian@phpunit.de",
690 | "role": "lead"
691 | }
692 | ],
693 | "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
694 | "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
695 | "keywords": [
696 | "coverage",
697 | "testing",
698 | "xunit"
699 | ],
700 | "time": "2017-12-06T09:29:45+00:00"
701 | },
702 | {
703 | "name": "phpunit/php-file-iterator",
704 | "version": "1.4.5",
705 | "source": {
706 | "type": "git",
707 | "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
708 | "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
709 | },
710 | "dist": {
711 | "type": "zip",
712 | "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
713 | "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
714 | "shasum": ""
715 | },
716 | "require": {
717 | "php": ">=5.3.3"
718 | },
719 | "type": "library",
720 | "extra": {
721 | "branch-alias": {
722 | "dev-master": "1.4.x-dev"
723 | }
724 | },
725 | "autoload": {
726 | "classmap": [
727 | "src/"
728 | ]
729 | },
730 | "notification-url": "https://packagist.org/downloads/",
731 | "license": [
732 | "BSD-3-Clause"
733 | ],
734 | "authors": [
735 | {
736 | "name": "Sebastian Bergmann",
737 | "email": "sb@sebastian-bergmann.de",
738 | "role": "lead"
739 | }
740 | ],
741 | "description": "FilterIterator implementation that filters files based on a list of suffixes.",
742 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
743 | "keywords": [
744 | "filesystem",
745 | "iterator"
746 | ],
747 | "time": "2017-11-27T13:52:08+00:00"
748 | },
749 | {
750 | "name": "phpunit/php-text-template",
751 | "version": "1.2.1",
752 | "source": {
753 | "type": "git",
754 | "url": "https://github.com/sebastianbergmann/php-text-template.git",
755 | "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
756 | },
757 | "dist": {
758 | "type": "zip",
759 | "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
760 | "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
761 | "shasum": ""
762 | },
763 | "require": {
764 | "php": ">=5.3.3"
765 | },
766 | "type": "library",
767 | "autoload": {
768 | "classmap": [
769 | "src/"
770 | ]
771 | },
772 | "notification-url": "https://packagist.org/downloads/",
773 | "license": [
774 | "BSD-3-Clause"
775 | ],
776 | "authors": [
777 | {
778 | "name": "Sebastian Bergmann",
779 | "email": "sebastian@phpunit.de",
780 | "role": "lead"
781 | }
782 | ],
783 | "description": "Simple template engine.",
784 | "homepage": "https://github.com/sebastianbergmann/php-text-template/",
785 | "keywords": [
786 | "template"
787 | ],
788 | "time": "2015-06-21T13:50:34+00:00"
789 | },
790 | {
791 | "name": "phpunit/php-timer",
792 | "version": "1.0.9",
793 | "source": {
794 | "type": "git",
795 | "url": "https://github.com/sebastianbergmann/php-timer.git",
796 | "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
797 | },
798 | "dist": {
799 | "type": "zip",
800 | "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
801 | "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
802 | "shasum": ""
803 | },
804 | "require": {
805 | "php": "^5.3.3 || ^7.0"
806 | },
807 | "require-dev": {
808 | "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
809 | },
810 | "type": "library",
811 | "extra": {
812 | "branch-alias": {
813 | "dev-master": "1.0-dev"
814 | }
815 | },
816 | "autoload": {
817 | "classmap": [
818 | "src/"
819 | ]
820 | },
821 | "notification-url": "https://packagist.org/downloads/",
822 | "license": [
823 | "BSD-3-Clause"
824 | ],
825 | "authors": [
826 | {
827 | "name": "Sebastian Bergmann",
828 | "email": "sb@sebastian-bergmann.de",
829 | "role": "lead"
830 | }
831 | ],
832 | "description": "Utility class for timing",
833 | "homepage": "https://github.com/sebastianbergmann/php-timer/",
834 | "keywords": [
835 | "timer"
836 | ],
837 | "time": "2017-02-26T11:10:40+00:00"
838 | },
839 | {
840 | "name": "phpunit/php-token-stream",
841 | "version": "2.0.2",
842 | "source": {
843 | "type": "git",
844 | "url": "https://github.com/sebastianbergmann/php-token-stream.git",
845 | "reference": "791198a2c6254db10131eecfe8c06670700904db"
846 | },
847 | "dist": {
848 | "type": "zip",
849 | "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
850 | "reference": "791198a2c6254db10131eecfe8c06670700904db",
851 | "shasum": ""
852 | },
853 | "require": {
854 | "ext-tokenizer": "*",
855 | "php": "^7.0"
856 | },
857 | "require-dev": {
858 | "phpunit/phpunit": "^6.2.4"
859 | },
860 | "type": "library",
861 | "extra": {
862 | "branch-alias": {
863 | "dev-master": "2.0-dev"
864 | }
865 | },
866 | "autoload": {
867 | "classmap": [
868 | "src/"
869 | ]
870 | },
871 | "notification-url": "https://packagist.org/downloads/",
872 | "license": [
873 | "BSD-3-Clause"
874 | ],
875 | "authors": [
876 | {
877 | "name": "Sebastian Bergmann",
878 | "email": "sebastian@phpunit.de"
879 | }
880 | ],
881 | "description": "Wrapper around PHP's tokenizer extension.",
882 | "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
883 | "keywords": [
884 | "tokenizer"
885 | ],
886 | "time": "2017-11-27T05:48:46+00:00"
887 | },
888 | {
889 | "name": "phpunit/phpunit",
890 | "version": "6.3.1",
891 | "source": {
892 | "type": "git",
893 | "url": "https://github.com/sebastianbergmann/phpunit.git",
894 | "reference": "c0ff817b36a827e64bf5f57bc72278150cf30a77"
895 | },
896 | "dist": {
897 | "type": "zip",
898 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c0ff817b36a827e64bf5f57bc72278150cf30a77",
899 | "reference": "c0ff817b36a827e64bf5f57bc72278150cf30a77",
900 | "shasum": ""
901 | },
902 | "require": {
903 | "ext-dom": "*",
904 | "ext-json": "*",
905 | "ext-libxml": "*",
906 | "ext-mbstring": "*",
907 | "ext-xml": "*",
908 | "myclabs/deep-copy": "^1.6.1",
909 | "phar-io/manifest": "^1.0.1",
910 | "phar-io/version": "^1.0",
911 | "php": "^7.0",
912 | "phpspec/prophecy": "^1.7",
913 | "phpunit/php-code-coverage": "^5.2.2",
914 | "phpunit/php-file-iterator": "^1.4.2",
915 | "phpunit/php-text-template": "^1.2.1",
916 | "phpunit/php-timer": "^1.0.9",
917 | "phpunit/phpunit-mock-objects": "^4.0.3",
918 | "sebastian/comparator": "^2.0.2",
919 | "sebastian/diff": "^2.0",
920 | "sebastian/environment": "^3.1",
921 | "sebastian/exporter": "^3.1",
922 | "sebastian/global-state": "^2.0",
923 | "sebastian/object-enumerator": "^3.0.3",
924 | "sebastian/resource-operations": "^1.0",
925 | "sebastian/version": "^2.0.1"
926 | },
927 | "conflict": {
928 | "phpdocumentor/reflection-docblock": "3.0.2",
929 | "phpunit/dbunit": "<3.0"
930 | },
931 | "require-dev": {
932 | "ext-pdo": "*"
933 | },
934 | "suggest": {
935 | "ext-xdebug": "*",
936 | "phpunit/php-invoker": "^1.1"
937 | },
938 | "bin": [
939 | "phpunit"
940 | ],
941 | "type": "library",
942 | "extra": {
943 | "branch-alias": {
944 | "dev-master": "6.3.x-dev"
945 | }
946 | },
947 | "autoload": {
948 | "classmap": [
949 | "src/"
950 | ]
951 | },
952 | "notification-url": "https://packagist.org/downloads/",
953 | "license": [
954 | "BSD-3-Clause"
955 | ],
956 | "authors": [
957 | {
958 | "name": "Sebastian Bergmann",
959 | "email": "sebastian@phpunit.de",
960 | "role": "lead"
961 | }
962 | ],
963 | "description": "The PHP Unit Testing framework.",
964 | "homepage": "https://phpunit.de/",
965 | "keywords": [
966 | "phpunit",
967 | "testing",
968 | "xunit"
969 | ],
970 | "time": "2017-09-24T07:25:54+00:00"
971 | },
972 | {
973 | "name": "phpunit/phpunit-mock-objects",
974 | "version": "4.0.4",
975 | "source": {
976 | "type": "git",
977 | "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
978 | "reference": "2f789b59ab89669015ad984afa350c4ec577ade0"
979 | },
980 | "dist": {
981 | "type": "zip",
982 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/2f789b59ab89669015ad984afa350c4ec577ade0",
983 | "reference": "2f789b59ab89669015ad984afa350c4ec577ade0",
984 | "shasum": ""
985 | },
986 | "require": {
987 | "doctrine/instantiator": "^1.0.5",
988 | "php": "^7.0",
989 | "phpunit/php-text-template": "^1.2.1",
990 | "sebastian/exporter": "^3.0"
991 | },
992 | "conflict": {
993 | "phpunit/phpunit": "<6.0"
994 | },
995 | "require-dev": {
996 | "phpunit/phpunit": "^6.0"
997 | },
998 | "suggest": {
999 | "ext-soap": "*"
1000 | },
1001 | "type": "library",
1002 | "extra": {
1003 | "branch-alias": {
1004 | "dev-master": "4.0.x-dev"
1005 | }
1006 | },
1007 | "autoload": {
1008 | "classmap": [
1009 | "src/"
1010 | ]
1011 | },
1012 | "notification-url": "https://packagist.org/downloads/",
1013 | "license": [
1014 | "BSD-3-Clause"
1015 | ],
1016 | "authors": [
1017 | {
1018 | "name": "Sebastian Bergmann",
1019 | "email": "sb@sebastian-bergmann.de",
1020 | "role": "lead"
1021 | }
1022 | ],
1023 | "description": "Mock Object library for PHPUnit",
1024 | "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
1025 | "keywords": [
1026 | "mock",
1027 | "xunit"
1028 | ],
1029 | "time": "2017-08-03T14:08:16+00:00"
1030 | },
1031 | {
1032 | "name": "sebastian/code-unit-reverse-lookup",
1033 | "version": "1.0.1",
1034 | "source": {
1035 | "type": "git",
1036 | "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
1037 | "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
1038 | },
1039 | "dist": {
1040 | "type": "zip",
1041 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
1042 | "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
1043 | "shasum": ""
1044 | },
1045 | "require": {
1046 | "php": "^5.6 || ^7.0"
1047 | },
1048 | "require-dev": {
1049 | "phpunit/phpunit": "^5.7 || ^6.0"
1050 | },
1051 | "type": "library",
1052 | "extra": {
1053 | "branch-alias": {
1054 | "dev-master": "1.0.x-dev"
1055 | }
1056 | },
1057 | "autoload": {
1058 | "classmap": [
1059 | "src/"
1060 | ]
1061 | },
1062 | "notification-url": "https://packagist.org/downloads/",
1063 | "license": [
1064 | "BSD-3-Clause"
1065 | ],
1066 | "authors": [
1067 | {
1068 | "name": "Sebastian Bergmann",
1069 | "email": "sebastian@phpunit.de"
1070 | }
1071 | ],
1072 | "description": "Looks up which function or method a line of code belongs to",
1073 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
1074 | "time": "2017-03-04T06:30:41+00:00"
1075 | },
1076 | {
1077 | "name": "sebastian/comparator",
1078 | "version": "2.1.2",
1079 | "source": {
1080 | "type": "git",
1081 | "url": "https://github.com/sebastianbergmann/comparator.git",
1082 | "reference": "11c07feade1d65453e06df3b3b90171d6d982087"
1083 | },
1084 | "dist": {
1085 | "type": "zip",
1086 | "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/11c07feade1d65453e06df3b3b90171d6d982087",
1087 | "reference": "11c07feade1d65453e06df3b3b90171d6d982087",
1088 | "shasum": ""
1089 | },
1090 | "require": {
1091 | "php": "^7.0",
1092 | "sebastian/diff": "^2.0",
1093 | "sebastian/exporter": "^3.1"
1094 | },
1095 | "require-dev": {
1096 | "phpunit/phpunit": "^6.4"
1097 | },
1098 | "type": "library",
1099 | "extra": {
1100 | "branch-alias": {
1101 | "dev-master": "2.1.x-dev"
1102 | }
1103 | },
1104 | "autoload": {
1105 | "classmap": [
1106 | "src/"
1107 | ]
1108 | },
1109 | "notification-url": "https://packagist.org/downloads/",
1110 | "license": [
1111 | "BSD-3-Clause"
1112 | ],
1113 | "authors": [
1114 | {
1115 | "name": "Jeff Welch",
1116 | "email": "whatthejeff@gmail.com"
1117 | },
1118 | {
1119 | "name": "Volker Dusch",
1120 | "email": "github@wallbash.com"
1121 | },
1122 | {
1123 | "name": "Bernhard Schussek",
1124 | "email": "bschussek@2bepublished.at"
1125 | },
1126 | {
1127 | "name": "Sebastian Bergmann",
1128 | "email": "sebastian@phpunit.de"
1129 | }
1130 | ],
1131 | "description": "Provides the functionality to compare PHP values for equality",
1132 | "homepage": "https://github.com/sebastianbergmann/comparator",
1133 | "keywords": [
1134 | "comparator",
1135 | "compare",
1136 | "equality"
1137 | ],
1138 | "time": "2018-01-12T06:34:42+00:00"
1139 | },
1140 | {
1141 | "name": "sebastian/diff",
1142 | "version": "2.0.1",
1143 | "source": {
1144 | "type": "git",
1145 | "url": "https://github.com/sebastianbergmann/diff.git",
1146 | "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
1147 | },
1148 | "dist": {
1149 | "type": "zip",
1150 | "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
1151 | "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
1152 | "shasum": ""
1153 | },
1154 | "require": {
1155 | "php": "^7.0"
1156 | },
1157 | "require-dev": {
1158 | "phpunit/phpunit": "^6.2"
1159 | },
1160 | "type": "library",
1161 | "extra": {
1162 | "branch-alias": {
1163 | "dev-master": "2.0-dev"
1164 | }
1165 | },
1166 | "autoload": {
1167 | "classmap": [
1168 | "src/"
1169 | ]
1170 | },
1171 | "notification-url": "https://packagist.org/downloads/",
1172 | "license": [
1173 | "BSD-3-Clause"
1174 | ],
1175 | "authors": [
1176 | {
1177 | "name": "Kore Nordmann",
1178 | "email": "mail@kore-nordmann.de"
1179 | },
1180 | {
1181 | "name": "Sebastian Bergmann",
1182 | "email": "sebastian@phpunit.de"
1183 | }
1184 | ],
1185 | "description": "Diff implementation",
1186 | "homepage": "https://github.com/sebastianbergmann/diff",
1187 | "keywords": [
1188 | "diff"
1189 | ],
1190 | "time": "2017-08-03T08:09:46+00:00"
1191 | },
1192 | {
1193 | "name": "sebastian/environment",
1194 | "version": "3.1.0",
1195 | "source": {
1196 | "type": "git",
1197 | "url": "https://github.com/sebastianbergmann/environment.git",
1198 | "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
1199 | },
1200 | "dist": {
1201 | "type": "zip",
1202 | "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
1203 | "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
1204 | "shasum": ""
1205 | },
1206 | "require": {
1207 | "php": "^7.0"
1208 | },
1209 | "require-dev": {
1210 | "phpunit/phpunit": "^6.1"
1211 | },
1212 | "type": "library",
1213 | "extra": {
1214 | "branch-alias": {
1215 | "dev-master": "3.1.x-dev"
1216 | }
1217 | },
1218 | "autoload": {
1219 | "classmap": [
1220 | "src/"
1221 | ]
1222 | },
1223 | "notification-url": "https://packagist.org/downloads/",
1224 | "license": [
1225 | "BSD-3-Clause"
1226 | ],
1227 | "authors": [
1228 | {
1229 | "name": "Sebastian Bergmann",
1230 | "email": "sebastian@phpunit.de"
1231 | }
1232 | ],
1233 | "description": "Provides functionality to handle HHVM/PHP environments",
1234 | "homepage": "http://www.github.com/sebastianbergmann/environment",
1235 | "keywords": [
1236 | "Xdebug",
1237 | "environment",
1238 | "hhvm"
1239 | ],
1240 | "time": "2017-07-01T08:51:00+00:00"
1241 | },
1242 | {
1243 | "name": "sebastian/exporter",
1244 | "version": "3.1.0",
1245 | "source": {
1246 | "type": "git",
1247 | "url": "https://github.com/sebastianbergmann/exporter.git",
1248 | "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
1249 | },
1250 | "dist": {
1251 | "type": "zip",
1252 | "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
1253 | "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
1254 | "shasum": ""
1255 | },
1256 | "require": {
1257 | "php": "^7.0",
1258 | "sebastian/recursion-context": "^3.0"
1259 | },
1260 | "require-dev": {
1261 | "ext-mbstring": "*",
1262 | "phpunit/phpunit": "^6.0"
1263 | },
1264 | "type": "library",
1265 | "extra": {
1266 | "branch-alias": {
1267 | "dev-master": "3.1.x-dev"
1268 | }
1269 | },
1270 | "autoload": {
1271 | "classmap": [
1272 | "src/"
1273 | ]
1274 | },
1275 | "notification-url": "https://packagist.org/downloads/",
1276 | "license": [
1277 | "BSD-3-Clause"
1278 | ],
1279 | "authors": [
1280 | {
1281 | "name": "Jeff Welch",
1282 | "email": "whatthejeff@gmail.com"
1283 | },
1284 | {
1285 | "name": "Volker Dusch",
1286 | "email": "github@wallbash.com"
1287 | },
1288 | {
1289 | "name": "Bernhard Schussek",
1290 | "email": "bschussek@2bepublished.at"
1291 | },
1292 | {
1293 | "name": "Sebastian Bergmann",
1294 | "email": "sebastian@phpunit.de"
1295 | },
1296 | {
1297 | "name": "Adam Harvey",
1298 | "email": "aharvey@php.net"
1299 | }
1300 | ],
1301 | "description": "Provides the functionality to export PHP variables for visualization",
1302 | "homepage": "http://www.github.com/sebastianbergmann/exporter",
1303 | "keywords": [
1304 | "export",
1305 | "exporter"
1306 | ],
1307 | "time": "2017-04-03T13:19:02+00:00"
1308 | },
1309 | {
1310 | "name": "sebastian/global-state",
1311 | "version": "2.0.0",
1312 | "source": {
1313 | "type": "git",
1314 | "url": "https://github.com/sebastianbergmann/global-state.git",
1315 | "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
1316 | },
1317 | "dist": {
1318 | "type": "zip",
1319 | "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
1320 | "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
1321 | "shasum": ""
1322 | },
1323 | "require": {
1324 | "php": "^7.0"
1325 | },
1326 | "require-dev": {
1327 | "phpunit/phpunit": "^6.0"
1328 | },
1329 | "suggest": {
1330 | "ext-uopz": "*"
1331 | },
1332 | "type": "library",
1333 | "extra": {
1334 | "branch-alias": {
1335 | "dev-master": "2.0-dev"
1336 | }
1337 | },
1338 | "autoload": {
1339 | "classmap": [
1340 | "src/"
1341 | ]
1342 | },
1343 | "notification-url": "https://packagist.org/downloads/",
1344 | "license": [
1345 | "BSD-3-Clause"
1346 | ],
1347 | "authors": [
1348 | {
1349 | "name": "Sebastian Bergmann",
1350 | "email": "sebastian@phpunit.de"
1351 | }
1352 | ],
1353 | "description": "Snapshotting of global state",
1354 | "homepage": "http://www.github.com/sebastianbergmann/global-state",
1355 | "keywords": [
1356 | "global state"
1357 | ],
1358 | "time": "2017-04-27T15:39:26+00:00"
1359 | },
1360 | {
1361 | "name": "sebastian/object-enumerator",
1362 | "version": "3.0.3",
1363 | "source": {
1364 | "type": "git",
1365 | "url": "https://github.com/sebastianbergmann/object-enumerator.git",
1366 | "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
1367 | },
1368 | "dist": {
1369 | "type": "zip",
1370 | "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
1371 | "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
1372 | "shasum": ""
1373 | },
1374 | "require": {
1375 | "php": "^7.0",
1376 | "sebastian/object-reflector": "^1.1.1",
1377 | "sebastian/recursion-context": "^3.0"
1378 | },
1379 | "require-dev": {
1380 | "phpunit/phpunit": "^6.0"
1381 | },
1382 | "type": "library",
1383 | "extra": {
1384 | "branch-alias": {
1385 | "dev-master": "3.0.x-dev"
1386 | }
1387 | },
1388 | "autoload": {
1389 | "classmap": [
1390 | "src/"
1391 | ]
1392 | },
1393 | "notification-url": "https://packagist.org/downloads/",
1394 | "license": [
1395 | "BSD-3-Clause"
1396 | ],
1397 | "authors": [
1398 | {
1399 | "name": "Sebastian Bergmann",
1400 | "email": "sebastian@phpunit.de"
1401 | }
1402 | ],
1403 | "description": "Traverses array structures and object graphs to enumerate all referenced objects",
1404 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
1405 | "time": "2017-08-03T12:35:26+00:00"
1406 | },
1407 | {
1408 | "name": "sebastian/object-reflector",
1409 | "version": "1.1.1",
1410 | "source": {
1411 | "type": "git",
1412 | "url": "https://github.com/sebastianbergmann/object-reflector.git",
1413 | "reference": "773f97c67f28de00d397be301821b06708fca0be"
1414 | },
1415 | "dist": {
1416 | "type": "zip",
1417 | "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
1418 | "reference": "773f97c67f28de00d397be301821b06708fca0be",
1419 | "shasum": ""
1420 | },
1421 | "require": {
1422 | "php": "^7.0"
1423 | },
1424 | "require-dev": {
1425 | "phpunit/phpunit": "^6.0"
1426 | },
1427 | "type": "library",
1428 | "extra": {
1429 | "branch-alias": {
1430 | "dev-master": "1.1-dev"
1431 | }
1432 | },
1433 | "autoload": {
1434 | "classmap": [
1435 | "src/"
1436 | ]
1437 | },
1438 | "notification-url": "https://packagist.org/downloads/",
1439 | "license": [
1440 | "BSD-3-Clause"
1441 | ],
1442 | "authors": [
1443 | {
1444 | "name": "Sebastian Bergmann",
1445 | "email": "sebastian@phpunit.de"
1446 | }
1447 | ],
1448 | "description": "Allows reflection of object attributes, including inherited and non-public ones",
1449 | "homepage": "https://github.com/sebastianbergmann/object-reflector/",
1450 | "time": "2017-03-29T09:07:27+00:00"
1451 | },
1452 | {
1453 | "name": "sebastian/recursion-context",
1454 | "version": "3.0.0",
1455 | "source": {
1456 | "type": "git",
1457 | "url": "https://github.com/sebastianbergmann/recursion-context.git",
1458 | "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
1459 | },
1460 | "dist": {
1461 | "type": "zip",
1462 | "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
1463 | "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
1464 | "shasum": ""
1465 | },
1466 | "require": {
1467 | "php": "^7.0"
1468 | },
1469 | "require-dev": {
1470 | "phpunit/phpunit": "^6.0"
1471 | },
1472 | "type": "library",
1473 | "extra": {
1474 | "branch-alias": {
1475 | "dev-master": "3.0.x-dev"
1476 | }
1477 | },
1478 | "autoload": {
1479 | "classmap": [
1480 | "src/"
1481 | ]
1482 | },
1483 | "notification-url": "https://packagist.org/downloads/",
1484 | "license": [
1485 | "BSD-3-Clause"
1486 | ],
1487 | "authors": [
1488 | {
1489 | "name": "Jeff Welch",
1490 | "email": "whatthejeff@gmail.com"
1491 | },
1492 | {
1493 | "name": "Sebastian Bergmann",
1494 | "email": "sebastian@phpunit.de"
1495 | },
1496 | {
1497 | "name": "Adam Harvey",
1498 | "email": "aharvey@php.net"
1499 | }
1500 | ],
1501 | "description": "Provides functionality to recursively process PHP variables",
1502 | "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
1503 | "time": "2017-03-03T06:23:57+00:00"
1504 | },
1505 | {
1506 | "name": "sebastian/resource-operations",
1507 | "version": "1.0.0",
1508 | "source": {
1509 | "type": "git",
1510 | "url": "https://github.com/sebastianbergmann/resource-operations.git",
1511 | "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
1512 | },
1513 | "dist": {
1514 | "type": "zip",
1515 | "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
1516 | "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
1517 | "shasum": ""
1518 | },
1519 | "require": {
1520 | "php": ">=5.6.0"
1521 | },
1522 | "type": "library",
1523 | "extra": {
1524 | "branch-alias": {
1525 | "dev-master": "1.0.x-dev"
1526 | }
1527 | },
1528 | "autoload": {
1529 | "classmap": [
1530 | "src/"
1531 | ]
1532 | },
1533 | "notification-url": "https://packagist.org/downloads/",
1534 | "license": [
1535 | "BSD-3-Clause"
1536 | ],
1537 | "authors": [
1538 | {
1539 | "name": "Sebastian Bergmann",
1540 | "email": "sebastian@phpunit.de"
1541 | }
1542 | ],
1543 | "description": "Provides a list of PHP built-in functions that operate on resources",
1544 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
1545 | "time": "2015-07-28T20:34:47+00:00"
1546 | },
1547 | {
1548 | "name": "sebastian/version",
1549 | "version": "2.0.1",
1550 | "source": {
1551 | "type": "git",
1552 | "url": "https://github.com/sebastianbergmann/version.git",
1553 | "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
1554 | },
1555 | "dist": {
1556 | "type": "zip",
1557 | "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
1558 | "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
1559 | "shasum": ""
1560 | },
1561 | "require": {
1562 | "php": ">=5.6"
1563 | },
1564 | "type": "library",
1565 | "extra": {
1566 | "branch-alias": {
1567 | "dev-master": "2.0.x-dev"
1568 | }
1569 | },
1570 | "autoload": {
1571 | "classmap": [
1572 | "src/"
1573 | ]
1574 | },
1575 | "notification-url": "https://packagist.org/downloads/",
1576 | "license": [
1577 | "BSD-3-Clause"
1578 | ],
1579 | "authors": [
1580 | {
1581 | "name": "Sebastian Bergmann",
1582 | "email": "sebastian@phpunit.de",
1583 | "role": "lead"
1584 | }
1585 | ],
1586 | "description": "Library that helps with managing the version number of Git-hosted PHP projects",
1587 | "homepage": "https://github.com/sebastianbergmann/version",
1588 | "time": "2016-10-03T07:35:21+00:00"
1589 | },
1590 | {
1591 | "name": "symfony/console",
1592 | "version": "v4.0.3",
1593 | "source": {
1594 | "type": "git",
1595 | "url": "https://github.com/symfony/console.git",
1596 | "reference": "fe0e69d7162cba0885791cf7eea5f0d7bc0f897e"
1597 | },
1598 | "dist": {
1599 | "type": "zip",
1600 | "url": "https://api.github.com/repos/symfony/console/zipball/fe0e69d7162cba0885791cf7eea5f0d7bc0f897e",
1601 | "reference": "fe0e69d7162cba0885791cf7eea5f0d7bc0f897e",
1602 | "shasum": ""
1603 | },
1604 | "require": {
1605 | "php": "^7.1.3",
1606 | "symfony/polyfill-mbstring": "~1.0"
1607 | },
1608 | "conflict": {
1609 | "symfony/dependency-injection": "<3.4",
1610 | "symfony/process": "<3.3"
1611 | },
1612 | "require-dev": {
1613 | "psr/log": "~1.0",
1614 | "symfony/config": "~3.4|~4.0",
1615 | "symfony/dependency-injection": "~3.4|~4.0",
1616 | "symfony/event-dispatcher": "~3.4|~4.0",
1617 | "symfony/lock": "~3.4|~4.0",
1618 | "symfony/process": "~3.4|~4.0"
1619 | },
1620 | "suggest": {
1621 | "psr/log": "For using the console logger",
1622 | "symfony/event-dispatcher": "",
1623 | "symfony/lock": "",
1624 | "symfony/process": ""
1625 | },
1626 | "type": "library",
1627 | "extra": {
1628 | "branch-alias": {
1629 | "dev-master": "4.0-dev"
1630 | }
1631 | },
1632 | "autoload": {
1633 | "psr-4": {
1634 | "Symfony\\Component\\Console\\": ""
1635 | },
1636 | "exclude-from-classmap": [
1637 | "/Tests/"
1638 | ]
1639 | },
1640 | "notification-url": "https://packagist.org/downloads/",
1641 | "license": [
1642 | "MIT"
1643 | ],
1644 | "authors": [
1645 | {
1646 | "name": "Fabien Potencier",
1647 | "email": "fabien@symfony.com"
1648 | },
1649 | {
1650 | "name": "Symfony Community",
1651 | "homepage": "https://symfony.com/contributors"
1652 | }
1653 | ],
1654 | "description": "Symfony Console Component",
1655 | "homepage": "https://symfony.com",
1656 | "time": "2018-01-03T07:38:00+00:00"
1657 | },
1658 | {
1659 | "name": "symfony/polyfill-mbstring",
1660 | "version": "v1.6.0",
1661 | "source": {
1662 | "type": "git",
1663 | "url": "https://github.com/symfony/polyfill-mbstring.git",
1664 | "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296"
1665 | },
1666 | "dist": {
1667 | "type": "zip",
1668 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296",
1669 | "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296",
1670 | "shasum": ""
1671 | },
1672 | "require": {
1673 | "php": ">=5.3.3"
1674 | },
1675 | "suggest": {
1676 | "ext-mbstring": "For best performance"
1677 | },
1678 | "type": "library",
1679 | "extra": {
1680 | "branch-alias": {
1681 | "dev-master": "1.6-dev"
1682 | }
1683 | },
1684 | "autoload": {
1685 | "psr-4": {
1686 | "Symfony\\Polyfill\\Mbstring\\": ""
1687 | },
1688 | "files": [
1689 | "bootstrap.php"
1690 | ]
1691 | },
1692 | "notification-url": "https://packagist.org/downloads/",
1693 | "license": [
1694 | "MIT"
1695 | ],
1696 | "authors": [
1697 | {
1698 | "name": "Nicolas Grekas",
1699 | "email": "p@tchwork.com"
1700 | },
1701 | {
1702 | "name": "Symfony Community",
1703 | "homepage": "https://symfony.com/contributors"
1704 | }
1705 | ],
1706 | "description": "Symfony polyfill for the Mbstring extension",
1707 | "homepage": "https://symfony.com",
1708 | "keywords": [
1709 | "compatibility",
1710 | "mbstring",
1711 | "polyfill",
1712 | "portable",
1713 | "shim"
1714 | ],
1715 | "time": "2017-10-11T12:05:26+00:00"
1716 | },
1717 | {
1718 | "name": "symfony/process",
1719 | "version": "v4.0.3",
1720 | "source": {
1721 | "type": "git",
1722 | "url": "https://github.com/symfony/process.git",
1723 | "reference": "2145b3e8137e463b1051b79440a59b38220944f0"
1724 | },
1725 | "dist": {
1726 | "type": "zip",
1727 | "url": "https://api.github.com/repos/symfony/process/zipball/2145b3e8137e463b1051b79440a59b38220944f0",
1728 | "reference": "2145b3e8137e463b1051b79440a59b38220944f0",
1729 | "shasum": ""
1730 | },
1731 | "require": {
1732 | "php": "^7.1.3"
1733 | },
1734 | "type": "library",
1735 | "extra": {
1736 | "branch-alias": {
1737 | "dev-master": "4.0-dev"
1738 | }
1739 | },
1740 | "autoload": {
1741 | "psr-4": {
1742 | "Symfony\\Component\\Process\\": ""
1743 | },
1744 | "exclude-from-classmap": [
1745 | "/Tests/"
1746 | ]
1747 | },
1748 | "notification-url": "https://packagist.org/downloads/",
1749 | "license": [
1750 | "MIT"
1751 | ],
1752 | "authors": [
1753 | {
1754 | "name": "Fabien Potencier",
1755 | "email": "fabien@symfony.com"
1756 | },
1757 | {
1758 | "name": "Symfony Community",
1759 | "homepage": "https://symfony.com/contributors"
1760 | }
1761 | ],
1762 | "description": "Symfony Process Component",
1763 | "homepage": "https://symfony.com",
1764 | "time": "2018-01-03T07:38:00+00:00"
1765 | },
1766 | {
1767 | "name": "theseer/tokenizer",
1768 | "version": "1.1.0",
1769 | "source": {
1770 | "type": "git",
1771 | "url": "https://github.com/theseer/tokenizer.git",
1772 | "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
1773 | },
1774 | "dist": {
1775 | "type": "zip",
1776 | "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
1777 | "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
1778 | "shasum": ""
1779 | },
1780 | "require": {
1781 | "ext-dom": "*",
1782 | "ext-tokenizer": "*",
1783 | "ext-xmlwriter": "*",
1784 | "php": "^7.0"
1785 | },
1786 | "type": "library",
1787 | "autoload": {
1788 | "classmap": [
1789 | "src/"
1790 | ]
1791 | },
1792 | "notification-url": "https://packagist.org/downloads/",
1793 | "license": [
1794 | "BSD-3-Clause"
1795 | ],
1796 | "authors": [
1797 | {
1798 | "name": "Arne Blankerts",
1799 | "email": "arne@blankerts.de",
1800 | "role": "Developer"
1801 | }
1802 | ],
1803 | "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
1804 | "time": "2017-04-07T12:08:54+00:00"
1805 | },
1806 | {
1807 | "name": "webmozart/assert",
1808 | "version": "1.2.0",
1809 | "source": {
1810 | "type": "git",
1811 | "url": "https://github.com/webmozart/assert.git",
1812 | "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f"
1813 | },
1814 | "dist": {
1815 | "type": "zip",
1816 | "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f",
1817 | "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f",
1818 | "shasum": ""
1819 | },
1820 | "require": {
1821 | "php": "^5.3.3 || ^7.0"
1822 | },
1823 | "require-dev": {
1824 | "phpunit/phpunit": "^4.6",
1825 | "sebastian/version": "^1.0.1"
1826 | },
1827 | "type": "library",
1828 | "extra": {
1829 | "branch-alias": {
1830 | "dev-master": "1.3-dev"
1831 | }
1832 | },
1833 | "autoload": {
1834 | "psr-4": {
1835 | "Webmozart\\Assert\\": "src/"
1836 | }
1837 | },
1838 | "notification-url": "https://packagist.org/downloads/",
1839 | "license": [
1840 | "MIT"
1841 | ],
1842 | "authors": [
1843 | {
1844 | "name": "Bernhard Schussek",
1845 | "email": "bschussek@gmail.com"
1846 | }
1847 | ],
1848 | "description": "Assertions to validate method input/output with nice error messages.",
1849 | "keywords": [
1850 | "assert",
1851 | "check",
1852 | "validate"
1853 | ],
1854 | "time": "2016-11-23T20:04:58+00:00"
1855 | }
1856 | ],
1857 | "aliases": [],
1858 | "minimum-stability": "stable",
1859 | "stability-flags": [],
1860 | "prefer-stable": false,
1861 | "prefer-lowest": false,
1862 | "platform": {
1863 | "php": ">=7.0.0",
1864 | "ext-trader": "*"
1865 | },
1866 | "platform-dev": []
1867 | }
1868 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
17 |
18 |
19 |
20 | tests
21 |
22 |
23 |
24 |
25 |
26 | source
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------