public function testNotExists() { $toxiproxy = new Toxiproxy(self::httpClientFactory()); $exists = $toxiproxy->exists(self::NONEXISTENT_TEST_NAME); $this->assertFalse($exists, "Exists was not false"); }
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"); }