Exemplo n.º 1
0
 public function testGetNonexist()
 {
     $toxiproxy = new Toxiproxy(self::httpClientFactory());
     $proxy = $toxiproxy->get(self::NONEXISTENT_TEST_NAME);
     $this->assertNull($proxy, sprintf("Non-existent proxy was not null", self::NONEXISTENT_TEST_NAME));
 }
Exemplo n.º 2
0
 public function testGetNonexist()
 {
     $toxiproxy = new Toxiproxy(self::mockHttpClientFactory([self::getNonexistentProxyResponse(self::NONEXISTENT_TEST_NAME)]));
     $proxy = $toxiproxy->get(self::NONEXISTENT_TEST_NAME);
     $this->assertNull($proxy, "Non-existent proxy was expected to be null, was not null");
 }