Ejemplo n.º 1
0
 /**
  * @test
  */
 public function returnsNullForNonExistingHeader()
 {
     assertNull($this->headerList->get('foo'));
 }
Ejemplo n.º 2
0
 /**
  * @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());
 }
Ejemplo n.º 4
0
 /**
  * @test
  */
 public function getNonExistingParamReturnsNullByDefault()
 {
     assertNull($this->emptyQueryString->param('doesNotExist'));
 }
Ejemplo n.º 5
0
 /**
  * @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());
 }
Ejemplo n.º 7
0
 /**
  * @test
  */
 public function optionalImplicitDependencyWillNotBeSetIfNotBound()
 {
     $injector = Binder::createInjector();
     $obj = $injector->getInstance(ImplicitOptionalDependency::class);
     assertNull($obj->getGoodyear());
 }