function testIsCompatibleWith() { $sp1 = new Specification("simple_spec/test", "1.3"); $sp2 = new Specification("simple_spec/world", ""); $sp3 = new Specification("simple_spec/test", "2"); $this->assertFalse($sp2->is_compatible_with($sp1), "La specifica simple_spec/world e' compatibile con simple_spec/test-1.0!!"); $this->assertFalse($sp2->is_compatible_with($sp3), "La specifica sp3 e' compatibile con sp2!!"); $this->assertTrue($sp2->is_compatible_with($sp2), "La specifica simple_spec/world non e' compatibile con se stessa!!"); $this->assertTrue($sp1->is_compatible_with($sp1), "La specifica simple_spec/test-1.3 non e' compatibile con se stessa!!"); $this->assertTrue($sp3->is_compatible_with($sp1), "La specifica simple_spec/test-2 non e' compatibile con simple_spec/test-1.3 stessa!!"); }