PHPackages                             fan/laty - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. fan/laty

ActiveLibrary[Testing &amp; Quality](/categories/testing)

fan/laty
========

Laravel Api Test in YAML

v2.0.1(3y ago)127MITPHP

Since Aug 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/leondeng/laty)[ Packagist](https://packagist.org/packages/fan/laty)[ RSS](/packages/fan-laty/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (6)Versions (10)Used By (0)

laty
====

[](#laty)

Laravel Api Test in YAML

Highlights
----------

[](#highlights)

- fast Api spec composing: concise yaml format spec to describe an Api about request and response
- diverse types of content checking: JSON, HTML, CSV, even PDF
- focusing TDD via test id filtering: shortcut for best productivity
- auto database transaction and queries log: keep database clean, and still be able to view all queries
- offline Job and Mail bypassing: mock anything irrelevant to Api logic, keep it fast

Installation
------------

[](#installation)

```
composer require fan/laty --dev

```

Setup
-----

[](#setup)

- create `tests\Api\specs\base.yml`

```
api_controller_actions:
  base_url: https://localhost/api
  logging:
    file: php://stderr
    verbosity: 0
    query: false

```

- create `tests\Api\WebServiceTest.php`

```
