Пример #1
0
 public function testCreateMockService()
 {
     $mockService = Pact::mockService(['port' => 1234, 'consumer' => 'test', 'provider' => 'woo']);
     $this->assertInstanceOf("Pact\\MockService", $mockService);
 }
Пример #2
0
 public function testUponReceiving()
 {
     $mockService = Pact::mockService(['port' => 1234, 'consumer' => 'test', 'provider' => 'woo']);
     $this->assertInstanceOf("Pact\\Interaction", $mockService->uponReceiving("a request for an alligator"));
 }