Server : LiteSpeed System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : apotdzgr ( 7060) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/apotdzgr/www/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/tests/ |
Upload File : |
<?php namespace plainview\sdk_mcc\tests; /** @brief TestCase for Plainview SDK testing. @details @par Changelog - 20130718 Initial version. @since 20130718 @version 20130718 **/ class TestCase extends \PHPUnit\Framework\TestCase { /** @brief Check if a string contains a substring. @since 20130718 **/ public function assertStringContains( $needle, $haystack ) { $this->assertTrue( strpos( $haystack, $needle ) !== false ); } /** @brief Check if a string contains a regexp @since 20130718 **/ public function assertStringContainsRegexp( $regexp, $string ) { $this->assertTrue( $this->string_contains_regexp( $regexp, $string ) ); } /** @brief Check if a string does not contain a substring. @since 20130718 **/ public function assertStringDoesNotContain( $needle, $haystack ) { $this->assertTrue( strpos( $haystack, $needle ) === false ); } /** @brief Check if a string does not contain a regexp @since 20130718 **/ public function assertStringDoesNotContainRegexp( $regexp, $string ) { $this->assertFalse( $this->string_contains_regexp( $regexp, $string ) ); } /** @brief Check if a string contains a regexp. @since 20130805 **/ public function string_contains_regexp( $regexp, $string ) { return preg_match_all( $regexp, $string ) > 0; } }