Download the PHP package settleup/pest-plugin-visualizations without Composer

On this page you can find all versions of the php package settleup/pest-plugin-visualizations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pest-plugin-visualizations

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Pest plugin for testing SettleUp Visualizations — expressive, chainable assertions for DataGrids, Charts, and Metrics.

Installation

Usage

The plugin exposes three namespaced functions — dataGrid(), chart(), and metric() — that each return a fluent tester. All assertion methods are chainable and return the tester instance.

DataGrid

Schema assertions

Method Description
assertHasColumn(string $field) Assert a column with the given field name exists
assertMissingColumn(string $field) Assert no column with the given field name exists
assertColumnCount(int $count) Assert the total number of columns
assertColumnIsSortable(string $field) Assert the column is sortable
assertColumnIsNotSortable(string $field) Assert the column is not sortable
assertColumnIsFilterable(string $field) Assert the column is filterable
assertColumnIsNotFilterable(string $field) Assert the column is not filterable
assertColumnIsVisible(string $field) Assert the column is visible (not hidden)
assertColumnIsHidden(string $field) Assert the column is hidden
assertColumnIsRowKey(string $field) Assert the column is marked as the row key
assertHasFloatingFilter(string $field) Assert a floating filter with the given field name exists
assertMissingFloatingFilter(string $field) Assert no floating filter with the given field name exists

Data assertions

Use usingFilterSets() and usingSorts() to configure the query context before asserting on results. Each call replaces the previous context.

Method Description
usingFilterSets(Closure $configure) Configure filter context for subsequent data assertions
usingSorts(Closure $configure) Configure sort context for subsequent data assertions
assertRowCount(int $expected) Assert the number of rows returned
assertNoResults() Assert the query returns no rows
assertRowMatches(array $expected) Assert at least one row matches all given key/value pairs
assertRowMissing(array $expected) Assert no row matches all given key/value pairs

Chart

Schema assertions

Method Description
assertHasLabel(string $field) Assert the chart has a label with the given field name
assertHasNoLabel() Assert the chart uses NullLabel (no label)
assertHasDataset(string $field) Assert a dataset with the given field name exists
assertMissingDataset(string $field) Assert no dataset with the given field name exists
assertDatasetCount(int $count) Assert the total number of datasets
assertHasFloatingFilter(string $field) Assert a floating filter with the given field name exists
assertMissingFloatingFilter(string $field) Assert no floating filter with the given field name exists

Data assertions

Method Description
usingFilterSets(Closure $configure) Configure filter context for subsequent data assertions
usingSorts(Closure $configure) Configure sort context for subsequent data assertions
assertResultCount(int $count) Assert the number of result rows
assertNoResults() Assert the query returns no results
assertResultContains(array $expected) Assert at least one result row matches all given key/value pairs
assertResultMissing(array $expected) Assert no result row matches all given key/value pairs

Metric

Schema assertions

Method Description
assertHasValue(string $field) Assert the metric's value has the given field name
assertHasFloatingFilter(string $field) Assert a floating filter with the given field name exists
assertMissingFloatingFilter(string $field) Assert no floating filter with the given field name exists

Data assertions

Method Description
usingFilterSets(Closure $configure) Configure filter context for subsequent data assertions
assertAggregateEquals(mixed $expected) Assert the aggregate value equals the expected value
assertAggregateNull() Assert the aggregate value is null

Testing

License

The MIT License (MIT). Please see License File for more information.


All versions of pest-plugin-visualizations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
pestphp/pest Version ^4.0
pestphp/pest-plugin Version ^4.0
settleup/visualizations Version ^1.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package settleup/pest-plugin-visualizations contains the following files

Loading the files please wait ...