예제 #1
0
 /**
  * Create a null object
  *
  * @return static
  */
 function no()
 {
     return \ConceptByte\NullObject\NullObject::create();
 }
예제 #2
0
 /** @test */
 public function it_handles_both_methods_and_properties()
 {
     $null = NullObject::create();
     $this->assertEquals([], (array) $null->xyz);
     $this->assertEquals([], (array) $null->xyz());
 }