Пример #1
0
 public function testBuildLogString()
 {
     $result = 'phpunit-RAWRESULT-FORTESTONLY-phpunit-RAWRESULT-FORTESTONLY-' . mt_rand() . '-phpunit-RAWRESULT-FORTESTONLY';
     $response = new Response();
     $response->create(400, $result);
     $logString = $this->mockTest->buildLogString("http://notexistdomain.com", "a=1", 'POST', $response);
     $this->assertNotEquals(false, strpos($logString, $result));
 }