awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
hamcrest avatar

hamcrest/hamcrest-php

0
View on GitHub↗
7,007 stele·46 fork-uri·PHP·2 vizualizări

Hamcrest Php

Hamcrest PHP is a declarative assertion framework and matcher library used for unit testing in PHP. It provides a set of flexible matchers to verify object states, data types, and collection contents.

The library includes specialized tools for XML verification using XPath expressions to analyze document structures and element content. It also allows for the creation of complex validation rules by combining multiple independent matchers through logical operators.

The framework covers a broad range of validation primitives, including string content inspection, numeric comparison, and object property verification. It also provides utilities for checking data types and validating the size and contents of arrays and traversable collections.

Features

  • PHP Data Assertion Tools - Provides a comprehensive set of assertion tools for verifying PHP values and nested object contents.
  • Object and Collection Assertions - Checks class inheritance, object properties, and the contents of traversable collections or arrays.
  • Object Member Assertions - Compares object instances by identity or value and verifies class inheritance.
  • Collection Size Assertions - Checks if traversable collections are empty or contain a specific number of elements.
  • Numeric Assertions - Evaluates numeric values based on equality, range proximity, and relative magnitude.
  • PHP Value Comparison Libraries - Provides a flexible library of matchers to check equality and specific criteria between complex PHP data types.
  • Collection Content Validations - Implements comprehensive checks for element presence, count, and ordering within PHP arrays and collections.
  • Unit Testing Utilities - Implements a declarative API for validating object states, data types, and collection contents during unit testing.
  • String Assertions - Implements specialized matchers for analyzing string content, substrings, and patterns.
  • Type Assertions - Includes utilities to verify that values match specific scalar or compound data types.
  • Unit Testing Frameworks - Provides a library for defining and executing automated assertions to verify code logic and correctness.
  • String Pattern Validators - Provides utilities for verifying PHP strings against regular expression patterns, substrings, and equality.
  • XML XPath Matchers - Provides specialized tools for XML verification using XPath expressions to analyze document structures.
  • Composite Assertion Matchers - Implements complex validation rules by nesting simple matcher objects within logical operator objects.
  • XML Verification Matchers - Uses XPath expressions to analyze and verify the structure and content of XML documents in PHP applications.
  • Assertion Logic Combinators - Provides capabilities to combine multiple independent matchers using logical AND and OR operations for complex validation.
  • Assertion Matchers - Provides a system for grouping multiple matchers using logical operators to create complex validation rules.
  • XPath Assertions - Provides specialized matchers to analyze and verify XML document structures using XPath expressions.

Istoric stele

Graficul istoricului de stele pentru hamcrest/hamcrest-phpGraficul istoricului de stele pentru hamcrest/hamcrest-php

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Hamcrest Php

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Hamcrest Php.
  • thomhurst/tunitAvatar thomhurst

    thomhurst/TUnit

    3,744Vezi pe GitHub↗

    TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source generation for test discovery and mock creation, ensuring compatibility with Native AOT and IL trimming by eliminating the need for runtime reflection and proxies. The framework provides specialized capabilities for integration testing, including the management of distributed application lifecycles, isolated database schemas, and the correlation of telemetry and logs across process boundaries via OTLP. It also includes an HTTP testing utility to intercept network exchanges and mock AP

    C#csharpdotnettest
    Vezi pe GitHub↗3,744
  • sebastianbergmann/comparatorAvatar sebastianbergmann

    sebastianbergmann/comparator

    7,053Vezi pe GitHub↗

    This library is a data assertion tool and equality logic framework for PHP. It provides utilities to verify that two values, nested objects, or complex data types match based on their internal contents. The project distinguishes itself through the use of custom matching rules and configurable precision. It allows for the comparison of floating point numbers and dates using a defined margin of error to account for numeric precision loss. The framework covers deep value equality verification across scalars, arrays, and nested objects. It implements strict type enforcement to prevent implicit c

    PHP
    Vezi pe GitHub↗7,053
  • junit-team/junit4Avatar junit-team

    junit-team/junit4

    8,525Vezi pe GitHub↗

    JUnit 4 is a unit testing framework for Java that provides a structured approach to writing and running automated tests. At its core, it uses annotation-based test discovery to automatically identify test methods, and a pluggable runner architecture that controls how test classes are discovered, instantiated, and executed. The framework builds test execution around a chain of Statement objects, each wrapping the next to layer behaviors such as timeouts and retries, and uses Java reflection to dynamically invoke test methods and access private fields for setup and teardown operations. The fram

    Java
    Vezi pe GitHub↗8,525
  • assertj/assertjAvatar assertj

    assertj/assertj

    2,827Vezi pe GitHub↗

    AssertJ is a Java assertion library and fluent interface testing framework. It provides a toolkit for verifying object states using a chainable syntax designed to make test assertions descriptive and readable. The library functions as a type-specific Java verifier, offering specialized assertion methods for strings, collections, maps, and complex object graphs. It utilizes type-specific assertion classes to provide validation methods relevant to the specific data structure being tested. The framework covers a broad range of quality assurance capabilities, including object state verification

    Javaassertionsassertjgroovy
    Vezi pe GitHub↗2,827
Vezi toate cele 30 alternative pentru Hamcrest Php→

Întrebări frecvente

Ce face hamcrest/hamcrest-php?

Hamcrest PHP is a declarative assertion framework and matcher library used for unit testing in PHP. It provides a set of flexible matchers to verify object states, data types, and collection contents.

Care sunt principalele funcționalități ale hamcrest/hamcrest-php?

Principalele funcționalități ale hamcrest/hamcrest-php sunt: PHP Data Assertion Tools, Object and Collection Assertions, Object Member Assertions, Collection Size Assertions, Numeric Assertions, PHP Value Comparison Libraries, Collection Content Validations, Unit Testing Utilities.

Care sunt câteva alternative open-source pentru hamcrest/hamcrest-php?

Alternativele open-source pentru hamcrest/hamcrest-php includ: thomhurst/tunit — TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source… sebastianbergmann/comparator — This library is a data assertion tool and equality logic framework for PHP. It provides utilities to verify that two… junit-team/junit4 — JUnit 4 is a unit testing framework for Java that provides a structured approach to writing and running automated… assertj/assertj — AssertJ is a Java assertion library and fluent interface testing framework. It provides a toolkit for verifying object… doctrine/instantiator — Instantiator is a PHP library designed to create class instances without invoking their constructors. It uses the PHP… asaskevich/govalidator — [Go] Package of validators and sanitizers for strings, numerics, slices and structs.