PHP Class spec\Crummy\Phlack\PhlackSpec

Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: mcrumm/phlack

Public Properties

Property Type Description
$mockConfig
$mockUrl

Public Methods

Method Description
it_assumes_it_received_a_client_config_fromConfig ( )
it_assumes_it_received_a_client_config_when_constructed_with_an_array ( )
it_assumes_it_received_a_url_when_constructed_with_a_string ( )
it_assumes_url_when_factory_gets_a_single_argument ( )
it_fails_to_instantiate_with_an_invalid_client ( Guzzle\Service\Client $client )
it_fails_to_send_nonsense ( $client, Iterator $iterator )
it_is_initializable ( )
it_returns_a_message_builder ( )
it_returns_an_attachment_builder ( )
it_returns_its_client ( $client )
it_sends_a_string_message ( $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
it_sends_an_array_of_message_parameters ( $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
it_sends_any_JsonSerializable_that_returns_an_array ( $client, JsonSerializable $message, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
it_sends_messages ( $client, Message $message, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
its_factory_accepts_the_client_config ( )
let ( PhlackClient $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )

Method Details

it_assumes_it_received_a_client_config_fromConfig() public method

it_assumes_it_received_a_client_config_when_constructed_with_an_array() public method

it_assumes_it_received_a_url_when_constructed_with_a_string() public method

it_assumes_url_when_factory_gets_a_single_argument() public method

it_fails_to_instantiate_with_an_invalid_client() public method

public it_fails_to_instantiate_with_an_invalid_client ( Guzzle\Service\Client $client )
$client Guzzle\Service\Client

it_fails_to_send_nonsense() public method

public it_fails_to_send_nonsense ( $client, Iterator $iterator )
$iterator Iterator

it_is_initializable() public method

public it_is_initializable ( )

it_returns_a_message_builder() public method

it_returns_an_attachment_builder() public method

it_returns_its_client() public method

public it_returns_its_client ( $client )

it_sends_a_string_message() public method

public it_sends_a_string_message ( $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
$command Guzzle\Service\Command\OperationCommand
$response Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse

it_sends_an_array_of_message_parameters() public method

public it_sends_an_array_of_message_parameters ( $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
$command Guzzle\Service\Command\OperationCommand
$response Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse

it_sends_any_JsonSerializable_that_returns_an_array() public method

public it_sends_any_JsonSerializable_that_returns_an_array ( $client, JsonSerializable $message, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
$message JsonSerializable
$command Guzzle\Service\Command\OperationCommand
$response Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse

it_sends_messages() public method

public it_sends_messages ( $client, Message $message, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
$message Crummy\Phlack\Message\Message
$command Guzzle\Service\Command\OperationCommand
$response Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse

its_factory_accepts_the_client_config() public method

let() public method

public let ( PhlackClient $client, Guzzle\Service\Command\OperationCommand $command, MessageResponse $response )
$client Crummy\Phlack\Bridge\Guzzle\PhlackClient
$command Guzzle\Service\Command\OperationCommand
$response Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse

Property Details

$mockConfig public static property

public static $mockConfig

$mockUrl public static property

public static $mockUrl