PHP Класс spec\Crummy\Phlack\PhlackSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$mockConfig
$mockUrl

Открытые методы

Метод Описание
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 )

Описание методов

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() публичный Метод

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

it_fails_to_send_nonsense() публичный Метод

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

it_is_initializable() публичный Метод

public it_is_initializable ( )

it_returns_a_message_builder() публичный Метод

it_returns_an_attachment_builder() публичный Метод

it_returns_its_client() публичный Метод

public it_returns_its_client ( $client )

it_sends_a_string_message() публичный Метод

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 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 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 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() публичный Метод

let() публичный Метод

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

Описание свойств

$mockConfig публичное статическое свойство

public static $mockConfig

$mockUrl публичное статическое свойство

public static $mockUrl