/**
  * Test that putting contents in a directory fails.
  *
  * @since 0.1.0
  */
 public function test_put_dir_contents()
 {
     $this->assertTrue($this->mock_fs->add_file('/test', array('type' => 'dir')));
     $this->assertFalse($this->fs->put_contents('/test', 'Test.', 0600));
     $this->assertEquals('dir', $this->mock_fs->get_file_attr('/test', 'type'));
     $this->assertInstanceOf('stdClass', $this->mock_fs->get_file_attr('/test', 'contents'));
     $this->assertEquals(0755, $this->mock_fs->get_file_attr('/test', 'mode'));
 }