function it_should_post_data_to_test_provider() { $config = new \Vultuk\Connections\Facades\Config\Native(); $config->set(['Testing' => ['PostTestServerCom' => ['directory' => 'vultuk_connections_directory']]]); $this->to('Testing.PostTestServerCom', $config)->setData(['Super' => 'Test', 'Woop' => 'Working'])->send()->shouldHaveType('Vultuk\\Connections\\Result'); }
<?php require 'vendor/autoload.php'; $config = new \Vultuk\Connections\Facades\Config\Native(); $config->set(['Testing' => ['PostTestServerCom' => ['directory' => 'vultuk_connections_directory']]]); $result = \Vultuk\Connections\Connect::to('Testing.PostTestServerCom', $config)->setData(['Super' => 'Test', 'Woop' => 'Working'])->send(); var_dump($result);