ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.149.237.89 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/hrupgrade/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/ |
Upload File : |
<?php namespace Hamcrest\Core; class AllOfTest extends \Hamcrest\AbstractMatcherTest { protected function createMatcher() { return \Hamcrest\Core\AllOf::allOf('irrelevant'); } public function testEvaluatesToTheLogicalConjunctionOfTwoOtherMatchers() { assertThat('good', allOf('good', 'good')); assertThat('good', not(allOf('bad', 'good'))); assertThat('good', not(allOf('good', 'bad'))); assertThat('good', not(allOf('bad', 'bad'))); } public function testEvaluatesToTheLogicalConjunctionOfManyOtherMatchers() { assertThat('good', allOf('good', 'good', 'good', 'good', 'good')); assertThat('good', not(allOf('good', endsWith('d'), 'bad', 'good', 'good'))); } public function testSupportsMixedTypes() { $all = allOf( equalTo(new \Hamcrest\Core\SampleBaseClass('good')), equalTo(new \Hamcrest\Core\SampleBaseClass('good')), equalTo(new \Hamcrest\Core\SampleSubClass('ugly')) ); $negated = not($all); assertThat(new \Hamcrest\Core\SampleSubClass('good'), $negated); } public function testHasAReadableDescription() { $this->assertDescription( '("good" and "bad" and "ugly")', allOf('good', 'bad', 'ugly') ); } public function testMismatchDescriptionDescribesFirstFailingMatch() { $this->assertMismatchDescription( '"good" was "bad"', allOf('bad', 'good'), 'bad' ); } }