Skip to content

Commit

Permalink
# Moved test repo to data/repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kore committed Oct 4, 2010
1 parent a451e90 commit 76c7a18
Show file tree
Hide file tree
Showing 34 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tests/check/code_sniffer_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testValidLints()
array(
new pchIssue( E_ERROR, 'cs_errors.php', 12, 'PEAR.Classes.ClassDeclaration: Opening brace of a class must be on the line after the definition' ),
),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 4 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 4 ) )
);
}

Expand All @@ -65,7 +65,7 @@ public function testNoErrors()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 5 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 5 ) )
);
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/check/lint_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testValidLints()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 1 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 ) )
);
}

Expand All @@ -65,7 +65,7 @@ public function testInvalidLints()
array(
new pchIssue( E_ERROR, 'dir/errneous_file.php', null, "Parse error: syntax error, unexpected T_STRING in - on line 3" ),
),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 2 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 2 ) )
);
}

Expand All @@ -75,7 +75,7 @@ public function testValidCustomLints()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 2 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 2 ) )
);
}

Expand All @@ -85,7 +85,7 @@ public function testNoLints()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 3 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 3 ) )
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/commit_message/check_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testValidCommitMessages()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 1 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 ) )
);

$this->assertEquals(
Expand Down Expand Up @@ -94,7 +94,7 @@ public function testInvalidCustomCommitMessages()
array(
new pchIssue( E_ERROR, null, null, $error )
),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 1 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 ) )
);

$this->assertEquals(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/repository/version_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function suite()

public function testVersionAuthor()
{
$repo = new pchRepositoryVersion( __DIR__ . '/../data/', 1 );
$repo = new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 );
$this->assertEquals(
'kore',
$repo->author
Expand All @@ -58,7 +58,7 @@ public function testVersionAuthor()

public function testVersionDate()
{
$repo = new pchRepositoryVersion( __DIR__ . '/../data/', 1 );
$repo = new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 );
$this->assertEquals(
'2009-09-15 20:03:23 +0200 (Tue, 15 Sep 2009)',
$repo->date
Expand All @@ -67,7 +67,7 @@ public function testVersionDate()

public function testVersionLog()
{
$repo = new pchRepositoryVersion( __DIR__ . '/../data/', 1 );
$repo = new pchRepositoryVersion( __DIR__ . '/../data/repo/', 1 );
$this->assertEquals(
'- Added: A single test file to the test repository',
$repo->log
Expand Down
4 changes: 2 additions & 2 deletions tests/svn_keywords/check_tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testInvalidSvnKeywords()
array(
new pchIssue( E_WARNING, 'dir/errneous_file.php', null, 'Missing value \'Revision\' for property \'svn:keywords\'.' ),
),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 2 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 2 ) )
);
}

Expand All @@ -65,7 +65,7 @@ public function testNoSvnKeywords()

$this->assertEquals(
array(),
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/', 3 ) )
$parser->validate( new pchRepositoryVersion( __DIR__ . '/../data/repo/', 3 ) )
);
}
}
Expand Down

0 comments on commit 76c7a18

Please sign in to comment.