Файловый менеджер - Редактировать - /home/easybachat/hisabat365.com/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php
Ðазад
<?php namespace Hamcrest\Type; class IsScalarTest extends \Hamcrest\AbstractMatcherTest { protected function createMatcher() { return \Hamcrest\Type\IsScalar::scalarValue(); } public function testEvaluatesToTrueIfArgumentMatchesType() { assertThat(true, scalarValue()); assertThat(5, scalarValue()); assertThat(5.3, scalarValue()); assertThat('5', scalarValue()); } public function testEvaluatesToFalseIfArgumentDoesntMatchType() { assertThat(null, not(scalarValue())); assertThat(array(), not(scalarValue())); assertThat(array(5), not(scalarValue())); assertThat(tmpfile(), not(scalarValue())); assertThat(new \stdClass(), not(scalarValue())); } public function testHasAReadableDescription() { $this->assertDescription('a scalar', scalarValue()); } public function testDecribesActualTypeInMismatchMessage() { $this->assertMismatchDescription('was null', scalarValue(), null); $this->assertMismatchDescription('was an array ["foo"]', scalarValue(), array('foo')); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 1.1 |
proxy
|
phpinfo
|
ÐаÑтройка