Skip to content

Commit

Permalink
[THRIFT-5757] Unit tests for php lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir.panivko committed Mar 4, 2024
1 parent 17009c3 commit 525690d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/php/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
convertWarningsToExceptions="true"
stopOnWarning="true"
stopOnFailure="true"
processIsolation="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/BinarySerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php -r --out ./Resources/packages/php ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class BinarySerializerTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/JsonSerializeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php:json -r --out ./Resources/packages/phpjs ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class JsonSerializeTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/TJSONProtocolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php -r --out ./Resources/packages/php ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class TJSONProtocolTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/TSimpleJSONProtocolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php -r --out ./Resources/packages/php ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class TSimpleJSONProtocolTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php:validate -r --out ./Resources/packages/phpv ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class ValidatorTest extends BaseValidatorTest
{
Expand Down
3 changes: 3 additions & 0 deletions lib/php/test/Unit/ValidatorTestOop.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
/***
* This test suite depends on running the compiler against the ./Resources/ThriftTest.thrift file:
* lib/php/test$ ../../../compiler/cpp/thrift --gen php:validate,oop -r --out ./Resources/packages/phpvo ./Resources/ThriftTest.thrift
*
* @runInSeparateProcess
* @preserveGlobalState false
*/
class ValidatorTestOop extends BaseValidatorTest
{
Expand Down

0 comments on commit 525690d

Please sign in to comment.