Beispiel #1
0
 public function testRegexStub()
 {
     Spray::regexStub('test', '`foo/.*`', array('body' => 'bar'));
     Spray::regexStub('http', '/(bar|baz)/', array('body' => 'wtf'));
     $this->assertContains('test', stream_get_wrappers());
     $this->assertContains('http', stream_get_wrappers());
     Spray::reset();
     $this->assertNotContains('test', stream_get_wrappers());
     $this->assertContains('http', stream_get_wrappers());
 }
Beispiel #2
0
 public function tearDown()
 {
     Spray::reset();
 }