assertStringMatchesFormatFile() public static method

Asserts that a string matches a given format file.
public static assertStringMatchesFormatFile ( string $formatFile, string $string, string $message = '' )
$formatFile string
$string string
$message string
Ejemplo n.º 1
0
/**
 * Asserts that a string matches a given format file.
 *
 * @param  string $formatFile
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.5.0
 */
function assertStringMatchesFormatFile($formatFile, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringMatchesFormatFile($formatFile, $string, $message);
}
Ejemplo n.º 2
0
 public function matchesFormatFromFile($formatFile)
 {
     Assert::assertStringMatchesFormatFile($formatFile, $this->actual, $this->description);
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Expect that a string matches a given format file.
  *
  * @param string $formatFile
  * @param string $message
  *
  * @return Expect
  */
 public function toMatchFormatFile($formatFile, $message = '')
 {
     Assert::assertStringMatchesFormatFile($formatFile, $this->value, $message);
     return $this;
 }
Ejemplo n.º 4
0
 public function matchesFormatFile($formatFile)
 {
     a::assertStringMatchesFormatFile($formatFile, $this->actual, $this->description);
 }
Ejemplo n.º 5
0
 /**
  * Asserts that a string matches a given format file.
  *
  * @param $formatFile
  * @param $string
  * @param string $message
  */
 public function assertStringMatchesVfsFormatFile($formatFile, $string, $message = '')
 {
     PHPUnit::assertStringMatchesFormatFile($this->getPath($formatFile), $string, $message);
 }