コード例 #1
0
 /**
  * @test
  */
 public function returnsNullForNonExistingHeader()
 {
     assertNull($this->headerList->get('foo'));
 }
コード例 #2
0
 /**
  * @test
  * @since  5.3.0
  */
 public function asClassnameReturnsNullForNonExistingClass()
 {
     $parse = new Parse('does\\not\\Exist::class');
     assertNull($parse->asClassname());
 }
コード例 #3
0
 /**
  * @test
  */
 public function closeDoesNothing()
 {
     assertNull($this->memoryOutputStream->close());
 }
コード例 #4
0
 /**
  * @test
  */
 public function getNonExistingParamReturnsNullByDefault()
 {
     assertNull($this->emptyQueryString->param('doesNotExist'));
 }
コード例 #5
0
 /**
  * @test
  */
 public function findMatchWithGreatestPriorityForNonMatchingListsReturnsNull()
 {
     assertNull($this->acceptHeader->addAcceptable('text/plain', 0.2)->addAcceptable('text/html')->findMatchWithGreatestPriority(['text/foo', 'text/other']));
 }
コード例 #6
0
 /**
  * @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());
 }
コード例 #7
0
 /**
  * @test
  */
 public function optionalImplicitDependencyWillNotBeSetIfNotBound()
 {
     $injector = Binder::createInjector();
     $obj = $injector->getInstance(ImplicitOptionalDependency::class);
     assertNull($obj->getGoodyear());
 }