Ejemplo n.º 1
0
 public function testNotExists()
 {
     $toxiproxy = new Toxiproxy(self::httpClientFactory());
     $exists = $toxiproxy->exists(self::NONEXISTENT_TEST_NAME);
     $this->assertFalse($exists, "Exists was not false");
 }
Ejemplo n.º 2
0
 public function testNotExists()
 {
     $toxiproxy = new Toxiproxy(self::mockHttpClientFactory([self::getNonexistentProxyResponse(self::NONEXISTENT_TEST_NAME)]));
     $exists = $toxiproxy->exists(self::NONEXISTENT_TEST_NAME);
     $this->assertFalse($exists, "Exists was not false");
 }