assertStringEndsNotWith() public static method

Asserts that a string ends not with a given suffix.
public static assertStringEndsNotWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string
コード例 #1
0
ファイル: Functions.php プロジェクト: delkyd/sugarcrm_dev
/**
 * Asserts that a string ends not with a given prefix.
 *
 * @param  string $suffix
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.4.0
 */
function assertStringEndsNotWith($suffix, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringEndsNotWith($suffix, $string, $message);
}
コード例 #2
0
ファイル: Expect.php プロジェクト: jasonmccreary/expect
 public function toEndWith($suffix)
 {
     if ($this->negate) {
         a::assertStringEndsNotWith($suffix, $this->actual);
     } else {
         a::assertStringEndsWith($suffix, $this->actual);
     }
 }
コード例 #3
0
ファイル: Verify.php プロジェクト: jaschweder/Verify
 public function notEndsWith($suffix)
 {
     a::assertStringEndsNotWith($suffix, $this->actual, $this->description);
 }
コード例 #4
0
ファイル: StringMatcher.php プロジェクト: dekeysoft/pu-tester
 public function doesNotEndWith($suffix)
 {
     Assert::assertStringEndsNotWith($suffix, $this->actual, $this->description);
     return $this;
 }
コード例 #5
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * Expect that a string ends not with a given suffix.
  *
  * @param string $suffix
  * @param string $message
  *
  * @return Expect
  */
 public function notToEndWith($suffix, $message = '')
 {
     Assert::assertStringEndsNotWith($suffix, $this->value, $message);
     return $this;
 }