/** * @test */ public function returnsNullForNonExistingHeader() { assertNull($this->headerList->get('foo')); }
/** * @test * @since 5.3.0 */ public function asClassnameReturnsNullForNonExistingClass() { $parse = new Parse('does\\not\\Exist::class'); assertNull($parse->asClassname()); }
/** * @test */ public function closeDoesNothing() { assertNull($this->memoryOutputStream->close()); }
/** * @test */ public function getNonExistingParamReturnsNullByDefault() { assertNull($this->emptyQueryString->param('doesNotExist')); }
/** * @test */ public function findMatchWithGreatestPriorityForNonMatchingListsReturnsNull() { assertNull($this->acceptHeader->addAcceptable('text/plain', 0.2)->addAcceptable('text/html')->findMatchWithGreatestPriority(['text/foo', 'text/other'])); }
/** * @test * @since 7.0.0 */ public function doesNotCallKeyMapperWhenEndOfIteratorReached() { $mapping = new MappingIterator(new \ArrayIterator(['foo' => 303]), function () { fail('Value mapper never be called'); }, function () { fail('Key mapper never be called'); }); $mapping->next(); assertNull($mapping->key()); }
/** * @test */ public function optionalImplicitDependencyWillNotBeSetIfNotBound() { $injector = Binder::createInjector(); $obj = $injector->getInstance(ImplicitOptionalDependency::class); assertNull($obj->getGoodyear()); }