Skip to content

Commit

Permalink
Add tests based on specific detections
Browse files Browse the repository at this point in the history
  • Loading branch information
colder committed Sep 28, 2012
1 parent b6dd0c0 commit da96081
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/scala/insane/tests/DetectionTests.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package phantm.tests

import scala.io.Source
import phantm.Settings

import org.scalatest.FunSuite
import org.scalatest.matchers._

class DetectionTests extends PhantmTestDriver {

var settings = Settings(verbosity = 3)

testAndExpect("tests/target002.php", "Type mismatch")
testAndExpect("tests/target003.php", "Undefined method 'a::bar'")
testAndExpect("tests/target004.php", "no side-effect")
testAndExpect("tests/target005.php", "Type mismatch")
testAndExpect("tests/target007.php", "no side-effect")
testAndExpect("tests/target009.php", "Type mismatch")
}

0 comments on commit da96081

Please sign in to comment.