Example #1
0
 public function testIsDir()
 {
     $storage = $this->getMock('Newscoop\\Storage', array('isDir'), array(''));
     $storage->expects($this->once())->method('isDir')->with($this->equalTo('item'))->will($this->returnValue(TRUE));
     $item = new Item('item', $storage);
     $this->assertTrue($item->isDir());
 }